@credo-ts/anoncreds 0.5.1-alpha.57 → 0.5.1-alpha.59
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.
|
@@ -4,7 +4,10 @@ exports.proofRequestUsesUnqualifiedIdentifiers = void 0;
|
|
|
4
4
|
const indyIdentifiers_1 = require("./indyIdentifiers");
|
|
5
5
|
function proofRequestUsesUnqualifiedIdentifiers(proofRequest) {
|
|
6
6
|
// We assume that if any identifier is unqualified, all of them are unqualified as well
|
|
7
|
-
return
|
|
7
|
+
return [
|
|
8
|
+
...Object.values(proofRequest.requested_attributes),
|
|
9
|
+
...Object.values(proofRequest.requested_predicates),
|
|
10
|
+
].some((attribute) => {
|
|
8
11
|
var _a;
|
|
9
12
|
return (_a = attribute.restrictions) === null || _a === void 0 ? void 0 : _a.some((restriction) => (restriction.cred_def_id && (0, indyIdentifiers_1.isUnqualifiedCredentialDefinitionId)(restriction.cred_def_id)) ||
|
|
10
13
|
(restriction.schema_id && (0, indyIdentifiers_1.isUnqualifiedSchemaId)(restriction.schema_id)) ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proofRequest.js","sourceRoot":"","sources":["../../src/utils/proofRequest.ts"],"names":[],"mappings":";;;AAEA,uDAK0B;AAE1B,SAAgB,sCAAsC,CAAC,YAAmC;IACxF,uFAAuF;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE;;
|
|
1
|
+
{"version":3,"file":"proofRequest.js","sourceRoot":"","sources":["../../src/utils/proofRequest.ts"],"names":[],"mappings":";;;AAEA,uDAK0B;AAE1B,SAAgB,sCAAsC,CAAC,YAAmC;IACxF,uFAAuF;IACvF,OAAO;QACL,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAAC;QACnD,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAAC;KACpD,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE;;QACnB,OAAA,MAAA,SAAS,CAAC,YAAY,0CAAE,IAAI,CAC1B,CAAC,WAAW,EAAE,EAAE,CACd,CAAC,WAAW,CAAC,WAAW,IAAI,IAAA,qDAAmC,EAAC,WAAW,CAAC,WAAW,CAAC,CAAC;YACzF,CAAC,WAAW,CAAC,SAAS,IAAI,IAAA,uCAAqB,EAAC,WAAW,CAAC,SAAS,CAAC,CAAC;YACvE,CAAC,WAAW,CAAC,UAAU,IAAI,IAAA,sCAAoB,EAAC,WAAW,CAAC,UAAU,CAAC,CAAC;YACxE,CAAC,WAAW,CAAC,SAAS,IAAI,IAAA,sCAAoB,EAAC,WAAW,CAAC,SAAS,CAAC,CAAC;YACtE,CAAC,WAAW,CAAC,iBAAiB,IAAI,IAAA,sCAAoB,EAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;YACtF,CAAC,WAAW,CAAC,gBAAgB,IAAI,IAAA,sCAAoB,EAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;YACpF,CAAC,WAAW,CAAC,UAAU,IAAI,IAAA,mDAAiC,EAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CACxF,CAAA;KAAA,CACF,CAAA;AACH,CAAC;AAjBD,wFAiBC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@credo-ts/anoncreds",
|
|
3
3
|
"main": "build/index",
|
|
4
4
|
"types": "build/index",
|
|
5
|
-
"version": "0.5.1-alpha.
|
|
5
|
+
"version": "0.5.1-alpha.59+34257eb9",
|
|
6
6
|
"files": [
|
|
7
7
|
"build"
|
|
8
8
|
],
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@astronautlabs/jsonpath": "^1.1.2",
|
|
28
|
-
"@credo-ts/core": "0.5.1-alpha.
|
|
28
|
+
"@credo-ts/core": "0.5.1-alpha.59+34257eb9",
|
|
29
29
|
"big-integer": "^1.6.51",
|
|
30
30
|
"bn.js": "^5.2.1",
|
|
31
31
|
"class-transformer": "0.5.1",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"reflect-metadata": "^0.1.13"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@credo-ts/node": "0.5.1-alpha.
|
|
36
|
+
"@credo-ts/node": "0.5.1-alpha.59+34257eb9",
|
|
37
37
|
"@hyperledger/anoncreds-nodejs": "^0.2.2",
|
|
38
38
|
"@hyperledger/anoncreds-shared": "^0.2.2",
|
|
39
39
|
"rimraf": "^4.4.0",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@hyperledger/anoncreds-shared": "^0.2.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "34257eb9c0e6d2ccd2315db6b616515202d599f7"
|
|
47
47
|
}
|