Encode an HD public key (as defined by BIP32) given a valid HdPublicNodeValid and network.
Note that this function defaults to throwing encoding errors. To handle errors in a type-safe way, set throwErrors to false.
throwErrors
false
An HD public node and the network for which to encode the key.
Optional
An optional object containing an implementation of sha256 to use.
If true, this function will throw an Error when the provided HD node has a depth exceeding the maximum depth that can be encoded using the BIP32 serialization format rather than returning the error as a string (defaults to true).
true
Error
depth
Generated using TypeDoc
Encode an HD public key (as defined by BIP32) given a valid HdPublicNodeValid and network.
Note that this function defaults to throwing encoding errors. To handle errors in a type-safe way, set
throwErrors
tofalse
.