- Decentralization Manager
- Concepts and development
- How it works
How it works
Decentralization Manager lets several organizations control one Canton party together. This page explains the parts of that setup and how they connect. The parts are participant nodes, parties, three thresholds and the GovernanceRules contract. Read this page before the other concept pages.
Glossary
Section titled “Glossary”| Term | Meaning |
|---|---|
| Participant node | A Canton server that one organization runs. It stores contracts and validates transactions for the parties that it hosts. A participant node is infrastructure, not a party. Other pages also call it a participant or a member node. |
| Decentralization Manager node | The Decentralization Manager application that one organization runs next to its participant node. The Decentralization Manager nodes of the organizations coordinate workflows with each other. |
| Canton party | An identity on the ledger. A party can sign contracts and exercise choices. The participant nodes that host it confirm each transaction that needs its approval. |
| Signatory | A party that must authorize a contract. A contract cannot exist without the authority of all its signatories. |
| Controller | A party that can exercise a choice on a contract. A choice runs with the authority of the signatories of the contract and the controllers of the choice. |
| Host | A participant node that hosts a party. The host stores the contracts of the party and confirms its transactions. Decentralization Manager gives each host of the Decentralized Party Confirmation permission. With this permission, a host can confirm transactions for the party, but it cannot submit them. |
| Namespace owner | A participant node whose namespace key can sign topology changes for the Decentralized Party. A topology change adds or removes a host, changes a key, or changes the namespace threshold or the confirmation threshold. |
| Daml signing key | A key that each participant node holds for the Decentralized Party. Enough Daml signing keys to meet the namespace threshold can sign a transaction as the Decentralized Party. Other pages also call it the Daml key. The code stores these keys in PartyToParticipant.party_signing_keys. |
| Decentralized Party | The Canton party that the organizations control together. When the namespace threshold and the confirmation threshold are both 2 or more, no single participant node can act for it. The Daml code calls it governanceParty. |
| Member party | A Canton party that one organization uses to propose, confirm and execute governed actions. GovernanceRules.members lists the member parties. A member party is not a participant node, and it holds no Daml signing key. Other pages also call it a governance member. |
| Proposer | The party that creates a proposal. Member parties can confirm a proposal only if its proposer is a member party or an additional proposer. An additional proposer can propose, but it cannot confirm. The code calls these parties proposer and additionalProposers. |
| Executor | The member party that executes a proposal after enough member parties confirm it. The code calls it executor. |
GovernanceRules | The Daml contract that lists the member parties and the governance threshold. The Decentralized Party is its signatory. |
| Governed action | A proposal contract that implements the GovernableAction interface. Its executeImpl function holds the action to run. |
| Governance vote | The process in which member parties confirm a proposal. The vote passes when the confirmations meet the governance threshold. Each confirmation is a contract: GovernanceConfirmation for a governed action, or GovernanceSelfConfirmation for a self-management action. |
Participant nodes, member parties and the Decentralized Party
Section titled “Participant nodes, member parties and the Decentralized Party”Each organization runs one participant node. Together, the participant nodes host the Decentralized Party and own its namespace. Each participant node also hosts the member party of its organization.
| Organization | Participant node | Member party |
|---|---|---|
| Org A | Node A | Alice |
| Org B | Node B | Bob |
| Org C | Node C | Carol |
Node A hosts Alice, Node B hosts Bob, and Node C hosts Carol. All three participant nodes also host the Decentralized Party.
The two types of party do different work:
- The Decentralized Party is the signatory of the shared contracts. Examples are
GovernanceRulesand the assets that the organizations hold together. - A member party proposes, confirms and executes governed actions.
The operator of each participant node controls its Daml signing key. On a JCE participant node, the key is in the vault of the participant node. On an AWS KMS participant node, each signature needs the kms:Sign permission. A member party has no control over any key.
The three thresholds
Section titled “The three thresholds”A Decentralized Party has three thresholds. Each threshold counts a different thing, and one threshold does not replace another. Canton stores the first two thresholds in the topology of the party. GovernanceRules stores the third threshold.
| Threshold | Name in the UI | Field | What it counts | What it controls | Default value |
|---|---|---|---|---|---|
| Namespace threshold | Threshold | DecentralizedNamespaceDefinition.threshold | Signatures from namespace owners | Each topology change | Half of the namespace owners, rounded up. The operator can set a different value when they create the party |
| Confirmation threshold | Confirmation Threshold | PartyToParticipant.threshold | Hosts that confirm | Each transaction that needs the approval of the Decentralized Party. This includes each governed action | The namespace threshold. An operator can set a different value at creation or with Change Threshold |
| Governance threshold | Gov Threshold | GovernanceRules.threshold | Confirmations from member parties | The execution of a governed action | Deploy Contracts sets it. The dialog suggests two thirds of the hosts, rounded up, with a minimum of 2. An API request with no value uses the namespace threshold. After that, it changes separately from the other two thresholds |
A transaction submitted as the Decentralized Party needs Daml signing keys from enough participant nodes to meet the namespace threshold. Canton checks a separate field for this, PartyToParticipant.party_signing_keys.threshold. Decentralization Manager sets that field to the namespace threshold each time it changes the topology.
Decentralization Manager writes the namespace threshold and the confirmation threshold in thresholds.rs. The Deploy Contracts dialog suggests the governance threshold in ContractsDialog.tsx. prepare.rs uses the namespace threshold when a request sends no value.
Recommended setup
Section titled “Recommended setup”- Give each organization one participant node and one member party. Then each threshold counts organizations, and no organization counts twice.
- Keep the namespace threshold and the confirmation threshold at or above the governance threshold. If one of them is lower, fewer node operators than a governance vote needs can act for the Decentralized Party. Canton’s decentralization guide gives the same advice for the confirmation threshold.
The Deploy Contracts dialog does not use the namespace threshold. Its suggestion equals the default namespace threshold only when the party has 3 hosts. With any other number of hosts, the suggestion is higher. Decentralization Manager does not check the thresholds after deployment, so check all three thresholds right after Deploy Contracts. Three types of change can break the recommendation:
- Deploy Contracts sets a governance threshold above the namespace threshold or the confirmation threshold. A governance vote can lower it, or Change Threshold can raise the other two.
- A governance vote raises the governance threshold above the namespace threshold or the confirmation threshold. After this change, run Change Threshold to raise the lower thresholds.
- A kick or a Change Threshold run lowers the namespace threshold or the confirmation threshold below the governance threshold.
Check the three thresholds after each change to the member parties, the participant nodes or a threshold. A kick removes a participant node from the topology. It leaves the organization’s member party in GovernanceRules. A Remove Governance Member vote removes the member party.
Why GovernanceRules exists
Section titled “Why GovernanceRules exists”Readers often ask this question: if enough Daml signing keys can already sign as the Decentralized Party, why use GovernanceRules?
Canton does not accept a normal command from a party whose confirmation threshold is more than 1. If Canton accepted such a command, one participant node could act alone for the party. Canton gives two other ways to act for the party (Canton docs):
- External signing. Enough Daml signing keys of the party sign each transaction.
- Authorization in Daml. The party is the signatory of a contract. Other parties control the choices of that contract, and the contract sets how many of them must agree.
GovernanceRules uses the second way. The DsoRules contract of Canton Coin uses the same pattern (Canton docs). Decentralization Manager uses the first way only in the Deploy Contracts workflow.
GovernanceRules also does these things, which key signatures alone cannot do:
- Member parties confirm at different times. Each confirmation is a separate contract on the ledger.
- Each action has a type. Each action is a template that implements
GovernableAction, and the member parties confirm its exact fields. - Confirmations expire. Each confirmation has an
expiresAttime. - Anyone can create a proposal, but member parties can confirm only a proposal from a listed proposer. The list holds the member parties and the
additionalProposers. - Each execution of a governed action creates a
GovernanceExecutionResultcontract as an audit record. A self-management action creates no such record. - The member parties are separate from the Daml signing keys. A governance vote can change the member parties without a topology change.
How an approved action gets its authority
Section titled “How an approved action gets its authority”The steps below follow one governed action from its execution to the end of its Canton transaction.
- The Decentralized Party is the signatory of
GovernanceRules(Rules.daml). - A member party exercises
GovernanceRules_ExecuteConfirmedAction. The member party is the controller of this choice. Decentralization Manager submits the command as the member party, and it reads the contracts of the Decentralized Party (commands.rs). - The choice runs with the authority of the Decentralized Party, because the Decentralized Party is the signatory of
GovernanceRules. The choice checks three things: the executor is a member party, each confirmation is current, and enough member parties confirmed (Rules.daml). - The choice exercises
GovernableAction_Executeon the proposal. The Decentralized Party is the controller of that choice, and its authority is already present (Action.daml). executeImplruns with the authority of the Decentralized Party and of the proposer. The proposer’s authority is present because the proposer is the signatory of each built-in proposal. An action that uses a contract of the Decentralized Party must therefore check that the contract really belongs to the Decentralized Party.CreateTransferRule.damlshows the check, and Custom Daml templates explains it.GovernanceRulescreates aGovernanceExecutionResult(ExecutionResult.daml).- The hosts of the Decentralized Party confirm the full transaction. Canton needs confirmations from enough hosts to meet the confirmation threshold. This step is Canton validation, not a governance vote.
A governed action needs no signature from a Daml signing key.
Most self-management actions change GovernanceRules itself, for example its threshold. SelfAction_CancelAction is the exception: it cancels the proposal of a governed action. A self-management action has no proposal contract of its own. Member parties confirm it with GovernanceRules_ConfirmGovernanceAction and execute it with GovernanceRules_ExecuteGovernanceAction. The Governance lifecycle page describes both types of action.
Paths outside the governance vote
Section titled “Paths outside the governance vote”Some actions do not go through a governance vote. The Decentralized Party is therefore only as protected as its lowest threshold.
- Deploy Contracts. This workflow submits a transaction as the Decentralized Party. It therefore needs Daml signing keys from enough participant nodes to meet the namespace threshold. Each Decentralization Manager node signs only a transaction that creates the contracts in the invitation that it accepted. No other Decentralization Manager workflow submits as the Decentralized Party (
prepare.rs,sign.rs). - Direct submission with Daml signing keys. Operators who control enough Daml signing keys to meet the namespace threshold can submit any transaction as the Decentralized Party. They need no Decentralization Manager workflow and no governance vote. For example, they can exercise
GovernanceRules_SetThreshold,GovernanceRules_AddMemberAndSetThresholdorGovernableAction_Execute. The Decentralized Party is the controller of these three choices (Rules.daml,Action.daml). The testtestGovernancePartyCanStillCancelshows that the Decentralized Party can also cancel a proposal directly. - Colluding hosts. Hosts can work together against the rules. If enough of them meet the confirmation threshold, they can approve any transaction for the Decentralized Party. They can do this without valid signatures from the Daml signing keys. Canton’s decentralization guide and external party guide describe this risk.
- Topology change through Canton. Enough namespace owners to meet the namespace threshold can change the topology directly through Canton. For example, they can add a host, replace the Daml signing keys or lower a threshold.
- A second
GovernanceRulescontract. The template has no contract key, so two activeGovernanceRulescontracts can exist. Deploy Contracts and a direct submission as the Decentralized Party can create a second contract with no governance vote. An approved governed action can also create one, because it runs with the authority of the Decentralized Party. Decentralization Manager reads the first active contract that it finds, and it shows no warning (queries.rs). Proposals and confirmations do not identify a specificGovernanceRulescontract. - Proposer cancel. A proposer can cancel their own proposal with
GovernableAction_ProposerCancel. The cancellation needs no governance vote (Action.daml).
Worked example: a token transfer
Section titled “Worked example: a token transfer”Three organizations each run a participant node. Alice, Bob and Carol are their member parties. Each of the three thresholds is 2 of 3, and these values follow the recommended setup. Two of the three member parties must therefore confirm a proposal. The receiver has a TransferPreapproval, so the tokens move in the same transaction.

