mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-10 02:35:41 +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
412 B
412 B
Test format: BLS sign message
Message signing with BLS should produce a signature.
Test case format
The test data is declared in a data.yaml
file:
input:
privkey: bytes32 -- the private key used for signing
message: bytes32 -- input message to sign (a hash)
output: bytes96 -- expected signature
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with 0x
.