sign abstract method
LegacyWitnessInput
sign({
- required Transaction tx,
- required int inputN,
- required ECPrivateKey key,
- required BigInt value,
- SigHashType hashType = const SigHashType.all(),
Signs the input given the tx
, input number (inputN
), private
key
and input value
using the specifified hashType
. Should throw
CannotSignInput if the key cannot sign the input.
Implemented by specific subclasses.
Implementation
LegacyWitnessInput sign({
required Transaction tx,
required int inputN,
required ECPrivateKey key,
required BigInt value,
SigHashType hashType = const SigHashType.all(),
});