From 5bb74ca24f5b843672f12cb0cc587fa3ead56a4d Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Wed, 11 Oct 2023 17:21:53 +0900 Subject: [PATCH] fixed one off bug --- types/signature.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/signature.go b/types/signature.go index f9d551e..6967750 100644 --- a/types/signature.go +++ b/types/signature.go @@ -143,7 +143,7 @@ func compressPublicKey(pubKey []byte) []byte { return pubKey } - if (pubKey[63] & 1) == 1 { + if (pubKey[64] & 1) == 1 { pubKey[0] = 3 } else { pubKey[0] = 2