(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func TestBLSFailKey(t *testing.T) { |
| 34 | msg := []byte("Hello Boneh-Lynn-Shacham") |
| 35 | private, _ := NewKeyPair(suite, random.New()) |
| 36 | sig, err := Sign(suite, private, msg) |
| 37 | require.Nil(t, err) |
| 38 | _, public := NewKeyPair(suite, random.New()) |
| 39 | if Verify(suite, public, msg, sig) == nil { |
| 40 | t.Fatal("bls: verification succeeded unexpectedly") |
| 41 | } |
| 42 | } |
nothing calls this directly
no test coverage detected