Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcTaprootSigHash ¶
func CalcTaprootSigHash( tx *wire.MsgTx, sigHashes *TaprootSigHashes, index int, hashType txscript.SigHashType, ) ([]byte, error)
CalcTaprootSigHash crafts signature digest. It only supports SIGHASH_ALL without ANYONECANPAY, and no annex or script paths.
Types ¶
type TaprootSigHashes ¶
type TaprootSigHashes struct {
HashPrevOuts chainhash.Hash
HashSequence chainhash.Hash
HashOutputs chainhash.Hash
HashAmounts chainhash.Hash
HashScriptPubKeys chainhash.Hash
}
TaprootSigHashes contains the sigHash parts for a PayToTaproot signature
func NewTaprootSigHashes ¶
func NewTaprootSigHashes(tx *wire.MsgTx, prevOuts []*wire.TxOut) *TaprootSigHashes
NewTaprootSigHashes calculates and returns the TaprootSigHashes
Click to show internal directories.
Click to hide internal directories.