-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: daf-resolver, daf-resolver-universal
- Loading branch information
1 parent
59237e8
commit 2b2c00f
Showing
30 changed files
with
1,102 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,61 @@ | ||
# DAF command line tool | ||
# DAF command line interface | ||
|
||
## Install | ||
|
||
``` | ||
npm -g i daf-cli | ||
``` | ||
|
||
## Configuration | ||
ENV | Default | Description | ||
---|---|--- | ||
`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_ENCRYPTION_STORE` | `~/.daf/encryption-store.json` | Encryption keyPair storage. Used for DIDComm | ||
`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 | ||
|
||
## Usage | ||
|
||
``` | ||
Usage: daf [options] [command] | ||
Options: | ||
-h, --help output usage information | ||
Commands: | ||
identity-manager [options] Manage identities | ||
resolve <did> Resolve DID Document | ||
``` | ||
|
||
### Identity manager | ||
|
||
``` | ||
daf identity-manager -h | ||
Usage: daf identity-manager [options] | ||
Manage identities | ||
Options: | ||
-l, --list List managed identities | ||
-t, --types List available identity controller types | ||
-c, --create <type> Create identity using <type> identity controller | ||
-d, --delete <did> Create identity using <type> identity controller | ||
-h, --help output usage information | ||
``` | ||
|
||
|
||
### DID Document resolver | ||
|
||
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env node | ||
|
||
require('../build/cli') |
Oops, something went wrong.