From f04a9f57ca79e6a75836e8039087ac40d705d3b6 Mon Sep 17 00:00:00 2001 From: Robert MacWha Date: Tue, 3 Feb 2026 14:05:29 -0500 Subject: [PATCH] fix: tag slice The tag occupies bytes 32-64 in bundle[0]. This bug doesn't result in any broken behavior since inside `decryptGCM` you trim the data with `ByteUtils.trim`. --- src/note/shield-note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/note/shield-note.ts b/src/note/shield-note.ts index a6d503c6..4ba17449 100644 --- a/src/note/shield-note.ts +++ b/src/note/shield-note.ts @@ -60,7 +60,7 @@ export abstract class ShieldNote { const decrypted = AES.decryptGCM( { iv: hexlified0.slice(0, 32), - tag: hexlified0.slice(16, 64), + tag: hexlified0.slice(32, 64), data: [hexlified1.slice(0, 32)], }, sharedKey,