Documentation
¶
Index ¶
- Constants
- func DisassembleAsmTaprootScript(scriptAsm []byte) (string, error)
- func GetWitnessesTaprootScriptAsm(witnessWithAnnexe [][]byte) ([]byte, error)
- func RemoveWitnessAnnex(witnesses [][]byte) ([][]byte, error)
- func WitnessContainsCompatibleTapscript(witnessWithAnnexe [][]byte) bool
- func WitnessLeafVersionIs0xc0(witnessWithoutAnnex [][]byte) bool
Constants ¶
const WitnessAnnexPrefixByte = 0x50
WitnessAnnexPrefixByte is the prefix in the witness array of the annex that is to be removed in the parsing process.
Variables ¶
This section is empty.
Functions ¶
func DisassembleAsmTaprootScript ¶
DisassembleAsmTaprootScript tries to disassemble the taproot script from its ASM format into human readable script with OP codes names.
func GetWitnessesTaprootScriptAsm ¶
GetWitnessesTaprootScriptAsm return the part of the witness entries that contains the script and errors out if input the witnesses are from does not contains tapscript with the right version.
func RemoveWitnessAnnex ¶
RemoveWitnessAnnex removes the eventual annex from the slice of witnesses and return a new one.
func WitnessContainsCompatibleTapscript ¶
WitnessContainsTapscript, given the array of txinwitness from the bitcoin transaction input, will tell if it has a tapscript in the right version.
func WitnessLeafVersionIs0xc0 ¶
WitnessLeafVersionIs0xc0 tells if the witness (after annex is removed before passing it) has its leaf version being 0xc0.
Types ¶
This section is empty.