arnaucube
arnaucube/NovaPublic Self-hosted repository
minor nits
Srinath Setty srinath@microsoft.com
Tue, 05 Oct 2021 14:39:48 -0700
commit

f87f9a0580a5c5eba42451a62719465b9dd8ac5e

parent

5829da790dd4c563ceef58af146d7819a2be1c16

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/lib.rs → src/lib.rs

@@ -205,7 +205,7 @@ let gens = R1CSGens::new(num_cons, num_vars);

let rand_inst_witness_generator = |gens: &R1CSGens<G>, I: &S| -> (S, R1CSInstance<G>, R1CSWitness<G>) { - let i0 = I.clone(); + let i0 = *I; // compute a satisfying (vars, X) tuple let (O, vars, X) = {

@@ -226,14 +226,14 @@ assert!(res.is_ok());

res.unwrap() }; let U = { - let comm_W = W.commit(&gens); + let comm_W = W.commit(gens); let res = R1CSInstance::new(&S, &comm_W, &X); assert!(res.is_ok()); res.unwrap() }; // check that generated instance is satisfiable - assert!(S.is_sat(&gens, &U, &W).is_ok()); + assert!(S.is_sat(gens, &U, &W).is_ok()); (O, U, W) };
M src/pasta.rs → src/pasta.rs

@@ -78,7 +78,7 @@

impl CompressedGroup for <pallas::Point as GroupEncoding>::Repr { type GroupElement = pallas::Point; fn decompress(&self) -> Option<<Self as CompressedGroup>::GroupElement> { - Some(Ep::from_bytes(&self).unwrap()) + Some(Ep::from_bytes(self).unwrap()) } fn as_bytes(&self) -> &[u8] { self