Closed mhewett-ks closed 5 years ago
T_mcl.setStr("aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll", 16);
The string must be 12 hexadecimal numbers, so You can't use 'ggg hhh iii jjj kkk lll.' And moreover, the value must be a p-th root of 1 in Fp12.
aaa bbb ccc ... was not a real example. The actual values that fail are shown.
I see. Thank you for the important information. It was the wrong specification of getStr. The parse of Fp dealed with '0b...' string with base 16 as a binary representation and throws an exception. I fixed it now. Could you try the new version?
I am using another library to generate a vector in Fp12 using pairing using the BLS12-381 curve. I have verified that the prime number used in MCL and the other library is the same: "1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab"
Sometimes I can import the generated vector into MCL but sometimes I can't.
When it generates an error, I get the following error:
Here are some examples that work and some that don't. I can't see any pattern. Can you tell me why MCL would accept some of them and not others?