Skip to content

Commit af28f57

Browse files
authored
feat(stream-tile-handler): use revocationPhaseOutSec option when verifying signatures (#2081)
1 parent 7673020 commit af28f57

File tree

3 files changed

+301
-37
lines changed

3 files changed

+301
-37
lines changed

packages/stream-tile-handler/src/__tests__/__snapshots__/tile-document.test.ts.snap

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,67 @@ Object {
154154
}
155155
`;
156156

157+
exports[`TileDocumentHandler applies commit made using an old key if it is applied within the revocation period 1`] = `
158+
Object {
159+
"anchorStatus": 0,
160+
"content": Object {
161+
"much": "data",
162+
},
163+
"log": Array [
164+
Object {
165+
"cid": Object {
166+
"code": 112,
167+
"hash": Uint8Array [
168+
18,
169+
32,
170+
222,
171+
189,
172+
122,
173+
219,
174+
60,
175+
229,
176+
101,
177+
68,
178+
210,
179+
42,
180+
111,
181+
107,
182+
147,
183+
57,
184+
111,
185+
105,
186+
128,
187+
168,
188+
6,
189+
124,
190+
44,
191+
193,
192+
52,
193+
240,
194+
247,
195+
128,
196+
27,
197+
99,
198+
49,
199+
9,
200+
43,
201+
149,
202+
],
203+
"version": 1,
204+
},
205+
"type": 0,
206+
},
207+
],
208+
"metadata": Object {
209+
"controllers": Array [
210+
"did:3:k2t6wyfsu4pg0t2n4j8ms3s33xsgqjhtto04mvq8w5a2v5xo48idyz38l7ydki",
211+
],
212+
},
213+
"signature": 2,
214+
"type": 0,
215+
}
216+
`;
217+
157218
exports[`TileDocumentHandler applies genesis commit correctly 1`] = `
158219
Object {
159220
"anchorStatus": 0,

0 commit comments

Comments
 (0)