sign method

TaprootInput sign({
  1. required Transaction tx,
  2. required int inputN,
  3. required ECPrivateKey key,
  4. required List<Output> prevOuts,
  5. 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}");