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