credo-ts-indy-vdr-proxy-server 0.1.0 → 0.1.2
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 +4 -4
- package/build/agent.js +2 -0
- package/build/agent.js.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Credo Indy VDR Proxy Server
|
|
2
2
|
|
|
3
3
|
A server that exposes a REST API to resolve objects in Indy networks. It is built in [NestJs](https://github.com/nestjs/nest) and based on [Credo](https://github.com/openwallet-foundation/credo-ts).
|
|
4
4
|
|
|
@@ -39,9 +39,9 @@ All endpoints use HTTP GET method.
|
|
|
39
39
|
|
|
40
40
|
- /did/{fully qualified or legacy Indy did}: resolve a DID Document
|
|
41
41
|
- /schema/{fully qualified AnonCreds schema ID}: resolve an AnonCreds Schema
|
|
42
|
-
- /credential-definition/{fully qualified AnonCreds credential definition ID}: resolve an AnonCreds Credential Definition
|
|
43
|
-
- /revocation-registry-definition/{fully qualified AnonCreds revocation registry definition ID}: resolve an AnonCreds Revocation Registry Definition
|
|
44
|
-
- /revocation-status-list/{fully qualified AnonCreds revocation registry definition ID}/{timestamp}: resolve an AnonCreds Revocation Status List
|
|
42
|
+
- /credential-definition/{fully qualified or legacy AnonCreds credential definition ID}: resolve an AnonCreds Credential Definition
|
|
43
|
+
- /revocation-registry-definition/{fully qualified or legacy AnonCreds revocation registry definition ID}: resolve an AnonCreds Revocation Registry Definition
|
|
44
|
+
- /revocation-status-list/{fully qualified or legacy AnonCreds revocation registry definition ID}/{timestamp}: resolve an AnonCreds Revocation Status List
|
|
45
45
|
|
|
46
46
|
The response for each follows the format used in `@credo-ts/anoncreds` module. It's a JSON containing three elements:
|
|
47
47
|
|
package/build/agent.js
CHANGED
|
@@ -18,6 +18,8 @@ function setupAgent(options) {
|
|
|
18
18
|
id: "indy-vdr-proxy",
|
|
19
19
|
key: "indy-vdr-proxy",
|
|
20
20
|
},
|
|
21
|
+
autoUpdateStorageOnStartup: true,
|
|
22
|
+
backupBeforeStorageUpdate: false,
|
|
21
23
|
logger: (_a = options.logger) !== null && _a !== void 0 ? _a : new core_1.ConsoleLogger(core_1.LogLevel.off),
|
|
22
24
|
},
|
|
23
25
|
dependencies: node_1.agentDependencies,
|
package/build/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":";;;AAAA,yCAAmF;AACnF,yCAAkD;AAClD,2CAA6C;AAC7C,mDAAqD;AACrD,iDAAsH;AACtH,oEAAyD;AACzD,wEAA4D;AAC5D,kEAAsD;AAItD,SAAgB,UAAU,CAAC,OAAmF;;IAC5G,OAAO,IAAI,YAAK,CAAC;QACf,MAAM,EAAE;YACN,KAAK,EAAE,gBAAgB;YACvB,YAAY,EAAE;gBACZ,EAAE,EAAE,gBAAgB;gBACpB,GAAG,EAAE,gBAAgB;aACtB;YACD,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,IAAI,oBAAa,CAAC,eAAQ,CAAC,GAAG,CAAC;SAC1D;QACD,YAAY,EAAE,wBAAiB;QAC/B,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,QAAQ,CAAC;KACvD,CAAC,CAAA;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":";;;AAAA,yCAAmF;AACnF,yCAAkD;AAClD,2CAA6C;AAC7C,mDAAqD;AACrD,iDAAsH;AACtH,oEAAyD;AACzD,wEAA4D;AAC5D,kEAAsD;AAItD,SAAgB,UAAU,CAAC,OAAmF;;IAC5G,OAAO,IAAI,YAAK,CAAC;QACf,MAAM,EAAE;YACN,KAAK,EAAE,gBAAgB;YACvB,YAAY,EAAE;gBACZ,EAAE,EAAE,gBAAgB;gBACpB,GAAG,EAAE,gBAAgB;aACtB;YACD,0BAA0B,EAAE,IAAI;YAChC,yBAAyB,EAAE,KAAK;YAChC,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,IAAI,oBAAa,CAAC,eAAQ,CAAC,GAAG,CAAC;SAC1D;QACD,YAAY,EAAE,wBAAiB;QAC/B,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,QAAQ,CAAC;KACvD,CAAC,CAAA;AACJ,CAAC;AAfD,gCAeC;AAED,MAAM,2BAA2B,GAAG,CAAC,QAAqD,EAAE,EAAE;IAC5F,OAAO;QACL,KAAK,EAAE,IAAI,mBAAW,CAAC,EAAE,UAAU,EAAV,+BAAU,EAAE,CAAC;QACtC,SAAS,EAAE,IAAI,2BAAe,CAAC;YAC7B,UAAU,EAAE,CAAC,IAAI,mCAAwB,EAAE,CAAC;YAC5C,SAAS,EAAT,4BAAS;SACV,CAAC;QACF,IAAI,EAAE,IAAI,iBAAU,CAAC,EAAE,SAAS,EAAE,CAAC,IAAI,gCAAqB,EAAE,CAAC,EAAE,CAAC;QAClE,OAAO,EAAE,IAAI,wBAAa,CAAC;YACzB,OAAO,EAAP,yBAAO;YACP,QAAQ;SACT,CAAC;KACM,CAAA;AACZ,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "credo-ts-indy-vdr-proxy-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Indy VDR Proxy server based on credo-ts",
|
|
5
5
|
"author": "2060.io",
|
|
6
6
|
"homepage": "https://github.com/2060-io/credo-ts-indy-vdr-proxy",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@credo-ts/anoncreds": "
|
|
36
|
-
"@credo-ts/askar": "
|
|
37
|
-
"@credo-ts/core": "
|
|
38
|
-
"@credo-ts/indy-vdr": "
|
|
39
|
-
"@credo-ts/node": "
|
|
40
|
-
"@hyperledger/anoncreds-shared": "^0.2.
|
|
41
|
-
"@hyperledger/anoncreds-nodejs": "^0.2.
|
|
42
|
-
"@hyperledger/aries-askar-nodejs": "^0.2.
|
|
43
|
-
"@hyperledger/indy-vdr-nodejs": "^0.2.
|
|
35
|
+
"@credo-ts/anoncreds": "0.5.3",
|
|
36
|
+
"@credo-ts/askar": "0.5.3",
|
|
37
|
+
"@credo-ts/core": "0.5.3",
|
|
38
|
+
"@credo-ts/indy-vdr": "0.5.3",
|
|
39
|
+
"@credo-ts/node": "0.5.3",
|
|
40
|
+
"@hyperledger/anoncreds-shared": "^0.2.2",
|
|
41
|
+
"@hyperledger/anoncreds-nodejs": "^0.2.2",
|
|
42
|
+
"@hyperledger/aries-askar-nodejs": "^0.2.1",
|
|
43
|
+
"@hyperledger/indy-vdr-nodejs": "^0.2.2",
|
|
44
44
|
"@nestjs/common": "^9.0.0",
|
|
45
45
|
"@nestjs/core": "^9.0.0",
|
|
46
46
|
"@nestjs/platform-express": "^9.0.0",
|