- Decentralization Manager
- Get started
- Create a Decentralized Party
Create a Decentralized Party
Outcome
Section titled “Outcome”Coordinate two or more nodes to create a new Decentralized Party. Then store the party credentials on each node and verify the party on Canton.
Before you start
Section titled “Before you start”- All nodes of a Decentralized Party must run the same release. A coordinator invites only peers that use the same Noise wire version and report version
0.1.9or later. - Every node lists every other node as a peer. Each peer status reads “Connected via Noise protocol”. See Connect peers.
- Each node reaches the Admin API and the Ledger API of its own Canton participant.
- The organizations agree on the party ID prefix, the participants, and the threshold.
- On each node, the operator holds the admin role when
DECPM_ADMIN_ROLEis set. The coordinator needs it to start onboarding. Each invited peer needs it to accept. - Each node on an AWS KMS participant has AWS credentials for Decentralization Manager. See Sign with AWS KMS.
A Decentralized Party is a shared Canton identity. Treat its participants and threshold as a governed production decision, not as a demo default.
1. Plan the party
Section titled “1. Plan the party”Record:
- The purpose of the party.
- The party ID prefix. The prefix starts with a letter. It holds only letters, digits,
-and_. It has at most 180 characters. - The participating organizations and nodes. A Decentralized Party needs at least two participants.
- The threshold.
- The target Canton network and synchronizer.
- The coordinator for this workflow run.
- The review that the organizations need before the party enters production.
The threshold is the number of namespace owners that must sign a topology change for the party. By default, Decentralization Manager also uses it as the confirmation threshold of the party. The confirmation threshold is the number of hosting participants that must confirm each transaction that needs the party’s approval. You can set a different value in the Confirmation threshold field. The default threshold is half the namespace owners, rounded up: ceil(owners / 2).
The governance threshold is a separate value. You set it later, when you deploy the GovernanceRules contract of the party. The Deploy Contracts dialog suggests two thirds of the hosts, rounded up, with a minimum of 2. Check that value against the other two thresholds.
2. Start onboarding
Section titled “2. Start onboarding”On the coordinator:
- Open Parties, then the Decentralized Parties tab.
- Click the + button (Create Party) at the bottom right. The Create a decentralized party dialog opens.
- Enter the Party ID prefix.
- Under Peers to invite, select the peers. The coordinator is always a namespace owner. The list therefore does not include the coordinator.
- Check the Threshold. The dialog fills in the default. Change it only when the organizations agreed on another value.
- Click Start onboarding.
Before it sends invitations, the coordinator checks three things:
- The prefix is valid, and no Decentralized Party on the coordinator uses it.
- Every invited peer uses the same Noise wire version and reports version
0.1.9or later. - Every pair of selected nodes lists each other as peers. See the full-mesh section of Connect peers.
When a check fails, the coordinator sends no invitations. The dialog shows the reason.
To start onboarding with the API, send an operator access token:
curl -sS -X POST http://localhost:8080/onboarding \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "party_id_prefix": "my-party", "peer_ids": ["participant2::1220...", "participant3::1220..."], "threshold": 2 }'Leave out threshold to use the default. The call returns HTTP 202. GET /onboarding/status returns the progress of the workflow run.
3. Peers accept the invitation
Section titled “3. Peers accept the invitation”On each invited node:
- Open Approvals. The invitation is under Needs your action. Its title is Join party, followed by the prefix.
- Click Review ▾, and check the Prefix.
- Confirm that the coordinator, the purpose, and the participant list match the agreed plan.
- Click Accept. Click Decline when the invitation does not match the plan.
With the API, GET /invitations lists the pending invitations. POST /invitations/accept with {"id": "<invitation-id>"} accepts one. POST /invitations/decline declines one.
The workflow run starts when every invited peer accepts. The coordinator shows the workflow run as a card under Approvals, with one dot for each step.
4. Generate keys
Section titled “4. Generate keys”Each node asks its own participant to generate two keys through the Canton Admin API:
- Namespace key. The participant signs topology transactions with it. This key does not leave the participant.
- Daml signing key. This key signs the ledger transactions of the party, for example the deployment of the governance contract.
The crypto provider of the participant decides where the participant stores the Daml signing key. It also decides how Decentralization Manager signs with the key:
| Crypto provider | Where the participant stores the Daml signing key | How Decentralization Manager signs |
|---|---|---|
| JCE (default) | The participant vault | The node exports the party’s Daml private key from the vault with VaultService.ExportKeyPair for each signature. It signs on the node with Ed25519 and never stores the key. |
| AWS KMS | AWS KMS. The key cannot leave AWS KMS. | Decentralization Manager calls the AWS KMS Sign API with its own AWS credentials. |
See Decentralized Party and Canton topology for the difference between namespace keys, Daml signing keys, and Noise keys.
5. Sign and submit the topology
Section titled “5. Sign and submit the topology”The workflow run does these steps without operator input:
| Step | Actor | What happens |
|---|---|---|
CreateProposals | Coordinator | Builds the decentralized namespace (DNS) proposal and the PartyToParticipant proposal. |
SignDns | Every node | Signs the DNS proposal with its namespace key. |
SubmitDns | Coordinator | Submits the DNS proposal to Canton and waits for the topology to propagate. |
SignP2p | Every node | Signs the PartyToParticipant proposal with its namespace key. |
SubmitFinal | Coordinator | Checks that enough namespace owners signed. Then it submits the PartyToParticipant proposal and waits until it is effective. |
Complete | Every node | Disconnects from the workflow run. |
6. Store party credentials
Section titled “6. Store party credentials”The party now exists on Canton. Each node still needs credentials to act for the party on the Ledger API. Do this step on every node, the coordinator included. Without party credentials, governance calls fail with “No credentials configured for party”.
- Open Parties and click the new party.
- In the Authentication section, click Login. The Party Configuration dialog opens.
- Enter the identity provider fields. A Keycloak node asks for URL, Realm, Client ID, and Client Secret. An Auth0 node asks for Domain, Audience, Client ID, and Client Secret.
- Click Discover Member Party. Decentralization Manager fills in the Member Party ID and the User ID. To type them yourself, click Enter manually.
- Click Save.
- Click Test Auth.
- When the section shows “Missing required user rights.”, click Grant Rights. Enter the client credentials of an identity that holds
ParticipantAdminon this participant, then click Grant.
Grant Rights gives the ledger user of the party actAs and readAs on the member party and on the Decentralized Party. Decentralization Manager does not store the admin credentials that you enter there.
These calls do the same steps with the API on a Keycloak node:
curl -sS -X PUT http://localhost:8080/party-config \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "dec_party_id": "my-party::1220...", "member_party_id": "participant1::1220...", "user_id": "<ledger-user-id>", "keycloak_url": "https://keycloak.example.com", "keycloak_realm": "<realm>", "keycloak_client_id": "<client-id>", "keycloak_client_secret": "<client-secret>" }'
curl -sS -X POST http://localhost:8080/auth/grant-rights \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "dec_party_id": "my-party::1220...", "admin_client_id": "<admin-client-id>", "admin_client_secret": "<admin-client-secret>" }'An Auth0 node sends auth0_domain, auth0_audience, auth0_client_id, and auth0_client_secret instead of the Keycloak fields. GET /party-config/<dec_party_id> returns the stored configuration without the secrets. See Authentication and operator roles for the identity provider setup.
7. Verify the party
Section titled “7. Verify the party”On every node, open the party page and confirm:
- The party ID starts with the planned prefix. The part after
::is the same on every node. - Owners equals the number of participants.
- Threshold shows the agreed value.
- The Participants section lists every participant with the permission
confirmation. - Test Auth succeeds in the Authentication section.
- The onboarding card under Approvals shows the workflow run as complete, with no peer errors.
With the API, GET /decentralized-parties returns each party with its owners, threshold, and participants.
If the coordinator becomes unavailable
Section titled “If the coordinator becomes unavailable”The coordinator controls the workflow run. When the coordinator restarts, it resumes the workflow run from its stored state. On the coordinator, the card of an active workflow run shows Cancel workflow. The card of a failed workflow run shows Retry and Dismiss.
The API calls are POST /workflows/<instance_name>/cancel, /retry, and /dismiss. The instance_name of an onboarding workflow run is <prefix>-creation. Do not start a second workflow run for the same prefix until the first one ends.
Membership changes after creation
Section titled “Membership changes after creation”Adding or removing a participant is a separate workflow. The party ID stays the same. The add-member workflow copies the contracts of the party to the new member. See Add a member to a Decentralized Party and Membership and governance changes. Do not run onboarding again to change membership.
Troubleshooting
Section titled “Troubleshooting”| Stage | Check | Safe response |
|---|---|---|
| Start | The error in the dialog, the prefix, and the release on each node | Fix the named peer entries, or upgrade the nodes. Then start again. |
| Invitations | Whether every invited peer accepted under Approvals | Ask the remaining operators to accept. |
| Key generation | Admin API access and the participant logs | Do not export or move private keys outside the workflow. |
| Topology signing | The owner identity, the target store, and the signer rights | Inspect the card of the workflow run before you start a new workflow run. |
| Propagation | Synchronizer connectivity and topology state | Let the workflow run finish its waits. |
| Party credentials | Test Auth and the user rights | Correct the identity provider fields, or click Grant Rights. |
| Final verification | Owners, threshold, and participants on every node | Do not deploy governed contracts until all nodes agree. |
Technical sources
Section titled “Technical sources”- Creating a Decentralized Party and party credentials
- Onboarding architecture
- Signing with AWS KMS party keys
- Signing backends
- Vault export signer
- Onboarding workflow steps
- Onboarding API and preflight checks
- Minimum peer version
- Authentication middleware
- Create Party dialog
- Party Configuration dialog
Related pages
Section titled “Related pages”- Decentralized Party and Canton topology
- Complete your first governance action
- Membership and governance changes
- Sign with AWS KMS
Next step
Section titled “Next step”Validate governance: Complete your first governance action.
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: