Crate boltz_client

Crate boltz_client 

Source
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
Bolt11Invoice
Represents a syntactically and semantically correct lightning BOLT11 invoice.
ElementsAddress
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.
PublicKey
A Bitcoin ECDSA public key
Secp256k1
The secp256k1 engine, used to execute all signature operations.
ZKKeyPair
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§

ElementsLockTime
A lock time value, representing either a block height or a UNIX timestamp (seconds since epoch).
LockTime
An absolute lock time value, representing either a block height or a UNIX timestamp (seconds since epoch).

Traits§

Serialize
A trait for serializing a value as raw data for insertion into PSET key-value pairs.
ToHex
Trait for objects that can be serialized as hex strings.