fix(native): preserve signature uncertainty and validate ticket framing

This commit is contained in:
morluto
2026-10-08 23:16:28 +08:00
132 changed files with 4003 additions and 1593 deletions
+2 -1
View File
@@ -8,7 +8,8 @@ export const notarizationTicketFixture = (): Uint8Array => {
content.writeUInt32LE(1, 8);
content[24] = 2;
content.fill(0xab, 25);
const signature = Buffer.from([0x30, 6, 2, 1, 1, 2, 1, 1]);
const signature = Buffer.alloc(72);
signature.set([0x30, 6, 2, 1, 1, 2, 1, 1]);
const header = Buffer.alloc(16);
header.write("s8ch", 0, "ascii");
header.writeUInt32LE(1, 4);