From 901c713e4832172b9609a3138a846d79abd28b8e Mon Sep 17 00:00:00 2001 From: Marcin Gorzynski Date: Tue, 6 Feb 2024 14:33:51 +0100 Subject: [PATCH] Fix: p256r1 signature check --- intents/intent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intents/intent.go b/intents/intent.go index 8d22fe6..4504aa0 100644 --- a/intents/intent.go +++ b/intents/intent.go @@ -214,7 +214,7 @@ func (intent *Intent) isValidSignatureP256R1(publicKey string, signature string) messageHash2 := sha256.Sum256(messageHash) // signature - signatureBytes := common.FromHex(signature[3:]) + signatureBytes := common.FromHex(signature) if len(signatureBytes) != 64 { return false }