Expand description
On-chain primitives and API types for AnySwap, shared by the server and the SDK.
Modules§
- api
- HTTP API request and response types shared between the server and the SDK.
- auth
- Shared auth helpers for signing and verifying protected API requests.
- codec
- String and hex codecs shared by the SDK, the bindings and the server.
- fee
- Swap pricing. The amount arithmetic is chain-neutral; on-chain fees
dispatch by
Chain, since the transactions a swap broadcasts differ per chain. - invoice
- BOLT11 invoice parsing utilities.
- musig
- BIP327 key aggregation and local MuSig2 signing after counterparty privkey reveal.
- script
- Locks the on-chain side of the swap, with taproot implementations in
bitcoinandliquid. - transaction
- Transaction builders for the swap-script spending paths.
- types
- Shared core types.
- utils
- wallet
- Deterministic key derivation shared by both wallets.
Constants§
- PROTOCOL_
VERSION - The wire protocol this build speaks: the crate’s major and minor version, since a patch release never changes the wire.
Functions§
- secp
- Shared secp256k1 context, lazily initialized once per process.