prestwich / b12-sol

BLS 12-381 and 12-377 precompile access in solidity
11 stars 5 forks source link

BLS 12 381 Precompile #2

Open wdcs-amitkumar opened 2 years ago

wdcs-amitkumar commented 2 years ago

Hi James!! Thanks for this implementation!!

Is it possible to perform BLS 12 381 signature verification using solidity smart contract you have provided ?

wdcs-amitkumar commented 2 years ago

Question 2 : Can we include pre-compiled contract inside another contract ?

prestwich commented 2 years ago
  1. it is possible only on certain networks. However, this contract is untested, and may be out of date
  2. You can call it from another contract.

I would not recommend relying on this code unless you are intimately familiar with precompiles on different EVM networks, solidity memory layout, and BLS