Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.47 KB

File metadata and controls

52 lines (31 loc) · 1.47 KB

Canton Barebones

Minimal local Canton barebones for wallet-first app experiments.

For the full Counter stack, follow the root runbook:

Start

Run only the local Canton participant, Postgres, and wallet-service:

cp .env.example .env
docker compose up -d
./scripts/health-check.sh

Wallet service

docker compose up -d (via npm run canton:up) brings up wallet-service alongside postgres + canton. Verify with npm run wallet-service:health.

The wallet-service self-mints an HS256 JWT at boot from CANTON_AUTH_AUDIENCE, CANTON_AUTH_SECRET, and CANTON_ADMIN_USER_ID.

Set WALLET_SERVICE_MOCK=1 in .env to short-circuit Canton calls; the service still starts but every /rpc method returns canned mock data.

Details:

Auth Config

The participant accepts local/dev HS256 JWTs configured by:

  • .env: CANTON_AUTH_AUDIENCE, CANTON_AUTH_SECRET, CANTON_ADMIN_USER_ID
  • config/canton/app.conf: Canton ledger API auth service

Ports

Refer to the ports table in the root README to see the ports used by this stack.

Deploy a DAR

Compile a Daml project outside this base, then upload the DAR.

./scripts/deploy-dar.sh /path/to/app.dar

This barebones intentionally does not include Keycloak, SV, PQS, frontend, or backend.