diff --git a/package-lock.json b/package-lock.json index 6ca59926..51379bb8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@identity.com/credential-commons", - "version": "1.1.4", + "version": "1.1.5", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -414,35 +414,15 @@ } }, "@identity.com/uca": { - "version": "1.0.21", - "resolved": "https://registry.npmjs.org/@identity.com/uca/-/uca-1.0.21.tgz", - "integrity": "sha512-jKAPhIgbFoNNN3qM+Acb9U0nNVg2vIqvjqBFT7GpVfK5N8PcfhJ32PrE9tOZmFw+/8DojS5uvTwxQr2LpOI67A==", + "version": "1.0.22", + "resolved": "https://registry.npmjs.org/@identity.com/uca/-/uca-1.0.22.tgz", + "integrity": "sha512-QgMdw3lVeLMfKJIwiZT+SZAlU7uR7hWvWx6IGEWSWdMBKfxUH28VlwNXQwxlykXtkZdLfgIkonNT5yA4rI3mug==", "requires": { "flat": "^4.1.0", "lodash": "^4.17.11", "unix-timestamp": "^0.2.0", - "uuid": "^3.3.2", + "uuid": "^8.3.2", "winston": "^3.1.0" - }, - "dependencies": { - "flat": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", - "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", - "requires": { - "is-buffer": "~2.0.3" - } - }, - "is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==" - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" - } } }, "@jest/console": { @@ -4981,14 +4961,12 @@ "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "fast-levenshtein": { "version": "2.0.6", @@ -5088,9 +5066,19 @@ } }, "flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==" + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", + "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", + "requires": { + "is-buffer": "~2.0.3" + }, + "dependencies": { + "is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==" + } + } }, "flat-cache": { "version": "1.3.4", @@ -5322,7 +5310,26 @@ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", "requires": { + "ajv": "^6.12.3", "har-schema": "^2.0.0" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + } } }, "has": { @@ -10896,9 +10903,8 @@ "dev": true }, "sjcl": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/sjcl/-/sjcl-1.0.8.tgz", - "integrity": "sha512-LzIjEQ0S0DpIgnxMEayM1rq9aGwGRG4OnZhCdjx7glTaJtf4zRfpg87ImfjSJjoW9vKpagd82McDOwbRT5kQKQ==" + "version": "github:civicteam/sjcl#74fcc71a486a41d39200767d9235f6eac9e51f26", + "from": "github:civicteam/sjcl#v1.0.8-ecc" }, "slash": { "version": "1.0.0", @@ -11705,7 +11711,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, "requires": { "punycode": "^2.1.0" } diff --git a/package.json b/package.json index 5d94f0c2..43824c0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@identity.com/credential-commons", - "version": "1.1.4", + "version": "1.1.5", "author": "Identity.com Community", "license": "MIT", "description": "Verifiable Credential and Attestation Library", @@ -63,7 +63,7 @@ "ajv": "^7.0.3" }, "dependencies": { - "@identity.com/uca": "^1.0.21", + "@identity.com/uca": "^1.0.22", "babel-runtime": "^6.26.0", "bitcoinjs-lib": "git+https://github.com/dabura667/bitcoinjs-lib.git#bcash330", "bluebird": "^3.7.2", @@ -74,7 +74,7 @@ "cross-env": "^7.0.3", "dotenv": "^8.2.0", "figlet": "^1.5.0", - "flat": "^5.0.2", + "flat": "^4.1.0", "inquirer": "^7.3.3", "json-format": "^1.0.1", "lodash": "^4.17.20", @@ -88,7 +88,7 @@ "request-promise-native": "^1.0.9", "shelljs": "^0.8.4", "sift": "^13.5.0", - "sjcl": "^1.0.7", + "sjcl": "github:civicteam/sjcl#v1.0.8-ecc", "type-of-is": "^3.5.1", "unix-timestamp": "^0.2.0", "uuid": "^8.3.2", diff --git a/src/creds/VerifiableCredential.js b/src/creds/VerifiableCredential.js index cb198ecc..a2fcc8fa 100644 --- a/src/creds/VerifiableCredential.js +++ b/src/creds/VerifiableCredential.js @@ -539,7 +539,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, ucas, * @return true or false for the validation */ this.verifySignature = (pinnedPubKey) => { - if (this.proof.type === 'transient') { + if (this.proof.anchor.type === 'transient') { return true; } return services.container.AnchorService.verifySignature(this.proof, pinnedPubKey);