2020-05-14 16:45:26 +00:00
# Test format: BLS sign message
Verify the signature against the given pubkeys and one messages.
## Test case format
The test data is declared in a `data.yaml` file:
```yaml
input:
2021-08-06 08:39:35 +00:00
pubkeys: List[BLS Pubkey] -- the pubkeys
2020-05-14 16:45:26 +00:00
messages: List[bytes32] -- the messages
2021-08-06 08:39:35 +00:00
signature: BLS Signature -- the signature to verify against pubkeys and messages
output: bool -- true (VALID) or false (INVALID)
2020-05-14 16:45:26 +00:00
```
2021-08-06 08:39:35 +00:00
- `BLS Pubkey` here is encoded as a string: hexadecimal encoding of 48 bytes (96 nibbles), prefixed with `0x` .
- `BLS Signature` here is encoded as a string: hexadecimal encoding of 96 bytes (192 nibbles), prefixed with `0x` .
2020-05-14 16:45:26 +00:00
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x` .
2021-08-06 08:39:35 +00:00
## Condition
The `aggregate_verify` handler should verify the signature with pubkeys and messages in the `input` , and the result should match the expected `output` .