RawInput class

A transaction input without any associated witness data that acts as the base for all other inputs as all inputs include a outpoint, script and sequence number.

Inheritance
Implementers

Constructors

RawInput.new({required OutPoint prevOut, required Uint8List scriptSig, int sequence = Input.sequenceFinal})
RawInput.fromReader(BytesReader reader)

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 setteroverride
hashCode int
The hash code for this object.
no setterinherited
prevOut OutPoint
final
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
final
sequence int
final
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

filterSignatures(bool predicate(InputSignature insig)) Input
Removes signatures that the predicate returns false for. This is used to remove invalidated signatures.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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
override

Operators

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