diff --git a/crypto/secp256k1/secp256_test.go b/crypto/secp256k1/secp256_test.go index 74408d06d2..66252391c6 100644 --- a/crypto/secp256k1/secp256_test.go +++ b/crypto/secp256k1/secp256_test.go @@ -160,9 +160,6 @@ func signAndRecoverWithRandomMessages(t *testing.T, keys func() ([]byte, []byte) } compactSigCheck(t, sig) - // TODO: why do we flip around the recovery id? - sig[len(sig)-1] %= 4 - pubkey2, err := RecoverPubkey(msg, sig) if err != nil { t.Fatalf("recover error: %s", err)