An independent Rust guardian that interoperates with unmodified Fedimint guardians. The initial profile is a fresh four-guardian Bitcoin regtest federation with Mint v2, Wallet v2, SQLite storage, and Iroh networking. TCP/mTLS and WebSocket remain available for the legacy transport profile.
  • Rust 94.3%
  • Python 5.2%
  • Just 0.3%
  • Nix 0.2%
Find a file
tsk 4c15a30d9e
Some checks failed
Federation foundations / foundations (push) Has been cancelled
fix(federation): reuse Iroh RPC connections and expose build progress
Share a bounded connection cache across transport clones and serialize
dialing per peer. Reconnect after peer closure, and release cancelled
request handlers without closing other RPC streams or replaying requests.

Stream reference Nix and Cargo output to the console and build log. Add a
Just resume command and print recovery instructions after interruption or
failure.

Cover connection reuse, reconnection, offline-peer isolation, cancellation,
and live build output with regression tests. Document both workflows.
2026-09-15 08:58:50 +00:00
.github/workflows refactor!: rename the standalone guardian workspace to Aontas 2026-09-15 07:52:50 +00:00
crates fix(federation): reuse Iroh RPC connections and expose build progress 2026-09-15 08:58:50 +00:00
docs fix(federation): reuse Iroh RPC connections and expose build progress 2026-09-15 08:58:50 +00:00
misc/federation fix(federation): reuse Iroh RPC connections and expose build progress 2026-09-15 08:58:50 +00:00
.gitignore refactor: extract Aontas into a standalone guardian workspace 2026-09-14 21:07:55 +00:00
.typos.toml refactor: extract Aontas into a standalone guardian workspace 2026-09-14 21:07:55 +00:00
AGENTS.md refactor!: rename the standalone guardian workspace to Aontas 2026-09-15 07:52:50 +00:00
Cargo.lock refactor!: rename the standalone guardian workspace to Aontas 2026-09-15 07:52:50 +00:00
Cargo.toml refactor!: rename the standalone guardian workspace to Aontas 2026-09-15 07:52:50 +00:00
clippy.toml fix: complete standalone lint and package configuration 2026-09-14 21:07:55 +00:00
CODE_STYLE.md chore: preserve guardian source snapshot from CDK 2026-09-14 21:07:55 +00:00
DEVELOPMENT.md refactor!: rename the standalone guardian workspace to Aontas 2026-09-15 07:52:50 +00:00
flake.lock refactor: extract Aontas into a standalone guardian workspace 2026-09-14 21:07:55 +00:00
flake.nix refactor!: rename the standalone guardian workspace to Aontas 2026-09-15 07:52:50 +00:00
justfile fix(federation): reuse Iroh RPC connections and expose build progress 2026-09-15 08:58:50 +00:00
LICENSE-APACHE chore: preserve guardian source snapshot from CDK 2026-09-14 21:07:55 +00:00
LICENSE-MIT chore: preserve guardian source snapshot from CDK 2026-09-14 21:07:55 +00:00
LICENSE.md chore: preserve guardian source snapshot from CDK 2026-09-14 21:07:55 +00:00
README.md refactor!: rename the standalone guardian workspace to Aontas 2026-09-15 07:52:50 +00:00
rust-toolchain.toml refactor: extract Aontas into a standalone guardian workspace 2026-09-14 21:07:55 +00:00
rustfmt.toml chore: preserve guardian source snapshot from CDK 2026-09-14 21:07:55 +00:00

Aontas

Warning

Highly experimental. Do not use with real funds. Aontas is intended for development and Bitcoin regtest testing only.

An independent Rust guardian that interoperates with unmodified Fedimint guardians. The initial profile is a fresh four-guardian Bitcoin regtest federation with Mint v2, Wallet v2, SQLite storage, and Iroh networking. TCP/mTLS and WebSocket remain available for the legacy transport profile.

Regtest and tmux demo

From this repository, open Terminal 1:

nix develop path:.#federation
just federation-reference
# Replace the path with the artifacts.json printed by the reference build.
just federation-start /data/rust/tmp/<reference-build>/artifacts.json

Reuse an existing verified reference manifest to skip the reference build. Wait for Federation ready and copy the printed state directory. Keep Terminal 1 open.

Open Terminal 2 at this repository root:

nix develop path:.#federation
just federation-dashboard <state-directory>

The dashboard provides four guardian logs, Alice and Bob wallets, and Bitcoin mining controls. Follow the complete walkthrough for deposits, transfers, withdrawals, shutdown, and resuming existing balances.

Workspace

Crate Responsibility
aontas-federation-core Protocol types, codecs and cryptography
aontas-federation-consensus Independent agreement state transitions
aontas-federation Guardian lifecycle, payment execution and interchangeable transports
aontas-federation-sqlite Dedicated guardian storage and schema
aontas-guardiand Configuration, composition and daemon executable

Crates and the daemon use the aontas- prefix; test environment variables use AONTAS_. Create a fresh demo after the rename; old CDK state is unsupported. This workspace has no dependency on Cashu or CDK implementation crates, and no Fedimint or Aleph implementation dependencies. Reference binaries are built externally as interoperability test oracles.

Use nix develop and just federation-check for local verification. See development, transport design, compatibility and provenance, extraction history, and Aontas naming and fresh demo state.

Licensed under Apache-2.0 OR MIT; original notices are retained.