LegacyInput class abstract

Inputs that are not witness inputs: P2PKHInput and P2SHMultisigInput.

Inheritance
Implementers

Constructors

LegacyInput.new({required OutPoint prevOut, required Uint8List scriptSig, int sequence = Input.sequenceFinal})

Properties

complete bool
Always true as a simple RawInput is assumed to be fully signed as there is no way to determine if it is or not.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
prevOut OutPoint
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script Script?
The script from the scriptSig bytes or null if the bytes do not represent a valid script.
no setterinherited
scriptSig Uint8List
finalinherited
sequence int
finalinherited
signedSize int?
The maximum total size when fully signed via the default hash type including any witness data of the input. If this is unknown, this is null. The actual signed size may be lower according to the data being encoded.
no setterinherited
size int
Obtains the cached size of the object
no setterinherited

Methods

createInputSignature({required Transaction tx, required int inputN, required ECPrivateKey key, required Script scriptCode, SigHashType hashType = const SigHashType.all()}) ECDSAInputSignature
Creates a signature for the input. Used by subclasses to implement signing.
filterSignatures(bool predicate(InputSignature insig)) Input
Removes signatures that the predicate returns false for. This is used to remove invalidated signatures.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign({required Transaction tx, required int inputN, required ECPrivateKey key, SigHashType hashType = const SigHashType.all()}) LegacyInput
Signs the input given the tx, input number (inputN) and a private key using the specifified hashType. Implemented by specific subclasses.
toBytes() Uint8List
Obtains a cached Uint8List with data serialized for this object
inherited
toHex() String
inherited
toString() String
A string representation of this object.
inherited
write(Writer writer) → void
Override to write data into writer
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited