crypto: remove a moot todo

This commit is contained in:
buddh0 2024-03-12 11:30:43 +08:00
parent ebf9e11af2
commit a25bd8cf4c

View file

@ -160,9 +160,6 @@ func signAndRecoverWithRandomMessages(t *testing.T, keys func() ([]byte, []byte)
} }
compactSigCheck(t, sig) compactSigCheck(t, sig)
// TODO: why do we flip around the recovery id?
sig[len(sig)-1] %= 4
pubkey2, err := RecoverPubkey(msg, sig) pubkey2, err := RecoverPubkey(msg, sig)
if err != nil { if err != nil {
t.Fatalf("recover error: %s", err) t.Fatalf("recover error: %s", err)