Signs one input of a @scure/btc-signer transaction with a raw private key.
@scure/btc-signer
This helper is intended for scure users that work directly with a Uint8Array private key and may not use bitcoinjs-lib ECPair types.
Uint8Array
ECPair
If you are signing a bitcoinjs-lib PSBT input, use signInputECPair and pass a bitcoinjs ECPair signer.
The parameters object
A scure Transaction.
Transaction
The input index to sign
The secp256k1 private key (32 bytes)
If psbt is not a scure transaction
psbt
Signs one input of a
@scure/btc-signertransaction with a raw private key.This helper is intended for scure users that work directly with a
Uint8Arrayprivate key and may not use bitcoinjs-libECPairtypes.If you are signing a bitcoinjs-lib PSBT input, use signInputECPair and pass a bitcoinjs
ECPairsigner.