Skip to main content

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​

ts_src/psbt.ts:1206


publicKey​

publicKey: Uint8Array

DER format compressed publicKey buffer

Inherited from​

HDSignerBase.publicKey

Defined in​

ts_src/psbt.ts:1202

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​

HDSigner

Defined in​

ts_src/psbt.ts:1214


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

Defined in​

ts_src/psbt.ts:1219