HDSigner
reddcoinjs-lib v7.0.1-rdd.1 • Docs
reddcoinjs-lib v7.0.1-rdd.1 / HDSigner
Interface: HDSigner
Extends
HDSignerBase
Properties
fingerprint
fingerprint:
Uint8Array
The first 4 bytes of the sha256-ripemd160 of the publicKey
Inherited from
HDSignerBase.fingerprint
Defined in
publicKey
publicKey:
Uint8Array
DER format compressed publicKey buffer
Inherited from
HDSignerBase.publicKey
Defined in
Methods
derivePath()
derivePath(
path):HDSigner
The path string must match /^m(/\d+'?)+$/ ex. m/44'/0'/0'/1/23 levels with ' must be hard derivations
Parameters
• path: string
Returns
Defined in
sign()
sign(
hash):Uint8Array
Input hash (the "message digest") for the signature algorithm Return a 64 byte signature (32 byte r and 32 byte s in that order)
Parameters
• hash: Uint8Array
Returns
Uint8Array