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
Add unit tests for the simple quadratic residue circuit for the Edwards and BN128 curves. Issue #103 addresses this for all curves except Edwards and BN128. For the latter two, the following compilation errors are generated:
Edwards:
libsnark/depends/libff/libff/algebra/fields/bigint.tcc:36: libff::bigint<n>::bigint(const char*) [with long int n = 3]: Assertion limbs_written <= n failed.
BN128:
libsnark/depends/libff/libff/algebra/fields/field_serialization.tcc:133:51: error: ‘const class mie::Fp’ has no member named ‘coeffs’
133 | typename std::decay<decltype(field_el.coeffs[0])>::type;
By the message, the BN128 error (serialization) may be related to the fact that when we are adding an element or a curve point to the hasher buffer, we first convert it into a string and then copy the string as a sequence of uint8_t elements at the end of the buffer. Possible solution to try would be to use the specific functions which can serialize as bytes in libff (see serialization files in the algebra dir).
The text was updated successfully, but these errors were encountered:
Add unit tests for the simple quadratic residue circuit for the
Edwards
andBN128
curves. Issue #103 addresses this for all curves exceptEdwards
andBN128
. For the latter two, the following compilation errors are generated:Edwards:
BN128:
By the message, the
BN128
error (serialization) may be related to the fact that when we are adding an element or a curve point to the hasher buffer, we first convert it into a string and then copy the string as a sequence ofuint8_t
elements at the end of the buffer. Possible solution to try would be to use the specific functions which can serialize as bytes inlibff
(see serialization files in the algebra dir).The text was updated successfully, but these errors were encountered: