npm -g i daf-cli
- Identity manager
- List managed identities
- Create identity
- Delete identity
- List available identity controller types
- DID Document resolver
- Resolve using internal (JS) resolver
- Resolve using external universal resolver
- Services
- Sync latest messages (Trust Graph)
- Subscribe to new messages (Trust Graph)
- Verifiable Credentials
- Create Verifiable Credential
- Send Verifiable Credential (DIDComm / TrustGraph)
- Create Verifiable Presentation
- Send Verifiable Presentation (DIDComm / TrustGraph)
- Data Store Explorer
- List known identities
- List messages
- List credentials
- Selective Disclosure Request
- Create and send SDR
- Display received SDR
- Create and send VP as a selective disclosure response
Usage: daf [options] [command]
Options:
-h, --help output usage information
Commands:
identity-manager [options] Manage identities
resolve <did> Resolve DID Document
credential [options] Create W3C Verifiable Credential
presentation [options] Create W3C Verifiable Presentation
listen [options] Receive new messages and listen for new ones
data-explorer [options] Explore data store
graphql [options] GraphQL server
sdr [options] Create Selective Disclosure Request
msg <raw> Handle raw message (JWT)
Send:
DAF_TG_URI=https://custom-tge.eu.ngrok.io/graphql daf credential -s
Receive:
DEBUG=* DAF_TG_URI=https://custom-tge.eu.ngrok.io/graphql DAF_TG_WSURI=wss://custom-tge.eu.ngrok.io/graphql daf listen
Internal resolver (did-resolver
)
daf resolve did:web:uport.me
Universal resolver
DAF_UNIVERSAL_RESOLVER_URL=https://uniresolver.io/1.0/identifiers/ daf resolve did:github:gjgd
ENV | Default | Description |
---|---|---|
DEBUG |
undefined |
Use * to see all debug info. More options |
DAF_IDENTITY_STORE |
~/.daf/identity-store.json |
Identity keyPair storage |
DAF_DATA_STORE |
~/.daf/data-store.sqlite3 |
Sqlite3 database containing messages, credentials, presentations, etc. |
DAF_INFURA_ID |
5ffc47f65c4042ce847ef66a3fa70d4c |
Used for calls to the Ethereum blockchain |
DAF_UNIVERSAL_RESOLVER_URL |
undefined |
Example https://uniresolver.io/1.0/identifiers/ . If not provided - will use internal resolver |
DAF_TG_URI |
https://edge.uport.me/graphql |
Trust Graph Endpoint URL |
DAF_TG_WSURI |
undefined |
Trust Graph Endpoint WebSocket URL |