@digitalbazaar/ed25519-signature-2018 3.0.0 → 4.1.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/README.md +0 -1
- package/lib/Ed25519Signature2018.js +5 -12
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/digitalbazaar/ed25519-signature-2018/actions?query=workflow%3A%22Node.js+CI%22)
|
|
4
4
|
[](https://codecov.io/gh/digitalbazaar/ed25519-signature-2018)
|
|
5
|
-
[](https://david-dm.org/digitalbazaar/ed25519-signature-2018)
|
|
6
5
|
[](https://npm.im/digitalbazaar/ed25519-signature-2018)
|
|
7
6
|
|
|
8
7
|
> Ed25519Signature2018 Linked Data Proof suite for use with jsonld-signatures.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2024 Digital Bazaar, Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
import * as base58btc from 'base58-universal';
|
|
5
|
-
import jsonld from 'jsonld';
|
|
6
|
-
import {JwsLinkedDataSignature} from '@digitalbazaar/jws-linked-data-signature';
|
|
7
5
|
import {
|
|
8
6
|
Ed25519VerificationKey2018
|
|
9
7
|
} from '@digitalbazaar/ed25519-verification-key-2018';
|
|
10
8
|
import {
|
|
11
9
|
Ed25519VerificationKey2020
|
|
12
10
|
} from '@digitalbazaar/ed25519-verification-key-2020';
|
|
11
|
+
import jsonld from 'jsonld';
|
|
12
|
+
import {JwsLinkedDataSignature} from '@digitalbazaar/jws-linked-data-signature';
|
|
13
13
|
|
|
14
14
|
import ed25519Signature2018SuiteContext from 'ed25519-signature-2018-context';
|
|
15
15
|
import ed25519Signature2020SuiteContext from 'ed25519-signature-2020-context';
|
|
@@ -134,21 +134,14 @@ export class Ed25519Signature2018 extends JwsLinkedDataSignature {
|
|
|
134
134
|
* recommended to use one that provides static known documents, instead of
|
|
135
135
|
* fetching from the web) for returning contexts, controller documents,
|
|
136
136
|
* keys, and other relevant URLs needed for the proof.
|
|
137
|
-
* @param {Function} [options.expansionMap] - A custom expansion map that is
|
|
138
|
-
* passed to the JSON-LD processor; by default a function that will throw
|
|
139
|
-
* an error when unmapped properties are detected in the input, use `false`
|
|
140
|
-
* to turn this off and allow unmapped properties to be dropped or use a
|
|
141
|
-
* custom function.
|
|
142
137
|
*
|
|
143
138
|
* @returns {Promise<boolean>} Whether a match for the proof was found.
|
|
144
139
|
*/
|
|
145
|
-
async matchProof({proof, document, purpose, documentLoader
|
|
140
|
+
async matchProof({proof, document, purpose, documentLoader}) {
|
|
146
141
|
if(!_includesCompatibleContext({document})) {
|
|
147
142
|
return false;
|
|
148
143
|
}
|
|
149
|
-
return super.matchProof({
|
|
150
|
-
proof, document, purpose, documentLoader, expansionMap
|
|
151
|
-
});
|
|
144
|
+
return super.matchProof({proof, document, purpose, documentLoader});
|
|
152
145
|
}
|
|
153
146
|
}
|
|
154
147
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalbazaar/ed25519-signature-2018",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Ed25519Signature2018 Linked Data Proof suite for use with jsonld-signatures.",
|
|
5
5
|
"homepage": "https://github.com/digitalbazaar/ed25519-signature-2018",
|
|
6
6
|
"author": {
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@digitalbazaar/ed25519-verification-key-2018": "^4.0.0",
|
|
27
|
-
"@digitalbazaar/ed25519-verification-key-2020": "^4.
|
|
28
|
-
"@digitalbazaar/jws-linked-data-signature": "^
|
|
27
|
+
"@digitalbazaar/ed25519-verification-key-2020": "^4.2.0",
|
|
28
|
+
"@digitalbazaar/jws-linked-data-signature": "^3.0.0",
|
|
29
29
|
"base58-universal": "^2.0.0",
|
|
30
30
|
"ed25519-signature-2018-context": "^1.1.0",
|
|
31
31
|
"ed25519-signature-2020-context": "^1.1.0",
|
|
32
|
-
"jsonld": "^
|
|
32
|
+
"jsonld": "^8.3.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"c8": "^7.11.3",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"cross-env": "^7.0.3",
|
|
39
39
|
"did-context": "^3.1.1",
|
|
40
40
|
"eslint": "^8.17.0",
|
|
41
|
-
"eslint-config-digitalbazaar": "^
|
|
42
|
-
"eslint-plugin-jsdoc": "^
|
|
43
|
-
"eslint-plugin-unicorn": "^
|
|
44
|
-
"jsonld-signatures": "^
|
|
41
|
+
"eslint-config-digitalbazaar": "^5.2.0",
|
|
42
|
+
"eslint-plugin-jsdoc": "^50.4.1",
|
|
43
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
|
44
|
+
"jsonld-signatures": "^11.0.0",
|
|
45
45
|
"karma": "^6.3.20",
|
|
46
46
|
"karma-chai": "^0.1.0",
|
|
47
47
|
"karma-chrome-launcher": "^3.1.1",
|
|
48
48
|
"karma-mocha": "^2.0.1",
|
|
49
49
|
"karma-mocha-reporter": "^2.2.5",
|
|
50
|
-
"karma-sourcemap-loader": "^0.
|
|
50
|
+
"karma-sourcemap-loader": "^0.4.0",
|
|
51
51
|
"karma-webpack": "^5.0.0",
|
|
52
52
|
"mocha": "^10.0.0",
|
|
53
53
|
"mocha-lcov-reporter": "^1.3.0",
|