@ddsm/cli
v0.1.0
Published
DDSM CLI for development and testing
Downloads
76
Readme
@ddsm/cli
CLI and interactive REPL for the DDSM protocol. Issue tokens, advance them through transitions, verify proof chains, inspect manifests, and generate reconciliation batches.
Install
npm install -g @ddsm/cliREPL
Run ddsm with no arguments to start the interactive REPL:
$ ddsm
ddsm> helpAvailable commands: keygen, issue, advance, verify, manifest, reconcile, demo, help, clear, quit. Tab completion and command history are supported.
CLI
# Generate an Ed25519 key pair
ddsm keygen
# Issue a token
ddsm issue \
--manifest ./my-manifest.json \
--issuer did:web:example.com \
--subject did:web:learner.example.com \
--private-key <64-hex-key>
# Advance a token
ddsm advance \
--token ./token.json \
--transition complete \
--private-key <64-hex-key>
# Verify a token's proof chain
ddsm verify --token ./token.jsonPackages
| Package | Description |
|---|---|
| @ddsm/core | Protocol types and pure functions |
| @ddsm/processor | Stateful processor, signing, reconciliation |
| @ddsm/ledger-postgres | PostgreSQL LedgerAdapter |
| @ddsm/cli | This package |
