0.4.0 |
|
---|---|
0.3.2 |
|
0.3.1 |
|
0.2.3 |
|
#61 in #intermediate-representation
2.5MB
50K
SLoC
snarkvm-nonnative
lib.rs
:
This library provides the non-native field gadget for the snarkVM
constraint-writing platform.
The non-native field gadget can be used as a standard FieldVar
, given
reasonable non-native gadget parameters.
This file contains the implementation of three structs:
NonNativeFieldParams
specifies the constraint prime field (calledBaseField
), the simulated prime field (calledTargetField
), and internal parameters searched by the Python script (seeREADME.md
).NonNativeFieldVar
implements theFieldVar
for simulatingTargetField
arithmetic withinBaseField
.NonNativeFieldMulResultVar
is an intermediate representations of the result of multiplication, which is hidden from theFieldVar
interface and is left for advanced users who want better performance.
The Python script mentioned above can be found in the subdirectory scripts
.
Dependencies
~7.5MB
~156K SLoC