Construct an Network
object out of its' base58 payload.
Result in Base58 notation to xpub
and xprv
.
The ellyptic curve algorithm
Prefix for extended private key (4 bytes unsigned integer)
The public key encoding. Ethereum uses uncompressed public keys, Bitcoin and Symbol use compressed public keys.
Prefix for extended public key (4 bytes unsigned integer)
The "master secret" used as a prefix for derived curve nodes.
BITCOIN protocol extended key prefixes
Result in Base58 notation to xpub
and xprv
.
ETHEREUM public network protocol extended key prefixes
Result in Base58 notation to xpub
and xprv
.
SYMBOL public network protocol extended key prefixes
Result in Base58 notation to xpub
and xprv
.
Checks whether current network instance is identical
to given b
network instance.
The network object to compare against
Returns whether the two objects are identical
Generated using TypeDoc
Class
Network
describes an extended key prefix of 4 bytes. This object is defined bypublic
andprivate
fields containing the unsigned integer value of the prefix.For the BITCOIN protocol, the prefixes result to
xprv
andxpub
for the mainnet network. The master secret used is "Bitcoin seed".For the SYMBOL protocol, we will be using the same prefixes and extended key sizes and formats but use a custom "ed25519 seed" master secret.
For the ETHEREUM protocol, we also use the same prefixes for
xprv
andxpub
and use the same master secret as used in Bitcoin.https://github.com/bitcoinjs/bip32/blob/master/src/bip32.js#L19
https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
https://github.com/bitcoinjs/bip32
https://github.com/nemtech/NIP/issues/12
0.1.0