Skip to content

Commit c16e387

Browse files
authored
SD-JWT verification (#610)
1 parent 267d312 commit c16e387

22 files changed

Lines changed: 1181 additions & 112 deletions

examples/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @docknetwork/sdk-examples
22

3+
## 0.22.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @docknetwork/credential-sdk@0.56.2
9+
310
## 0.22.8
411

512
### Patch Changes

examples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@docknetwork/sdk-examples",
33
"private": true,
44
"type": "module",
5-
"version": "0.22.8",
5+
"version": "0.22.9",
66
"scripts": {
77
"bbs-dock-example": "babel-node ./src/bbs-dock.js",
88
"claim-deduction-example": "babel-node ./src/claim-deduction.js",
@@ -18,7 +18,7 @@
1818
"lint": "eslint \"src/**/*.js\""
1919
},
2020
"dependencies": {
21-
"@docknetwork/credential-sdk": "0.56.1",
21+
"@docknetwork/credential-sdk": "0.56.2",
2222
"@docknetwork/cheqd-blockchain-api": "6.0.1",
2323
"@docknetwork/cheqd-blockchain-modules": "6.0.1"
2424
},

packages/ap2/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @docknetwork/ap2
22

3+
## 0.2.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @docknetwork/crypto-utils@0.2.2
9+
310
## 0.2.1
411

512
### Patch Changes

packages/ap2/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@docknetwork/ap2",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Basic AP2 support",
55
"license": "MIT",
66
"type": "module",
@@ -34,7 +34,7 @@
3434
"node": ">=22.0.0"
3535
},
3636
"dependencies": {
37-
"@docknetwork/crypto-utils": "0.2.1",
37+
"@docknetwork/crypto-utils": "0.2.2",
3838
"ajv": "^8.20.0"
3939
},
4040
"devDependencies": {

packages/credential-sdk/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @docknetwork/credential-sdk
22

3+
## 0.56.2
4+
5+
### Patch Changes
6+
7+
- SD-JWT verification
8+
- Updated dependencies
9+
- @docknetwork/crypto-utils@0.2.2
10+
311
## 0.56.1
412

513
### Patch Changes

packages/credential-sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@docknetwork/credential-sdk",
3-
"version": "0.56.1",
3+
"version": "0.56.2",
44
"license": "MIT",
55
"type": "module",
66
"files": [
@@ -43,7 +43,7 @@
4343
"dependencies": {
4444
"@astronautlabs/jsonpath": "^1.1.2",
4545
"@digitalcredentials/vc-status-list": "^9.0.0",
46-
"@docknetwork/crypto-utils": "0.2.1",
46+
"@docknetwork/crypto-utils": "0.2.2",
4747
"@docknetwork/crypto-wasm-ts": "^0.63.0",
4848
"@docknetwork/vc-delegation-engine": "1.0.4",
4949
"@juanelas/base64": "^1.1.5",

packages/credential-sdk/src/vc/status-list2021-credential.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class StatusList2021Credential extends VerifiableCredential {
4343
* To allow unrevoking indices in the future, use `statusPurpose` = `suspension`.
4444
* The proof will be generated immediately using supplied `keyDoc`.
4545
*
46-
* @param {object} keyDoc - key document used to sign the credential (see `getKeyDoc`)
46+
* @param {KeyDoc} keyDoc
4747
* @param {string} id - on-chain hex identifier for the `StatusList2021Credential`.
4848
* @param {object} [params={}]
4949
* @param {'revocation'|'suspension'} [params.statusPurpose=revocation] - `statusPurpose` of the `StatusList2021Credential`.
@@ -78,7 +78,7 @@ export default class StatusList2021Credential extends VerifiableCredential {
7878
* the underlying value won't be modified.
7979
* Throws an error if the underlying status list can't be decoded or any of the supplied indices is out of range.
8080
*
81-
* @param {object} keyDoc - key document used to re-sign the credential (see `getKeyDoc`)
81+
* @param {KeyDoc} keyDoc
8282
* @param {object} [update={}]
8383
* @param {Iterable<number>} update.revokeIndices - indices to be revoked or suspended
8484
* @param {Iterable<number>} update.unsuspendIndices - indices to be unsuspended

packages/crypto-utils/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @docknetwork/crypto-utils
22

3+
## 0.2.2
4+
5+
### Patch Changes
6+
7+
- SD-JWT verification
8+
39
## 0.2.1
410

511
### Patch Changes

packages/crypto-utils/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,12 @@ the 64-byte `r || s` representation required by JOSE. To verify that JOSE
3131
representation with a Dock ECDSA keypair, first convert it to DER with
3232
`joseSignatureToDER`.
3333

34-
Subpath exports are available at `keypairs`, `types`, `utils`, and `vc`.
34+
Subpath exports are available at `keypairs`, `types`, `utils`, `key-utils`, and
35+
`vc`.
36+
37+
## Environments
38+
39+
Node is the default target. Browser and React Native bundlers resolve
40+
`@sd-jwt/crypto-nodejs` to `@sd-jwt/crypto-browser` via this package's
41+
`browser` / `react-native` fields. Apps still need a `Buffer` polyfill where
42+
the runtime does not provide one.

packages/crypto-utils/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
'^.+\\.(ts|js)$': ['babel-jest', { rootMode: 'upward' }],
77
},
88
transformIgnorePatterns: [
9-
'/node_modules/(?!@stablelib|uuid)',
9+
'/node_modules/(?!@stablelib|uuid|@sd-jwt|@ar-agents/ap2|jose|@noble)',
1010
],
1111
verbose: true,
1212
};

0 commit comments

Comments
 (0)