Compare commits

..

1 Commits

Author SHA1 Message Date
Zhang Zhuo
7f86aecefd prover: fix loading of degrees (#1503)
Co-authored-by: georgehao <georgehao@users.noreply.github.com>
2024-08-27 10:52:18 +08:00
2 changed files with 8 additions and 5 deletions

View File

@@ -44,12 +44,15 @@ static mut PARAMS_MAP: OnceCell<BTreeMap<u32, ParamsKZG<Bn256>>> = OnceCell::new
pub fn init(config: VerifierConfig) {
let low_conf = config.low_version_circuit;
// params should be shared between low and high
let mut params_map = BTreeMap::new();
for degree in [
std::env::set_var("SCROLL_PROVER_ASSETS_DIR", &low_conf.assets_path);
let params_degrees = [
*prover_v4::config::LAYER2_DEGREE,
*prover_v4::config::LAYER4_DEGREE,
] {
];
// params should be shared between low and high
let mut params_map = BTreeMap::new();
for degree in params_degrees {
if let std::collections::btree_map::Entry::Vacant(e) = params_map.entry(degree) {
match load_params(&low_conf.params_path, degree, None) {
Ok(params) => {

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
)
var tag = "v4.4.50"
var tag = "v4.4.51"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {