handle – I need assistance with an bitcoin open e-book examination


BIP 84 specifies how zpubs work. BIP 32 specifies how derivation paths work.

In line with these BIPs, the zpub will probably be used because the grasp public key, and the CPK (Baby Public Key) operate ought to be utilized to the zpub to yield the particular public key you need.

BIP 84 specifies that zpubs are used to derive P2WPKH addresses, so the general public key ought to be transformed to a SegWit handle (bc1…).

If you’re aware of Elixir, you should use this library, to which I’ve added bip32 help.


zpub = "zpub6nQF4m3JT6hTkQ4o9Vc8LDMQx7nMkT5CsnPgVHnnrpF9JHeP6ioboEK2CXB34Xn6nzqcJnLPuMqQaKqBhwvZR7GJNvSeRUpDpCaVu3N3stz"
|> Bitcoinex.ExtendedKey.derive_public_child(0) 
|> Bitcoinex.ExtendedKey.derive_public_child(2)

Supply hyperlink

Leave a reply