Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add eip712 issuer to CLI and default agent config #1065

Merged
merged 3 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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