Function decodeHdKeyUnchecked
- decodeHdKeyUnchecked(hdKey, __namedParameters?): string | {
node: HdPrivateNodeValid | HdPrivateNodeInvalid;
version: number;
} | {
node: HdPublicNodeValid | HdPublicNodeInvalid;
version: number;
} 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 a string following the HD key format as defined by BIP32, returning a
node
and 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.