HDSigner
bitcoinjs-lib / HDSigner
Interface: HDSigner
Defined in: ts_src/psbt.ts:1194
Extends
HDSignerBase
Properties
fingerprint
fingerprint:
Uint8Array
Defined in: ts_src/psbt.ts:1191
The first 4 bytes of the sha256-ripemd160 of the publicKey
Inherited from
HDSignerBase.fingerprint
publicKey
publicKey:
Uint8Array
Defined in: ts_src/psbt.ts:1187
DER format compressed publicKey buffer
Inherited from
HDSignerBase.publicKey
Methods
derivePath()
derivePath(
path
):HDSigner
Defined in: ts_src/psbt.ts:1199
The path string must match /^m(/\d+'?)+$/ ex. m/44'/0'/0'/1/23 levels with ' must be hard derivations
Parameters
path
string
Returns
sign()
sign(
hash
):Uint8Array
Defined in: ts_src/psbt.ts:1204
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