near / devrel

The space for DevRel
MIT License
9 stars 0 forks source link

Example of using bn128 without precompile #326

Open ilblackdragon opened 3 years ago

ilblackdragon commented 3 years ago

We have been waiting for bn128 host function, but that's been blocked on the protocol level.

We should have an example just using the same code directly in the smart contract. It is worth just having that example to see how much it costs without host function.

The implementation that can be used is here: https://github.com/near/nearcore/pull/3971/files#diff-f4de132778efd4a1302c5c1d9983a4fbd0f2ce87bd8aaed08ecdd02ea1a5b947