Skip to content

canton-rs v0.8.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 07:48
· 4 commits to main since this release

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.0 is 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.yaml and boot Sequencer, Mediator, and Participant nodes from one native Rust binary via canton-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 over daemon.sock (canton-rs console attach).
  • DAR Inspection, CIP-0112 Token CLI & Dev Auth: Built-in dar inspect / diff / check-upgrade, canton-rs token commands, canton-rs script runner, canton-rs pqs projection, and --dev-auth / daemon creds workflow.

🔒 Security & Integrity

  • Loopback-Only Observability Defaults: Supervisor metrics (:9464/metrics) and monitoring templates bind to 127.0.0.1 by 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 warnings with 0 warnings, and deterministic BTreeMap/BTreeSet serialization.
  • Oracle-Verified Correctness: Verified against official Canton 3.7.2, Splice 0.10.1, Wallet SDK 1.7.0, and Scribe 3.5.8 oracles (Ledger JSON API v2 382/382 with 0 diffs; 4 unmodified Splice DARs 1,168 scenarios with 0 findings; Wallet SDK 0 gaps; mixed Scala BFT consensus interoperability).

📦 Install

macOS & Linux (install.sh)

curl -fsSL https://getcantonrs.dev/install.sh | sh

Homebrew (macOS & Linux)

brew install cantonrs/tap/canton-rs

Verify Binary & Checksums

shasum -a 256 -c SHA256SUMS --ignore-missing
canton-rs --version
canton-rs localnet audit

Supported 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 Versions 36–37) · Daml-LF 2.1–2.4 (default 2.3) · Splice 0.10.1 · PostgreSQL 16
  • 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.

📚 Links & Contact

Apache-2.0 · Independent open-source project, not affiliated with Digital Asset (Switzerland) GmbH.