@@ -26,9 +26,6 @@ wallets and introduces unnecessary extra computation steps during serialization
...
@@ -26,9 +26,6 @@ wallets and introduces unnecessary extra computation steps during serialization
of the key. Sometimes it is even not possible to compute the fingerprint at all
of the key. Sometimes it is even not possible to compute the fingerprint at all
(when the parent key is unknown).
(when the parent key is unknown).
Third modification is the addition of "birthday" attribute, which describes the
moment, when the deterministic hierarchy was generated.
Last modification is the change from Base58 encoding to Bech32 encoding, which
Last modification is the change from Base58 encoding to Bech32 encoding, which
is more efficient in many areas.
is more efficient in many areas.
...
@@ -38,7 +35,6 @@ Extended public and private keys are serialized as follows:
...
@@ -38,7 +35,6 @@ Extended public and private keys are serialized as follows:
* 1 byte: depth: 0x00 for master nodes, 0x01 for level-1 derived keys, ...
* 1 byte: depth: 0x00 for master nodes, 0x01 for level-1 derived keys, ...
* 4 * depth bytes: serialized BIP-32 path; each entry is encoded as 32-bit unsigned integer, most significant byte first
* 4 * depth bytes: serialized BIP-32 path; each entry is encoded as 32-bit unsigned integer, most significant byte first
* 4 bytes: wallet birthdate; number of seconds since 2009-01-09 00:00 UTC (equals to Unix epoch minus 1230768000); encoded as 32-bit unsigned integer, most significant byte first; use zero to not use birthdate
* 32 bytes: the chain code
* 32 bytes: the chain code
* 33 bytes: the public key or private key data (ser<sub>P</sub>(K) for public keys, 0x00 || ser<sub>256</sub>(k) for private keys)
* 33 bytes: the public key or private key data (ser<sub>P</sub>(K) for public keys, 0x00 || ser<sub>256</sub>(k) for private keys)
...
@@ -46,6 +42,133 @@ This structure is encoded using Bech32 format described in BIP-0173. We will
...
@@ -46,6 +42,133 @@ This structure is encoded using Bech32 format described in BIP-0173. We will
use 'xpub' human-readable part for extended public keys and 'xprv' for extended
use 'xpub' human-readable part for extended public keys and 'xprv' for extended