mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-14 20:54:27 +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
17 lines
412 B
Markdown
17 lines
412 B
Markdown
# 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:
|
|
|
|
```yaml
|
|
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`.
|