TaprootSignatureHasher class final

Produces signature hashes for taproot inputs

Mixed-in types

Constructors

TaprootSignatureHasher.new({required Transaction tx, required int inputN, required List<Output> prevOuts, required SigHashType hashType, Uint8List? leafHash, int codeSeperatorPos = 0xFFFFFFFF})
Produces the hash for a Taproot input signature at inputN. Unless SigHashType.anyOneCanPay is true, prevOuts must contain the full list of previous outputs being spent. The hashType controls what data is included. If ommitted it will be treated as SIGHASH_DEFAULT which includes the same data as SIGHASH_ALL but produces distinct signatures. If an input is being signed for a tapscript, the leafHash must be provided. codeSeperatorPos must be provided with the position of the last executed CODESEPARATOR unless none have been executed in the script

Properties

codeSeperatorPos int
final
hash Uint8List
no setter
hashCode int
The hash code for this object.
no setterinherited
hashType SigHashType
final
inputN int
final
leafHash Uint8List?
final
prevOutHashes → PrevOutSignatureHashes?
final
prevOuts List<Output>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Obtains the cached size of the object
no setterinherited
tx Transaction
final
txHashes → TransactionSignatureHashes
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

Static Properties

tapSigHash Uint8List Function(Uint8List msg)
final