This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Split out bn128 helpers into a separate package #9147
Labels
F8-enhancement 🎊
An additional feature request.
M4-core ⛓
Core client code / Rust.
M5-dependencies 🖇
Dependencies.
P7-nicetohave 🐕
Issue is worth doing eventually.
Q2-easy 💃
Can be fixed by copy and pasting from StackOverflow.
Milestone
This is kind of a feature request.
Currently the precompiled contracts are implemented in ethcore/builtin. The bn128 ecadd/ecmul/ecpairing precompiles are implemented there as well, using the
bn
crate as the underlying library.In ethereumjs-vm the same underlying library is used and part of the code is duplicated as a wrapper library rustbn.js.
Now additionally we are experimented with writing the precompiles as contracts in the ewasm project and as a result we need the very same wrapper, hence we have split out the above code from
builtin.rs
into a crate of its own: https://github.com/ewasm/ethereum-bn128.rsIt can now be used by both rustbn.js and the contract.
This works well, but it seems like a bad idea to maintain a fork and such would like to invite the maintainers to consider splitting out that code into a crate maintained in this org and used by the Parity client too.
Would that be considered? Are there are any reasons against it? Would you accept a PR to do this?
The text was updated successfully, but these errors were encountered: