get_sighash and append_signature for cases where the private key is available in memory.
Signature
- TypeScript
- Go
- Kotlin
Parameters
The PCZT to sign
Index of the transparent input (0-based)
32-byte secp256k1 private key (hex)
Returns
Updated PCZT with the signature added.Example
When to Use
Use this function when:- Private key is available in memory
- Testing or development
- Simple single-party transactions
get_sighash + append_signature instead.

