2019-04-12 12:15:30 +00:00
|
|
|
# Test format: BLS pubkey aggregation
|
|
|
|
|
|
|
|
A BLS pubkey aggregation combines a series of pubkeys into a single pubkey.
|
|
|
|
|
|
|
|
## 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 Pubkey] -- list of input BLS pubkeys
|
|
|
|
output: BLS Pubkey -- expected output, single BLS pubkey
|
|
|
|
```
|
|
|
|
|
|
|
|
`BLS Pubkey` here is encoded as a string: hexadecimal encoding of 48 bytes (96 nibbles), prefixed with `0x`.
|
|
|
|
|
|
|
|
|
|
|
|
## Condition
|
|
|
|
|
|
|
|
The `aggregate_pubkeys` handler should aggregate the keys in the `input`, and the result should match the expected `output`.
|