Closed tkstanczak closed 4 years ago
For example the multiplication done in a very crude way at the bottomw works fine and passes all tests. But using mclbn256 Mul call on G1 * Fr gives a totally unexpected result:
OK, found all the problems with this: I needed to use the right r and p / use SetLittleEndianMod instead of deserialize.
So I get the pairing and addition fine but multiplication is always failing to be consistent with home build solution:
I feel like I tried various combinations but the numbers are just different. The reason I am trying is that I need to be able to verify if x,y pair is on the curve (without setStr and getStr that hurt performance) The only serialization format supported is compressed so I cannot really feed x and y in little endian binary form and need to run the verification myself.