minor fixes
This commit is contained in:
parent
00c3c1e2a6
commit
f8cdd66ffc
|
@ -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)
|
||||
|
||||
|
|
|
@ -17,4 +17,5 @@ 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).
|
||||
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.
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue