(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestBLSFailSig(t *testing.T) { |
| 23 | msg := []byte("Hello Boneh-Lynn-Shacham") |
| 24 | private, public := NewKeyPair(suite, random.New()) |
| 25 | sig, err := Sign(suite, private, msg) |
| 26 | require.Nil(t, err) |
| 27 | sig[0] ^= 0x01 |
| 28 | if Verify(suite, public, msg, sig) == nil { |
| 29 | t.Fatal("bls: verification succeeded unexpectedly") |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | func TestBLSFailKey(t *testing.T) { |
| 34 | msg := []byte("Hello Boneh-Lynn-Shacham") |
nothing calls this directly
no test coverage detected