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}")
def prepare_fn() -> None: bls.use_milagro() return
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
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