2019-04-12 22:15:30 +10:00
|
|
|
# Test format: BLS sign message
|
|
|
|
|
2019-07-01 00:36:19 +01:00
|
|
|
Message signing with BLS should produce a signature.
|
2019-04-12 22:15:30 +10:00
|
|
|
|
|
|
|
## Test case format
|
|
|
|
|
2019-07-30 14:09:20 +02:00
|
|
|
The test data is declared in a `data.yaml` file:
|
|
|
|
|
2019-04-12 22:15:30 +10:00
|
|
|
```yaml
|
|
|
|
input:
|
|
|
|
privkey: bytes32 -- the private key used for signing
|
|
|
|
message: bytes32 -- input message to sign (a hash)
|
2020-09-25 14:37:24 +08:00
|
|
|
output: BLS Signature -- expected output, single BLS signature or empty.
|
2019-04-12 22:15:30 +10:00
|
|
|
```
|
|
|
|
|
2019-04-23 12:59:58 -05:00
|
|
|
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x`.
|