Canton node keys · threshold custody · open source

Rütli Cluster Explorer

Rütli keeps a Canton node's namespace and signing keys as shares spread across a cluster of cosigners. Any 2 of 3 can sign together, and no single machine ever holds the whole key. Take cosigners down, breach them or destroy their disks below, then press Sign to see what still works.

Named after the Rütli meadow, where three cantons swore to act only together.

Threshold
Try
Click a cosigner to change its state. Online Offline (comes back) Disk lost (share gone) Breached (attacker has host and seal secret)
One signature, step by step

What happens when the node signs

Press Sign above. The steps light up as the request moves through the cluster in its current state.

  1. Canton asks the driver to signThe participant hands rutli-driver.jar a 34-byte digest through Canton's KMS Driver SPI. The node itself is unmodified.
  2. The driver sends a signed request to one cosignerThat cosigner leads this signing session. If it can't be reached, the driver fails over to the next one in the roster. The preferred cosigner leads every signature until it fails. From 0.5.0, frost.sign-leader = rotate is an opt-in that spreads the lead over the cosigners in turn.
  3. Every cosigner checks the requestEach one verifies the driver's signed intent and applies its own policy and rate limits, so one bad cosigner can't use the others as a signing oracle.
  4. Round 1: nonce commitmentsThe leader collects commitments from enough cosigners to reach the threshold. Each nonce is marked used on disk before any share goes out, so a crash can't reuse it.
  5. Round 2: signature sharesEach of those cosigners returns a signature share. No share reveals the key.
  6. The leader combines the sharesThe result is one ordinary Ed25519 signature (RFC 8032). The whole key never existed anywhere.
  7. Canton gets its signatureCanton can't tell it from a single-key signature. The driver's hash-chained audit log records it, and so does the journal of each cosigner that took part.
Result

Not signed yet. Press Sign to run one request through the cluster.

  • About 100 ms per 2-of-3 signature across three regions on DevNet.
  • Namespace operations are rare: the namespace key signs topology changes, while protocol signing uses the signing key, held the same way.
  • Approval quorums can also require M-of-N people to approve a signature on a protected key. This page leaves them out.
Where the keys live

What one incident exposes

The same incidents, for four ways of holding a Canton node's keys.

Incident Keys in the node's database (default) Cloud KMS One self-hosted KMS or HSM Rütli, 2-of-3 with separate operators
A database backup leaks
Every node key, namespace included, in plaintext
No private keys in it
No private keys in it
No private keys in it
The machine or account holding the keys is breached
Keys copied
Attacker can sign with every key while access lasts
Attacker can sign with every key while access lasts
One share: can't sign. The encryption key is exposed, since it's held whole until threshold encryption arrives (planned for 1.0)
One administrator goes rogue
Can copy every key
Can sign, given key permissions
Can sign, given key permissions
Needs 2 cosigners run by different people, plus any approval quorum
The key store is destroyed
Restore from a database backup, which holds the keys in plaintext
Covered by the provider's durability
Restore from that KMS or HSM's own backup
Repair from the surviving cosigners, or restore sealed backups
An existing node moves in, same namespace
Already there
No: a new validator
No: a new participant
Yes, rehearsed on DevNet

The Rütli column assumes cosigners in separate trust domains. Three cosigners in one cluster run by one team behave much like a single KMS against a rogue administrator.

Moving an existing validator in

Same node, same namespace, same party IDs

Canton has no supported switch from database keys to a KMS. This is the in-place path we rehearsed on a Splice 0.9.0 / Canton 3.6.1 validator on DevNet. On the main branch the same procedure is tested end to end in CI on Canton 3.6.1 and on Canton 3.7.2.

  1. Export

    Each key is exported from the running node with keys.secret.download_to, protected by a password.

  2. Split offline

    The namespace and signing keys are split into FROST shares on an offline machine, checked against their Canton fingerprints, then refreshed so the dealt shares no longer combine with the live ones (required in production, skipped in the DevNet drill). The encryption key is imported whole.

  3. Switch

    The same participant restarts on the Rütli driver, registers each key by id and comes back with identical fingerprints. On DevNet the wallet was down about 20 minutes, and nobody had to re-onboard.

  4. Clean up

    Both keys were rotated onto keys born in the cluster. After 11 clean days the old database rows were deleted and every old copy destroyed, and the node restarted with no private key in its database. A key that once existed whole stays as exposed as any copy you missed.

Read with care

What this page leaves out