Skip to content

bitcoinjs-lib / HDSigner

Interface: HDSigner ​

Defined in: ts_src/psbt.ts:1202

Extends ​

  • HDSignerBase

Properties ​

fingerprint ​

fingerprint: Uint8Array

Defined in: ts_src/psbt.ts:1199

The first 4 bytes of the sha256-ripemd160 of the publicKey

Inherited from ​

HDSignerBase.fingerprint


publicKey ​

publicKey: Uint8Array

Defined in: ts_src/psbt.ts:1195

DER format compressed publicKey buffer

Inherited from ​

HDSignerBase.publicKey

Methods ​

derivePath() ​

derivePath(path): HDSigner

Defined in: ts_src/psbt.ts:1207

The path string must match /^m(/\d+'?)+$/ ex. m/44'/0'/0'/1/23 levels with ' must be hard derivations

Parameters ​

path ​

string

Returns ​

HDSigner


sign() ​

sign(hash): Uint8Array

Defined in: ts_src/psbt.ts:1212

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

Released under the MIT License.