Beispiel #1
0
def bls_type(request):
    bls_type = request.config.getoption("--bls-type")
    if bls_type == "py_ecc":
        bls_utils.use_py_ecc()
    elif bls_type == "milagro":
        bls_utils.use_milagro()
    else:
        raise Exception(f"unrecognized bls type: {bls_type}")
Beispiel #2
0
 def prepare_fn() -> None:
     bls.use_milagro()
     return
Beispiel #3
0
 def prepare_fn(configs_path: str) -> str:
     config_util.prepare_config(configs_path, config_name)
     reload(spec_phase0)
     reload(spec_phase1)
     bls.use_milagro()
     return config_name
Beispiel #4
0
 def prepare_fn(configs_path: str) -> str:
     config_util.prepare_config(configs_path, config_name)
     for spec in specs:
         reload(spec)
     bls.use_milagro()
     return config_name