fixed one off bug

This commit is contained in:
Michele Balistreri 2023-10-11 17:21:53 +09:00
parent 5a4ec08c30
commit 5bb74ca24f
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 1 additions and 1 deletions

View File

@ -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