Skip to content

Commit

Permalink
Fix: p256r1 signature check
Browse files Browse the repository at this point in the history
  • Loading branch information
marino39 committed Feb 6, 2024
1 parent b467682 commit 901c713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intents/intent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 901c713

Please sign in to comment.