eth2.0-specs/specs/test_formats/bls/msg_hash_g2_uncompressed.md

22 lines
549 B
Markdown
Raw Normal View History

# Test format: BLS hash-uncompressed
2019-06-30 23:36:19 +00:00
A BLS uncompressed-hash to G2.
## Test case format
The test data is declared in a `data.yaml` file:
```yaml
2019-06-30 23:36:19 +00:00
input:
message: bytes32
domain: bytes8 -- the BLS domain
output: List[List[bytes48]] -- 3 lists, each a length of two
```
2019-04-23 18:00:15 +00:00
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with `0x`.
## Condition
The `msg_hash_g2_uncompressed` handler should hash the `message`, with the given `domain`, to G2, without compression, and the result should match the expected `output`.