Sighash class
Implements the Signature Hash algorithm.
Depending on the Sighash flags specified in SighashType, this class will remove the parts of the transaction that should not be covered by the signature and calculates the hash value to be signed.
Basically what we do is :
- Strip all the parts of the Transaction that should not be covered by the signature
- Serialize the "stripped" Transaction
- Calculate the double-sha256 of the serialized Transaction
Constructors
- Sighash()
-
Calculates the hash value according to the Sighash flags specified in
sighashType
Properties
Methods
-
getHash(
) → List< int> -
hash(
Transaction txn, int sighashType, int inputNumber, SVScript subscript, BigInt? satoshis, {dynamic flags = _DEFAULT_SIGN_FLAGS}) → String -
Creates a combined hash code for a number of objects.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the hexadecimal String of the signature hash
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited