2019-04-12 12:15:30 +00:00
|
|
|
# Test format: BLS signature aggregation
|
|
|
|
|
|
|
|
A BLS signature aggregation combines a series of signatures into a single signature.
|
|
|
|
|
|
|
|
## 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: List[BLS Signature] -- list of input BLS signatures
|
2020-05-15 15:27:35 +00:00
|
|
|
output: BLS Signature -- expected output, single BLS signature or empty.
|
2019-04-12 12:15:30 +00:00
|
|
|
```
|
|
|
|
|
2020-05-15 15:27:35 +00:00
|
|
|
- `BLS Signature` here is encoded as a string: hexadecimal encoding of 96 bytes (192 nibbles), prefixed with `0x`.
|
|
|
|
- No output value if the input is invalid.
|
2019-04-12 12:15:30 +00:00
|
|
|
|
2021-08-06 08:39:35 +00:00
|
|
|
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x`.
|
|
|
|
|
2019-04-12 12:15:30 +00:00
|
|
|
## Condition
|
|
|
|
|
2020-05-14 16:45:26 +00:00
|
|
|
The `aggregate` handler should aggregate the signatures in the `input`, and the result should match the expected `output`.
|