@forestrie/forestrie-cli 0.8.0 → 0.8.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.
- package/dist/cli.js +27 -2
- package/dist/lib/decode-receipt-labels.d.ts +5 -1
- package/dist/lib/decode-receipt-labels.d.ts.map +1 -1
- package/dist/lib/decode-receipt-labels.js +33 -1
- package/dist/lib/decode-receipt-labels.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/decode-receipt-labels.ts +35 -1
package/dist/cli.js
CHANGED
|
@@ -31881,6 +31881,20 @@ var init_decode_receipt_labels = __esm(() => {
|
|
|
31881
31881
|
],
|
|
31882
31882
|
[-65537, { name: "idtimestamp", note: "forestrie private-use" }],
|
|
31883
31883
|
[-65538, { name: "forestrie grant v0", note: "forestrie private-use" }],
|
|
31884
|
+
[
|
|
31885
|
+
-65800,
|
|
31886
|
+
{
|
|
31887
|
+
name: "WebAuthn assertion envelope",
|
|
31888
|
+
note: "forestrie TBD1: [authenticatorData, clientDataJSON] (unprotected; " + "reuses the -65800 algorithm codepoint, label-registry.md §4)"
|
|
31889
|
+
}
|
|
31890
|
+
],
|
|
31891
|
+
[
|
|
31892
|
+
-65801,
|
|
31893
|
+
{
|
|
31894
|
+
name: "session key endorsement",
|
|
31895
|
+
note: "forestrie TBD2: the endorsement COSE_Sign1, embedded as a bstr " + "(unprotected, leaf-admission-and-session-endorsement.md)"
|
|
31896
|
+
}
|
|
31897
|
+
],
|
|
31884
31898
|
[
|
|
31885
31899
|
SEAL_PEAK_RECEIPTS_LABEL2,
|
|
31886
31900
|
{
|
|
@@ -31888,6 +31902,13 @@ var init_decode_receipt_labels = __esm(() => {
|
|
|
31888
31902
|
note: "forestrie SealPeakReceiptsLabel (checkpoint header)"
|
|
31889
31903
|
}
|
|
31890
31904
|
],
|
|
31905
|
+
[
|
|
31906
|
+
-66535,
|
|
31907
|
+
{
|
|
31908
|
+
name: "on-chain delegation proof",
|
|
31909
|
+
note: "forestrie SealDelegationProofLabel (checkpoint header)"
|
|
31910
|
+
}
|
|
31911
|
+
],
|
|
31891
31912
|
[-68009, { name: "forest genesis version", note: "forestrie private-use" }],
|
|
31892
31913
|
[-68011, { name: "univocity address", note: "forestrie private-use" }],
|
|
31893
31914
|
[-68013, { name: "chain id", note: "forestrie private-use" }],
|
|
@@ -31899,7 +31920,11 @@ var init_decode_receipt_labels = __esm(() => {
|
|
|
31899
31920
|
[-8, "EdDSA"],
|
|
31900
31921
|
[-35, "ES384"],
|
|
31901
31922
|
[-36, "ES512"],
|
|
31902
|
-
[-65799, "KS256 (secp256k1 + Keccak-256, forestrie private-use)"]
|
|
31923
|
+
[-65799, "KS256 (secp256k1 + Keccak-256, forestrie private-use)"],
|
|
31924
|
+
[
|
|
31925
|
+
-65800,
|
|
31926
|
+
"ES256-WebAuthn (forestrie private-use; delegation proofs and " + "certificates only, never checkpoint-signing)"
|
|
31927
|
+
]
|
|
31903
31928
|
]);
|
|
31904
31929
|
VDS_NAMES = new Map([
|
|
31905
31930
|
[1, "RFC9162_SHA256 (Certificate Transparency)"],
|
|
@@ -33696,7 +33721,7 @@ init_dist();
|
|
|
33696
33721
|
// package.json
|
|
33697
33722
|
var package_default = {
|
|
33698
33723
|
name: "@forestrie/forestrie-cli",
|
|
33699
|
-
version: "0.8.
|
|
33724
|
+
version: "0.8.1",
|
|
33700
33725
|
description: "forestrie — participant CLI for forestrie transparency logs (SCITT / COSE receipts)",
|
|
33701
33726
|
keywords: [
|
|
33702
33727
|
"forestrie",
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
* RFC 8392 (CWT claim keys), draft-ietf-cose-merkle-tree-proofs
|
|
8
8
|
* (395 vds / 396 verifiable proofs), and the forestrie private-use
|
|
9
9
|
* labels (canopy grants.md, ADR-0046, plan-0033 format v3,
|
|
10
|
-
* `@forestrie/receipt-verify` forest-genesis-labels).
|
|
10
|
+
* `@forestrie/receipt-verify` forest-genesis-labels). The forestrie
|
|
11
|
+
* private-use codepoints are normatively registered in
|
|
12
|
+
* forestrie/protocol's spec/label-registry.md — see that doc for
|
|
13
|
+
* -65800 (ALG_ES256_WEBAUTHN / TBD1), -65801 (TBD2), and -66535
|
|
14
|
+
* (SealDelegationProofLabel).
|
|
11
15
|
*/
|
|
12
16
|
/** CBOR tag for COSE_Sign1 (RFC 9052 §2). */
|
|
13
17
|
export declare const COSE_SIGN1_TAG = 18;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode-receipt-labels.d.ts","sourceRoot":"","sources":["../../src/lib/decode-receipt-labels.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"decode-receipt-labels.d.ts","sourceRoot":"","sources":["../../src/lib/decode-receipt-labels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,6CAA6C;AAC7C,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,iFAAiF;AACjF,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,uFAAuF;AACvF,eAAO,MAAM,SAAS,MAAM,CAAC;AAC7B,8CAA8C;AAC9C,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,oFAAoF;AACpF,eAAO,MAAM,wBAAwB,SAAS,CAAC;AAE/C,8CAA8C;AAC9C,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,gDAAgD;AAChD,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CA8DvD,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAWhD,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAIhD,CAAC;AAEH,wDAAwD;AACxD,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAStD,CAAC;AAEH,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAO3D,CAAC;AAEH,mEAAmE;AACnE,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAGvD,CAAC;AAEH,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAE/D"}
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
* RFC 8392 (CWT claim keys), draft-ietf-cose-merkle-tree-proofs
|
|
8
8
|
* (395 vds / 396 verifiable proofs), and the forestrie private-use
|
|
9
9
|
* labels (canopy grants.md, ADR-0046, plan-0033 format v3,
|
|
10
|
-
* `@forestrie/receipt-verify` forest-genesis-labels).
|
|
10
|
+
* `@forestrie/receipt-verify` forest-genesis-labels). The forestrie
|
|
11
|
+
* private-use codepoints are normatively registered in
|
|
12
|
+
* forestrie/protocol's spec/label-registry.md — see that doc for
|
|
13
|
+
* -65800 (ALG_ES256_WEBAUTHN / TBD1), -65801 (TBD2), and -66535
|
|
14
|
+
* (SealDelegationProofLabel).
|
|
11
15
|
*/
|
|
12
16
|
/** CBOR tag for COSE_Sign1 (RFC 9052 §2). */
|
|
13
17
|
export const COSE_SIGN1_TAG = 18;
|
|
@@ -51,6 +55,22 @@ export const HEADER_LABELS = new Map([
|
|
|
51
55
|
],
|
|
52
56
|
[-65537, { name: "idtimestamp", note: "forestrie private-use" }],
|
|
53
57
|
[-65538, { name: "forestrie grant v0", note: "forestrie private-use" }],
|
|
58
|
+
[
|
|
59
|
+
-65800,
|
|
60
|
+
{
|
|
61
|
+
name: "WebAuthn assertion envelope",
|
|
62
|
+
note: "forestrie TBD1: [authenticatorData, clientDataJSON] (unprotected; " +
|
|
63
|
+
"reuses the -65800 algorithm codepoint, label-registry.md §4)",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
[
|
|
67
|
+
-65801,
|
|
68
|
+
{
|
|
69
|
+
name: "session key endorsement",
|
|
70
|
+
note: "forestrie TBD2: the endorsement COSE_Sign1, embedded as a bstr " +
|
|
71
|
+
"(unprotected, leaf-admission-and-session-endorsement.md)",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
54
74
|
[
|
|
55
75
|
SEAL_PEAK_RECEIPTS_LABEL,
|
|
56
76
|
{
|
|
@@ -58,6 +78,13 @@ export const HEADER_LABELS = new Map([
|
|
|
58
78
|
note: "forestrie SealPeakReceiptsLabel (checkpoint header)",
|
|
59
79
|
},
|
|
60
80
|
],
|
|
81
|
+
[
|
|
82
|
+
-66535,
|
|
83
|
+
{
|
|
84
|
+
name: "on-chain delegation proof",
|
|
85
|
+
note: "forestrie SealDelegationProofLabel (checkpoint header)",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
61
88
|
[-68009, { name: "forest genesis version", note: "forestrie private-use" }],
|
|
62
89
|
[-68011, { name: "univocity address", note: "forestrie private-use" }],
|
|
63
90
|
[-68013, { name: "chain id", note: "forestrie private-use" }],
|
|
@@ -71,6 +98,11 @@ export const ALG_NAMES = new Map([
|
|
|
71
98
|
[-35, "ES384"],
|
|
72
99
|
[-36, "ES512"],
|
|
73
100
|
[-65799, "KS256 (secp256k1 + Keccak-256, forestrie private-use)"],
|
|
101
|
+
[
|
|
102
|
+
-65800,
|
|
103
|
+
"ES256-WebAuthn (forestrie private-use; delegation proofs and " +
|
|
104
|
+
"certificates only, never checkpoint-signing)",
|
|
105
|
+
],
|
|
74
106
|
]);
|
|
75
107
|
/**
|
|
76
108
|
* Verifiable data structure ids (draft-ietf-cose-merkle-tree-proofs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode-receipt-labels.js","sourceRoot":"","sources":["../../src/lib/decode-receipt-labels.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"decode-receipt-labels.js","sourceRoot":"","sources":["../../src/lib/decode-receipt-labels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,6CAA6C;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AAEjC,iFAAiF;AACjF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAC3C,uFAAuF;AACvF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC;AAC7B,8CAA8C;AAC9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AACnC,gFAAgF;AAChF,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,oFAAoF;AACpF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAK,CAAC;AAE/C,8CAA8C;AAC9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,CAAC;AACvC,gDAAgD;AAChD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,CAAC;AAQzC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAmC,IAAI,GAAG,CAAC;IACnE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACpB,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACrB,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;IAC7B,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACpB,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACnB,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IAC3B,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE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C;IACV,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;IACX,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IACT,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;CACV,CAAC,CAAC;AAEH,mEAAmE;AACnE,MAAM,CAAC,MAAM,gBAAgB,GAAgC,IAAI,GAAG,CAAC;IACnE,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;IAC1C,CAAC,sBAAsB,EAAE,oBAAoB,CAAC;CAC/C,CAAC,CAAC;AAEH,4EAA4E;AAC5E,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,OAAO,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;AAC1C,CAAC"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
* RFC 8392 (CWT claim keys), draft-ietf-cose-merkle-tree-proofs
|
|
8
8
|
* (395 vds / 396 verifiable proofs), and the forestrie private-use
|
|
9
9
|
* labels (canopy grants.md, ADR-0046, plan-0033 format v3,
|
|
10
|
-
* `@forestrie/receipt-verify` forest-genesis-labels).
|
|
10
|
+
* `@forestrie/receipt-verify` forest-genesis-labels). The forestrie
|
|
11
|
+
* private-use codepoints are normatively registered in
|
|
12
|
+
* forestrie/protocol's spec/label-registry.md — see that doc for
|
|
13
|
+
* -65800 (ALG_ES256_WEBAUTHN / TBD1), -65801 (TBD2), and -66535
|
|
14
|
+
* (SealDelegationProofLabel).
|
|
11
15
|
*/
|
|
12
16
|
|
|
13
17
|
/** CBOR tag for COSE_Sign1 (RFC 9052 §2). */
|
|
@@ -61,6 +65,24 @@ export const HEADER_LABELS: ReadonlyMap<number, LabelInfo> = new Map([
|
|
|
61
65
|
],
|
|
62
66
|
[-65537, { name: "idtimestamp", note: "forestrie private-use" }],
|
|
63
67
|
[-65538, { name: "forestrie grant v0", note: "forestrie private-use" }],
|
|
68
|
+
[
|
|
69
|
+
-65800,
|
|
70
|
+
{
|
|
71
|
+
name: "WebAuthn assertion envelope",
|
|
72
|
+
note:
|
|
73
|
+
"forestrie TBD1: [authenticatorData, clientDataJSON] (unprotected; " +
|
|
74
|
+
"reuses the -65800 algorithm codepoint, label-registry.md §4)",
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
-65801,
|
|
79
|
+
{
|
|
80
|
+
name: "session key endorsement",
|
|
81
|
+
note:
|
|
82
|
+
"forestrie TBD2: the endorsement COSE_Sign1, embedded as a bstr " +
|
|
83
|
+
"(unprotected, leaf-admission-and-session-endorsement.md)",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
64
86
|
[
|
|
65
87
|
SEAL_PEAK_RECEIPTS_LABEL,
|
|
66
88
|
{
|
|
@@ -68,6 +90,13 @@ export const HEADER_LABELS: ReadonlyMap<number, LabelInfo> = new Map([
|
|
|
68
90
|
note: "forestrie SealPeakReceiptsLabel (checkpoint header)",
|
|
69
91
|
},
|
|
70
92
|
],
|
|
93
|
+
[
|
|
94
|
+
-66535,
|
|
95
|
+
{
|
|
96
|
+
name: "on-chain delegation proof",
|
|
97
|
+
note: "forestrie SealDelegationProofLabel (checkpoint header)",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
71
100
|
[-68009, { name: "forest genesis version", note: "forestrie private-use" }],
|
|
72
101
|
[-68011, { name: "univocity address", note: "forestrie private-use" }],
|
|
73
102
|
[-68013, { name: "chain id", note: "forestrie private-use" }],
|
|
@@ -82,6 +111,11 @@ export const ALG_NAMES: ReadonlyMap<number, string> = new Map([
|
|
|
82
111
|
[-35, "ES384"],
|
|
83
112
|
[-36, "ES512"],
|
|
84
113
|
[-65799, "KS256 (secp256k1 + Keccak-256, forestrie private-use)"],
|
|
114
|
+
[
|
|
115
|
+
-65800,
|
|
116
|
+
"ES256-WebAuthn (forestrie private-use; delegation proofs and " +
|
|
117
|
+
"certificates only, never checkpoint-signing)",
|
|
118
|
+
],
|
|
85
119
|
]);
|
|
86
120
|
|
|
87
121
|
/**
|