Skip to content

bx hd to ec

evoskuil edited this page Oct 20, 2014 · 9 revisions

Convert a HD (BIP32) public or private key to the equivalent EC public or private key.

$ bx hd-to-ec --help
Usage: bx hd-to-ec [-h] [--config VALUE] [HD_KEY]                        

Info: Convert a HD (BIP32) public or private key to the equivalent EC    
public or private key.                                                   

Options (named):

-c [--config]        The path to the configuration settings file.        
-h [--help]          Get a description and instructions for this command.

Arguments (positional):

HD_KEY               The HD public or private key to convert. If not     
                     specified the key is read from STDIN.

Example 1

private key

$ bx hd-to-ec xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi
e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35

Example 2

public key

$ bx hd-to-ec xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8
0339a36013301597daef41fbe593a02cc513d0b55527ec2df1050e2e8ff49c85c2

Example 3

piped commands

$ bx seed | bx hd-new | bx hd-to-ec
4ee7ae9ae9e6f1e9944ee1dab8f3d496
xprv9s21ZrQH143K2uREj44qaJdyaaStTzV4SdfZbKHsSPHkL92aHxXQuxaZQ8pcvYVX2NvosgjGhJ38r7V7dEmUqaDJm9mtKPNx1mNbGLtmjGw
ffcfba33f9595f45e9b35ba6166c2fc801b056be83586e6c4a049ed6829f9bb5

BX Menu

Clone this wiki locally