Create HD Wallet from cli

Create HD Wallet from cli

I have that result after hash_pbkdf2(BIP39 Seed)

5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89A1A3BE4C67196F57C39A88B76373733891BFABA16ED27A813CEED498804C0570

left 256 bits are: 5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89

with bx library

I Can create private key and public key

private key bx ec-to-wif 5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89

KzHG92p5Cnyq8Xiot1GE5LgHT8N1XvAi4VrKSdMAANG4fKBaNiYQ

public key not compressed

bx ec-to-public  -u 5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89

041507acb2211091ea30c6ab959dfe0ec01fde80d272fa4070995df56958ee6ae69d7dcbc9c8857d9109e7771717941f3ebc6088c764de4892bd9d6979bb753523

and compressed

bx ec-to-public 5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89

031507acb2211091ea30c6ab959dfe0ec01fde80d272fa4070995df56958ee6ae6

Then I have Master private key is:

KzHG92p5Cnyq8Xiot1GE5LgHT8N1XvAi4VrKSdMAANG4fKBaNiYQ

Public master key is:

031507acb2211091ea30c6ab959dfe0ec01fde80d272fa4070995df56958ee6ae6

and my chain code is

A1A3BE4C67196F57C39A88B76373733891BFABA16ED27A813CEED498804C0570

Now I want to get my first child and I can read

• A parent private or public key (ECDSA uncompressed key)

• A seed called a chain code (256 bits)

• An index number (32 bits)

then the result is

041507acb2211091ea30c6ab959dfe0ec01fde80d272fa4070995df56958ee6ae69d7dcbc9c8857d9109e7771717941f3ebc6088c764de4892bd9d6979bb753523A1A3BE4C67196F57C39A88B76373733891BFABA16ED27A813CEED498804C05700

this index number 0

then the result of bip32 seed (digest of HMAC-sha512) is:

7bcb31e64a38cd1a8a230930f4428e6c4b7d8d8a638cbc73c4c9cb978ce1b4c40ec885f29d4ee4a64884d0d3dcafd89458c6dbc2c42a5dba43ffb828bd0442ac

then Private key is WIF compressed:

L1NMEhTDypu4Ya6pLntPLedh2rp4LCtFnocYwgxzdmDJPedpxpyJ

then Private key is WIF:

5Jkoj5BUQkUexdxEu4bkaTCV6roTaoeSZ8PZADgRPNoHdW9YhoJ

public key compressed:

021D6C125A74145361AA79AE18BD9149E5A2F87D462627417D8F1C55BF016C5913

public key uncompressed:

041d6c125a74145361aa79ae18bd9149e5a2f87d462627417d8f1c55bf016c591339a19f48da2eae5afa14f727dbcc0aa5a651ccf619c7fd6f698178b457205760

and chain code is:

0ec885f29d4ee4a64884d0d3dcafd89458c6dbc2c42a5dba43ffb828bd0442ac

I repeat again the same procedure.

But if I Put my "original" bip39 seed

5B56C417303FAA3FCBA7E57400E120A0CA83EC5A4FC9FFBA757FBE63FBD77A89A1A3BE4C67196F57C39A88B76373733891BFABA16ED27A813CEED498804C0570

in coleman I can see the tree, but my addresses there aren't in coleman result.

http://bit.ly/2HGb4Bq

Comments

Popular posts from this blog

Bitcoin Core errors with database block

Bitfinex & Market Synergy To Offer Institutional Calibre Cryptocurrency Connectivity