Skip to content

bx ek address

Kulpreet Singh edited this page Aug 21, 2023 · 13 revisions

Create a payment address derived from an intermediate passphrase token (BIP38).

$ bx ek-address --help
Usage: bx ek-address [-hu] [--config VALUE] [--version VALUE] TOKEN      
[SEED]                                                                   

Info: Create a payment address derived from an intermediate passphrase   
token (BIP38).                                                           

Options (named):

-c [--config]        The path to the configuration settings file.        
-h [--help]          Get a description and instructions for this command.
-u [--uncompressed]  Use the uncompressed public key format, as used to  
                     create the corresponding encrypted private key.     
-v [--version]       The desired payment address version used to create  
                     the corresponding encrypted private key.            

Arguments (positional):

TOKEN                The intermediate passphrase token used to create the
                     corresponding encrypted private key.                
SEED                 The Base16 entropy used to create the corresponding 
                     encrypted private key. Must be at least 192 bits in 
                     length (only the first 192 bits are used). If not   
                     specified the seed is read from STDIN.

The --version option is a libbitcoin enhancement not yet specified in BIP-38.

See also token-new, ek-new and ek-public.

Example 1

lot/sequence

$ bx ek-address passphrasecpXbDpHuo8F7yuZqR49koDA9uQojPijjjZaxsar7Woo9pfHJbeWF3VMU9EPBqJ baadf00dbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d
6PoJB3hjqER7KJDeo69pfX3ttV5DPaQPEf4pZEwhNYjTjqMdvif5qfE34S

Example 2

$ bx ek-address passphraseryQXuRZZQ3Jw5rAT7m6MzxkGSSRmysq3Ayj9vuEHEnbVPJSmRQ2xYFKDKjGYrq baadf00dbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d
1DeDt7odeJqJvquJ6obEZfH1hfJHMvnURa

Example 3

piped commands

$ echo [user entropy] | bx ek-address passphraseryQXuRZZQ3Jw5rAT7m6MzxkGSSRmysq3Ayj9vuEHEnbVPJSmRQ2xYFKDKjGYrq
7113f4c2e8f67b61225c9a619cd984b63f28df434bf18217 
1DS3aqzg5w8bMsyzyutxcrhKoLZGjPnC13

Example 4

invalid seed

$ bx ek-address passphraseryQXuRZZQ3Jw5rAT7m6MzxkGSSRmysq3Ayj9vuEHEnbVPJSmRQ2xYFKDKjGYrq baadf00dbaadf00dbaadf00dbaadf00d
The seed is less than 192 bits long.

Example 5

--uncompressed

$ bx ek-address -u passphraseryQXuRZZQ3Jw5rAT7m6MzxkGSSRmysq3Ayj9vuEHEnbVPJSmRQ2xYFKDKjGYrq baadf00dbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d
1MydksvfdWNXM1KnVTS8A78M4b78aJcL1W

Example 6

--version 111 (testnet)

$ bx ek-address -v 111 passphraseryQXuRZZQ3Jw5rAT7m6MzxkGSSRmysq3Ayj9vuEHEnbVPJSmRQ2xYFKDKjGYrq baadf00dbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d
mtABBAtcTLGZhxNupNZcPaVLZetzHVWgAp

Example 7

--version 111 (testnet), --uncompressed

$ bx ek-address -u -v 111 passphraseryQXuRZZQ3Jw5rAT7m6MzxkGSSRmysq3Ayj9vuEHEnbVPJSmRQ2xYFKDKjGYrq baadf00dbaadf00dbaadf00dbaadf00dbaadf00dbaadf00d
n2Vb3w1eSXon87oQD2QVz2LfvahqVhBXKV

BX Menu

Clone this wiki locally