- Decentralization Manager
- Concepts and development
- Decentralized Party and Canton topology
Decentralized Party and Canton topology
What a Decentralized Party is
Section titled “What a Decentralized Party is”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.
Three identities to keep separate
Section titled “Three identities to keep separate”- 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.
Party types
Section titled “Party types”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 type | Namespace | Who signs topology changes | Who signs transactions |
|---|---|---|---|
| Decentralized Party | A DecentralizedNamespaceDefinition that several participants own | A threshold of the owner participants | A threshold of the Daml keys of the participant nodes |
| Local party | The namespace key of one participant, the owner node | The owner node. Each new host also signs its own hosting | A host with Submission permission. After a conversion, the party key |
| External party | The fingerprint of the party key, which a wallet holds | The wallet, with the party key. Each host also signs its own hosting | The 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.
What decentralizing each type means
Section titled “What decentralizing each type means”| Party type | What decentralizing means | Tool | Procedure |
|---|---|---|---|
| Decentralized Party | The party is decentralized from its creation. Participant nodes join and leave through coordinated workflows. | Onboarding, add-party, kick and change-threshold workflows over Noise | Add a member to a Decentralized Party |
| Local party | Other participants host the party too. The owner node keeps sole control of the topology. | Tenant API, with authorize calls on each node | Decentralize an existing party |
| External party | Several 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 signs | Decentralize an external party |
Local party: failover or co-validation
Section titled “Local party: failover or co-validation”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.
External party: co-validation
Section titled “External party: co-validation”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.
Decentralized namespace
Section titled “Decentralized namespace”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.
PartyToParticipant mapping
Section titled “PartyToParticipant mapping”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.
Key categories
Section titled “Key categories”For a Decentralized Party, each participant node generates its own namespace key and its own Daml key for the party.
| Key | Purpose | Where it lives |
|---|---|---|
| Namespace key | Signs topology changes for the party | The 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 key | Signs prepared ledger transactions of the party | The 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 party | Signs the topology changes and the transactions of the party | The wallet. Decentralization Manager receives only the public key and the signatures. |
| Noise key | Authenticates a Decentralization Manager node to its peers | The file data/noise.key in the data directory of the node |
| Operator login credential | Authenticates a person to the Decentralization Manager UI and API | The 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.
Creation sequence
Section titled “Creation sequence”- Operators agree on the participants, the owner set and the threshold.
- The nodes exchange peer records and connect.
- The coordinator starts an onboarding run and invites the peers.
- Each participant generates a namespace key and a Daml key for the party.
- The coordinator computes the namespace and builds the namespace proposal and the hosting proposal.
- Each owner signs the namespace proposal. The coordinator submits it and waits for propagation.
- Each owner signs the hosting proposal. The coordinator submits it and waits for propagation.
- 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.
Membership change
Section titled “Membership change”| Change | Workflow | What happens |
|---|---|---|
| Add a participant node | Add 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 node | Kick | The participant leaves the owner set and the hosting mapping. Its member party stays in GovernanceRules until a Remove Governance Member vote. |
| Change a threshold | Change threshold | The 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
GovernanceRulescontract. - 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.
Parties with active contracts
Section titled “Parties with active contracts”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.
Propagation and verification
Section titled “Propagation and verification”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.
Common failure modes
Section titled “Common failure modes”- 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.
Technical sources
Section titled “Technical sources”- Architecture
- Decentralizing an existing party
- Decentralizing an external party
- Adding a member to a decentralized party
- Signing with AWS KMS party keys
- Legacy party-key retirement
- Signing backends
- Onboarding proposals
- Canton documentation
Next step
Section titled “Next step”Plan controlled changes: Membership and governance changes.
Ask the docs
Answers come only from this documentation and can be wrong. Check the linked pages.
Ask a question about BitSafe, CBTC or the developer guides. For example: