Thanks to visit codestin.com Credit goes to libauth.org
Decode a string following the HD key format as defined by BIP32, returning a node and a version. Decoding errors are returned as strings.
node
version
This is a less strict variant of decodeHdKey; most applications should instead use decodeHdKey, or if the type of the key is known, either decodeHdPrivateKey or decodeHdPublicKey.
A BIP32 HD private key or HD public key.
Optional
An optional object containing an implementation of sha256 and a Secp256k1 validatePublicKey to use.
validatePublicKey
Generated using TypeDoc
Decode a string following the HD key format as defined by BIP32, returning a
nodeand aversion. Decoding errors are returned as strings.This is a less strict variant of decodeHdKey; most applications should instead use decodeHdKey, or if the type of the key is known, either decodeHdPrivateKey or decodeHdPublicKey.