arnaucube
arnaucube/ark-r1cs-stdPublic Self-hosted repository
Add new additive and multiplcative ops for fields
Pratyush Mishra pratyushmishra@berkeley.edu
Fri, 14 Feb 2020 13:08:44 -0800
commit

bd501440cf1d265a30f2c5d541e18cd66337ec2b

parent

9621bd34a4b262c8e9926bf407aa9856e7a8f29b

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

jump to
M r1cs-std/src/test_constraint_system.rs → r1cs-std/src/test_constraint_system.rs

@@ -37,8 +37,8 @@ Index::Input(index) => inputs[index].0,

Index::Aux(index) => aux[index].0, }; - tmp.mul_assign(&coeff); - acc.add_assign(&tmp); + tmp *= coeff; + acc += tmp; } acc