eth2.0-specs/tests/formats/bls/fast_aggregate_verify.md
Hsiao-Wei Wang d27f2350a2
Update BLS test suite to BLS standard draft v2 format
1. Make sure that BLS -Verify APIs would only return `True` or `False` , no exceptions.
2. Use `eth2spec.utils.bls` instead of py_ecc for test generator
3. Add assertions in test generator
4. Add some special test cases for the -Verify APIs
5. Clean up the test format documents
2020-05-15 00:55:06 +08:00

457 B

Test format: BLS sign message

Verify the signature against the given pubkeys and one message.

Test case format

The test data is declared in a data.yaml file:

input:
  pubkeys: List[bytes48] -- the pubkey
  message: bytes32 -- the message
  signature: bytes96 -- the signature to verify against pubkeys and message
output: bool  -- VALID or INVALID

All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with 0x.