minor fixes

This commit is contained in:
protolambda 2019-04-03 13:50:56 +11:00
parent 00c3c1e2a6
commit f8cdd66ffc
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
3 changed files with 4 additions and 6 deletions

View File

@ -35,4 +35,5 @@ The following are the broad design goals for Ethereum 2.0:
Documentation on the different components used during spec writing can be found here:
* [YAML Test Generators](test_generators/README.md)
* [Executable Python Spec](test_libs/pyspec/README.md)
* [Py-tests](py_tests/README.md)

View File

@ -18,3 +18,4 @@ The base unit is bytes48 of which only 381 bits are used
## Comments
Compared to Zcash, Ethereum specs always requires the compressed form (c_flag / most significant bit always set).
Also note that pubkeys and privkeys are reversed.

View File

@ -1,7 +1,5 @@
"""
BLS test vectors generator
Usage:
"python tgen_bls path/to/output.yml"
"""
# Standard library
@ -10,13 +8,11 @@ from typing import Tuple
# Third-party
import yaml
from py_ecc import bls
# Ethereum
from eth_utils import int_to_big_endian, big_endian_to_int
# Local imports
from py_ecc import bls
def int_to_hex(n: int) -> str:
return '0x' + int_to_big_endian(n).hex()