@sd-jwt/types 0.1.2-alpha.1

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.
@@ -0,0 +1,9 @@
1
+ export type DisclosureArray = [string, string, unknown] | [string, unknown];
2
+ export type Disclosure = {
3
+ salt: string;
4
+ key?: string;
5
+ value: unknown;
6
+ };
7
+ export type DisclosureWithDigest = Disclosure & {
8
+ digest: string;
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=disclosure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disclosure.js","sourceRoot":"","sources":["../src/disclosure.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type Hasher = (data: string, algorithm: string) => Uint8Array;
2
+ export type AsyncHasher = (data: string, algorithm: string) => Promise<Uint8Array>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=hasher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasher.js","sourceRoot":"","sources":["../src/hasher.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type * from './disclosure';
2
+ export type * from './hasher';
package/build/index.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@sd-jwt/types",
3
+ "version": "0.1.2-alpha.1",
4
+ "description": "Common types of sd-jwt Draft 06 and sd-jwt-vc Draft 01",
5
+ "license": "(MIT OR Apache-2.0)",
6
+ "author": "Berend Sliedrecht <sliedrecht@berend.io>",
7
+ "readme": "../../README.md",
8
+ "keywords": [
9
+ "jwt",
10
+ "jwt-sd",
11
+ "sd-jwt",
12
+ "sd-jwt-vc",
13
+ "decentralized-identity",
14
+ "ssi",
15
+ "oauth",
16
+ "oauth2",
17
+ "openid-connect"
18
+ ],
19
+ "repository": {
20
+ "url": "https://github.com/berendsliedrecht/sd-jwt-ts",
21
+ "type": "git"
22
+ },
23
+ "homepage": "https://github.com/berendsliedrecht/sd-jwt-ts",
24
+ "bugs": {
25
+ "url": "https://github.com/berendsliedrecht/sd-jwt-ts/issues",
26
+ "email": "sliedrecht@berend.io"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "main": "build/index.js",
32
+ "files": [
33
+ "build",
34
+ "../../LICENSE-MIT",
35
+ "../../LICENSE-APACHE-2.0"
36
+ ],
37
+ "scripts": {
38
+ "build": "tsc",
39
+ "release": "release-it"
40
+ },
41
+ "devDependencies": {
42
+ "@types/node": "*",
43
+ "ts-node": "*",
44
+ "typescript": "*"
45
+ }
46
+ }