a portable and fast pairing-based cryptography library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mcl/test/static_code_test.cpp

16 lines
265 B

4 years ago
#include <mcl/bls12_381.hpp>
using namespace mcl::bn;
int main()
{
initPairing(mcl::BLS12_381);
Fp x, y, z;
4 years ago
x = 3;
y = 5;
z = x + y;
printf("x=%s\n", x.getStr(16).c_str());
printf("y=%s\n", y.getStr(16).c_str());
printf("z=%s\n", z.getStr(16).c_str());
4 years ago
}