Skip to content

Decentralized Party and Canton topology

Create a Decentralized Party

A Decentralized Party is a Canton party whose namespace several participants own together. A DecentralizedNamespaceDefinition mapping lists the owners and the namespace threshold. Each topology change for the party needs signatures from at least that number of owners.

The party ID stays the same when the owners, the hosts or the threshold change.

  • Canton participant identity. It identifies the Canton participant that an organization operates.
  • Canton party identity. It identifies the party that applications and Daml contracts use.
  • Decentralization Manager peer identity. It identifies a Decentralization Manager node to other nodes through the Noise public key of the node.

A change to a peer identity does not change Canton topology. A change to Canton topology does not update peer records.

A Canton party ID has two parts, hint::namespace. The namespace decides who controls the topology of the party. Decentralization Manager works with three party types:

Party typeNamespaceWho signs topology changesWho signs transactions
Decentralized PartyA DecentralizedNamespaceDefinition that several participants ownA threshold of the owner participantsA threshold of the Daml keys of the participant nodes
Local partyThe namespace key of one participant, the owner nodeThe owner node. Each new host also signs its own hostingA host with Submission permission. After a conversion, the party key
External partyThe fingerprint of the party key, which a wallet holdsThe wallet, with the party key. Each host also signs its own hostingThe wallet, through interactive submission

A party is local to a participant when the party namespace equals the participant namespace. The Configuration page shows the Participant ID of the node.

Party typeWhat decentralizing meansToolProcedure
Decentralized PartyThe party is decentralized from its creation. Participant nodes join and leave through coordinated workflows.Onboarding, add-party, kick and change-threshold workflows over NoiseAdd a member to a Decentralized Party
Local partyOther participants host the party too. The owner node keeps sole control of the topology.Tenant API, with authorize calls on each nodeDecentralize an existing party
External partySeveral participants host the party and confirm its transactions. The wallet keeps control of the topology.Tenant API, with prepare and execute calls that the wallet signsDecentralize an external party

A local party can gain hosts in one of two ways:

  • Failover. Each new host gets Submission permission. The threshold stays 1. Any host can submit for the party. The application does not change.
  • Co-validation. The party first adopts a new Ed25519 signing key that the party owner holds. Each host gets Confirmation permission. The threshold can rise above 1. The application must switch to interactive submission and sign with the new key.

Choose the outcome before you start. Decentralization Manager cannot move a party from failover to co-validation.

The owner node keeps control of the party topology in both outcomes. The owner node can remove hosts and change the threshold with its own signature alone. A new host also signs its own hosting. A conversion gives the party a signing key. It does not give the party control of its own topology.

An external party signs its own transactions with its key. Every host therefore has Confirmation permission. The threshold is the number of hosts that must confirm each transaction. At threshold 1, any one host is enough. Above 1, no single host can act for the party.

The wallet signs each topology change with the party key. The private key never leaves the wallet. Decentralization Manager receives only the public key and the signatures.

Why a local party cannot become a Decentralized Party

Section titled “Why a local party cannot become a Decentralized Party”

A party ID contains its namespace. The namespace never changes. The namespace of a local party is the key of the owner participant. A local party therefore can never move to a decentralized namespace.

The add-party workflow needs a DecentralizedNamespaceDefinition. The workflow therefore fails for a local party and for an external party.

Decentralization Manager computes the namespace once, as a SHA-256 hash of the namespace fingerprints of the initial owners. Decentralization Manager sorts the owners before it computes the hash. The namespace stays the same when owners join or leave later.

The namespace threshold is the minimum number of owner signatures for a topology change. The operator sets the threshold at party creation. When the operator sets no value, Decentralization Manager uses half the owner count, rounded up. The change-threshold workflow changes the threshold later.

Do not copy a threshold from another Decentralized Party.

The PartyToParticipant mapping lists the participants that host the party and the permission of each host. For a Decentralized Party, every host has Confirmation permission.

The mapping also holds the confirmation threshold. This is the number of hosts that must confirm each transaction that needs the party’s approval. By default it equals the namespace threshold.

The mapping also carries the Daml signing keys of the participant nodes. It also sets how many of these keys must sign each transaction. Decentralization Manager sets this number to the namespace threshold each time it changes the topology. A topology change made directly through Canton can set the two apart.

