Skip to main content
Computes the signature hash (sighash) for a transparent input, enabling external signing with hardware wallets or HSMs.

Signature

Parameters

pczt
Pczt
required
The PCZT containing the input to sign
input_index
number
required
Index of the transparent input (0-based)

Returns

32-byte signature hash as hex string (TypeScript) or bytes (Go/Kotlin).

Example

Hardware Wallet Flow

See Also