2019-04-12 12:15:30 +00:00
|
|
|
# Test format: BLS sign message
|
|
|
|
|
|
|
|
Message signing with BLS should produce a signature.
|
|
|
|
|
|
|
|
## Test case format
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
input:
|
|
|
|
privkey: bytes32 -- the private key used for signing
|
|
|
|
message: bytes32 -- input message to sign (a hash)
|
2019-06-30 14:07:54 +00:00
|
|
|
domain: uint64 -- the BLS domain
|
2019-04-12 12:15:30 +00:00
|
|
|
output: bytes96 -- expected signature
|
|
|
|
```
|
|
|
|
|
2019-04-23 17:59:58 +00:00
|
|
|
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x`.
|
2019-04-12 12:15:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Condition
|
|
|
|
|
|
|
|
The `sign_msg` handler should sign the given `message`, with `domain`, using the given `privkey`, and the result should match the expected `output`.
|