Closed StefanosChaliasos closed 5 years ago
If you use C++, then the value is mcl::bn::BN::param.p . If you use C api, then use mclBn_getFieldOrder.
I want to get the value declared here in libff as an Fr element.
How about this?
#include <mcl/bn256.hpp>
#include <iostream>
int main()
{
mcl::bn::initPairing(mcl::BN_SNARK1);
std::cout << "r=" << mcl::bn::BN::param.r << std::endl;
}
r = 21888242871839275222246405745257275088548364400416034343698204186575808495617
Thanks a lot @herumi !
How can I get the order of G2 group of CurveSNARK1?