You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: This is similar to #1142 and #1180, but those issues will be done for foreign fields up to 259 bits. For RSA, we need much bigger fields with sizes of 2048 bits or similar.
For small fields, there are targeted FFadd and FFmul custom gates which do addition or multiplication in a single gate (1-2 rows) plus a few range checks on outputs.
However, for large fields we don't have such specific custom gates. This issue is about implementing big-field arithmetic without additional custom gates, only using available primitives.
Primitives that could be useful:
native addition and multiplication Field.add, Field.mul
Application: RSA, zk-email, zk JWTs
Note: This is similar to #1142 and #1180, but those issues will be done for foreign fields up to 259 bits. For RSA, we need much bigger fields with sizes of 2048 bits or similar.
For small fields, there are targeted
FFadd
andFFmul
custom gates which do addition or multiplication in a single gate (1-2 rows) plus a few range checks on outputs.However, for large fields we don't have such specific custom gates. This issue is about implementing big-field arithmetic without additional custom gates, only using available primitives.
Primitives that could be useful:
Field.add
,Field.mul
Gadgets.rangeCheck64
already exposed in o1jsThe text was updated successfully, but these errors were encountered: