@bedrock/vc-verifier 9.0.0 → 12.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/README.md +4 -4
- package/lib/challenges.js +1 -3
- package/lib/documentLoader.js +8 -8
- package/lib/http.js +8 -12
- package/lib/index.js +1 -1
- package/lib/status.js +8 -10
- package/package.json +28 -23
- package/.eslintrc.cjs +0 -12
- package/.github/workflows/main.yml +0 -77
- package/CHANGELOG.md +0 -162
- package/test/mocha/.eslintrc.cjs +0 -9
- package/test/mocha/10-provision.js +0 -868
- package/test/mocha/20-verify.js +0 -390
- package/test/mocha/30-credential-status.js +0 -488
- package/test/mocha/cert.pem +0 -18
- package/test/mocha/helpers.js +0 -230
- package/test/mocha/key.pem +0 -28
- package/test/mocha/mock-credential.json +0 -39
- package/test/mocha/mock.data.js +0 -21
- package/test/package.json +0 -72
- package/test/test.config.js +0 -40
- package/test/test.js +0 -40
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bedrock VC Verifier API module _(bedrock
|
|
1
|
+
# Bedrock VC Verifier API module _(@bedrock/vc-verifier)_
|
|
2
2
|
|
|
3
3
|
[](https://github.com/digitalbazaar/bedrock-vc-verifier/actions?query=workflow%3A%22Bedrock+Node.js+CI%22)
|
|
4
4
|
[](https://npm.im/bedrock-vc-verifier)
|
|
@@ -25,7 +25,7 @@ TBD
|
|
|
25
25
|
|
|
26
26
|
## Install
|
|
27
27
|
|
|
28
|
-
- Node.js
|
|
28
|
+
- Node.js 16+ is required.
|
|
29
29
|
|
|
30
30
|
### NPM
|
|
31
31
|
|
|
@@ -73,8 +73,8 @@ Example request:
|
|
|
73
73
|
|
|
74
74
|
Alias: `/instances/:instanceId/credentials/verify`
|
|
75
75
|
|
|
76
|
-
Optionally performs status checks using the
|
|
77
|
-
|
|
76
|
+
Optionally performs status checks using the `@digitalbazaar/vc-revocation-list`
|
|
77
|
+
or `@digitalbazaar/vc-status-list` library.
|
|
78
78
|
|
|
79
79
|
Example request:
|
|
80
80
|
|
package/lib/challenges.js
CHANGED
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as bedrock from '@bedrock/core';
|
|
5
5
|
import * as database from '@bedrock/mongodb';
|
|
6
|
+
import {decodeId, generateId} from 'bnid';
|
|
6
7
|
import assert from 'assert-plus';
|
|
7
|
-
import {createRequire} from 'node:module';
|
|
8
|
-
const require = createRequire(import.meta.url);
|
|
9
|
-
const {generateId, decodeId} = require('bnid');
|
|
10
8
|
|
|
11
9
|
const {util: {BedrockError}} = bedrock;
|
|
12
10
|
|
package/lib/documentLoader.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* Copyright (c) 2019-2022 Digital Bazaar, Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
import * as bedrock from '@bedrock/core';
|
|
5
|
+
import {
|
|
6
|
+
documentLoader as brDocLoader,
|
|
7
|
+
httpClientHandler,
|
|
8
|
+
JsonLdDocumentLoader
|
|
9
|
+
} from '@bedrock/jsonld-document-loader';
|
|
10
|
+
import {createContextDocumentLoader} from '@bedrock/service-context-store';
|
|
11
|
+
import {didIo} from '@bedrock/did-io';
|
|
5
12
|
import '@bedrock/credentials-context';
|
|
6
13
|
import '@bedrock/did-context';
|
|
7
14
|
import '@bedrock/did-io';
|
|
8
15
|
import '@bedrock/security-context';
|
|
9
|
-
import '@bedrock/vc-status-list-context';
|
|
10
16
|
import '@bedrock/vc-revocation-list-context';
|
|
17
|
+
import '@bedrock/vc-status-list-context';
|
|
11
18
|
import '@bedrock/veres-one-context';
|
|
12
|
-
import {createContextDocumentLoader} from '@bedrock/service-context-store';
|
|
13
|
-
import {didIo} from '@bedrock/did-io';
|
|
14
|
-
import {
|
|
15
|
-
documentLoader as brDocLoader,
|
|
16
|
-
httpClientHandler,
|
|
17
|
-
JsonLdDocumentLoader
|
|
18
|
-
} from '@bedrock/jsonld-document-loader';
|
|
19
19
|
|
|
20
20
|
const serviceType = 'vc-verifier';
|
|
21
21
|
let webLoader;
|
package/lib/http.js
CHANGED
|
@@ -2,26 +2,22 @@
|
|
|
2
2
|
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
import * as bedrock from '@bedrock/core';
|
|
5
|
+
import * as vc from '@digitalbazaar/vc';
|
|
5
6
|
import {createChallenge, verifyChallenge} from './challenges.js';
|
|
6
|
-
import {asyncHandler} from '@bedrock/express';
|
|
7
|
-
import bodyParser from 'body-parser';
|
|
8
|
-
import {checkStatus} from './status.js';
|
|
9
|
-
import cors from 'cors';
|
|
10
7
|
import {
|
|
11
8
|
createChallengeBody,
|
|
12
9
|
verifyCredentialBody,
|
|
13
10
|
verifyPresentationBody
|
|
14
11
|
} from '../schemas/bedrock-vc-verifier.js';
|
|
12
|
+
import {metering, middleware} from '@bedrock/service-core';
|
|
13
|
+
import {asyncHandler} from '@bedrock/express';
|
|
14
|
+
import bodyParser from 'body-parser';
|
|
15
|
+
import {checkStatus} from './status.js';
|
|
16
|
+
import cors from 'cors';
|
|
15
17
|
import {createDocumentLoader} from './documentLoader.js';
|
|
16
|
-
import {
|
|
18
|
+
import {Ed25519Signature2018} from '@digitalbazaar/ed25519-signature-2018';
|
|
19
|
+
import {Ed25519Signature2020} from '@digitalbazaar/ed25519-signature-2020';
|
|
17
20
|
import {createValidateMiddleware as validate} from '@bedrock/validation';
|
|
18
|
-
import {metering, middleware} from '@bedrock/service-core';
|
|
19
|
-
const require = createRequire(import.meta.url);
|
|
20
|
-
const {Ed25519Signature2020} =
|
|
21
|
-
require('@digitalbazaar/ed25519-signature-2020');
|
|
22
|
-
const {Ed25519Signature2018} =
|
|
23
|
-
require('@digitalbazaar/ed25519-signature-2018');
|
|
24
|
-
const vc = require('@digitalbazaar/vc');
|
|
25
21
|
|
|
26
22
|
const {util: {BedrockError}} = bedrock;
|
|
27
23
|
|
package/lib/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright (c) 2021-2022 Digital Bazaar, Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
import * as bedrock from '@bedrock/core';
|
|
5
|
-
import {addRoutes} from './http.js';
|
|
6
5
|
import {
|
|
7
6
|
addRoutes as addContextStoreRoutes
|
|
8
7
|
} from '@bedrock/service-context-store';
|
|
8
|
+
import {addRoutes} from './http.js';
|
|
9
9
|
import {createService} from '@bedrock/service-core';
|
|
10
10
|
import {initializeServiceAgent} from '@bedrock/service-agent';
|
|
11
11
|
|
package/lib/status.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright (c) 2019-2022 Digital Bazaar, Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
+
import {
|
|
5
|
+
checkStatus as revocationListCheckStatus,
|
|
6
|
+
statusTypeMatches as revocationListStatusTypeMatches
|
|
7
|
+
} from '@digitalbazaar/vc-revocation-list';
|
|
8
|
+
import {
|
|
9
|
+
checkStatus as statusListCheckStatus,
|
|
10
|
+
statusTypeMatches as statusListStatusTypeMatches
|
|
11
|
+
} from '@digitalbazaar/vc-status-list';
|
|
4
12
|
import assert from 'assert-plus';
|
|
5
|
-
import {createRequire} from 'node:module';
|
|
6
|
-
const require = createRequire(import.meta.url);
|
|
7
|
-
const {
|
|
8
|
-
checkStatus: statusListCheckStatus,
|
|
9
|
-
statusTypeMatches: statusListStatusTypeMatches
|
|
10
|
-
} = require('@digitalbazaar/vc-status-list');
|
|
11
|
-
const {
|
|
12
|
-
checkStatus: revocationListCheckStatus,
|
|
13
|
-
statusTypeMatches: revocationListStatusTypeMatches
|
|
14
|
-
} = require('vc-revocation-list');
|
|
15
13
|
|
|
16
14
|
const handlerMap = new Map();
|
|
17
15
|
handlerMap.set('RevocationList2020Status', {
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock/vc-verifier",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bedrock VC Verifier",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/**/*.js",
|
|
9
|
+
"schemas/**/*.js"
|
|
10
|
+
],
|
|
7
11
|
"scripts": {
|
|
8
12
|
"lint": "eslint ."
|
|
9
13
|
},
|
|
@@ -21,42 +25,43 @@
|
|
|
21
25
|
},
|
|
22
26
|
"homepage": "https://github.com/digitalbazaar/bedrock-vc-verifier",
|
|
23
27
|
"dependencies": {
|
|
24
|
-
"@digitalbazaar/ed25519-signature-2018": "^
|
|
25
|
-
"@digitalbazaar/ed25519-signature-2020": "^
|
|
26
|
-
"@digitalbazaar/vc": "^
|
|
27
|
-
"@digitalbazaar/vc-
|
|
28
|
+
"@digitalbazaar/ed25519-signature-2018": "^3.0.0",
|
|
29
|
+
"@digitalbazaar/ed25519-signature-2020": "^4.0.1",
|
|
30
|
+
"@digitalbazaar/vc": "^4.0.0",
|
|
31
|
+
"@digitalbazaar/vc-revocation-list": "^4.0.0",
|
|
32
|
+
"@digitalbazaar/vc-status-list": "^5.0.0",
|
|
28
33
|
"assert-plus": "^1.0.0",
|
|
29
|
-
"bnid": "^
|
|
30
|
-
"body-parser": "^1.
|
|
31
|
-
"cors": "^2.8.5"
|
|
32
|
-
"vc-revocation-list": "^3.0.0"
|
|
34
|
+
"bnid": "^3.0.0",
|
|
35
|
+
"body-parser": "^1.20.0",
|
|
36
|
+
"cors": "^2.8.5"
|
|
33
37
|
},
|
|
34
38
|
"peerDependencies": {
|
|
35
|
-
"@bedrock/core": "^6.0.
|
|
39
|
+
"@bedrock/core": "^6.0.1",
|
|
36
40
|
"@bedrock/credentials-context": "^3.0.0",
|
|
37
41
|
"@bedrock/did-context": "^4.0.0",
|
|
38
|
-
"@bedrock/did-io": "^
|
|
42
|
+
"@bedrock/did-io": "^9.0.1",
|
|
39
43
|
"@bedrock/express": "^8.0.0",
|
|
40
44
|
"@bedrock/https-agent": "^4.0.0",
|
|
41
45
|
"@bedrock/jsonld-document-loader": "^3.0.0",
|
|
42
46
|
"@bedrock/mongodb": "^10.0.0",
|
|
43
47
|
"@bedrock/security-context": "^7.0.0",
|
|
44
|
-
"@bedrock/service-agent": "^
|
|
45
|
-
"@bedrock/service-context-store": "^
|
|
46
|
-
"@bedrock/service-core": "^
|
|
47
|
-
"@bedrock/
|
|
48
|
-
"@bedrock/vc-revocation-list-context": "^3.
|
|
49
|
-
"@bedrock/
|
|
50
|
-
"@bedrock/
|
|
48
|
+
"@bedrock/service-agent": "^6.0.0",
|
|
49
|
+
"@bedrock/service-context-store": "^8.0.0",
|
|
50
|
+
"@bedrock/service-core": "^6.0.0",
|
|
51
|
+
"@bedrock/validation": "^7.0.0",
|
|
52
|
+
"@bedrock/vc-revocation-list-context": "^3.1.0",
|
|
53
|
+
"@bedrock/vc-status-list-context": "^4.1.0",
|
|
54
|
+
"@bedrock/veres-one-context": "^14.0.1"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint-config-digitalbazaar": "^
|
|
55
|
-
"eslint-plugin-jsdoc": "^
|
|
56
|
-
"
|
|
57
|
+
"eslint": "^8.18.0",
|
|
58
|
+
"eslint-config-digitalbazaar": "^4.0.1",
|
|
59
|
+
"eslint-plugin-jsdoc": "^39.3.3",
|
|
60
|
+
"eslint-plugin-unicorn": "^43.0.0",
|
|
61
|
+
"jsdoc": "^3.6.10",
|
|
57
62
|
"jsdoc-to-markdown": "^7.1.1"
|
|
58
63
|
},
|
|
59
64
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
65
|
+
"node": ">=16"
|
|
61
66
|
}
|
|
62
67
|
}
|
package/.eslintrc.cjs
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
name: Bedrock Node.js CI
|
|
2
|
-
|
|
3
|
-
on: [push]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
lint:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
timeout-minutes: 10
|
|
9
|
-
strategy:
|
|
10
|
-
matrix:
|
|
11
|
-
node-version: [16.x]
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v2
|
|
14
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
15
|
-
uses: actions/setup-node@v1
|
|
16
|
-
with:
|
|
17
|
-
node-version: ${{ matrix.node-version }}
|
|
18
|
-
- run: npm install
|
|
19
|
-
- name: Run eslint
|
|
20
|
-
run: npm run lint
|
|
21
|
-
test-node:
|
|
22
|
-
needs: [lint]
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
timeout-minutes: 10
|
|
25
|
-
services:
|
|
26
|
-
mongodb:
|
|
27
|
-
image: mongo:4.4
|
|
28
|
-
ports:
|
|
29
|
-
- 27017:27017
|
|
30
|
-
strategy:
|
|
31
|
-
matrix:
|
|
32
|
-
node-version: [14.x, 16.x]
|
|
33
|
-
steps:
|
|
34
|
-
- uses: actions/checkout@v2
|
|
35
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
36
|
-
uses: actions/setup-node@v1
|
|
37
|
-
with:
|
|
38
|
-
node-version: ${{ matrix.node-version }}
|
|
39
|
-
- run: |
|
|
40
|
-
npm install
|
|
41
|
-
cd test
|
|
42
|
-
npm install
|
|
43
|
-
- name: Run test with Node.js ${{ matrix.node-version }}
|
|
44
|
-
run: |
|
|
45
|
-
cd test
|
|
46
|
-
npm test
|
|
47
|
-
coverage:
|
|
48
|
-
needs: [test-node]
|
|
49
|
-
runs-on: ubuntu-latest
|
|
50
|
-
timeout-minutes: 10
|
|
51
|
-
services:
|
|
52
|
-
mongodb:
|
|
53
|
-
image: mongo:4.4
|
|
54
|
-
ports:
|
|
55
|
-
- 27017:27017
|
|
56
|
-
strategy:
|
|
57
|
-
matrix:
|
|
58
|
-
node-version: [16.x]
|
|
59
|
-
steps:
|
|
60
|
-
- uses: actions/checkout@v2
|
|
61
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
62
|
-
uses: actions/setup-node@v1
|
|
63
|
-
with:
|
|
64
|
-
node-version: ${{ matrix.node-version }}
|
|
65
|
-
- run: |
|
|
66
|
-
npm install
|
|
67
|
-
cd test
|
|
68
|
-
npm install
|
|
69
|
-
- name: Generate coverage report
|
|
70
|
-
run: |
|
|
71
|
-
cd test
|
|
72
|
-
npm run coverage-ci
|
|
73
|
-
- name: Upload coverage to Codecov
|
|
74
|
-
uses: codecov/codecov-action@v2
|
|
75
|
-
with:
|
|
76
|
-
file: ./test/coverage/lcov.info
|
|
77
|
-
fail_ci_if_error: true
|
package/CHANGELOG.md
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
# bedrock-vc-verifier ChangeLog
|
|
2
|
-
|
|
3
|
-
## 9.0.0 - 2022-05-05
|
|
4
|
-
|
|
5
|
-
### Changed
|
|
6
|
-
- **BREAKING**: Update peer deps:
|
|
7
|
-
- `@bedrock/service-agent@5`
|
|
8
|
-
- `@bedrock/service-context-store@6`.
|
|
9
|
-
- **BREAKING**: The updated peer dependencies use a new EDV client with a
|
|
10
|
-
new blind attribute version. This version is incompatible with previous
|
|
11
|
-
versions and a manual migration must be performed to update all
|
|
12
|
-
EDV documents to use the new blind attribute version -- or a new
|
|
13
|
-
deployment is required.
|
|
14
|
-
|
|
15
|
-
## 8.0.0 - 2022-04-29
|
|
16
|
-
|
|
17
|
-
### Changed
|
|
18
|
-
- **BREAKING**: Update peer deps:
|
|
19
|
-
- `@bedrock/core@6`
|
|
20
|
-
- `@bedrock/credentials-context@3`
|
|
21
|
-
- `@bedrock/did-context@4`
|
|
22
|
-
- `@bedrock/did-io@8`
|
|
23
|
-
- `@bedrock/express@8`
|
|
24
|
-
- `@bedrock/https-agent@4`
|
|
25
|
-
- `@bedrock/jsonld-document-loader@3`
|
|
26
|
-
- `@bedrock/mongodb@10`
|
|
27
|
-
- `@bedrock/security-context@7`
|
|
28
|
-
- `@bedrock/service-agent@4`
|
|
29
|
-
- `@bedrock/service-context-store@5`
|
|
30
|
-
- `@bedrock/service-core@5`
|
|
31
|
-
- `@bedrock/validation@7`
|
|
32
|
-
- `@bedrock/vc-status-list-context@3`
|
|
33
|
-
- `@bedrock/vc-revocation-list-context@3`
|
|
34
|
-
- `@bedrock/veres-one-context@14`.
|
|
35
|
-
|
|
36
|
-
## 7.0.0 - 2022-04-23
|
|
37
|
-
|
|
38
|
-
### Changed
|
|
39
|
-
- **BREAKING**: Update `@digitalbazaar/vc-status-list` and
|
|
40
|
-
`@bedrock/vc-status-list-context` to v3.0.
|
|
41
|
-
|
|
42
|
-
## 6.0.0 - 2022-04-06
|
|
43
|
-
|
|
44
|
-
### Changed
|
|
45
|
-
- **BREAKING**: Rename package to `@bedrock/vc-verifier`.
|
|
46
|
-
- **BREAKING**: Convert to module (ESM).
|
|
47
|
-
- **BREAKING**: Remove default export.
|
|
48
|
-
- **BREAKING**: Require node 14.x.
|
|
49
|
-
|
|
50
|
-
## 5.2.0 - 2022-03-14
|
|
51
|
-
|
|
52
|
-
### Added
|
|
53
|
-
- Add missing dependencies `@digitalbazaar/webkms-client@10.0` and
|
|
54
|
-
`@digitalbazaar/edv-client@13.0` in test.
|
|
55
|
-
- Add coverage action in github workflows.
|
|
56
|
-
|
|
57
|
-
### Removed
|
|
58
|
-
- Remove unused dependency `crypto-ld@6.0`.
|
|
59
|
-
- Remove unused dependencies `veres-one-context`, `did-veres-one`, `crypto-ld`,
|
|
60
|
-
`did-context` and `bedrock-views` from test.
|
|
61
|
-
|
|
62
|
-
## 5.1.0 - 2022-03-12
|
|
63
|
-
|
|
64
|
-
### Changed
|
|
65
|
-
- Update dependencies:
|
|
66
|
-
- `@digitalbazaar/vc-status-list@2.1`.
|
|
67
|
-
|
|
68
|
-
## 5.0.0 - 2022-03-11
|
|
69
|
-
|
|
70
|
-
### Changed
|
|
71
|
-
- **BREAKING**: Update peer dependencies:
|
|
72
|
-
- `bedrock-service-core@3`
|
|
73
|
-
- `bedrock-service-context-store@3`
|
|
74
|
-
- `bedrock-did-io@6.1`.
|
|
75
|
-
|
|
76
|
-
## 4.0.0 - 2022-03-01
|
|
77
|
-
|
|
78
|
-
### Changed
|
|
79
|
-
- **BREAKING**: Move zcap revocations to `/zcaps/revocations` to better
|
|
80
|
-
future proof.
|
|
81
|
-
- **BREAKING**: Require `bedrock-service-core@2`, `bedrock-service-agent@2`,
|
|
82
|
-
and `bedrock-service-context-store@2` peer dependencies.
|
|
83
|
-
|
|
84
|
-
## 3.1.0 - 2022-02-23
|
|
85
|
-
|
|
86
|
-
### Added
|
|
87
|
-
- Add default (dev mode) `app-identity` entry for `vc-verifier` service.
|
|
88
|
-
|
|
89
|
-
## 3.0.1 - 2022-02-21
|
|
90
|
-
|
|
91
|
-
### Changed
|
|
92
|
-
- Use `@digitalbazaar/vc-status-list-context` and updated bedrock-vc-status-list-context.
|
|
93
|
-
These dependencies have no changes other than moved package locations.
|
|
94
|
-
|
|
95
|
-
## 3.0.0 - 2022-02-20
|
|
96
|
-
|
|
97
|
-
### Changed
|
|
98
|
-
- **BREAKING**: Complete refactor to run on top of `bedrock-service*` modules. While
|
|
99
|
-
this version has similar functionality, its APIs and implementation are a clean
|
|
100
|
-
break from previous versions.
|
|
101
|
-
|
|
102
|
-
## 2.3.0 - 2022-02-15
|
|
103
|
-
|
|
104
|
-
### Changed
|
|
105
|
-
- Refactor documentLoader.
|
|
106
|
-
|
|
107
|
-
## 2.2.0 - 2022-02-09
|
|
108
|
-
|
|
109
|
-
### Added
|
|
110
|
-
- Add support for "StatusList2021Credential" status checks using
|
|
111
|
-
`vc-status-list@1.0`
|
|
112
|
-
- Add tests.
|
|
113
|
-
|
|
114
|
-
## 2.1.0 - 2021-09-14
|
|
115
|
-
|
|
116
|
-
### Added
|
|
117
|
-
- Add support for unsigned VPs.
|
|
118
|
-
|
|
119
|
-
## 2.0.2 - 2021-08-23
|
|
120
|
-
|
|
121
|
-
### Changed
|
|
122
|
-
- Update deps to fix multicodec bugs and set `verificationSuite` for `v1` to
|
|
123
|
-
`Ed25519VerificationKey2020` in config.
|
|
124
|
-
|
|
125
|
-
## 2.0.1 - 2021-05-28
|
|
126
|
-
|
|
127
|
-
### Fixed
|
|
128
|
-
- Fix bedrock peer dependencies.
|
|
129
|
-
|
|
130
|
-
## 2.0.0 - 2021-05-28
|
|
131
|
-
|
|
132
|
-
### Changed
|
|
133
|
-
- **BREAKING**: Remove `axios` and use `@digitalbazaar/http-client@1.1.0`.
|
|
134
|
-
Errors surfaced from `http-client` do not have the same signature as `axios`.
|
|
135
|
-
- **BREAKING**: Remove `cfg.ledgerHostname` and `cfg.mode` from `config.js`.
|
|
136
|
-
- **BREAKING**: Use [vc-revocation-list@3](https://github.com/digitalbazaar/vc-revocation-list/blob/main/CHANGELOG.md).
|
|
137
|
-
Revocation list credentials must have the same issuer value as the credential
|
|
138
|
-
to be revoked.
|
|
139
|
-
- **BREAKING**: Use [bedrock-did-io@3.0](https://github.com/digitalbazaar/bedrock-did-io/blob/main/CHANGELOG.md).
|
|
140
|
-
- Replace `vc-js` with `@digitalbazaar/vc`.
|
|
141
|
-
- Update to support ed25519 2020 signature suite.
|
|
142
|
-
- Update peerDeps and testDeps.
|
|
143
|
-
|
|
144
|
-
## 1.2.0 - 2021-03-03
|
|
145
|
-
|
|
146
|
-
### Fixed
|
|
147
|
-
|
|
148
|
-
- Only verify based on `options.checks`.
|
|
149
|
-
|
|
150
|
-
## 1.1.0 - 2020-05-18
|
|
151
|
-
|
|
152
|
-
### Added
|
|
153
|
-
|
|
154
|
-
- Implement W3C CCG VC Verification HTTP API.
|
|
155
|
-
|
|
156
|
-
## 1.0.0 - 2020-02-27
|
|
157
|
-
|
|
158
|
-
### Added
|
|
159
|
-
- API endpoint /vc/verify which can verify a presentation.
|
|
160
|
-
- Mock API endpoint /verifiers/:verifierId/verifications/:referenceId
|
|
161
|
-
- Positive tests for both endpoints.
|
|
162
|
-
- Utils to serialize errors in verification reports.
|