bx ec new - enVinci/libbitcoin-explorer GitHub Wiki
Create a new Base16 EC private key from entropy.
$ bx ec-new --help
Usage: bx ec-new [-h] [--config VALUE] [SEED]
Info: Create a new Base16 EC private key from entropy.
Options (named):
-c [--config] The path to the configuration settings file.
-h [--help] Get a description and instructions for this command.
Arguments (positional):
SEED The Base16 entropy for the new key. Must be at least
128 bits in length. If not specified the seed is
read from STDIN.
Example 1
$ bx ec-new baadf00dbaadf00dbaadf00dbaadf00d
8ed1d17dabce1fccbbe5e9bf008b318334e5bcc78eb9e7c1ea850b7eb0ddb9c8
Example 2
piped input
$ echo baadf00dbaadf00dbaadf00dbaadf00d | bx ec-new
baadf00dbaadf00dbaadf00dbaadf00d
8ed1d17dabce1fccbbe5e9bf008b318334e5bcc78eb9e7c1ea850b7eb0ddb9c8
Example 3
short seed error
$ bx ec-new baadf00dbaadf00d
The seed is less than 128 bits long.