2019-04-12 12:15:30 +00:00
|
|
|
# Test format: BLS sign message
|
|
|
|
|
2019-06-30 23:36:19 +00:00
|
|
|
Message signing with BLS should produce a signature.
|
2019-04-12 12:15:30 +00:00
|
|
|
|
|
|
|
## Test case format
|
|
|
|
|
2019-07-30 12:09:20 +00:00
|
|
|
The test data is declared in a `data.yaml` file:
|
|
|
|
|
2019-04-12 12:15:30 +00:00
|
|
|
```yaml
|
|
|
|
input:
|
|
|
|
privkey: bytes32 -- the private key used for signing
|
|
|
|
message: bytes32 -- input message to sign (a hash)
|
2022-09-20 17:20:20 +00:00
|
|
|
output: BLS Signature -- expected output, single BLS signature or `null`.
|
2019-04-12 12:15:30 +00:00
|
|
|
```
|
|
|
|
|
2022-09-20 17:20:20 +00:00
|
|
|
- All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x`.
|
|
|
|
- output value is `null` if the input is invalid.
|
|
|
|
|
|
|
|
## Condition
|
|
|
|
|
|
|
|
The `sign` handler should sign `message` with `privkey`, and the resulting signature should match the expected `output`.
|