Skip to content

Create a Decentralized Party

Overview · Connect peers

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.

  • 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.9 or 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_ROLE is 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.

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.

On the coordinator:

  1. Open Parties, then the Decentralized Parties tab.
  2. Click the + button (Create Party) at the bottom right. The Create a decentralized party dialog opens.
  3. Enter the Party ID prefix.
  4. Under Peers to invite, select the peers. The coordinator is always a namespace owner. The list therefore does not include the coordinator.
  5. Check the Threshold. The dialog fills in the default. Change it only when the organizations agreed on another value.
  6. 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.9 or 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:

Terminal window
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.

On each invited node:

  1. Open Approvals. The invitation is under Needs your action. Its title is Join party, followed by the prefix.
  2. Click Review ▾, and check the Prefix.
  3. Confirm that the coordinator, the purpose, and the participant list match the agreed plan.
  4. 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.

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 providerWhere the participant stores the Daml signing keyHow Decentralization Manager signs
JCE (default)The participant vaultThe 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 KMSAWS 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.

The workflow run does these steps without operator input:

StepActorWhat happens
CreateProposalsCoordinatorBuilds the decentralized namespace (DNS) proposal and the PartyToParticipant proposal.
SignDnsEvery nodeSigns the DNS proposal with its namespace key.
SubmitDnsCoordinatorSubmits the DNS proposal to Canton and waits for the topology to propagate.
SignP2pEvery nodeSigns the PartyToParticipant proposal with its namespace key.
SubmitFinalCoordinatorChecks that enough namespace owners signed. Then it submits the PartyToParticipant proposal and waits until it is effective.
CompleteEvery nodeDisconnects from the workflow run.

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”.

  1. Open Parties and click the new party.
  2. In the Authentication section, click Login. The Party Configuration dialog opens.
  3. 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.
  4. Click Discover Member Party. Decentralization Manager fills in the Member Party ID and the User ID. To type them yourself, click Enter manually.
  5. Click Save.
  6. Click Test Auth.
  7. When the section shows “Missing required user rights.”, click Grant Rights. Enter the client credentials of an identity that holds ParticipantAdmin on 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:

Terminal window
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.

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.

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.

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.

StageCheckSafe response
StartThe error in the dialog, the prefix, and the release on each nodeFix the named peer entries, or upgrade the nodes. Then start again.
InvitationsWhether every invited peer accepted under ApprovalsAsk the remaining operators to accept.
Key generationAdmin API access and the participant logsDo not export or move private keys outside the workflow.
Topology signingThe owner identity, the target store, and the signer rightsInspect the card of the workflow run before you start a new workflow run.
PropagationSynchronizer connectivity and topology stateLet the workflow run finish its waits.
Party credentialsTest Auth and the user rightsCorrect the identity provider fields, or click Grant Rights.
Final verificationOwners, threshold, and participants on every nodeDo not deploy governed contracts until all nodes agree.

Validate governance: Complete your first governance action.