-
Notifications
You must be signed in to change notification settings - Fork 189
bx ek to ec
Eric Voskuil edited this page Oct 3, 2015
·
33 revisions
Recover the EC private key from an encrypted private key (BIP38).
$ bx ek-to-ec --helpUsage: bx ek-to-ec [-h] [--config VALUE] PASSPHRASE [EK_PRIVATE_KEY]
Info: Recover the EC private key from an encrypted private key (BIP38).
Options (named):
-c [--config] The path to the configuration settings file.
-h [--help] Get a description and instructions for this command.
Arguments (positional):
PASSPHRASE The passphrase that was used to encrypt the
encrypted private key.
EK_PRIVATE_KEY The encrypted private key to decrypt. If not
specified the key is read from STDIN.
Altchain support is a libbitcoin enhancement not yet specified in BIP-38.
Public key compression and payment address version (i.e. altchain) affect the encrypted private key but have no impact on the value of the underlying elliptic curve private key. These values are carried in the encoding to inform payment address generation.
See also ec-to-ek and ek-to-address.
mainnet
$ bx ek-to-ec "my passphrase" 6PYXCdvtrs4NN1TjUYbGS5Sd2gjsVsDm7GttqERRWvRjWDsrhQfJeEHrg5261fc32e9f29c70e3d898aa7db028c81ede0658e8ff8ffab8160073c048ae83f
incorrect passphrase
$ bx ek-to-ec "i forgot" 6PYXCdvtrs4NN1TjUYbGS5Sd2gjsVsDm7GttqERRWvRjWDsrhQfJeEHrg5The passphrase is incorrect.
piped input
$ echo 6PYXCdvtrs4NN1TjUYbGS5Sd2gjsVsDm7GttqERRWvRjWDsrhQfJeEHrg5 | bx ek-to-ec "my passphrase"6PYXCdvtrs4NN1TjUYbGS5Sd2gjsVsDm7GttqERRWvRjWDsrhQfJeEHrg5
261fc32e9f29c70e3d898aa7db028c81ede0658e8ff8ffab8160073c048ae83f
round trip
$ bx ec-to-ek "my passphrase" 261fc32e9f29c70e3d898aa7db028c81ede0658e8ff8ffab8160073c048ae83f | bx ek-to-ec "my passphrase"6PYXCdvtrs4NN1TjUYbGS5Sd2gjsVsDm7GttqERRWvRjWDsrhQfJeEHrg5
261fc32e9f29c70e3d898aa7db028c81ede0658e8ff8ffab8160073c048ae83f
uncompressed
$ bx ek-to-ec "my passphrase" 6PRPDbKfv3A45QPPfEtvcxM4oA6ShVL7t72VP74P1W3JEUHPrZXNy39FKe261fc32e9f29c70e3d898aa7db028c81ede0658e8ff8ffab8160073c048ae83f
testnet
$ bx ek-to-ec "my passphrase" 8EzHSxX3sfZp6NjYUdt7fZAPCKByrFDS12PHfdexFLSaSAfM7wM7tw3Hof261fc32e9f29c70e3d898aa7db028c81ede0658e8ff8ffab8160073c048ae83f
testnet, uncompressed
$ bx ek-to-ec "my passphrase" 8EsMUV3Z5A9m8eA28nSYECHAmKmy4YsyCYpGNvzHocFJBFhVYZARNfrfnt261fc32e9f29c70e3d898aa7db028c81ede0658e8ff8ffab8160073c048ae83f
multiplied: lot/sequence
$ bx ek-to-ec "my passphrase" 6PoJB3hjqER7KJDeo69pfX3ttV5DPaQPEf4pZEwhNYjTjqMdvif5qfE34S056115405c7161e62216fcbbf48832c8ed5ef66819a361ec8f6583f12bb2a924
multiplied
$ bx ek-to-ec "my passphrase" 6PnUht3dP5Jdcp1B7NGqkEoBw5Ja2wWEeQMDRHqLNrBG4Rqo59eVfMd98Bb1c23d8bf9a957349eafd851808ce5555279cc103924ebd96ddaa3b03666ac74
multiplied: uncompressed
$ bx ek-to-ec "my passphrase" 6PfM4jsmgX1veYaiBXqqDe3J8hFtAriohdNGjPfrbt7aQ8H53nijYN6svW1MydksvfdWNXM1KnVTS8A78M4b78aJcL1W
multiplied: testnet
$ bx ek-to-ec "my passphrase" 8FEMBzS4QWPwxyzrYJxHwzSrdNzroFiQjkAnpf51xcPPXkTvqGrD8bVq68b1c23d8bf9a957349eafd851808ce5555279cc103924ebd96ddaa3b03666ac74
multiplied: testnet, uncompressed
$ bx ek-to-ec "my passphrase" 8F7FpHwGgCmZag3nViwdDJTcRUVSZDiyp362gLWisvHDtMQkyC6JJuFhVXb1c23d8bf9a957349eafd851808ce5555279cc103924ebd96ddaa3b03666ac74
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands