(t *testing.T)
| 11 | var suite = suites.MustFind("bn256") |
| 12 | |
| 13 | func TestBLS(t *testing.T) { |
| 14 | msg := []byte("Hello Boneh-Lynn-Shacham") |
| 15 | private, public := NewKeyPair(suite, random.New()) |
| 16 | sig, err := Sign(suite, private, msg) |
| 17 | require.Nil(t, err) |
| 18 | err = Verify(suite, public, msg, sig) |
| 19 | require.Nil(t, err) |
| 20 | } |
| 21 | |
| 22 | func TestBLSFailSig(t *testing.T) { |
| 23 | msg := []byte("Hello Boneh-Lynn-Shacham") |
nothing calls this directly
no test coverage detected