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

How to Enable ECDH? #35

Open
eehlers opened this issue Apr 8, 2020 · 1 comment
Open

How to Enable ECDH? #35

eehlers opened this issue Apr 8, 2020 · 1 comment

Comments

@eehlers
Copy link

eehlers commented Apr 8, 2020

I tried configuring secp256k1 with ./configure --enable-experimental --enable-module-ecdh and building that. Still within secp256k1-py, secp256k1.HAS_ECDH is False. What am I doing wrong?

~/projects/secp256k1-py$ SECP_BUNDLED_EXPERIMENTAL=1 INCLUDE_DIR=/usr/local/include LIB_DIR=/usr/local/lib pip install . --no-binary :all:

@jarret
Copy link

jarret commented Jun 5, 2021

I am tripped up on this as well. I have definitely built with --enable-module-ecdh for the .so, however upon calling the function I am getting:

File "/home/jarret/.local/lib/python3.7/site-packages/secp256k1/__init__.py", line 307, in ecdh
    raise Exception("secp256k1_ecdh not enabled")
Exception: secp256k1_ecdh not enabled

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

2 participants