- decodeHdKey(hdKey, __namedParameters?): string | DecodedHdKey<HdPrivateNodeValid | HdPublicNodeValid>
Parameters
hdKey: string
__namedParameters: {
crypto?: {
secp256k1: {
validatePublicKey: ((publicKey) => boolean);
};
sha256: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
};
};
} = {}
Optional
crypto?: {
secp256k1: {
validatePublicKey: ((publicKey) => boolean);
};
sha256: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
};
}
secp256k1: {
validatePublicKey: ((publicKey) => boolean);
}
validatePublicKey: ((publicKey) => boolean)
- (publicKey): boolean
Returns boolean
sha256: {
hash: ((input) => Uint8Array) & ((input) => Uint8Array);
}
hash: ((input) => Uint8Array) & ((input) => Uint8Array)
Decode an HD key as defined by BIP32, returning a
node
and anetwork
. Decoding errors are returned as strings.If the type of the key is known, use decodeHdPrivateKey or decodeHdPublicKey. For a variant with less strict validation, use decodeHdKeyUnchecked.