23 lines
614 B
Markdown
Raw Normal View History

# Test format: BLS sign message
2019-07-01 00:36:19 +01:00
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)
domain: bytes8 -- the BLS domain
output: bytes96 -- expected signature
```
2019-04-23 12:59:58 -05:00
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x`.
## Condition
The `sign_msg` handler should sign the given `message`, with `domain`, using the given `privkey`, and the result should match the expected `output`.