@openvtc/trust-tasks 0.12.16 → 0.13.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 +27 -3
- package/dist/_runtime/canonical.d.ts +40 -0
- package/dist/_runtime/canonical.d.ts.map +1 -0
- package/dist/_runtime/canonical.js +147 -0
- package/dist/_runtime/canonical.js.map +1 -0
- package/dist/_runtime/consume.d.ts +108 -2
- package/dist/_runtime/consume.d.ts.map +1 -1
- package/dist/_runtime/consume.js +174 -8
- package/dist/_runtime/consume.js.map +1 -1
- package/dist/_runtime/document.d.ts +17 -4
- package/dist/_runtime/document.d.ts.map +1 -1
- package/dist/_runtime/document.js +17 -4
- package/dist/_runtime/document.js.map +1 -1
- package/dist/_runtime/freshness.d.ts +105 -0
- package/dist/_runtime/freshness.d.ts.map +1 -0
- package/dist/_runtime/freshness.js +142 -0
- package/dist/_runtime/freshness.js.map +1 -0
- package/dist/_runtime/index.d.ts +4 -1
- package/dist/_runtime/index.d.ts.map +1 -1
- package/dist/_runtime/index.js +4 -1
- package/dist/_runtime/index.js.map +1 -1
- package/dist/_runtime/replay.d.ts +176 -0
- package/dist/_runtime/replay.d.ts.map +1 -0
- package/dist/_runtime/replay.js +147 -0
- package/dist/_runtime/replay.js.map +1 -0
- package/dist/keys/create/0.1/payload.d.ts +27 -13
- package/dist/keys/create/0.1/payload.d.ts.map +1 -1
- package/dist/keys/create/0.1/payload.js +11 -5
- package/dist/keys/create/0.1/payload.js.map +1 -1
- package/dist/keys/import/0.1/payload.d.ts +10 -10
- package/dist/keys/import/0.1/payload.d.ts.map +1 -1
- package/dist/keys/import/0.1/payload.js +6 -4
- package/dist/keys/import/0.1/payload.js.map +1 -1
- package/dist/keys/list/0.1/payload.d.ts +10 -10
- package/dist/keys/list/0.1/payload.d.ts.map +1 -1
- package/dist/keys/list/0.1/payload.js +6 -4
- package/dist/keys/list/0.1/payload.js.map +1 -1
- package/dist/keys/show/0.1/payload.d.ts +10 -10
- package/dist/keys/show/0.1/payload.d.ts.map +1 -1
- package/dist/keys/show/0.1/payload.js +6 -4
- package/dist/keys/show/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_runtime/canonical.ts +159 -0
- package/src/_runtime/consume.ts +267 -10
- package/src/_runtime/document.ts +17 -4
- package/src/_runtime/freshness.ts +183 -0
- package/src/_runtime/index.ts +30 -0
- package/src/_runtime/replay.ts +250 -0
- package/src/keys/create/0.1/payload.ts +20 -8
- package/src/keys/import/0.1/payload.ts +8 -6
- package/src/keys/list/0.1/payload.ts +8 -6
- package/src/keys/show/0.1/payload.ts +8 -6
|
@@ -44,9 +44,9 @@ export type KeyType1 = "ed25519" | "x25519" | "p256";
|
|
|
44
44
|
*/
|
|
45
45
|
export type KeyStatus = "active" | "revoked";
|
|
46
46
|
/**
|
|
47
|
-
* Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.
|
|
47
|
+
* Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.
|
|
48
48
|
*/
|
|
49
|
-
export type KeyOrigin = "derived" | "imported";
|
|
49
|
+
export type KeyOrigin = "derived" | "imported" | "internal";
|
|
50
50
|
/**
|
|
51
51
|
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
52
52
|
*/
|
|
@@ -257,8 +257,8 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
257
257
|
readonly KeyOrigin: {
|
|
258
258
|
readonly title: "KeyOrigin";
|
|
259
259
|
readonly type: "string";
|
|
260
|
-
readonly enum: readonly ["derived", "imported"];
|
|
261
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
260
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
261
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
262
262
|
readonly default: "derived";
|
|
263
263
|
};
|
|
264
264
|
readonly KeyStatus: {
|
|
@@ -367,8 +367,8 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
367
367
|
readonly KeyOrigin: {
|
|
368
368
|
readonly title: "KeyOrigin";
|
|
369
369
|
readonly type: "string";
|
|
370
|
-
readonly enum: readonly ["derived", "imported"];
|
|
371
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
370
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
371
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
372
372
|
readonly default: "derived";
|
|
373
373
|
};
|
|
374
374
|
readonly KeyStatus: {
|
|
@@ -529,8 +529,8 @@ export declare const SPEC: {
|
|
|
529
529
|
readonly KeyOrigin: {
|
|
530
530
|
readonly title: "KeyOrigin";
|
|
531
531
|
readonly type: "string";
|
|
532
|
-
readonly enum: readonly ["derived", "imported"];
|
|
533
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
532
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
533
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
534
534
|
readonly default: "derived";
|
|
535
535
|
};
|
|
536
536
|
readonly KeyStatus: {
|
|
@@ -649,8 +649,8 @@ export declare const RESPONSE_SPEC: {
|
|
|
649
649
|
readonly KeyOrigin: {
|
|
650
650
|
readonly title: "KeyOrigin";
|
|
651
651
|
readonly type: "string";
|
|
652
|
-
readonly enum: readonly ["derived", "imported"];
|
|
653
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
652
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
653
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
654
654
|
readonly default: "derived";
|
|
655
655
|
};
|
|
656
656
|
readonly KeyStatus: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/import/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,GAAG;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AACpD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AACrD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC7C;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -170,9 +170,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
170
170
|
"type": "string",
|
|
171
171
|
"enum": [
|
|
172
172
|
"derived",
|
|
173
|
-
"imported"
|
|
173
|
+
"imported",
|
|
174
|
+
"internal"
|
|
174
175
|
],
|
|
175
|
-
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.",
|
|
176
|
+
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
|
|
176
177
|
"default": "derived"
|
|
177
178
|
},
|
|
178
179
|
"KeyStatus": {
|
|
@@ -298,9 +299,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
298
299
|
"type": "string",
|
|
299
300
|
"enum": [
|
|
300
301
|
"derived",
|
|
301
|
-
"imported"
|
|
302
|
+
"imported",
|
|
303
|
+
"internal"
|
|
302
304
|
],
|
|
303
|
-
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.",
|
|
305
|
+
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
|
|
304
306
|
"default": "derived"
|
|
305
307
|
},
|
|
306
308
|
"KeyStatus": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/import/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6GH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,6CAAsD,CAAC;AAK/E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,sDAA+D,CAAC;AAKjG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,6CAA6C;IACpD,OAAO,EAAE,uBAAuB;IAChC,aAAa,EAAE,+KAA+K;IAC9L,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;KACV;IACD,OAAO,EAAE;QACP;YACE,UAAU,EAAE;gBACV,kBAAkB;aACnB;SACF;QACD;YACE,UAAU,EAAE;gBACV,eAAe;aAChB;SACF;QACD;YACE,UAAU,EAAE;gBACV,qBAAqB;aACtB;SACF;KACF;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,MAAM,E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;YACD,YAAY,EAAE;gBACZ,OAAO,EAAE;oBACP,MAAM,EAAE,QAAQ;oBAChB,WAAW,EAAE,CAAC;oBACd,aAAa,EAAE,mHAAmH;iBACnI;gBACD,SAAS,EAAE;oBACT,MAAM,EAAE,iBAAiB;iBAC1B;gBACD,QAAQ,EAAE;oBACR,MAAM,EAAE,mBAAmB;iBAC5B;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,QAAQ;oBAChB,WAAW,EAAE,CAAC;oBACd,aAAa,EAAE,+FAA+F;iBAC/G;gBACD,gBAAgB,EAAE;oBAChB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,mIAAmI;iBACnJ;gBACD,QAAQ,EAAE;oBACR,MAAM,EAAE,SAAS;oBACjB,SAAS,EAAE,CAAC;oBACZ,aAAa,EAAE,qHAAqH;iBACrI;gBACD,QAAQ,EAAE;oBACR,MAAM,EAAE,mBAAmB;iBAC5B;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,wFAAwF;iBACxG;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,kRAAkR;iBAClS;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,WAAW;oBACrB,aAAa,EAAE,8DAA8D;iBAC9E;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,WAAW;oBACrB,aAAa,EAAE,2EAA2E;iBAC3F;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;aACF;SACF;QACD,WAAW,EAAE;YACX,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,SAAS;gBACT,UAAU;aACX;YACD,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/import/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA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ked";
|
|
17
17
|
/**
|
|
18
|
-
* Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.
|
|
18
|
+
* Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.
|
|
19
19
|
*/
|
|
20
|
-
export type KeyOrigin = "derived" | "imported";
|
|
20
|
+
export type KeyOrigin = "derived" | "imported" | "internal";
|
|
21
21
|
export interface KeysListPayload {
|
|
22
22
|
status?: KeyStatus;
|
|
23
23
|
/**
|
|
@@ -259,8 +259,8 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
259
259
|
readonly KeyOrigin: {
|
|
260
260
|
readonly title: "KeyOrigin";
|
|
261
261
|
readonly type: "string";
|
|
262
|
-
readonly enum: readonly ["derived", "imported"];
|
|
263
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
262
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
263
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
264
264
|
readonly default: "derived";
|
|
265
265
|
};
|
|
266
266
|
readonly KeyStatus: {
|
|
@@ -387,8 +387,8 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
387
387
|
readonly KeyOrigin: {
|
|
388
388
|
readonly title: "KeyOrigin";
|
|
389
389
|
readonly type: "string";
|
|
390
|
-
readonly enum: readonly ["derived", "imported"];
|
|
391
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
390
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
391
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
392
392
|
readonly default: "derived";
|
|
393
393
|
};
|
|
394
394
|
readonly KeyStatus: {
|
|
@@ -552,8 +552,8 @@ export declare const SPEC: {
|
|
|
552
552
|
readonly KeyOrigin: {
|
|
553
553
|
readonly title: "KeyOrigin";
|
|
554
554
|
readonly type: "string";
|
|
555
|
-
readonly enum: readonly ["derived", "imported"];
|
|
556
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
555
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
556
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
557
557
|
readonly default: "derived";
|
|
558
558
|
};
|
|
559
559
|
readonly KeyStatus: {
|
|
@@ -690,8 +690,8 @@ export declare const RESPONSE_SPEC: {
|
|
|
690
690
|
readonly KeyOrigin: {
|
|
691
691
|
readonly title: "KeyOrigin";
|
|
692
692
|
readonly type: "string";
|
|
693
|
-
readonly enum: readonly ["derived", "imported"];
|
|
694
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
693
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
694
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
695
695
|
readonly default: "derived";
|
|
696
696
|
};
|
|
697
697
|
readonly KeyStatus: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJ1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -164,9 +164,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
164
164
|
"type": "string",
|
|
165
165
|
"enum": [
|
|
166
166
|
"derived",
|
|
167
|
-
"imported"
|
|
167
|
+
"imported",
|
|
168
|
+
"internal"
|
|
168
169
|
],
|
|
169
|
-
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.",
|
|
170
|
+
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
|
|
170
171
|
"default": "derived"
|
|
171
172
|
},
|
|
172
173
|
"KeyStatus": {
|
|
@@ -313,9 +314,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
313
314
|
"type": "string",
|
|
314
315
|
"enum": [
|
|
315
316
|
"derived",
|
|
316
|
-
"imported"
|
|
317
|
+
"imported",
|
|
318
|
+
"internal"
|
|
317
319
|
],
|
|
318
|
-
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.",
|
|
320
|
+
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
|
|
319
321
|
"default": "derived"
|
|
320
322
|
},
|
|
321
323
|
"KeyStatus": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4GH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2CAAoD,CAAC;AAK7E,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oDAA6D,CAAC;AAK/F;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,2CAA2C;IAClD,OAAO,EAAE,qBAAqB;IAC9B,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;Q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,EAAE,WAAW;YACpB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,QAAQ;gBACR,SAAS;aACV;YACD,aAAa,EAAE,+KAA+K;SAC/L;QACD,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,SAAS;gBACT,QAAQ;gBACR,MAAM;aACP;YACD,aAAa,EAAE,sJAAsJ;SACtK;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -11,9 +11,9 @@ export type KeyType = "ed25519" | "x25519" | "p256";
|
|
|
11
11
|
*/
|
|
12
12
|
export type KeyStatus = "active" | "revoked";
|
|
13
13
|
/**
|
|
14
|
-
* Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.
|
|
14
|
+
* Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.
|
|
15
15
|
*/
|
|
16
|
-
export type KeyOrigin = "derived" | "imported";
|
|
16
|
+
export type KeyOrigin = "derived" | "imported" | "internal";
|
|
17
17
|
export interface KeysShowPayload {
|
|
18
18
|
/**
|
|
19
19
|
* Identifier of the key to read.
|
|
@@ -208,8 +208,8 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
208
208
|
readonly KeyOrigin: {
|
|
209
209
|
readonly title: "KeyOrigin";
|
|
210
210
|
readonly type: "string";
|
|
211
|
-
readonly enum: readonly ["derived", "imported"];
|
|
212
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
211
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
212
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
213
213
|
readonly default: "derived";
|
|
214
214
|
};
|
|
215
215
|
readonly KeyStatus: {
|
|
@@ -322,8 +322,8 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
322
322
|
readonly KeyOrigin: {
|
|
323
323
|
readonly title: "KeyOrigin";
|
|
324
324
|
readonly type: "string";
|
|
325
|
-
readonly enum: readonly ["derived", "imported"];
|
|
326
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
325
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
326
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
327
327
|
readonly default: "derived";
|
|
328
328
|
};
|
|
329
329
|
readonly KeyStatus: {
|
|
@@ -461,8 +461,8 @@ export declare const SPEC: {
|
|
|
461
461
|
readonly KeyOrigin: {
|
|
462
462
|
readonly title: "KeyOrigin";
|
|
463
463
|
readonly type: "string";
|
|
464
|
-
readonly enum: readonly ["derived", "imported"];
|
|
465
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
464
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
465
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
466
466
|
readonly default: "derived";
|
|
467
467
|
};
|
|
468
468
|
readonly KeyStatus: {
|
|
@@ -585,8 +585,8 @@ export declare const RESPONSE_SPEC: {
|
|
|
585
585
|
readonly KeyOrigin: {
|
|
586
586
|
readonly title: "KeyOrigin";
|
|
587
587
|
readonly type: "string";
|
|
588
|
-
readonly enum: readonly ["derived", "imported"];
|
|
589
|
-
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.";
|
|
588
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
589
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
590
590
|
readonly default: "derived";
|
|
591
591
|
};
|
|
592
592
|
readonly KeyStatus: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AACpD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC7C;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AACpD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,QA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EAAG,oDAA6D,CAAC;AAE/F,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,uBAAuB,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsI1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -140,9 +140,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
140
140
|
"type": "string",
|
|
141
141
|
"enum": [
|
|
142
142
|
"derived",
|
|
143
|
-
"imported"
|
|
143
|
+
"imported",
|
|
144
|
+
"internal"
|
|
144
145
|
],
|
|
145
|
-
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.",
|
|
146
|
+
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
|
|
146
147
|
"default": "derived"
|
|
147
148
|
},
|
|
148
149
|
"KeyStatus": {
|
|
@@ -275,9 +276,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
275
276
|
"type": "string",
|
|
276
277
|
"enum": [
|
|
277
278
|
"derived",
|
|
278
|
-
"imported"
|
|
279
|
+
"imported",
|
|
280
|
+
"internal"
|
|
279
281
|
],
|
|
280
|
-
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately.",
|
|
282
|
+
"description": "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.",
|
|
281
283
|
"default": "derived"
|
|
282
284
|
},
|
|
283
285
|
"KeyStatus": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/keys/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmFH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2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ACN,SAAS;gBACT,UAAU;gBACV,UAAU;aACX;YACD,aAAa,EAAE,8wBAA8wB;YAC7xB,SAAS,EAAE,SAAS;SACrB;QACD,WAAW,EAAE;YACX,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,QAAQ;gBACR,SAAS;aACV;YACD,aAAa,EAAE,+KAA+K;SAC/L;QACD,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,SAAS;gBACT,QAAQ;gBACR,MAAM;aACP;YACD,aAAa,EAAE,sJAAsJ;SACtK;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deterministic document serialization and the SHA-256 digest over it.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors `canonical.rs` in trust-tasks-rs. SPEC §7.2 (*Keying and comparison
|
|
5
|
+
* for item 11*) defines two documents sharing an `id` as **the same document**
|
|
6
|
+
* when their serializations are identical under RFC 8785 canonicalization —
|
|
7
|
+
* the same identity §8.4 gives a retry. A consumer implementing item 11 has to
|
|
8
|
+
* retain a digest of what it accepted, not merely the `id`.
|
|
9
|
+
*
|
|
10
|
+
* `canonicalJson` here is closer to literal RFC 8785 than the Rust side is,
|
|
11
|
+
* because JavaScript's own primitives are what JCS was specified against:
|
|
12
|
+
* `Array.prototype.sort()` orders by UTF-16 code unit, and `JSON.stringify`
|
|
13
|
+
* formats numbers with `Number::toString` and escapes strings with exactly the
|
|
14
|
+
* §3.2.2.2 escape set. The only thing this adds is recursive member ordering.
|
|
15
|
+
*
|
|
16
|
+
* The item-11 digest is **consumer-local**: it goes into this consumer's own
|
|
17
|
+
* replay record and never onto the wire, into a citation, or into a proof. It
|
|
18
|
+
* is *not* the §4.9.3 task digest, which is computed over `document ∖ proof`
|
|
19
|
+
* and is a published, multibase-encoded multihash. See `replay.ts`.
|
|
20
|
+
*
|
|
21
|
+
* Hand-written, and dependency-free on purpose: this package ships no runtime
|
|
22
|
+
* dependencies, and `node:crypto` would not resolve in a browser or a worker.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Serialize `value` with object members recursively ordered and no
|
|
27
|
+
* insignificant whitespace.
|
|
28
|
+
*
|
|
29
|
+
* `undefined` members are omitted, as `JSON.stringify` omits them — which is
|
|
30
|
+
* what makes this agree with the document as it would be sent.
|
|
31
|
+
*/
|
|
32
|
+
export function canonicalJson(value: unknown): string {
|
|
33
|
+
if (value === null || typeof value !== "object") return JSON.stringify(value) ?? "null";
|
|
34
|
+
if (Array.isArray(value)) return `[${value.map((v) => canonicalJson(v)).join(",")}]`;
|
|
35
|
+
|
|
36
|
+
const entries = Object.entries(value as Record<string, unknown>)
|
|
37
|
+
.filter(([, v]) => v !== undefined)
|
|
38
|
+
// RFC 8785 §3.2.3: sort by UTF-16 code unit, which is what the default
|
|
39
|
+
// comparator does after String() — and these are already strings.
|
|
40
|
+
.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0));
|
|
41
|
+
|
|
42
|
+
return `{${entries.map(([k, v]) => `${JSON.stringify(k)}:${canonicalJson(v)}`).join(",")}}`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const K = new Uint32Array([
|
|
46
|
+
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
|
|
47
|
+
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
|
|
48
|
+
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
|
|
49
|
+
0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
|
|
50
|
+
0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
|
|
51
|
+
0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
|
|
52
|
+
0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
|
|
53
|
+
0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2,
|
|
54
|
+
]);
|
|
55
|
+
|
|
56
|
+
const rotr = (x: number, n: number): number => (x >>> n) | (x << (32 - n));
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* UTF-8 encode `s`, without `TextEncoder`.
|
|
60
|
+
*
|
|
61
|
+
* `TextEncoder` is a host global, not an ES2022 one: this package's `lib` is
|
|
62
|
+
* `["ES2022"]` and adding `DOM` to reach one name would pull the whole browser
|
|
63
|
+
* surface into a package that must also typecheck for Node and for workers.
|
|
64
|
+
* Fifteen lines is the cheaper price.
|
|
65
|
+
*
|
|
66
|
+
* Unpaired surrogates — which `JSON.parse` will produce from a `\uD800` escape
|
|
67
|
+
* — encode as U+FFFD, matching `TextEncoder`. Two documents differing only in
|
|
68
|
+
* an unpaired surrogate would therefore collide; they are not valid JSON text
|
|
69
|
+
* to begin with, and the collision absorbs a duplicate rather than executing
|
|
70
|
+
* one, so it fails safe.
|
|
71
|
+
*/
|
|
72
|
+
function utf8(s: string): Uint8Array {
|
|
73
|
+
const out: number[] = [];
|
|
74
|
+
for (let i = 0; i < s.length; i++) {
|
|
75
|
+
let cp = s.charCodeAt(i);
|
|
76
|
+
if (cp >= 0xd800 && cp <= 0xdbff && i + 1 < s.length) {
|
|
77
|
+
const low = s.charCodeAt(i + 1);
|
|
78
|
+
if (low >= 0xdc00 && low <= 0xdfff) {
|
|
79
|
+
cp = 0x10000 + ((cp - 0xd800) << 10) + (low - 0xdc00);
|
|
80
|
+
i++;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (cp >= 0xd800 && cp <= 0xdfff) cp = 0xfffd; // unpaired surrogate
|
|
84
|
+
|
|
85
|
+
if (cp < 0x80) out.push(cp);
|
|
86
|
+
else if (cp < 0x800) out.push(0xc0 | (cp >> 6), 0x80 | (cp & 0x3f));
|
|
87
|
+
else if (cp < 0x10000)
|
|
88
|
+
out.push(0xe0 | (cp >> 12), 0x80 | ((cp >> 6) & 0x3f), 0x80 | (cp & 0x3f));
|
|
89
|
+
else
|
|
90
|
+
out.push(
|
|
91
|
+
0xf0 | (cp >> 18),
|
|
92
|
+
0x80 | ((cp >> 12) & 0x3f),
|
|
93
|
+
0x80 | ((cp >> 6) & 0x3f),
|
|
94
|
+
0x80 | (cp & 0x3f),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
return Uint8Array.from(out);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* FIPS 180-4 SHA-256 over the UTF-8 encoding of `input`, as lowercase hex.
|
|
102
|
+
*
|
|
103
|
+
* Synchronous by necessity: `crypto.subtle.digest` is a Promise, and the
|
|
104
|
+
* consume pipeline needs the digest before it decides whether to await
|
|
105
|
+
* anything. Pinned to the standard's published vectors in `test/`.
|
|
106
|
+
*/
|
|
107
|
+
export function sha256Hex(input: string): string {
|
|
108
|
+
const bytes = utf8(input);
|
|
109
|
+
const bitLen = bytes.length * 8;
|
|
110
|
+
|
|
111
|
+
// Pad to a multiple of 64 bytes: 0x80, zeroes, then the 64-bit big-endian
|
|
112
|
+
// bit length.
|
|
113
|
+
const padded = new Uint8Array(Math.ceil((bytes.length + 9) / 64) * 64);
|
|
114
|
+
padded.set(bytes);
|
|
115
|
+
padded[bytes.length] = 0x80;
|
|
116
|
+
const view = new DataView(padded.buffer);
|
|
117
|
+
// Lengths above 2^53 bits are unreachable from a JS string; the high word is
|
|
118
|
+
// written anyway so the padding is well-formed.
|
|
119
|
+
view.setUint32(padded.length - 8, Math.floor(bitLen / 0x100000000), false);
|
|
120
|
+
view.setUint32(padded.length - 4, bitLen >>> 0, false);
|
|
121
|
+
|
|
122
|
+
const h = new Uint32Array([
|
|
123
|
+
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
|
|
124
|
+
]);
|
|
125
|
+
const w = new Uint32Array(64);
|
|
126
|
+
|
|
127
|
+
for (let offset = 0; offset < padded.length; offset += 64) {
|
|
128
|
+
for (let i = 0; i < 16; i++) w[i] = view.getUint32(offset + i * 4, false);
|
|
129
|
+
for (let i = 16; i < 64; i++) {
|
|
130
|
+
const s0 = rotr(w[i - 15]!, 7) ^ rotr(w[i - 15]!, 18) ^ (w[i - 15]! >>> 3);
|
|
131
|
+
const s1 = rotr(w[i - 2]!, 17) ^ rotr(w[i - 2]!, 19) ^ (w[i - 2]! >>> 10);
|
|
132
|
+
w[i] = (w[i - 16]! + s0 + w[i - 7]! + s1) >>> 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
let [a, b, c, d, e, f, g, hh] = [h[0]!, h[1]!, h[2]!, h[3]!, h[4]!, h[5]!, h[6]!, h[7]!];
|
|
136
|
+
for (let i = 0; i < 64; i++) {
|
|
137
|
+
const s1 = rotr(e, 6) ^ rotr(e, 11) ^ rotr(e, 25);
|
|
138
|
+
const ch = (e & f) ^ (~e & g);
|
|
139
|
+
const temp1 = (hh + s1 + ch + K[i]! + w[i]!) >>> 0;
|
|
140
|
+
const s0 = rotr(a, 2) ^ rotr(a, 13) ^ rotr(a, 22);
|
|
141
|
+
const maj = (a & b) ^ (a & c) ^ (b & c);
|
|
142
|
+
const temp2 = (s0 + maj) >>> 0;
|
|
143
|
+
|
|
144
|
+
hh = g;
|
|
145
|
+
g = f;
|
|
146
|
+
f = e;
|
|
147
|
+
e = (d + temp1) >>> 0;
|
|
148
|
+
d = c;
|
|
149
|
+
c = b;
|
|
150
|
+
b = a;
|
|
151
|
+
a = (temp1 + temp2) >>> 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const next = [a, b, c, d, e, f, g, hh];
|
|
155
|
+
for (let i = 0; i < 8; i++) h[i] = (h[i]! + next[i]!) >>> 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return Array.from(h, (word) => word.toString(16).padStart(8, "0")).join("");
|
|
159
|
+
}
|