Quick start
This takes about ten minutes. Everything here runs locally, and nothing contacts an external service.
1. Install
bash
pnpm install --frozen-lockfile
pnpm -r run build2. Run the examples
bash
node examples/run.mjsFour scenarios run and should print 4/4 examples passed:
- A ₹40,000 payment is ALLOW, executes once, and its evidence verifies.
- A ₹80,000 payment is DENY, and the connector is never called.
- Altered evidence is detected as INVALID.
- After an authority is revoked, a previously ALLOW decision no longer executes.
3. Walk through the SDK
bash
node examples/sdk-quickstart.mjsRead examples/sdk-quickstart.mjs. It declares an authority, authorizes a request, executes it through the boundary, records evidence, and verifies the ledger. SDK guide explains each step.
4. Run the conformance suite
bash
node apps/cli/dist/bin.js conformance run conformanceExpected: 16/16 cases passed. These fixtures define what a correct implementation must produce.
5. Try the CLI
bash
node apps/cli/dist/bin.js help
node apps/api/dist/keygen.js ./keys engine # writes keys/engine.pem (private) and keys/engine.public.jsonKeep private keys out of version control. ./keys is not ignored by default; add it to your own .gitignore.
6. Run the server (optional)
See Installation for configuration and Docker. The server starts with no connectors, so executions are refused until you wire one in.
Next
- Integration guide: how an application uses DIP.
- Verification: checking evidence on its own.