Skip to content

Commit

Permalink
feat: add eip712 issuer to CLI and default agent config (#1065)
Browse files Browse the repository at this point in the history
* feat: add eip712 issuer to CLI and default agent config

* feat: add eip712 proof format to credential CLI command

* chore: update CLI readme
  • Loading branch information
nickreynolds authored Nov 10, 2022
1 parent 5e18427 commit 33c7cee
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
17 changes: 17 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,20 @@ Commands:
dev Plugin developer tools
help [command] display help for command
```

## Developing

When developing in this package, take care to call the local veramo CLI package, rather than the globally installed one.

For example, rather than doing this:

```
veramo credential create
```

you will need to do this:

```
yarn build
yarn veramo credential create
```
2 changes: 2 additions & 0 deletions packages/cli/default/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ constants:
- didManagerGetProviders
- didManagerFind
- didManagerGet
- didManagerGetByAlias
- didManagerCreate
- didManagerGetOrCreate
- didManagerImport
Expand Down Expand Up @@ -280,6 +281,7 @@ agent:
- $require: '@veramo/did-comm#DIDComm'
- $require: '@veramo/credential-w3c#CredentialPlugin'
- $ref: /credentialIssuerLD
- $require: '@veramo/credential-eip712#CredentialIssuerEIP712'
- $require: '@veramo/selective-disclosure#SelectiveDisclosure'
- $require: '@veramo/data-store#DataStore'
$args:
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
"scripts": {
"build": "tsc",
"watch": "tsc -b --watch",
"update-veramo-next": "yarn add @veramo/core@next @veramo/discovery@next @veramo/remote-client@next @veramo/remote-server@next @veramo/did-provider-key@next @veramo/did-resolver@next @veramo/did-jwt@next @veramo/credential-w3c@next @veramo/did-provider-ethr@next @veramo/did-provider-web@next @veramo/did-comm@next @veramo/kms-local@next @veramo/selective-disclosure@next @veramo/data-store@next @veramo/key-manager@next @veramo/message-handler@next @veramo/did-manager@next @veramo/url-handler@next",
"update-veramo-latest": "yarn add @veramo/core@latest @veramo/discovery@latest @veramo/remote-client@latest @veramo/remote-server@latest @veramo/did-provider-key@latest @veramo/did-resolver@latest @veramo/did-jwt@latest @veramo/credential-w3c@latest @veramo/did-provider-ethr@latest @veramo/did-provider-web@latest @veramo/did-comm@latest @veramo/kms-local@latest @veramo/selective-disclosure@latest @veramo/data-store@latest @veramo/key-manager@latest @veramo/message-handler@latest @veramo/did-manager@latest @veramo/url-handler@latest"
"update-veramo-next": "yarn add @veramo/core@next @veramo/discovery@next @veramo/remote-client@next @veramo/remote-server@next @veramo/did-provider-key@next @veramo/did-resolver@next @veramo/did-jwt@next @veramo/credential-w3c@next @veramo/did-provider-ethr@next @veramo/did-provider-web@next @veramo/did-comm@next @veramo/kms-local@next @veramo/selective-disclosure@next @veramo/data-store@next @veramo/key-manager@next @veramo/message-handler@next @veramo/did-manager@next @veramo/url-handler@next @veramo/credential-eip712@next",
"update-veramo-latest": "yarn add @veramo/core@latest @veramo/discovery@latest @veramo/remote-client@latest @veramo/remote-server@latest @veramo/did-provider-key@latest @veramo/did-resolver@latest @veramo/did-jwt@latest @veramo/credential-w3c@latest @veramo/did-provider-ethr@latest @veramo/did-provider-web@latest @veramo/did-comm@latest @veramo/kms-local@latest @veramo/selective-disclosure@latest @veramo/data-store@latest @veramo/key-manager@latest @veramo/message-handler@latest @veramo/did-manager@latest @veramo/url-handler@latest @veramo/credential-eip712@latest"
},
"dependencies": {
"@microsoft/api-extractor": "7.25.0",
"@microsoft/api-extractor-model": "7.18.0",
"@types/blessed": "^0.1.17",
"@types/swagger-ui-express": "^4.1.3",
"@veramo/core": "^4.1.1",
"@veramo/credential-eip712": "^4.1.1",
"@veramo/credential-ld": "^4.1.1",
"@veramo/credential-w3c": "^4.1.1",
"@veramo/data-store": "^4.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ credential
{
type: 'list',
name: 'proofFormat',
choices: ['jwt', 'lds'],
choices: ['jwt', 'lds', 'EthereumEip712Signature2021'],
message: 'Credential proofFormat',
},
{
Expand Down

0 comments on commit 33c7cee

Please sign in to comment.