Import `curve_order as BLS_MODULUS`

This commit is contained in:
Hsiao-Wei Wang 2023-03-07 16:52:09 +08:00
parent ca8a51fcf9
commit 661cca59c0
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ from eth2spec.test.helpers.sharding import (
from eth2spec.utils import bls
BLS_MODULUS = bls.curve_order
BLS_MODULUS = bls.BLS_MODULUS
def bls_add_one(x):

View File

@ -12,6 +12,7 @@ from py_ecc.optimized_bls12_381 import ( # noqa: F401
FQ12 as py_ecc_GT,
)
from py_ecc.bls.g2_primitives import ( # noqa: F401
curve_order as BLS_MODULUS,
G1_to_pubkey as py_ecc_G1_to_bytes48,
pubkey_to_G1 as py_ecc_bytes48_to_G1,
G2_to_signature as py_ecc_G2_to_bytes96,