2
0
mirror of https://github.com/status-im/eth2.0-specs.git synced 2025-01-11 03:05:43 +00:00
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

468 B

Test format: BLS sign message

Verify the signature against the given pubkeys and one messages.

Test case format

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

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

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