Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing ECC and BN128 curve operations in Javascript #2

Closed
Mikerah opened this issue Jul 9, 2018 · 3 comments
Closed

Implementing ECC and BN128 curve operations in Javascript #2

Mikerah opened this issue Jul 9, 2018 · 3 comments

Comments

@Mikerah
Copy link
Contributor

Mikerah commented Jul 9, 2018

The main beacon chain reference in Python makes heavy use of the py_ecc library that was written by Vitalik Buterian and Piper Merriam. Javascript doesn't have a robust library like this. The closest thing I found was rustbn.js but it's still not enough.

I am currently undertaking research on whether we should just implement this from scratch in Javascript or using WebAssembly/asm.js, take py_ecc and compile it to Javascript.

@Mikerah
Copy link
Contributor Author

Mikerah commented Jul 12, 2018

I've started trying to compile the py_ecc library to Javascript.
It is currently a work in progress. The repository can be found here: https://github.com/Mikerah/py_ecc.js

@Mikerah
Copy link
Contributor Author

Mikerah commented Jul 23, 2018

Instead of using the emscripten library to compile the Cython code to Javascript, @GregTheGreek suggested to simply compile directly from Python to Javascript. Will look more into this.

@Mikerah
Copy link
Contributor Author

Mikerah commented Aug 31, 2018

We will be implementing a pairings library in pure JS and a BLS signatures library in pure JS. This will aid in the development of secure and standardized lirabries for ecc pairings and BLS signatures.

Closing this issue since we will be granulating tasks associated with doing the above.

@Mikerah Mikerah closed this as completed Aug 31, 2018
wemeetagain pushed a commit that referenced this issue Aug 5, 2019
wemeetagain pushed a commit that referenced this issue Sep 4, 2019
Merge from Chainsafe/lodestar
dapplion pushed a commit that referenced this issue Jan 19, 2022
Implementation of sim tests for remote signing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant