@sd-jwt/core 0.6.2-next.8 → 0.7.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/CHANGELOG.md +8 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/index.ts +1 -1
- package/src/test/index.spec.ts +1 -1
- package/test/app-e2e.spec.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.7.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.6.1...v0.7.0) (2024-05-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @sd-jwt/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.6.1](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.6.0...v0.6.1) (2024-03-18)
|
|
7
15
|
|
|
8
16
|
|
package/dist/index.d.mts
CHANGED
|
@@ -76,7 +76,7 @@ type SdJwtPayload = Record<string, unknown>;
|
|
|
76
76
|
declare class SDJwtInstance<ExtendedPayload extends SdJwtPayload> {
|
|
77
77
|
protected type?: string;
|
|
78
78
|
static DEFAULT_hashAlg: string;
|
|
79
|
-
|
|
79
|
+
protected userConfig: SDJWTConfig;
|
|
80
80
|
constructor(userConfig?: SDJWTConfig);
|
|
81
81
|
private createKBJwt;
|
|
82
82
|
private SignJwt;
|
package/dist/index.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ type SdJwtPayload = Record<string, unknown>;
|
|
|
76
76
|
declare class SDJwtInstance<ExtendedPayload extends SdJwtPayload> {
|
|
77
77
|
protected type?: string;
|
|
78
78
|
static DEFAULT_hashAlg: string;
|
|
79
|
-
|
|
79
|
+
protected userConfig: SDJWTConfig;
|
|
80
80
|
constructor(userConfig?: SDJWTConfig);
|
|
81
81
|
private createKBJwt;
|
|
82
82
|
private SignJwt;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"sd-jwt-vc"
|
|
26
26
|
],
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">=18"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@sd-jwt/crypto-nodejs": "0.
|
|
41
|
+
"@sd-jwt/crypto-nodejs": "0.7.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@sd-jwt/decode": "0.
|
|
45
|
-
"@sd-jwt/present": "0.
|
|
46
|
-
"@sd-jwt/types": "0.
|
|
47
|
-
"@sd-jwt/utils": "0.
|
|
44
|
+
"@sd-jwt/decode": "0.7.0",
|
|
45
|
+
"@sd-jwt/present": "0.7.0",
|
|
46
|
+
"@sd-jwt/types": "0.7.0",
|
|
47
|
+
"@sd-jwt/utils": "0.7.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"esm"
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "bb867ba65960062413375591aee49ad78722ad93"
|
|
66
66
|
}
|
package/src/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ export class SDJwtInstance<ExtendedPayload extends SdJwtPayload> {
|
|
|
27
27
|
|
|
28
28
|
public static DEFAULT_hashAlg = 'sha-256';
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
protected userConfig: SDJWTConfig = {};
|
|
31
31
|
|
|
32
32
|
constructor(userConfig?: SDJWTConfig) {
|
|
33
33
|
if (userConfig) {
|
package/src/test/index.spec.ts
CHANGED
|
@@ -11,7 +11,7 @@ const nodeVersionMajor = Number.parseInt(
|
|
|
11
11
|
10,
|
|
12
12
|
);
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const createSignerVerifier = () => {
|
|
15
15
|
const { privateKey, publicKey } = Crypto.generateKeyPairSync('ed25519');
|
|
16
16
|
const signer: Signer = async (data: string) => {
|
|
17
17
|
const sig = Crypto.sign(null, Buffer.from(data), privateKey);
|
package/test/app-e2e.spec.ts
CHANGED
|
@@ -11,7 +11,7 @@ import path from 'node:path';
|
|
|
11
11
|
import { describe, expect, test } from 'vitest';
|
|
12
12
|
import { digest, generateSalt } from '@sd-jwt/crypto-nodejs';
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const createSignerVerifier = () => {
|
|
15
15
|
const { privateKey, publicKey } = Crypto.generateKeyPairSync('ed25519');
|
|
16
16
|
const signer: Signer = async (data: string) => {
|
|
17
17
|
const sig = Crypto.sign(null, Buffer.from(data), privateKey);
|