Install and validate DARs
Outcome
Upload the CBTC DAR packages required for minting and redemption to a Canton participant, then confirm that the expected CBTC packages are present.
Before you start
You need:
Administrative access to the target Canton participant.
An approved connection to the participant Admin API. The repository examples use
localhost:5002; use the endpoint and connection method documented for the target environment.A participant administrator JWT if the Admin API requires authentication.
grpcurl,jq, and a compatiblebase64command for the recommended upload path.The pinned
cbtc-libv0.6.4release.The current compatibility row for the target Canton version, CBTC DAR release, and environment.
1. Get the pinned DAR release
git clone <https://github.com/DLC-link/cbtc-lib.git>
cd cbtc-lib
git checkout v0.6.4
cd cbtc-darsConfirm that the directory contains upload_dars.sh, 00_ValidateDars.sc, dars/dependencies/, and dars/cbtc/.
2. Confirm the Admin API connection
Establish the approved port-forward or network path to the participant Admin API. If the target differs from the repository default, update canton_admin_api_url in a local working copy of upload_dars.sh.
Do not proceed until the endpoint is confirmed to belong to the intended participant and environment.
3. Configure authentication
If the Admin API requires authentication, expose the administrator token to the script through the jwt_token environment variable:
If the Admin API does not require authentication, leave jwt_token empty. Follow the authentication flow documented for the target environment.
4. Upload the DARs
The recommended repository path uses the gRPC upload script:
The script uploads:
Dependency DARs from
dars/dependencies/.CBTC DARs from
dars/cbtc/.
For every upload, the script requests package vetting and synchronized vetting. Canton skips a DAR that is already present, so the repository guidance describes the script as safe to run again.
5. List the installed CBTC DARs
The repository includes a Canton script that lists installed DARs whose names contain cbtc:
For each matching DAR, the script prints:
Name.
Version.
Main package ID.
Description.
Record this output with the environment and release tag used for the installation. Remove tokens and other sensitive values before sharing diagnostic output.
6. Verify the result
A successful installation should meet all of these checks:
Expected result
The target participant contains the approved CBTC and dependency DAR set for the selected environment. The CBTC inventory shows the expected versions and package IDs, and the environment passes the approved read-only preflight.
Troubleshooting
Connection refused or unavailable
Port-forward, host, port, participant identity, and Admin API availability.
Restore the approved Admin API connection. Do not switch environments or ports by trial and error.
Unauthenticated or permission denied
Whether the Admin API requires a token and whether the token has participant administrator permissions.
Obtain a new token through the approved process. Do not paste the token into a support ticket.
base64 reports an unsupported option
Whether the workstation uses GNU or BSD base64.
Adapt the local script to the installed implementation, then review the change before retrying.
The CBTC validation list is empty
Target participant, upload responses, DAR names, and Canton connection configuration.
Stop before minting or redemption. Collect redacted logs and escalate with the release tag and environment.
Some packages appear but the release set is incomplete
Dependency and CBTC upload responses, release manifest, and package vetting status.
Do not mix releases. Reconcile against the approved manifest before retrying.
Alternative Canton upload path
The repository also includes 00_UploadDars.sc. In v0.6.4, this script uploads CBTC DARs before dependency DARs, while the README and recommended gRPC script specify dependencies first. Use the recommended gRPC path unless the supported release explicitly documents the alternative ordering.
Technical sources
Related pages
Next step
👉 Configure access: CBTC authentication.
Last updated