Skip to content

Commit

Permalink
fixed one off bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bitgamma committed Oct 11, 2023
1 parent 5a4ec08 commit 5bb74ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bb74ca

Please sign in to comment.