Expand description
Bitcoin script helpers: HTLC, Timelock (CLTV/CSV), and Coin Selection.
Structs§
- Coin
Selection Result - Result of coin selection.
- Utxo
- A UTXO available for spending.
Functions§
- cltv_
script - Build a CLTV (CheckLockTimeVerify, BIP-65) timelock script.
- csv_
script - Build a CSV (CheckSequenceVerify, BIP-112) relative timelock script.
- htlc_
claim_ witness - Build the witness for claiming an HTLC (hashlock path).
- htlc_
payment_ hash - Compute the SHA-256 hash of a preimage for HTLC usage.
- htlc_
refund_ witness - Build the witness for refunding an HTLC (timelock path).
- htlc_
script - Build an HTLC (Hash Time-Locked Contract) script.
- is_
block_ height_ locktime - Check if a locktime value represents a block height or Unix timestamp.
- select_
coins_ bnb - Select coins using Branch and Bound (BnB) algorithm.
- select_
coins_ srd - Select coins using Single Random Draw (SRD) algorithm.