Repository navigation
Releases
canton-rs v0.9.0
Summary:
canton-rs v0.9.0introduces a cleaner 13-command hierarchical CLI (with full backward-compatible aliases), an embedded Canton Studio web UI, a read-only MCP server for AI tools, declarative project deployment with remote DAR lockfiles, a full transaction simulation & parallel testing suite, and broad security hardening.
🔒 Security & Integrity
- Workspace-Wide Security Hardening: Resolved 43 red-team audit findings across protobuf/Daml-LF decoding depth limits, mediator quorum saturation, HTTP/JSON escaping, symlink traversal checks in snapshot/HTML export, and bounded memory limits on long-running server collections.
- Read-Only Isolation by Default: Both
canton-rs ui(Canton Studio Live Inspector) andcanton-rs mcpenforce loopback binding by default and block ledger mutations, preventing accidental writes against connected Canton nodes. - Verified Remote DAR Lockfiles:
canton-rs deployvalidates remotehttps://,gh:, andoci://DAR artifacts with SHA-256 digests and supports--frozen-lockfileand--offlinereproducible deployments.
✨ Highlights & New Features
- 13-Command Hierarchical CLI (Backward-Compatible): Consolidated 22 flat commands into 13 top-level commands grouped around daily workflows (
test,simulate,deploy,ui,mcp,trace,console), cluster/token ops (daemon,token), and 4 domain namespaces (node,dar,splice,db). All 10 legacy commands (participant,sequencer,mediator,json-api,ledger-api,dpm,script,scan,pqs,localnet) remain available as hidden aliases with a single-line stderr deprecation notice (suppressible viaCANTON_RS_NO_DEPRECATION_WARNINGS=1) and are scheduled for removal inv1.0.0. - Canton Studio Embedded Web UI (
canton-rs ui): Zero-Docker, zero-NPM, zero-CDN local web UI combining an isolated In-Memory Lab (Scenarios & Sandbox) with a strictly read-only Live Node Inspector (ACS, SSE updates, DAR browser, node telemetry, and copyable CLI/curl snippets) that works with bothcanton-rsand existing JVM Canton nodes.canton-rs ui --url http://127.0.0.1:7575
- Read-Only MCP Server (
canton-rs mcp): Local stdio and Streamable HTTP Model Context Protocol server exposing read-only ledger, ACS, PQS, DAR inspection, and diagnostics tools for AI coding assistants. - Declarative Project Deploy & Remote DARs (
canton-rs deploy): One-command idempotent deployment from project profiles with package vetting, party reconciliation, and content-addressedhttps:///gh:/oci://DAR caching. - Transaction Simulator, Parallel Test Runner &
.simrunViewer (canton-rs simulate,canton-rs test): Dry-run commands on live or snapshot forks with zero side effects, inspect sequencer traffic byte breakdowns and contention hotspots (--diagnose,--fail-on-contention), run parallel isolated Daml Script suites (--format text|json|junit,--shuffle-seed), and inspect.simrun/1bundles in a 5-tab TUI or zero-network offline HTML report. - SCU Downgrade Warnings, CIP-0056/0112 Presets & OTel Tracing: Added
canton-rs dar check-upgrade --downgrade-risk, multi-party synchronizer routing diagnostics, local CIP-0056/0112 pre-approval presets, Terraform-styledaemon plan/apply --plan-hashsafety gates, and pure-Rust OTLP tracing withcanton-rs trace.
🛠️ Fixes & Improvements
- Supervisor Snapshot & Restore DAR Paths: Normalized relative
dars:paths fromdaemon init --with-sample-darand bundled.darartifacts cleanly acrossdaemon snapshot,daemon restore, andsimulate --from-snapshot. - Accurate SCU Plan Diffs: Updated
daemon planto comparemain_package_idvialf_archiveinstead of raw.darfile SHA-256, eliminating false-positive upgrade warnings on unchanged packages. - CLI Flag Consistency: Unified
--url/--token-envaliases ondb pqs sync, symmetric signer-key aliases ondb verify-archiveanddar audit-pack verify, and global connection/auth flags acrosstoken,daemon contracts, anddaemon tx.
📦 Install & Upgrade
macOS & Linux (install.sh)
CANTON_RS_VERSION=v0.9.0 curl -fsSL https://getcantonrs.dev/install.sh | shHomebrew (macOS & Linux)
brew upgrade cantonrs/tap/canton-rsVerify Checksums
shasum -a 256 -c SHA256SUMS --ignore-missing🧭 Upstream Compatibility & Scope
- Protocol Compatibility: Canton
3.7.x(PV36–37) · Daml-LF2.1–2.4(default2.3) · Splice0.10.x· PostgreSQL16(oracle-verified against Canton3.7.2and Splice0.10.1). - Known Scope: Deprecated top-level CLI aliases remain functional throughout
v0.9.xand will be removed inv1.0.0.canton-rsis a local development, testing, simulation, and compatible runtime tool; it does not replace public Canton Network Global Synchronizer SV operations.
Full Changelog: v0.8.1...v0.9.0
canton-rs v0.8.1
canton-rs v0.8.1
Summary:
v0.8.1is a DX and patch release that makes zero-config LocalNet boot work out of the box in any empty directory afterbrew installorinstall.sh, adds loopback-safe--dev-authauto-signing across management CLIs, and fixes built-insmoke-createscenario discovery.
🔒 Security & Integrity
- Loopback-Only
--dev-authAuto-Signing:daemon snapshot,daemon contracts,daemon tx, anddaemon scenarioautomatically sign short-lived (60-second TTL) HS256 JWTs from the local instance'sdev-jwt.keywhen targeting loopback addresses (127.0.0.1/localhost) with no explicit token configured. Auto-signing is strictly disabled for non-loopback--urltargets. - Explicit
--token-env/--token-fileAuth Override: Added consistent--token-env <VAR>and--token-file <PATH>flags todaemon snapshot,daemon contracts,daemon tx, anddaemon scenarioso caller-supplied bearer tokens always take precedence over local dev auto-signing. - Offline Embedded Sample DAR: The starter sample DAR (
sample-contract.dar) is embedded directly inside the checksum-verifiedcanton-rsbinary, eliminating unverified remote binary downloads and working fully offline. - Mid-Boot Failure Rollback: When a node fails before reaching readiness during
daemon up, previously started nodes (sequencer1,mediator1) are automatically stopped so failed launches do not leave orphaned background processes.
✨ New Features
- Zero-DAR Default Cluster Boot:
canton-rs daemon initnow emitsdars: []by default, enablingdaemon init→daemon doctor→daemon upto succeed in any empty directory outside the source repository. Participants start with an empty package store and accept dynamic DAR uploads via Ledger API v2 (POST /v2/packages) orcanton-rs dpm packages.canton-rs daemon init -o canton-daemon.yaml canton-rs daemon doctor -f canton-daemon.yaml --name dev canton-rs daemon up -f canton-daemon.yaml -d --name dev
- Offline Sample Contract Bootstrapping (
--with-sample-dar): Pass--with-sample-dartocanton-rs daemon initto extract the embeddedsample-contract.dar(AssetHolding:AssetHolding) next tocanton-daemon.yamland wire it intodars:for immediate contract creation and smoke testing.canton-rs daemon init -o canton-daemon.yaml --with-sample-dar canton-rs daemon up -f canton-daemon.yaml -d --name dev --dev-auth canton-rs daemon scenario run smoke-create --name dev
- Named Instance Support on
daemon scenario: Added--nametocanton-rs daemon scenario listandcanton-rs daemon scenario runso registered supervisor instances can be targeted by name without passing--state-dir.
🛠️ Fixes & Improvements
- Live Template Discovery in
daemon scenario run smoke-create: Fixed step 2 (submit_create) template resolution by inspecting liveGET /v2/packagesresponses on the running participant. Works with or without--dev-auth, matchesAssetHoldingand single-party creatable templates, and returns clear remediation diagnostics on zero-DAR stacks. - Normalized Relative Path Display: Removed duplicated
././prefixes from relative paths displayed bydaemon configanddaemon doctor. - Resilient
daemon remove --forceCleanup: Handled IPC EOF safely when force-removing partially failed or crashed instances instead of aborting removal. - CLI Documentation Alignment: Updated public
README.mdexamples to match exact CLI syntax (canton-rs daemon snapshot --name dev --out dev.tarandcanton-rs console attach --state-dir ...).
📦 Install & Upgrade
macOS & Linux (install.sh)
CANTON_RS_VERSION=v0.8.1 curl -fsSL https://getcantonrs.dev/install.sh | shHomebrew (macOS & Linux)
brew upgrade cantonrs/tap/canton-rsVerify 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 |
🧭 Upstream Compatibility & Scope
- Target Baseline: Independent Rust implementation oracle-tested against Canton
3.7.2(Protocol Versions36–37) · Daml-LF2.1–2.4(default2.3) · Splice0.10.1· PostgreSQL16 - Known Scope: Pre-1.0 preview intended for LocalNet development, CI testing, and read-only brownfield evaluation. Zero-side-effect transaction simulation (
canton-rs simulate) and parallel isolated script testing (canton-rs test) are scheduled for an upcomingv0.9.0release. MainNet/TestNet live state forking and automatic CC/USD fiat conversion are out of scope.
Full Changelog: v0.8.0...v0.8.1
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.