plume-sig / zk-nullifier-sig

Implementation of PLUME: nullifier friendly signature scheme on ECDSA
MIT License
129 stars 22 forks source link

Can use circom 2.1 feature for array constraints #19

Closed 0xbok closed 9 months ago

0xbok commented 1 year ago

Circom 2.1 allows using <== operator for signal arrays (documentation). You can avoid writing loops just to assign inputs to a component.

For example:

-for (var i = 0; i < k; i++) {
-    g_pow_s.privkey[i] <== s[i];
-}
+g_pow_s.privkey <== s