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.
GenTimeoutPathScript constructs a csv timeout script for the client.
NewStaticAddress constructs a static address script.

# Constants

TaprootExpiryScriptSize evaluates to 39 bytes: - OP_DATA: 1 byte (client_key length) - <client_key>: 32 bytes - OP_CHECKSIGVERIFY: 1 byte - <address_expiry>: 4 bytes - OP_CHECKSEQUENCEVERIFY: 1 byte.
TaprootExpiryWitnessSize evaluates to 140 bytes: - num_witness_elements: 1 byte - client_sig_varint_len: 1 byte (client_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.

# Structs

StaticAddress encapsulates the static address script.