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:
|
Documentation on the different components used during spec writing can be found here:
|
||||||
* [YAML Test Generators](test_generators/README.md)
|
* [YAML Test Generators](test_generators/README.md)
|
||||||
* [Executable Python Spec](test_libs/pyspec/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
|
## 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
|
BLS test vectors generator
|
||||||
Usage:
|
|
||||||
"python tgen_bls path/to/output.yml"
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Standard library
|
# Standard library
|
||||||
|
@ -10,13 +8,11 @@ from typing import Tuple
|
||||||
|
|
||||||
# Third-party
|
# Third-party
|
||||||
import yaml
|
import yaml
|
||||||
|
from py_ecc import bls
|
||||||
|
|
||||||
# Ethereum
|
# Ethereum
|
||||||
from eth_utils import int_to_big_endian, big_endian_to_int
|
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:
|
def int_to_hex(n: int) -> str:
|
||||||
return '0x' + int_to_big_endian(n).hex()
|
return '0x' + int_to_big_endian(n).hex()
|
||||||
|
|
Loading…
Reference in New Issue