@cheqd/did-provider-cheqd 1.6.2 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -12
- package/build/agent/ICheqd.d.ts.map +1 -1
- package/build/agent/ICheqd.js +12 -3
- package/build/agent/ICheqd.js.map +1 -1
- package/package.json +2 -2
- package/plugin.schema.json +12 -3
- package/src/agent/ICheqd.ts +12 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Veramo SDK plugin for cheqd DID method
|
|
2
2
|
|
|
3
|
-
[](https://img.shields.io/github/workflow/status/cheqd/did-provider-cheqd/Workflow%20Dispatch/main?label=workflows&style=flat-square)](https://github.com/cheqd/did-provider-cheqd/actions/workflows/dispatch.yml) [](https://www.npmjs.com/package/@cheqd/did-provider-cheqd)
|
|
4
4
|
|
|
5
5
|
[](https://github.com/cheqd/did-provider-cheqd/releases/latest) 
|
|
6
6
|
|
|
@@ -22,28 +22,48 @@ The package's core functionality is borrowed from [Veramo Core NPM package](http
|
|
|
22
22
|
|
|
23
23
|
New DID creation can also be done by passing a full-body DIDoc payload in JSON, rather than having to assemble the document field-by-field.
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## 🧑💻🛠 Quick Start
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
These quick start steps provide the *minimal* configuration that you need to set Veramo CLI for use with cheqd.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
### 1. Install Veramo CLI and clone this repo
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Dependencies can be installed [using NPM](https://docs.npmjs.com/cli/v8/commands) or similar package package managers using the `package.json` in this repository.
|
|
31
|
+
This step is exactly [as described in Veramo CLI docs](https://veramo.io/docs/veramo_agent/cli_tool/):
|
|
34
32
|
|
|
35
33
|
```bash
|
|
34
|
+
npm i @veramo/cli -g
|
|
35
|
+
git clone https://github.com/cheqd/did-provider-cheqd.git
|
|
36
36
|
npm install
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
###
|
|
39
|
+
### 2. Generate a new local database encryption key
|
|
40
|
+
|
|
41
|
+
By default, the `did-provider-cheqd` package has a default SQLite database password, but it's a good idea to modify and change this to a new key unique to your install.
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
$ veramo config gen-key
|
|
45
|
+
|
|
46
|
+
X25519 raw private key (hex encoded):
|
|
47
|
+
|
|
48
|
+
4a5aeb56c7956dd6f3312e7094130a03afc060b95621fa3a86577aaf2b67cc1d
|
|
49
|
+
|
|
50
|
+
You can use this key with @veramo/kms-local#SecretBox
|
|
51
|
+
or replace the default agent.yml 'dbEncryptionKey' constant
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Take the key generated and replace the value under `dbEncryptionKey` in the [`agent.yml`](https://github.com/cheqd/did-provider-cheqd/blob/main/agent.yml) file.
|
|
55
|
+
|
|
56
|
+
### 3. Configure your cheqd/Cosmos account keys and RPC endpoints
|
|
57
|
+
|
|
58
|
+
Configure the following properties under the `didManager` section:
|
|
40
59
|
|
|
41
|
-
|
|
60
|
+
1. `cosmosPayerMnemonic`: [Mnemonic associated with your cheqd/Comsos SDK account](https://docs.cheqd.io/node/docs/cheqd-cli/cheqd-cli-key-management). This is only stored locally, and the mnemonic is used to reconstitute the account address and keys used to pay for the transaction.
|
|
61
|
+
2. `rpcUrl`: For both `did:cheqd:mainnet:` as well as `did:cheqd:testnet:` sections, you can specify a Cosmos SDK RPC endpoint. This endpoint is where transactions are sent to. By default, this is populated with `rpc.cheqd.net` (for *mainnet*) and `rpc.cheqd.network` (for *testnet*), but you can can modify this to [a different hosted RPC endpoint for cheqd](https://cosmos.directory/cheqd/nodes) or even your own local/private RPC endpoint.
|
|
62
|
+
3. `defaultProvider` (optional): The default cheqd network is set to `did:cheqd:testnet` to allow developers to test out network functionality. However, if you prefer, you can switch this out to `did:cheqd:mainnet` instead.
|
|
42
63
|
|
|
43
|
-
|
|
64
|
+
## 📖 Documentation
|
|
44
65
|
|
|
45
|
-
|
|
46
|
-
2. `cosmosPayerMnemonic`: Mnemonic for the cheqd Cosmos account from which the fees for any transactions are paid.
|
|
66
|
+
[Tutorials, advanced configuration, and architecture for cheqd's Veramo plugin](https://docs.cheqd.io/identity/using-decentralised-identity-in-apps/veramo-sdk-for-cheqd) can be found on our [Identity Docs site](https://docs.cheqd.io/identity/).
|
|
47
67
|
|
|
48
68
|
## 💬 Community
|
|
49
69
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICheqd.d.ts","sourceRoot":"","sources":["../../src/agent/ICheqd.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACd,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAG5F,aAAK,QAAQ,GAAG,aAAa,CAAC,WAAW,CAAC,CAAA;AAC1C,aAAK,uBAAuB,GAAG;IAAE,MAAM,EAAE,iBAAiB,CAAC;IAAC,IAAI,EAAE,qBAAqB,CAAA;CAAE,CAAA;AAEzF,QAAA,MAAM,0BAA0B,0BAA0B,CAAA;AAC1D,QAAA,MAAM,0BAA0B,0BAA0B,CAAA;AAC1D,QAAA,MAAM,wBAAwB,wBAAwB,CAAA;AACtD,QAAA,MAAM,yBAAyB,8BAA8B,CAAA;AAE7D,MAAM,WAAW,MAAO,SAAQ,gBAAgB;IAC5C,CAAC,0BAA0B,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAA;IACtG,CAAC,0BAA0B,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E,CAAC,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AAO,CAAC,IAAI,CAAC,CAAC;IAC9E,CAAC,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC/F,CAAC,yBAAyB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAA;CAChG;AAED,qBAAa,KAAM,YAAW,YAAY;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CA2EnC;IACD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBAEjB,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE;YAexB,gBAAgB;YA4BhB,gBAAgB;YA4BhB,cAAc;YAsCd,oBAAoB;CASrC"}
|
package/build/agent/ICheqd.js
CHANGED
|
@@ -58,19 +58,28 @@ class Cheqd {
|
|
|
58
58
|
"type": "object",
|
|
59
59
|
"description": "A cheqdGenerateDidDocArgs object as any for extensibility"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"args"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"returnType": {
|
|
67
|
+
"type": "object"
|
|
62
68
|
}
|
|
63
69
|
},
|
|
64
|
-
"
|
|
70
|
+
"cheqdGenerateIdentityKeys": {
|
|
65
71
|
"description": "Generate a new key pair in hex to use with `createIdentifier`",
|
|
66
72
|
"arguments": {
|
|
67
73
|
"type": "object",
|
|
68
74
|
"properties": {
|
|
69
75
|
"args": {
|
|
70
76
|
"type": "object",
|
|
71
|
-
"description": "A
|
|
77
|
+
"description": "A cheqdGenerateIdentityKeysArgs object as any for extensibility"
|
|
72
78
|
}
|
|
73
79
|
}
|
|
80
|
+
},
|
|
81
|
+
"returnType": {
|
|
82
|
+
"type": "object"
|
|
74
83
|
}
|
|
75
84
|
}
|
|
76
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICheqd.js","sourceRoot":"","sources":["../../src/agent/ICheqd.ts"],"names":[],"mappings":";;;AACA,oCAAyI;AAUzI,6CAAkD;AAKlD,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AAC1D,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AAC1D,MAAM,wBAAwB,GAAG,qBAAqB,CAAA;AACtD,MAAM,yBAAyB,GAAG,2BAA2B,CAAA;AAS7D,MAAa,KAAK;
|
|
1
|
+
{"version":3,"file":"ICheqd.js","sourceRoot":"","sources":["../../src/agent/ICheqd.ts"],"names":[],"mappings":";;;AACA,oCAAyI;AAUzI,6CAAkD;AAKlD,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AAC1D,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AAC1D,MAAM,wBAAwB,GAAG,qBAAqB,CAAA;AACtD,MAAM,yBAAyB,GAAG,2BAA2B,CAAA;AAS7D,MAAa,KAAK;IAgFd,YAAY,IAA0B;QA9E7B,WAAM,GAAwB;YACnC,YAAY,EAAE;gBACV,SAAS,EAAE,EAAE;gBACb,SAAS,EAAE;oBACP,uBAAuB,EAAE;wBACrB,aAAa,EAAE,yBAAyB;wBACxC,WAAW,EAAE;4BACT,MAAM,EAAE,QAAQ;4BAChB,YAAY,EAAE;gCACV,MAAM,EAAE;oCACJ,MAAM,EAAE,QAAQ;oCAChB,aAAa,EAAE,6DAA6D;iCAC/E;6BACJ;4BACD,UAAU,EAAE;gCACR,MAAM;6BACT;yBACJ;wBACD,YAAY,EAAE;4BACV,MAAM,EAAE,QAAQ;yBACnB;qBACJ;oBACD,uBAAuB,EAAE;wBACrB,aAAa,EAAE,sBAAsB;wBACrC,WAAW,EAAE;4BACT,MAAM,EAAE,QAAQ;4BAChB,YAAY,EAAE;gCACV,MAAM,EAAE;oCACJ,MAAM,EAAE,QAAQ;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CAAC,EAAE,CAAA;QAC3K,MAAM,gBAAgB,GAAG,IAAA,4BAAsB,EAAC,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,OAAO,EAAE,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;QACvI,MAAM,mBAAmB,GAAG,IAAA,iCAA2B,EAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAA;QAEtG,OAAO;YACH,MAAM,EAAE,IAAA,sBAAgB,EAAC,mBAAmB,EAAE,CAAC,gBAAgB,CAAC,CAAC;YACjE,IAAI,EAAE;gBACF,YAAY,EAAE,UAAU,CAAC,SAAS;gBAClC,aAAa,EAAE,UAAU,CAAC,UAAU;gBACpC,GAAG,EAAE,UAAU,CAAC,SAAS;gBACzB,IAAI,EAAE,SAAS;aAClB;SACJ,CAAA;IACL,CAAC;IAED,6DAA6D;IACrD,KAAK,CAAC,oBAAoB,CAAC,IAAS,EAAE,OAAiB;QAC3D,MAAM,OAAO,GAAG,IAAA,sBAAgB,GAAE,CAAA;QAClC,OAAO;YACH,YAAY,EAAE,OAAO,CAAC,SAAS;YAC/B,aAAa,EAAE,OAAO,CAAC,UAAU;YACjC,GAAG,EAAE,OAAO,CAAC,SAAS;YACtB,IAAI,EAAE,SAAS;SAClB,CAAA;IACL,CAAC;CACJ;AAtMD,sBAsMC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cheqd/did-provider-cheqd",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"description": "Veramo SDK plugin for the did:cheqd DID method",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@cheqd/sdk": "^1.2.8",
|
|
72
|
-
"@cheqd/ts-proto": "^1.0.
|
|
72
|
+
"@cheqd/ts-proto": "^1.0.12",
|
|
73
73
|
"@cosmjs/proto-signing": "^0.28.11",
|
|
74
74
|
"@cosmjs/utils": "^0.28.11",
|
|
75
75
|
"@veramo/core": "^3.1.6-next.160",
|
package/plugin.schema.json
CHANGED
|
@@ -48,19 +48,28 @@
|
|
|
48
48
|
"type": "object",
|
|
49
49
|
"description": "A cheqdGenerateDidDocArgs object as any for extensibility"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"args"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"returnType": {
|
|
57
|
+
"type": "object"
|
|
52
58
|
}
|
|
53
59
|
},
|
|
54
|
-
"
|
|
60
|
+
"cheqdGenerateIdentityKeys": {
|
|
55
61
|
"description": "Generate a new key pair in hex to use with `createIdentifier`",
|
|
56
62
|
"arguments": {
|
|
57
63
|
"type": "object",
|
|
58
64
|
"properties": {
|
|
59
65
|
"args": {
|
|
60
66
|
"type": "object",
|
|
61
|
-
"description": "A
|
|
67
|
+
"description": "A cheqdGenerateIdentityKeysArgs object as any for extensibility"
|
|
62
68
|
}
|
|
63
69
|
}
|
|
70
|
+
},
|
|
71
|
+
"returnType": {
|
|
72
|
+
"type": "object"
|
|
64
73
|
}
|
|
65
74
|
}
|
|
66
75
|
}
|
package/src/agent/ICheqd.ts
CHANGED
|
@@ -77,19 +77,28 @@ export class Cheqd implements IAgentPlugin {
|
|
|
77
77
|
"type": "object",
|
|
78
78
|
"description": "A cheqdGenerateDidDocArgs object as any for extensibility"
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"args"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"returnType": {
|
|
86
|
+
"type": "object"
|
|
81
87
|
}
|
|
82
88
|
},
|
|
83
|
-
"
|
|
89
|
+
"cheqdGenerateIdentityKeys": {
|
|
84
90
|
"description": "Generate a new key pair in hex to use with `createIdentifier`",
|
|
85
91
|
"arguments": {
|
|
86
92
|
"type": "object",
|
|
87
93
|
"properties": {
|
|
88
94
|
"args": {
|
|
89
95
|
"type": "object",
|
|
90
|
-
"description": "A
|
|
96
|
+
"description": "A cheqdGenerateIdentityKeysArgs object as any for extensibility"
|
|
91
97
|
}
|
|
92
98
|
}
|
|
99
|
+
},
|
|
100
|
+
"returnType": {
|
|
101
|
+
"type": "object"
|
|
93
102
|
}
|
|
94
103
|
}
|
|
95
104
|
}
|