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

core/python could be structured more like a Python module #42

Open
friedrichsenm opened this issue Apr 15, 2021 · 2 comments
Open

core/python could be structured more like a Python module #42

friedrichsenm opened this issue Apr 15, 2021 · 2 comments

Comments

@friedrichsenm
Copy link

After running config.py to configure the curves you want to use, if you want to build a module that relies on any of the curves and then write any code depending on that module, the dependencies are currently a little clunky.

In my case, I ended up copying each of the curve directories created by config.py to my project and put an __init__.py file inside each of the folders so that I could install each curve as a Python module. I also had to copy the constants.py file to any folder with code that relied on any of the configured elliptic curves. The example structure below is what I used. In the example, assume that module_code.py depends on bn254 and that test.py relies on module_code.py.

project
|       bn254
|       |        __init__.py
|       |        big.py
...
|       module
|       |       __init__.py
|       |       module_code.py
...
|       test
|       |       constants.py
|       |       test.py

If config.py could allow you to install the curves and any necessary constants as modules, it would be much easier to use in combination with other projects.

@wanfuse123
Copy link

wanfuse123 commented May 31, 2024

can someone please post derailed install instructions for the c, c++, and python versions of this library? Lots of wasted potential for this because there is no directions! I appreciate any help greatly! For Linux please!

@mcarrickscott
Copy link
Contributor

mcarrickscott commented Jun 1, 2024 via email

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

3 participants