From a63331363310b52b849e88b051301e42cf5601c9 Mon Sep 17 00:00:00 2001 From: Stojan Dimitrovski Date: Mon, 20 Oct 2025 16:03:38 +0200 Subject: [PATCH] fix: gosec incorrectly warns about accessing signature[64] --- internal/utilities/siwe/parser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/utilities/siwe/parser.go b/internal/utilities/siwe/parser.go index d6411e057..bd1c1f5dd 100644 --- a/internal/utilities/siwe/parser.go +++ b/internal/utilities/siwe/parser.go @@ -219,8 +219,9 @@ func (m *SIWEMessage) VerifySignature(signatureHex string) bool { copy(signature, sig) // Normalize V if needed + // #nosec G602 if signature[64] >= 27 { - signature[64] -= 27 + signature[64] -= 27 // #nosec G602 } hash := accounts.TextHash([]byte(m.Raw))