sign abstract method

LegacyInput sign({
  1. required Transaction tx,
  2. required int inputN,
  3. required ECPrivateKey key,
  4. SigHashType hashType = const SigHashType.all(),
})

Signs the input given the tx, input number (inputN) and a private key using the specifified hashType. Implemented by specific subclasses.

Implementation

LegacyInput sign({
  required Transaction tx,
  required int inputN,
  required ECPrivateKey key,
  SigHashType hashType = const SigHashType.all(),
});