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

20 lines
462 B
Markdown
Raw Normal View History

# Test format: BLS hash-compressed
A BLS compressed-hash to G2.
## Test case format
```yaml
input:
message: bytes32,
domain: bytes -- any number
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`.
## 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`.