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.
|
#include <mcl/bls12_381.hpp>
|
|
|
|
using namespace mcl::bn;
|
|
|
|
int main()
|
|
{
|
|
initPairing(mcl::BLS12_381);
|
|
Fp x, y, z;
|
|
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());
|
|
}
|
|
|