Pārlūkot izejas kodu

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

Ian Goldberg 5 mēneši atpakaļ
vecāks
revīzija
ad1129a301
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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