mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-14 05:15:03 -05:00
887 B
887 B
Test format: BLS sign message
Verify the signature against the given pubkeys and one messages.
Test case format
The test data is declared in a data.yaml file:
input:
pubkeys: List[BLS Pubkey] -- the pubkeys
messages: List[bytes32] -- the messages
signature: BLS Signature -- the signature to verify against pubkeys and messages
output: bool -- true (VALID) or false (INVALID)
BLS Pubkeyhere is encoded as a string: hexadecimal encoding of 48 bytes (96 nibbles), prefixed with0x.BLS Signaturehere is encoded as a string: hexadecimal encoding of 96 bytes (192 nibbles), prefixed with0x.
All byte(s) fields are encoded as strings, hexadecimal encoding, prefixed with 0x.
Condition
The aggregate_verify handler should verify the signature with pubkeys and messages in the input, and the result should match the expected output.