1

I am working on the elliptic curve and pairing stuff in Ethereum smart contract. How can I compute pairing such e(p1,p2)?

I know that we have a pre-compile pairing check in Ethereum client which is live at 0x08, and performs the pairing check.

From the documentation:

success := call(sub(gas, 2000), 8, 0, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)

This means we can just check equality of two pairings in a smart contract. However, I require the computation of exactly one pairing such as e(p1,p2)=? in Solidity.

mohsen
  • 53
  • 3
  • Related: https://ethereum.stackexchange.com/questions/71750/how-the-following-pairing-equality-be-verified-in-etherum-smart-contracts – eth May 20 '20 at 22:30
  • @eth no. I want to compute exactly of pairing not just equality check. – mohsen May 21 '20 at 00:46
  • The prior comment was just a way to force a link to your(?) other question. Because no one has been able to answer these yet, I would suggest trying to look at Ethereum projects working on privacy and ask them these questions, and you can self-answer here what you learn. – eth May 23 '20 at 05:41

0 Answers0