sign method
TaprootInput
sign({
- required Transaction tx,
- required int inputN,
- required ECPrivateKey key,
- required List<
Output> prevOuts, - SigHashType hashType = const SigHashType.all(),
Signs the input given the tx
, input number (inputN
), private key
and
prevOuts
using the specifified hashType
. Should throw
CannotSignInput if the key cannot sign the input. Implemented by
specific subclasses.
Implementation
TaprootInput sign({
required Transaction tx,
required int inputN,
required ECPrivateKey key,
required List<Output> prevOuts,
SigHashType hashType = const SigHashType.all(),
}) => throw CannotSignInput("Unimplemented sign() for {this.runtimeType}");