@tacet-ink/journal-core 0.3.1 → 0.3.2
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 +6 -6
- package/dist/client/argon2.d.ts +13 -2
- package/dist/client/argon2.js +9 -3
- package/dist/client/note-crypto.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/server/env.d.ts +6 -0
- package/dist/server/ratelimit.d.ts +14 -0
- package/dist/server/ratelimit.js +54 -1
- package/docs/format-spec.md +5 -5
- package/docs/vectors/bip39.json +1 -1
- package/docs/vectors/families.json +77 -77
- package/docs/vectors/kat.json +1 -1
- package/package.json +3 -2
- package/scripts/verify-core-crypto.ts +147 -12
- package/src/client/argon2.ts +10 -3
- package/src/client/note-crypto.ts +3 -1
- package/src/index.ts +1 -1
- package/src/server/env.ts +7 -0
- package/src/server/ratelimit.ts +48 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "journal-core-vectors/1",
|
|
3
|
-
"package_version": "0.3.
|
|
3
|
+
"package_version": "0.3.1",
|
|
4
4
|
"spec": "docs/format-spec.md",
|
|
5
5
|
"generator": "scripts/generate-vectors.ts",
|
|
6
6
|
"note": "Frozen evidence generated once by calling the real primitives; not recomputed in CI (random iv/salt). Verify gate [26] checks presence and shape only.",
|
|
@@ -18,26 +18,26 @@
|
|
|
18
18
|
"identity": "acct-aaaaaaaaaaaaaaaa",
|
|
19
19
|
"key_hex": "ea50fc9b0196cfd3b25b4e518f431aa3bf50c1cfe92cd9f15b441e2ec7517e71"
|
|
20
20
|
},
|
|
21
|
-
"wire": "jr1u.
|
|
21
|
+
"wire": "jr1u.ZS3BwfTBUpRTPqEw9u3uv5/A8txoYvKn6YFJN1TmF9lZB+654r7obmOlD/jygE7GpyQMOp5uSw==",
|
|
22
22
|
"payload_len": 55,
|
|
23
23
|
"fields": [
|
|
24
24
|
{
|
|
25
25
|
"name": "iv",
|
|
26
26
|
"offset": 0,
|
|
27
27
|
"len": 12,
|
|
28
|
-
"hex": "
|
|
28
|
+
"hex": "652dc1c1f4c15294533ea130"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "ct",
|
|
32
32
|
"offset": 12,
|
|
33
33
|
"len": 27,
|
|
34
|
-
"hex": "
|
|
34
|
+
"hex": "f6edeebf9fc0f2dc6862f2a7e981493754e617d95907eeb9e2bee8"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "tag",
|
|
38
38
|
"offset": 39,
|
|
39
39
|
"len": 16,
|
|
40
|
-
"hex": "
|
|
40
|
+
"hex": "6e63a50ff8f2804ec6a7240c3a9e6e4b"
|
|
41
41
|
}
|
|
42
42
|
]
|
|
43
43
|
},
|
|
@@ -52,26 +52,26 @@
|
|
|
52
52
|
"aad": "noteId:n1",
|
|
53
53
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
54
54
|
},
|
|
55
|
-
"wire": "jr1b.
|
|
55
|
+
"wire": "jr1b.owQXSki9NwrZ173EXj1SukQM1Bm4yOd0AZPIZkgNeLYWipScEGgAsTVoVBei1VFl/OOvDNkCfw==",
|
|
56
56
|
"payload_len": 55,
|
|
57
57
|
"fields": [
|
|
58
58
|
{
|
|
59
59
|
"name": "iv",
|
|
60
60
|
"offset": 0,
|
|
61
61
|
"len": 12,
|
|
62
|
-
"hex": "
|
|
62
|
+
"hex": "a304174a48bd370ad9d7bdc4"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"name": "ct",
|
|
66
66
|
"offset": 12,
|
|
67
67
|
"len": 27,
|
|
68
|
-
"hex": "
|
|
68
|
+
"hex": "5e3d52ba440cd419b8c8e7740193c866480d78b6168a949c106800"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"name": "tag",
|
|
72
72
|
"offset": 39,
|
|
73
73
|
"len": 16,
|
|
74
|
-
"hex": "
|
|
74
|
+
"hex": "b135685417a2d55165fce3af0cd9027f"
|
|
75
75
|
}
|
|
76
76
|
]
|
|
77
77
|
},
|
|
@@ -86,26 +86,26 @@
|
|
|
86
86
|
"aad": "jr1a:note-abc:att-001",
|
|
87
87
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
88
88
|
},
|
|
89
|
-
"wire": "jr1c.
|
|
89
|
+
"wire": "jr1c.fuZfaRmnWhXl1nc4Uvr8l1Qtz9PSULC6wW8Qe1ArhTGBsuwTnsCIFuNV21iNbR2gtoDKlh3w9KDBkG+C8CYhg8gmaljx1OauhfbcB1vDa5tPiaw4e3JtoDNrI/U=",
|
|
90
90
|
"payload_len": 92,
|
|
91
91
|
"fields": [
|
|
92
92
|
{
|
|
93
93
|
"name": "iv",
|
|
94
94
|
"offset": 0,
|
|
95
95
|
"len": 12,
|
|
96
|
-
"hex": "
|
|
96
|
+
"hex": "7ee65f6919a75a15e5d67738"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"name": "ct",
|
|
100
100
|
"offset": 12,
|
|
101
101
|
"len": 64,
|
|
102
|
-
"hex": "
|
|
102
|
+
"hex": "52fafc97542dcfd3d250b0bac16f107b502b853181b2ec139ec08816e355db588d6d1da0b680ca961df0f4a0c1906f82f0262183c8266a58f1d4e6ae85f6dc07"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"name": "tag",
|
|
106
106
|
"offset": 76,
|
|
107
107
|
"len": 16,
|
|
108
|
-
"hex": "
|
|
108
|
+
"hex": "5bc36b9b4f89ac387b726da0336b23f5"
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
111
|
},
|
|
@@ -120,26 +120,26 @@
|
|
|
120
120
|
"aad": "note-abc",
|
|
121
121
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
122
122
|
},
|
|
123
|
-
"wire": "jr1d.
|
|
123
|
+
"wire": "jr1d.QkXjAJTB+XOcY8p6dmQXQeQVEv4876//2FzmWPc0AiqvSgyYGa7EsrpTWPD9bF3BKVbJ4vz7Ig4UnvgOpvkUWJ4mcqZHC2Hf",
|
|
124
124
|
"payload_len": 72,
|
|
125
125
|
"fields": [
|
|
126
126
|
{
|
|
127
127
|
"name": "iv",
|
|
128
128
|
"offset": 0,
|
|
129
129
|
"len": 12,
|
|
130
|
-
"hex": "
|
|
130
|
+
"hex": "4245e30094c1f9739c63ca7a"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"name": "ct",
|
|
134
134
|
"offset": 12,
|
|
135
135
|
"len": 44,
|
|
136
|
-
"hex": "
|
|
136
|
+
"hex": "76641741e41512fe3cefafffd85ce658f734022aaf4a0c9819aec4b2ba5358f0fd6c5dc12956c9e2fcfb220e"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "tag",
|
|
140
140
|
"offset": 56,
|
|
141
141
|
"len": 16,
|
|
142
|
-
"hex": "
|
|
142
|
+
"hex": "149ef80ea6f914589e2672a6470b61df"
|
|
143
143
|
}
|
|
144
144
|
]
|
|
145
145
|
},
|
|
@@ -151,29 +151,29 @@
|
|
|
151
151
|
"aad": "notekey",
|
|
152
152
|
"inputs": {
|
|
153
153
|
"passphrase": "correct-horse-battery-staple-42",
|
|
154
|
-
"salt_hex": "
|
|
154
|
+
"salt_hex": "544a80b6d0fad5505c5da067d9446464",
|
|
155
155
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
156
156
|
},
|
|
157
|
-
"wire": "jr1w.
|
|
157
|
+
"wire": "jr1w.Qwo31pQ9k/o+RN+HqI4Q5SPgcSfLutpy+F2c3H4B26/KLHcoaqHcswGlHFQE7WPCpjO+jlxBLj2PhCv4S5UgB10vvDHu7MXc0dFndA1t28/zxU+YtojkoeXbCgY=",
|
|
158
158
|
"payload_len": 92,
|
|
159
159
|
"fields": [
|
|
160
160
|
{
|
|
161
161
|
"name": "iv",
|
|
162
162
|
"offset": 0,
|
|
163
163
|
"len": 12,
|
|
164
|
-
"hex": "
|
|
164
|
+
"hex": "430a37d6943d93fa3e44df87"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"name": "ct",
|
|
168
168
|
"offset": 12,
|
|
169
169
|
"len": 64,
|
|
170
|
-
"hex": "
|
|
170
|
+
"hex": "a88e10e523e07127cbbada72f85d9cdc7e01dbafca2c77286aa1dcb301a51c5404ed63c2a633be8e5c412e3d8f842bf84b9520075d2fbc31eeecc5dcd1d16774"
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"name": "tag",
|
|
174
174
|
"offset": 76,
|
|
175
175
|
"len": 16,
|
|
176
|
-
"hex": "
|
|
176
|
+
"hex": "0d6ddbcff3c54f98b688e4a1e5db0a06"
|
|
177
177
|
}
|
|
178
178
|
]
|
|
179
179
|
},
|
|
@@ -189,26 +189,26 @@
|
|
|
189
189
|
"identity": "acct-aaaaaaaaaaaaaaaa",
|
|
190
190
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
191
191
|
},
|
|
192
|
-
"wire": "jr1w.
|
|
192
|
+
"wire": "jr1w.m7GyIzde0APyA4WemhwffzQvBzwORvJ/A/mgXwzSvdLhyCRZ7Ap4jtgXyVZrWuKL3Wfx7iuf5aPi5qNb9qx1GUSymzI3JFOnM9zzUnDadcPyXWmzdj7X7XakE5A=",
|
|
193
193
|
"payload_len": 92,
|
|
194
194
|
"fields": [
|
|
195
195
|
{
|
|
196
196
|
"name": "iv",
|
|
197
197
|
"offset": 0,
|
|
198
198
|
"len": 12,
|
|
199
|
-
"hex": "
|
|
199
|
+
"hex": "9bb1b223375ed003f203859e"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"name": "ct",
|
|
203
203
|
"offset": 12,
|
|
204
204
|
"len": 64,
|
|
205
|
-
"hex": "
|
|
205
|
+
"hex": "9a1c1f7f342f073c0e46f27f03f9a05f0cd2bdd2e1c82459ec0a788ed817c9566b5ae28bdd67f1ee2b9fe5a3e2e6a35bf6ac751944b29b32372453a733dcf352"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"name": "tag",
|
|
209
209
|
"offset": 76,
|
|
210
210
|
"len": 16,
|
|
211
|
-
"hex": "
|
|
211
|
+
"hex": "70da75c3f25d69b3763ed7ed76a41390"
|
|
212
212
|
}
|
|
213
213
|
]
|
|
214
214
|
},
|
|
@@ -225,26 +225,26 @@
|
|
|
225
225
|
"hkdf_info": "journal-kek-rec-v1:jr1r.",
|
|
226
226
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
227
227
|
},
|
|
228
|
-
"wire": "jr1r.
|
|
228
|
+
"wire": "jr1r.4ZXONUPnf30yza91DvOvEwvekyRh4XrouaFjz6oDBcfT/F3VcziKrIWncTFrI7aQUz7sdNpjSclxd1msGFDasWSzJBzxT302yp/AQTcMuX+yY2av+lUzUqoALqM=",
|
|
229
229
|
"payload_len": 92,
|
|
230
230
|
"fields": [
|
|
231
231
|
{
|
|
232
232
|
"name": "iv",
|
|
233
233
|
"offset": 0,
|
|
234
234
|
"len": 12,
|
|
235
|
-
"hex": "
|
|
235
|
+
"hex": "e195ce3543e77f7d32cdaf75"
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"name": "ct",
|
|
239
239
|
"offset": 12,
|
|
240
240
|
"len": 64,
|
|
241
|
-
"hex": "
|
|
241
|
+
"hex": "0ef3af130bde932461e17ae8b9a163cfaa0305c7d3fc5dd573388aac85a771316b23b690533eec74da6349c9717759ac1850dab164b3241cf14f7d36ca9fc041"
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
"name": "tag",
|
|
245
245
|
"offset": 76,
|
|
246
246
|
"len": 16,
|
|
247
|
-
"hex": "
|
|
247
|
+
"hex": "370cb97fb26366affa553352aa002ea3"
|
|
248
248
|
}
|
|
249
249
|
]
|
|
250
250
|
},
|
|
@@ -260,26 +260,26 @@
|
|
|
260
260
|
"storage_key": "tacet_notekey:acct-localwrap-vector",
|
|
261
261
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
262
262
|
},
|
|
263
|
-
"wire": "jr1l.
|
|
263
|
+
"wire": "jr1l.HSWPG10UxS1C5WIYxRyu4WvlwuOqkwTMcNs4ld6BQ/QOMmion9JpP6Ob+JjyjRFDfjiWtFi0tcE+ePiFjefuK6rgSbUy6KLpPnt7fGOTTPSBRV3Voia3+owb5Es=",
|
|
264
264
|
"payload_len": 92,
|
|
265
265
|
"fields": [
|
|
266
266
|
{
|
|
267
267
|
"name": "iv",
|
|
268
268
|
"offset": 0,
|
|
269
269
|
"len": 12,
|
|
270
|
-
"hex": "
|
|
270
|
+
"hex": "1d258f1b5d14c52d42e56218"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
"name": "ct",
|
|
274
274
|
"offset": 12,
|
|
275
275
|
"len": 64,
|
|
276
|
-
"hex": "
|
|
276
|
+
"hex": "c51caee16be5c2e3aa9304cc70db3895de8143f40e3268a89fd2693fa39bf898f28d11437e3896b458b4b5c13e78f8858de7ee2baae049b532e8a2e93e7b7b7c"
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
"name": "tag",
|
|
280
280
|
"offset": 76,
|
|
281
281
|
"len": 16,
|
|
282
|
-
"hex": "
|
|
282
|
+
"hex": "63934cf481455dd5a226b7fa8c1be44b"
|
|
283
283
|
}
|
|
284
284
|
]
|
|
285
285
|
},
|
|
@@ -291,29 +291,29 @@
|
|
|
291
291
|
"aad": "notekey-share",
|
|
292
292
|
"inputs": {
|
|
293
293
|
"share_passphrase": "share-link-passphrase-42",
|
|
294
|
-
"salt_hex": "
|
|
294
|
+
"salt_hex": "b06336f3c3dfe2efb8ad81ca87e2601c",
|
|
295
295
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
296
296
|
},
|
|
297
|
-
"wire": "jrsw
|
|
297
|
+
"wire": "jrsw.9K5zuYF9Nvqj9P7323sh7EF/21kqcLOpSnr0pAGTW2o5sQgKws+fyH6nFLYnXFxDiTASRvmtLQYpVjFRprdqJJ7c82x0gJUQfShNcmszM6tX33XjdHjtFq2AP64=",
|
|
298
298
|
"payload_len": 92,
|
|
299
299
|
"fields": [
|
|
300
300
|
{
|
|
301
301
|
"name": "iv",
|
|
302
302
|
"offset": 0,
|
|
303
303
|
"len": 12,
|
|
304
|
-
"hex": "
|
|
304
|
+
"hex": "f4ae73b9817d36faa3f4fef7"
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
"name": "ct",
|
|
308
308
|
"offset": 12,
|
|
309
309
|
"len": 64,
|
|
310
|
-
"hex": "
|
|
310
|
+
"hex": "db7b21ec417fdb592a70b3a94a7af4a401935b6a39b1080ac2cf9fc87ea714b6275c5c4389301246f9ad2d0629563151a6b76a249edcf36c748095107d284d72"
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
"name": "tag",
|
|
314
314
|
"offset": 76,
|
|
315
315
|
"len": 16,
|
|
316
|
-
"hex": "
|
|
316
|
+
"hex": "6b3333ab57df75e37478ed16ad803fae"
|
|
317
317
|
}
|
|
318
318
|
]
|
|
319
319
|
},
|
|
@@ -325,29 +325,29 @@
|
|
|
325
325
|
"aad": "notekey",
|
|
326
326
|
"inputs": {
|
|
327
327
|
"passphrase": "correct-horse-battery-staple-42",
|
|
328
|
-
"salt_hex": "
|
|
328
|
+
"salt_hex": "d594d58c276dabc1a9e1302dc122f5a3",
|
|
329
329
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
330
330
|
},
|
|
331
|
-
"wire": "jr3w.
|
|
331
|
+
"wire": "jr3w.8AgE83Npz9nggDW87UIREjOagSWGJuJjqgvq5+Y55FM7Zq/NcolNVVdvghG1Zx46Gn+wrUnVkPmzHYScG3//1xD9L3y0k9tGGSz8ASGqwl/dDN0Kh1Q5uVghup0=",
|
|
332
332
|
"payload_len": 92,
|
|
333
333
|
"fields": [
|
|
334
334
|
{
|
|
335
335
|
"name": "iv",
|
|
336
336
|
"offset": 0,
|
|
337
337
|
"len": 12,
|
|
338
|
-
"hex": "
|
|
338
|
+
"hex": "f00804f37369cfd9e08035bc"
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"name": "ct",
|
|
342
342
|
"offset": 12,
|
|
343
343
|
"len": 64,
|
|
344
|
-
"hex": "
|
|
344
|
+
"hex": "ed421112339a81258626e263aa0beae7e639e4533b66afcd72894d55576f8211b5671e3a1a7fb0ad49d590f9b31d849c1b7fffd710fd2f7cb493db46192cfc01"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
347
|
"name": "tag",
|
|
348
348
|
"offset": 76,
|
|
349
349
|
"len": 16,
|
|
350
|
-
"hex": "
|
|
350
|
+
"hex": "21aac25fdd0cdd0a875439b95821ba9d"
|
|
351
351
|
}
|
|
352
352
|
]
|
|
353
353
|
},
|
|
@@ -360,29 +360,29 @@
|
|
|
360
360
|
"inputs": {
|
|
361
361
|
"passphrase": "v3-generation-passphrase-42",
|
|
362
362
|
"passphrase_nfkc": "v3-generation-passphrase-42",
|
|
363
|
-
"salt_hex": "
|
|
363
|
+
"salt_hex": "9cd98ef12dd938be4e66c378aaf027c8",
|
|
364
364
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
365
365
|
},
|
|
366
|
-
"wire": "jr4w.
|
|
366
|
+
"wire": "jr4w.ZVCBeMIKtqPCN7qYPJE+GJ79fMc/DDoYVu/yyiAGYjXzpSl/AEMiaM4IME+A2qwpYwpPimnkyDf+NdP+YwP6PDMIsPRhsz/JmOGhxtA5J8QVnG1JhXPqvLBmNzo=",
|
|
367
367
|
"payload_len": 92,
|
|
368
368
|
"fields": [
|
|
369
369
|
{
|
|
370
370
|
"name": "iv",
|
|
371
371
|
"offset": 0,
|
|
372
372
|
"len": 12,
|
|
373
|
-
"hex": "
|
|
373
|
+
"hex": "65508178c20ab6a3c237ba98"
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
376
|
"name": "ct",
|
|
377
377
|
"offset": 12,
|
|
378
378
|
"len": 64,
|
|
379
|
-
"hex": "
|
|
379
|
+
"hex": "3c913e189efd7cc73f0c3a1856eff2ca20066235f3a5297f00432268ce08304f80daac29630a4f8a69e4c837fe35d3fe6303fa3c3308b0f461b33fc998e1a1c6"
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
382
|
"name": "tag",
|
|
383
383
|
"offset": 76,
|
|
384
384
|
"len": 16,
|
|
385
|
-
"hex": "
|
|
385
|
+
"hex": "d03927c4159c6d498573eabcb066373a"
|
|
386
386
|
}
|
|
387
387
|
]
|
|
388
388
|
},
|
|
@@ -394,29 +394,29 @@
|
|
|
394
394
|
"aad": "notekey-share",
|
|
395
395
|
"inputs": {
|
|
396
396
|
"share_passphrase": "share-link-passphrase-42",
|
|
397
|
-
"salt_hex": "
|
|
397
|
+
"salt_hex": "37b82b8b9aa3cd09cc093cba415d6fcb",
|
|
398
398
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
399
399
|
},
|
|
400
|
-
"wire": "jr3s.
|
|
400
|
+
"wire": "jr3s.jnQ8uwSc2Flji1DTrQwYxW4ffqEvc7htOx37ComKJ3jNNXxnkEf2zDvzkW9YYgFOUTyVDYCW7akPHvyP/xBLV1WTApZNkSExVcPi6lfGbInUIoSptVB5E/C7VBc=",
|
|
401
401
|
"payload_len": 92,
|
|
402
402
|
"fields": [
|
|
403
403
|
{
|
|
404
404
|
"name": "iv",
|
|
405
405
|
"offset": 0,
|
|
406
406
|
"len": 12,
|
|
407
|
-
"hex": "
|
|
407
|
+
"hex": "8e743cbb049cd859638b50d3"
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
"name": "ct",
|
|
411
411
|
"offset": 12,
|
|
412
412
|
"len": 64,
|
|
413
|
-
"hex": "
|
|
413
|
+
"hex": "ad0c18c56e1f7ea12f73b86d3b1dfb0a898a2778cd357c679047f6cc3bf3916f5862014e513c950d8096eda90f1efc8fff104b57559302964d91213155c3e2ea"
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
"name": "tag",
|
|
417
417
|
"offset": 76,
|
|
418
418
|
"len": 16,
|
|
419
|
-
"hex": "
|
|
419
|
+
"hex": "57c66c89d42284a9b5507913f0bb5417"
|
|
420
420
|
}
|
|
421
421
|
]
|
|
422
422
|
},
|
|
@@ -431,35 +431,35 @@
|
|
|
431
431
|
"pin": "2580ab",
|
|
432
432
|
"pinSaltPrefix": "tacet-note-pin1:",
|
|
433
433
|
"hkdf_info": "journal-kek2-v1:jr2w.",
|
|
434
|
-
"salt1_hex": "
|
|
434
|
+
"salt1_hex": "ea9e0674d00b7d24e8e0edee651dd364",
|
|
435
435
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
436
436
|
},
|
|
437
|
-
"wire": "jr2w
|
|
437
|
+
"wire": "jr2w.+if5XW6YNbRyZiTMeDRlZNv67y/+OxQGi1fFPqxe4sUOUgowZ7Kb1ShTvku4+QZSJ8QusPoIni+zNDgZ0Fq77PALPof0HsgitA/40hnZ9qsPLDaB2Wkx59WdtuMto2M2wb54FwbXGOD2wWPa",
|
|
438
438
|
"payload_len": 108,
|
|
439
439
|
"fields": [
|
|
440
440
|
{
|
|
441
441
|
"name": "pinSalt",
|
|
442
442
|
"offset": 0,
|
|
443
443
|
"len": 16,
|
|
444
|
-
"hex": "
|
|
444
|
+
"hex": "fa27f95d6e9835b4726624cc78346564"
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
"name": "iv",
|
|
448
448
|
"offset": 16,
|
|
449
449
|
"len": 12,
|
|
450
|
-
"hex": "
|
|
450
|
+
"hex": "dbfaef2ffe3b14068b57c53e"
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
453
|
"name": "ct",
|
|
454
454
|
"offset": 28,
|
|
455
455
|
"len": 64,
|
|
456
|
-
"hex": "
|
|
456
|
+
"hex": "ac5ee2c50e520a3067b29bd52853be4bb8f9065227c42eb0fa089e2fb3343819d05abbecf00b3e87f41ec822b40ff8d219d9f6ab0f2c3681d96931e7d59db6e3"
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
"name": "tag",
|
|
460
460
|
"offset": 92,
|
|
461
461
|
"len": 16,
|
|
462
|
-
"hex": "
|
|
462
|
+
"hex": "2da36336c1be781706d718e0f6c163da"
|
|
463
463
|
}
|
|
464
464
|
]
|
|
465
465
|
},
|
|
@@ -474,35 +474,35 @@
|
|
|
474
474
|
"pin": "2580ab",
|
|
475
475
|
"pinSalt3Prefix": "tacet-note-pin3:",
|
|
476
476
|
"hkdf_info": "journal-kek2-v1:jr3d.",
|
|
477
|
-
"salt1_hex": "
|
|
477
|
+
"salt1_hex": "4d7870b820f67d49e16e12a77d89e1f2",
|
|
478
478
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
479
479
|
},
|
|
480
|
-
"wire": "jr3d.
|
|
480
|
+
"wire": "jr3d.M4mF/2xsr2Detprhjx98du58U57nFnfdB0Z4i4+Qxl6iXUA799QN9DSSXszfyvv6ZouZsanCAKz6nls8SywMkorfw5TBKSl7YoqRI5SdEM8pOCpFRU439rJi2P+bUvF6I69hC8ox28Hw/l6g",
|
|
481
481
|
"payload_len": 108,
|
|
482
482
|
"fields": [
|
|
483
483
|
{
|
|
484
484
|
"name": "pinSalt",
|
|
485
485
|
"offset": 0,
|
|
486
486
|
"len": 16,
|
|
487
|
-
"hex": "
|
|
487
|
+
"hex": "338985ff6c6caf60deb69ae18f1f7c76"
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
490
|
"name": "iv",
|
|
491
491
|
"offset": 16,
|
|
492
492
|
"len": 12,
|
|
493
|
-
"hex": "
|
|
493
|
+
"hex": "ee7c539ee71677dd0746788b"
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
"name": "ct",
|
|
497
497
|
"offset": 28,
|
|
498
498
|
"len": 64,
|
|
499
|
-
"hex": "
|
|
499
|
+
"hex": "8f90c65ea25d403bf7d40df434925eccdfcafbfa668b99b1a9c200acfa9e5b3c4b2c0c928adfc394c129297b628a9123949d10cf29382a45454e37f6b262d8ff"
|
|
500
500
|
},
|
|
501
501
|
{
|
|
502
502
|
"name": "tag",
|
|
503
503
|
"offset": 92,
|
|
504
504
|
"len": 16,
|
|
505
|
-
"hex": "
|
|
505
|
+
"hex": "9b52f17a23af610bca31dbc1f0fe5ea0"
|
|
506
506
|
}
|
|
507
507
|
]
|
|
508
508
|
},
|
|
@@ -518,35 +518,35 @@
|
|
|
518
518
|
"pin": "2580ab",
|
|
519
519
|
"pinSalt3Prefix": "tacet-note-pin3:",
|
|
520
520
|
"hkdf_info": "journal-kek2-v1:jr4d.",
|
|
521
|
-
"salt1_hex": "
|
|
521
|
+
"salt1_hex": "2e3a9e65ac9bf74541ef3ccb2b8e30b0",
|
|
522
522
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
523
523
|
},
|
|
524
|
-
"wire": "jr4d.
|
|
524
|
+
"wire": "jr4d.bMi3+BuBUawgYyjCsPmRVwzkNu2obrPeQgMS4jRjYp6PAEy2FtL+MqqPtZyLuiY/4aM8VMCF7vD5euCkyVKyYZK7n7AMSj8MqGRyTabmPu3HermfU+C+ay9EDoVjKqVz11wioGLtearh7yg2",
|
|
525
525
|
"payload_len": 108,
|
|
526
526
|
"fields": [
|
|
527
527
|
{
|
|
528
528
|
"name": "pinSalt",
|
|
529
529
|
"offset": 0,
|
|
530
530
|
"len": 16,
|
|
531
|
-
"hex": "
|
|
531
|
+
"hex": "6cc8b7f81b8151ac206328c2b0f99157"
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
534
|
"name": "iv",
|
|
535
535
|
"offset": 16,
|
|
536
536
|
"len": 12,
|
|
537
|
-
"hex": "
|
|
537
|
+
"hex": "0ce436eda86eb3de420312e2"
|
|
538
538
|
},
|
|
539
539
|
{
|
|
540
540
|
"name": "ct",
|
|
541
541
|
"offset": 28,
|
|
542
542
|
"len": 64,
|
|
543
|
-
"hex": "
|
|
543
|
+
"hex": "3463629e8f004cb616d2fe32aa8fb59c8bba263fe1a33c54c085eef0f97ae0a4c952b26192bb9fb00c4a3f0ca864724da6e63eedc77ab99f53e0be6b2f440e85"
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
"name": "tag",
|
|
547
547
|
"offset": 92,
|
|
548
548
|
"len": 16,
|
|
549
|
-
"hex": "
|
|
549
|
+
"hex": "632aa573d75c22a062ed79aae1ef2836"
|
|
550
550
|
}
|
|
551
551
|
]
|
|
552
552
|
},
|
|
@@ -561,32 +561,32 @@
|
|
|
561
561
|
"pinLockSaltPrefix": "tacet-pinlock-v1:",
|
|
562
562
|
"note_key_hex": "c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3"
|
|
563
563
|
},
|
|
564
|
-
"wire": "jr1p
|
|
564
|
+
"wire": "jr1p.N8eyu8Mj2/XKCF2ICVc+9m2nP/0AyLAH4PPoyUv5gdKYouuPGX8KjP3JMsK01qe13fg/KPv+BDWkE6yhnx2yuEGRmG2LV4s8jLe4+HwxovGvGg7Q8Y5R8XlPrrDizIi1iuznMj0gW6vGYF0e",
|
|
565
565
|
"payload_len": 108,
|
|
566
566
|
"fields": [
|
|
567
567
|
{
|
|
568
568
|
"name": "pinSalt",
|
|
569
569
|
"offset": 0,
|
|
570
570
|
"len": 16,
|
|
571
|
-
"hex": "
|
|
571
|
+
"hex": "37c7b2bbc323dbf5ca085d8809573ef6"
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
574
|
"name": "iv",
|
|
575
575
|
"offset": 16,
|
|
576
576
|
"len": 12,
|
|
577
|
-
"hex": "
|
|
577
|
+
"hex": "6da73ffd00c8b007e0f3e8c9"
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
580
|
"name": "ct",
|
|
581
581
|
"offset": 28,
|
|
582
582
|
"len": 64,
|
|
583
|
-
"hex": "
|
|
583
|
+
"hex": "4bf981d298a2eb8f197f0a8cfdc932c2b4d6a7b5ddf83f28fbfe0435a413aca19f1db2b84191986d8b578b3c8cb7b8f87c31a2f1af1a0ed0f18e51f1794faeb0"
|
|
584
584
|
},
|
|
585
585
|
{
|
|
586
586
|
"name": "tag",
|
|
587
587
|
"offset": 92,
|
|
588
588
|
"len": 16,
|
|
589
|
-
"hex": "
|
|
589
|
+
"hex": "e2cc88b58aece7323d205babc6605d1e"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
package/docs/vectors/kat.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "journal-core-vectors/1",
|
|
3
|
-
"package_version": "0.3.
|
|
3
|
+
"package_version": "0.3.1",
|
|
4
4
|
"spec": "docs/format-spec.md",
|
|
5
5
|
"generator": "scripts/generate-vectors.ts",
|
|
6
6
|
"note": "Frozen evidence generated once by calling the real primitives; not recomputed in CI (random iv/salt). Verify gate [26] checks presence and shape only.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tacet-ink/journal-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Zero-knowledge journal core — e2e crypto, passphrase-only auth, transport, ratelimit. The server never sees plaintext.",
|
|
5
5
|
"homepage": "https://tacet.ink",
|
|
6
6
|
"repository": {
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"scripts",
|
|
94
94
|
"!scripts/generate-vectors.ts",
|
|
95
95
|
"!scripts/vendor-hash-wasm.cjs",
|
|
96
|
+
"!scripts/dts-fixture.cjs",
|
|
96
97
|
"migrations",
|
|
97
98
|
"README.md",
|
|
98
99
|
"LICENSE"
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
"vendor:hash-wasm": "node scripts/vendor-hash-wasm.cjs"
|
|
109
110
|
},
|
|
110
111
|
"devDependencies": {
|
|
111
|
-
"@cloudflare/workers-types": "^5.
|
|
112
|
+
"@cloudflare/workers-types": "^5.20261010.1",
|
|
112
113
|
"@scure/bip39": "^2.4.0",
|
|
113
114
|
"hash-wasm": "^4.12.0",
|
|
114
115
|
"typescript": "~7.0.2"
|