Repository navigation
canton-rs v0.8.0
canton-rs v0.8.0
First public pre-1.0 preview release of canton-rs—a single-binary, zero-JVM Rust runtime for Canton & Splice covering Participant, Sequencer (Database & BFT), Mediator, LocalNet DX, PQS, and interactive Console.
Pre-1.0 Preview Notice:
v0.8.0is ready for LocalNet development, CI testing, and read-only brownfield evaluation beside existing JVM hubs. See Scope & Upcoming below before production use.
✨ Highlights
Single-Binary LocalNet & Supervisor DX
- Zero-JVM Local Cluster: Generate a declarative manifest with
canton-rs daemon init -o canton-daemon.yamland boot Sequencer, Mediator, and Participant nodes from one native Rust binary viacanton-rs daemon up -f canton-daemon.yaml -d --name dev. - Read-Only Host Diagnostics: Run
canton-rs daemon doctor -f canton-daemon.yaml --name dev(D1–D10) to validate ports, disk space, PostgreSQL connectivity, and DAR readiness without mutating state. - Named Multi-Instance Isolation & Snapshots: Run isolated stacks side by side (
--name,--port-offset), export connection endpoints (daemon env), save and restore local ledger state (daemon snapshot/restore), and attach an Erlang-style REPL overdaemon.sock(canton-rs console attach). - DAR Inspection, CIP-0112 Token CLI & Dev Auth: Built-in
dar inspect/diff/check-upgrade,canton-rs tokencommands,canton-rs scriptrunner,canton-rs pqsprojection, and--dev-auth/daemon credsworkflow.
🔒 Security & Integrity
- Loopback-Only Observability Defaults: Supervisor metrics (
:9464/metrics) and monitoring templates bind to127.0.0.1by default, with authenticated Admin APIs and zero contract payloads exposed in opt-in X-Ray telemetry. - Rust Memory & Panic Discipline: Zero production
.unwrap()calls across workspace crates,cargo clippy --workspace --all-targets -- -D warningswith 0 warnings, and deterministicBTreeMap/BTreeSetserialization. - Oracle-Verified Correctness: Verified against official Canton
3.7.2, Splice0.10.1, Wallet SDK1.7.0, and Scribe3.5.8oracles (Ledger JSON API v2382/382with0diffs; 4 unmodified Splice DARs1,168scenarios with0findings; Wallet SDK0gaps; mixed Scala BFT consensus interoperability).
📦 Install
macOS & Linux (install.sh)
curl -fsSL https://getcantonrs.dev/install.sh | shHomebrew (macOS & Linux)
brew install cantonrs/tap/canton-rsVerify Binary & Checksums
shasum -a 256 -c SHA256SUMS --ignore-missing
canton-rs --version
canton-rs localnet auditSupported Prebuilt Targets
| Target | Platform |
|---|---|
x86_64-unknown-linux-gnu |
Linux x86_64 (glibc 2.31+) |
aarch64-unknown-linux-gnu |
Linux ARM64 (glibc 2.31+) |
aarch64-apple-darwin |
macOS Apple Silicon |
x86_64-apple-darwin |
macOS Intel |
🧭 Protocol Compatibility Target (Oracle-Tested Against)
- Compatibility Target: Independent Rust implementation oracle-tested against Canton
3.7.2(Protocol Versions36–37) · Daml-LF2.1–2.4(default2.3) · Splice0.10.1· PostgreSQL16 - Scope & Upcoming (
v0.8.x/v0.9.0):- Zero-side-effect transaction simulator (
canton-rs simulate) and parallel isolated script test runner (canton-rs test) are currently in review and scheduled for an upcoming release. - MainNet/TestNet live state forking and automatic CC/USD fiat conversion are out of scope.
- Zero-side-effect transaction simulator (
📚 Links & Contact
- Website: https://getcantonrs.dev
- Documentation (EN / KO): https://doc.getcantonrs.dev
- Free 34-Chapter Book (EN / KO): https://learnyousomecanton.com
- X (Twitter): https://x.com/getcantonrs
- Contact / Security:
hello@getcantonrs.dev
Apache-2.0 · Independent open-source project, not affiliated with Digital Asset (Switzerland) GmbH.