2019-04-12 12:15:30 +00:00
|
|
|
# Test format: BLS private key to pubkey
|
|
|
|
|
|
|
|
A BLS private key to public key conversion.
|
|
|
|
|
|
|
|
## 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: bytes32 -- the private key
|
|
|
|
output: bytes48 -- the public key
|
|
|
|
```
|
|
|
|
|
2019-04-23 18:00:05 +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 `priv_to_pub` handler should compute the public key for the given private key `input`, and the result should match the expected `output`.
|