package
0.5.6
Repository: https://github.com/metchain/metblockd.git
Documentation: pkg.go.dev

# Functions

BlockHash returns the given block's hash.
CalculateSignatureHashECDSA will, given a script and hash type calculate the signature hash to be used for signing and verification for ECDSA.
CalculateSignatureHashSchnorr will, given a script and hash type calculate the signature hash to be used for signing and verification for Schnorr.
HeaderHash returns the given header's hash.
TransactionHash returns the transaction hash.
TransactionID generates the Hash for the transaction without the signature script and payload field.
TransactionIDs converts the provided slice of DomainTransactions to a corresponding slice of TransactionIDs.

# Constants

Hash type bits from the end of a signature.
Hash type bits from the end of a signature.
SigHashMask defines the number of bits of the hash type which is used to identify which outputs are signed.
Hash type bits from the end of a signature.
Hash type bits from the end of a signature.

# Structs

SighashReusedValues holds all fields used in the calculation of a transaction's sigHash, that are the same for all transaction inputs.

# Type aliases

SigHashType represents hash type bits at the end of a signature.