No description
- Rust 91%
- Shell 3.9%
- JavaScript 3.9%
- Just 1.2%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| .github/workflows | ||
| bin | ||
| public | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| justfile | ||
| LICENSE | ||
| README.md | ||
entangle
entangle builds Bitcoin swap transactions. Given two UTXOs owned by different parties, it produces a PSBT that safely exchanges them — party A signs, then party B signs, and the swap is complete.
Usage
As a library:
use entangle::swap::{build_swap_psbt, SwapRequest};
let psbt = build_swap_psbt(&request)?;
As an API server:
entangle api --bind 0.0.0.0:3000
As a frontend server (with optional embedded API):
entangle server --bind 0.0.0.0:8080 --with-api
Development
Requires Hermit for toolchain management.
just init # set up environment
just dev # run the app
just ci # clippy + format check + tests