Просмотр исходного кода

The generators don't appear to match? Explicitly dump them.

Ian Goldberg 5 месяцев назад
Родитель
Сommit
ad1129a301
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      sigma-compiler-core/src/rangeproof.rs

+ 4 - 0
sigma-compiler-core/src/rangeproof.rs

@@ -563,6 +563,10 @@ pub fn transform(
                 #firstbitrand_var, #rand_generator.to_bytes()));
             sigma_compiler::dumper::dump(&format!("commitment_var {} = {:?}\n",
                 stringify!(#commitment_var), #commitment_var.to_bytes()));
+            sigma_compiler::dumper::dump(&format!("commit generator {} = {:?}\n",
+                stringify!(#commit_generator), #commit_generator.to_bytes()));
+            sigma_compiler::dumper::dump(&format!("rand generator {} = {:?}\n",
+                stringify!(#rand_generator), #rand_generator.to_bytes()));
         });
 
         // The verifier also needs to compute the first commitment