Adds a DER-encoded ECDSA signature to a transparent input in the PCZT.
Signature
Parameters
The PCZT to add the signature to
Index of the transparent input (0-based)
33-byte compressed public key (hex)
DER-encoded ECDSA signature with sighash type byte appended (hex)
Returns
Updated PCZT with the signature added.
The signature must be DER-encoded with SIGHASH_ALL (0x01) appended:
Example
See Also