From 6d01e78711b8ae8cc63fbb3406ecc54dd7ecd168 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Sat, 17 Mar 2018 09:02:29 -0600 Subject: [PATCH] Fix variable names in output circuit --- src/circuit/sapling/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/circuit/sapling/mod.rs b/src/circuit/sapling/mod.rs index 4300bb8..936930d 100644 --- a/src/circuit/sapling/mod.rs +++ b/src/circuit/sapling/mod.rs @@ -507,7 +507,7 @@ impl<'a, E: JubjubEngine> Circuit for Output<'a, E> { note_contents.len(), 64 + // value 256 + // g_d - 256 // p_d + 256 // pk_d ); // Compute the hash of the note contents @@ -520,23 +520,23 @@ impl<'a, E: JubjubEngine> Circuit for Output<'a, E> { { // Booleanize the randomness - let cmr = boolean::field_into_boolean_vec_le( - cs.namespace(|| "cmr"), + let rcm = boolean::field_into_boolean_vec_le( + cs.namespace(|| "rcm"), self.commitment_randomness )?; // Compute the note commitment randomness in the exponent - let cmr = ecc::fixed_base_multiplication( + let rcm = ecc::fixed_base_multiplication( cs.namespace(|| "computation of commitment randomness"), FixedGenerators::NoteCommitmentRandomness, - &cmr, + &rcm, self.params )?; // Randomize our note commitment cm = cm.add( cs.namespace(|| "randomization of note commitment"), - &cmr, + &rcm, self.params )?; }