(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestInvalidRecoveryID(t *testing.T) { |
| 87 | _, seckey := generateKeyPair() |
| 88 | msg := csprngEntropy(32) |
| 89 | sig, _ := Sign(msg, seckey) |
| 90 | sig[64] = 99 |
| 91 | _, err := RecoverPubkey(msg, sig) |
| 92 | if err != ErrInvalidRecoveryID { |
| 93 | t.Fatalf("got %q, want %q", err, ErrInvalidRecoveryID) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | func TestSignAndRecover(t *testing.T) { |
| 98 | pubkey1, seckey := generateKeyPair() |
nothing calls this directly
no test coverage detected