package
0.29.0-beta.rc2
Repository: https://github.com/lightninglabs/loop.git
Documentation: pkg.go.dev

# Functions

ExpirySpendWeight returns the weight of the expiry path spend.
PayToWitnessTaprootScript creates a new script to pay to a version 1 (taproot) witness program.
ReservationScript returns the tapscript pkscript for the given reservation parameters.
TaprootExpiryScript returns the leaf script of the expiry script path.
TaprootKey returns the aggregated MuSig2 combined key.

# Constants

TaprootExpiryScriptSize evaluates to 39 bytes: - OP_DATA: 1 byte (trader_key length) - <trader_key>: 32 bytes - OP_CHECKSIGVERIFY: 1 byte - <reservation_expiry>: 4 bytes - OP_CHECKLOCKTIMEVERIFY: 1 byte.
TaprootExpiryWitnessSize evaluates to 140 bytes: - num_witness_elements: 1 byte - trader_sig_varint_len: 1 byte (trader_sig length) - <trader_sig>: 64 bytes - witness_script_varint_len: 1 byte (script length) - <witness_script>: 39 bytes - control_block_varint_len: 1 byte (control block length) - <control_block>: 33 bytes.
TaprootMultiSigWitnessSize evaluates to 66 bytes: - num_witness_elements: 1 byte - sig_varint_len: 1 byte - <sig>: 64 bytes.