@bedrock/vc-verifier 18.1.0 → 19.0.0
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/lib/config.js +4 -1
- package/lib/suites.js +22 -1
- package/package.json +7 -3
package/lib/config.js
CHANGED
package/lib/suites.js
CHANGED
|
@@ -2,20 +2,35 @@
|
|
|
2
2
|
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
import * as bedrock from '@bedrock/core';
|
|
5
|
+
import {
|
|
6
|
+
createVerifyCryptosuite as createEcdsaSd2023VerifyCryptosuite
|
|
7
|
+
} from '@digitalbazaar/ecdsa-sd-2023-cryptosuite';
|
|
5
8
|
import {DataIntegrityProof} from '@digitalbazaar/data-integrity';
|
|
6
9
|
import {
|
|
7
10
|
cryptosuite as ecdsa2019CryptoSuite
|
|
8
11
|
} from '@digitalbazaar/ecdsa-2019-cryptosuite';
|
|
12
|
+
import {
|
|
13
|
+
cryptosuite as ecdsaRdfc2019CryptoSuite
|
|
14
|
+
} from '@digitalbazaar/ecdsa-rdfc-2019-cryptosuite';
|
|
9
15
|
import {Ed25519Signature2018} from '@digitalbazaar/ed25519-signature-2018';
|
|
10
16
|
import {Ed25519Signature2020} from '@digitalbazaar/ed25519-signature-2020';
|
|
11
17
|
import {
|
|
12
18
|
cryptosuite as eddsa2022CryptoSuite
|
|
13
19
|
} from '@digitalbazaar/eddsa-2022-cryptosuite';
|
|
20
|
+
import {
|
|
21
|
+
cryptosuite as eddsaRdfc2022CryptoSuite
|
|
22
|
+
} from '@digitalbazaar/eddsa-rdfc-2022-cryptosuite';
|
|
14
23
|
|
|
15
24
|
// DataIntegrityProof should work for multiple cryptosuites
|
|
16
25
|
const SUPPORTED_CRYPTOSUITES = new Map([
|
|
26
|
+
['ecdsa-rdfc-2019', ecdsaRdfc2019CryptoSuite],
|
|
27
|
+
['eddsa-rdfc-2022', eddsaRdfc2022CryptoSuite],
|
|
28
|
+
['ecdsa-sd-2023', createEcdsaSd2023VerifyCryptosuite()]
|
|
29
|
+
]);
|
|
30
|
+
|
|
31
|
+
const SUPPORTED_LEGACY_CRYPTOSUITES = new Map([
|
|
17
32
|
['ecdsa-2019', ecdsa2019CryptoSuite],
|
|
18
|
-
['eddsa-2022', eddsa2022CryptoSuite]
|
|
33
|
+
['eddsa-2022', eddsa2022CryptoSuite],
|
|
19
34
|
]);
|
|
20
35
|
|
|
21
36
|
const SUPPORTED_LEGACY_SUITES = new Map([
|
|
@@ -31,6 +46,12 @@ export function createSuites() {
|
|
|
31
46
|
if(LegacySuite) {
|
|
32
47
|
return new LegacySuite();
|
|
33
48
|
}
|
|
49
|
+
const LegacyCryptosuite = SUPPORTED_LEGACY_CRYPTOSUITES.get(supportedSuite);
|
|
50
|
+
if(LegacyCryptosuite) {
|
|
51
|
+
return new DataIntegrityProof({
|
|
52
|
+
cryptosuite: LegacyCryptosuite, legacyContext: true
|
|
53
|
+
});
|
|
54
|
+
}
|
|
34
55
|
const cryptosuite = SUPPORTED_CRYPTOSUITES.get(supportedSuite);
|
|
35
56
|
if(cryptosuite) {
|
|
36
57
|
return new DataIntegrityProof({cryptosuite});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock/vc-verifier",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bedrock VC Verifier",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -25,11 +25,14 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/digitalbazaar/bedrock-vc-verifier",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@digitalbazaar/data-integrity": "^
|
|
28
|
+
"@digitalbazaar/data-integrity": "^2.0.0",
|
|
29
29
|
"@digitalbazaar/ecdsa-2019-cryptosuite": "^2.0.0",
|
|
30
|
+
"@digitalbazaar/ecdsa-rdfc-2019-cryptosuite": "^1.0.1",
|
|
31
|
+
"@digitalbazaar/ecdsa-sd-2023-cryptosuite": "^3.0.0",
|
|
30
32
|
"@digitalbazaar/ed25519-signature-2018": "^4.0.0",
|
|
31
33
|
"@digitalbazaar/ed25519-signature-2020": "^5.0.0",
|
|
32
34
|
"@digitalbazaar/eddsa-2022-cryptosuite": "^1.0.0",
|
|
35
|
+
"@digitalbazaar/eddsa-rdfc-2022-cryptosuite": "^1.0.1",
|
|
33
36
|
"@digitalbazaar/vc": "^6.0.0",
|
|
34
37
|
"@digitalbazaar/vc-revocation-list": "^6.0.0",
|
|
35
38
|
"@digitalbazaar/vc-status-list": "^7.0.0",
|
|
@@ -40,9 +43,10 @@
|
|
|
40
43
|
"serialize-error": "^11.0.0"
|
|
41
44
|
},
|
|
42
45
|
"peerDependencies": {
|
|
46
|
+
"@bedrock/app-identity": "^4.0.0",
|
|
43
47
|
"@bedrock/core": "^6.0.1",
|
|
44
48
|
"@bedrock/credentials-context": "^4.0.0",
|
|
45
|
-
"@bedrock/data-integrity-context": "^
|
|
49
|
+
"@bedrock/data-integrity-context": "^3.0.0",
|
|
46
50
|
"@bedrock/did-context": "^5.0.0",
|
|
47
51
|
"@bedrock/did-io": "^10.1.0",
|
|
48
52
|
"@bedrock/express": "^8.0.0",
|