mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-09 10:22:00 +00:00
d27f2350a2
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
452 B
452 B
Test format: BLS sign message
Verify the signature against the given one pubkey and one message.
Test case format
The test data is declared in a data.yaml
file:
input:
pubkey: bytes48 -- the pubkey
message: bytes32 -- the message
signature: bytes96 -- the signature to verify against pubkey and message
output: bool -- VALID or INVALID
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with 0x
.