Text version of the diagram:
- Org A sends
POST /governance/proposeto its Decentralization Manager node. Decentralization Manager creates aTransferProposal, with Alice as the proposer and signatory (TransferProposal.daml). - In the same request, Decentralization Manager confirms the proposal as Alice with
GovernanceRules_ConfirmAction(governance.rs). - Org B sends
POST /governance/confirm. Decentralization Manager confirms the proposal as Bob. Each confirmation is aGovernanceConfirmationcontract, not a key signature. - Org B sends
POST /governance/execute. Decentralization Manager exercisesGovernanceRules_ExecuteConfirmedActionas Bob. Two confirmations meet the governance threshold, so Carol does not need to confirm. GovernanceRulesexercisesGovernableAction_Executewith the authority of the Decentralized Party.executeImplexercisesTransferFactory_Transfer. Decentralization Manager sets the Decentralized Party as the sender of the transfer. The proposal names the receiver’sTransferPreapprovalas the factory, so the transfer completes at once. With anAllocationFactory, the transfer creates a pending offer, and the receiver must accept it in a later transaction.GovernanceRulescreates aGovernanceExecutionResult.- The hosts confirm the transaction under the confirmation threshold. This step is Canton validation, not a governance vote. Steps 4 to 7 are one Canton transaction.
Below the dashed line, the diagram shows one path outside the governance vote. Two node operators meet the namespace threshold. With their Daml signing keys, they can submit a transaction as the Decentralized Party directly. Paths outside the governance vote lists the other paths.
Reference
Section titled “Reference”Code:
Rules.daml:GovernanceRulesand its confirm and execute choices.Action.daml: theGovernableActioninterface.Confirmation.daml: theGovernanceConfirmationcontract.ExecutionResult.daml: the audit record.TransferProposal.daml: the action in the worked example.thresholds.rs: the code that writes the namespace threshold and the confirmation threshold.
Repository docs:
Related pages:
- Governance lifecycle
- Decentralized Party and Canton topology
- Membership and governance changes
- Security architecture
Canton docs:
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: