Expand description
A boltz client for submarine, reverse and chain swaps between Bitcoin, Lightning & Liquid Refer to tests/ folder for usage
Re-exports§
pub use swaps::bitcoin::BtcSwapScript;pub use swaps::bitcoin::BtcSwapTx;pub use swaps::boltz;pub use swaps::liquid::LBtcSwapScript;pub use swaps::liquid::LBtcSwapTx;pub use util::fees;pub use bitcoin;pub use elements;pub use lightning_invoice;pub use reqwest;
Modules§
- error
- Error Module
- network
- Blockchain Network module. Currently only contains electrum interface.
- swaps
- core swap logic
- util
- utilities (key, preimage, error)
Structs§
- Address
- A Bitcoin address.
- Amount
- Amount
- Bolt11
Invoice - Represents a syntactically and semantically correct lightning BOLT11 invoice.
- Elements
Address - An Elements address.
- Hash
- Output of the Bitcoin HASH160 hash function. (RIPEMD160(SHA256))
- Keypair
- Opaque data structure that holds a keypair consisting of a secret and a public key.
- Public
Key - A Bitcoin ECDSA public key
- Secp256k1
- The secp256k1 engine, used to execute all signature operations.
- ZKKey
Pair - Opaque data structure that holds a keypair consisting of a secret and a public key.
- ZKSecp256k1
- The secp256k1 engine, used to execute all signature operations.
Enums§
- Elements
Lock Time - A lock time value, representing either a block height or a UNIX timestamp (seconds since epoch).
- Lock
Time - An absolute lock time value, representing either a block height or a UNIX timestamp (seconds since epoch).