arkworks-rs / r1cs-std

R1CS constraints for bits, fields, and elliptic curves
https://www.arkworks.rs
Apache License 2.0
133 stars 58 forks source link

Add `Mul<NonNativeFieldVar<G::ScalarField, G::BaseField>>` to `G: Group` #132

Closed Pratyush closed 8 months ago

Pratyush commented 9 months ago

Summary

We don't have a scalar mul impl of a group element variable with its scalar field element.

Problem Definition

Ergonomics

Proposal

Add a Mul trait bound and the corresponding impls.


For Admin Use