Older parties keep their signing keys in a separate PartyToKeyMapping. Kick, add-party and change-threshold end with a step that removes this legacy mapping. A party without a legacy mapping skips the step.

For a Decentralized Party, each participant node generates its own namespace key and its own Daml key for the party.

KeyPurposeWhere it lives
Namespace keySigns topology changes for the partyThe participant vault, through the Canton crypto provider. On an AWS KMS participant, the key is in AWS KMS. Decentralization Manager never exports it.
Daml signing keySigns prepared ledger transactions of the partyThe participant vault. On a JCE participant, Decentralization Manager exports the private key each time it signs and never stores it. On an AWS KMS participant, the key stays in AWS KMS, and Decentralization Manager calls the KMS Sign API.
Party key of an external partySigns the topology changes and the transactions of the partyThe wallet. Decentralization Manager receives only the public key and the signatures.
Noise keyAuthenticates a Decentralization Manager node to its peersThe file data/noise.key in the data directory of the node
Operator login credentialAuthenticates a person to the Decentralization Manager UI and APIThe identity provider and the browser session

These keys are not interchangeable. Do not export a Canton private key to fix a peer problem.

Decentralization Manager exports a Daml key only on a JCE participant, and only to sign a prepared transaction. See Architecture overview and Sign with AWS KMS.

  1. Operators agree on the participants, the owner set and the threshold.
  2. The nodes exchange peer records and connect.
  3. The coordinator starts an onboarding run and invites the peers.
  4. Each participant generates a namespace key and a Daml key for the party.
  5. The coordinator computes the namespace and builds the namespace proposal and the hosting proposal.
  6. Each owner signs the namespace proposal. The coordinator submits it and waits for propagation.
  7. Each owner signs the hosting proposal. The coordinator submits it and waits for propagation.
  8. Every operator checks the party on their own node.

After creation, configure the party credentials and deploy the governance contracts. See Create a Decentralized Party.

ChangeWorkflowWhat happens
Add a participant nodeAdd party (Add Member in the UI)The new participant becomes an owner and a host. Decentralization Manager copies the active contracts of the party to it.
Remove a participant nodeKickThe participant leaves the owner set and the hosting mapping. Its member party stays in GovernanceRules until a Remove Governance Member vote.
Change a thresholdChange thresholdThe owner set stays the same. The namespace threshold, the confirmation threshold, or both change.

A node refuses a new kick, add-party, change-threshold or contracts run for a Decentralized Party while another run for that party is in progress. The check covers the workflow runs of this node in either role, coordinator or peer. Workflow runs for different parties can proceed at the same time. The guard is local to each node. Decentralization Manager does not stop two different nodes from coordinating conflicting runs on the same party.

The coordinator signs the proposals in a temporary topology store. No proposal can take effect before the submit step.

These workflows change only the Canton topology. Keep these four sets apart:

  • Namespace owners.
  • Hosting participants.
  • Daml governance members in the GovernanceRules contract.
  • Decentralization Manager peers.

A change in one set does not change the other sets. Governance members change through governance actions. See Governance lifecycle and Membership and governance changes.

The add-party workflow copies the active contracts of the party to the new member. The workflow uses Canton offline party replication. No participant restart is necessary.

The new member must have every DAR that these contracts use. Decentralization Manager checks the packages of the new member during the workflow run.

The new participant leaves the synchronizer during the copy. Every party on that participant therefore pauses. The party keeps working on its other hosts. See Add a member to a Decentralized Party.

Decentralization Manager waits about 30 seconds after a topology change takes effect. Without this wait, Canton can reject transactions that use the change.

After a workflow run, read the topology on every relevant participant. A successful submission does not prove that every node can use the party.

  • Wrong topology store or synchronizer.
  • Stale serial number.
  • Missing owner authorization.
  • Incorrect participant identifier.
  • Key generated on the wrong participant.
  • Peer connectivity failure during coordination.
  • A node on a different wire protocol version.
  • A joining participant that lacks a DAR of the party contracts.
  • Mapping visible on one node but not yet on another.

Plan controlled changes: Membership and governance changes.