WitnessSignatureHasher class final
Produces signature hashes for non-taproot witness inputs
- Mixed-in types
Constructors
- WitnessSignatureHasher.new({required Transaction tx, required int inputN, required Script scriptCode, required BigInt value, required SigHashType hashType})
-
Produces the hash of an input signature for a non-taproot witness input
at
inputN
. ThescriptCode
of the redeem script is necessary and thevalue
of the previous output is required.hashType
controls what data is included in the signature.
Properties
- hash → Uint8List
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hashes → TransactionSignatureHashes
-
final
- hashType → SigHashType
-
final
- inputN → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scriptCode → Script
-
final
- size → int
-
Obtains the cached size of the object
no setterinherited
- tx → Transaction
-
final
- value → BigInt
-
final
Methods
-
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