2019-04-12 12:15:30 +00:00
# Test format: BLS hash-compressed
A BLS compressed-hash to G2.
## 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:
2019-06-30 20:18:52 +00:00
message: bytes32
domain: bytes8 -- the BLS domain
2019-04-12 12:15:30 +00:00
output: List[bytes48] -- length of two
```
2019-04-23 18:00:25 +00:00
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x` .
2019-04-12 12:15:30 +00:00
## Condition
The `msg_hash_g2_compressed` handler should hash the `message` , with the given `domain` , to G2 with compression, and the result should match the expected `output` .