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

Exception: secp256k1_schnorr not enabled #25

Open
pereferrera opened this issue Feb 22, 2018 · 2 comments
Open

Exception: secp256k1_schnorr not enabled #25

pereferrera opened this issue Feb 22, 2018 · 2 comments

Comments

@pereferrera
Copy link

Hi there,
I can't find much information on how to compile libsecp256k1 for Schnorr support, I simply tried to clone the latest version of the lib and compile it and still got the same error. Any ideas?

@darrenhdc
Copy link

+1

@kpxx
Copy link

kpxx commented Mar 4, 2021

Hi there,
I can't find much information on how to compile libsecp256k1 for Schnorr support, I simply tried to clone the latest version of the lib and compile it and still got the same error. Any ideas?

$git clone https://github.com/bitcoin-core/secp256k1.git
$cd secp256k1
$git log --stat  e06e878fd7dcc99825025fa99aedb86bc7d5c29f

following commit causes **secp256k1_schnorr not enabled**


commit e06e878fd7dcc99825025fa99aedb86bc7d5c29f
Author: Pieter Wuille pieter.wuille@gmail.com
Date: Thu Nov 17 17:49:11 2016 -0800

Remove Schnorr experiment


Let's checkout older one, then build:

$git checkout 04c8ef36ad35e846ac27157021a78f79465f2a22
#reinstall libsecp256k1
#NOTE: default prefix[/usr/local/]
$./configure --enable-experimental --enable-endomorphism --enable-module-schnorr --enable-module-recovery 
$make
$sudo make install

#reinstall secp256k1
$pip uninstall secp256k1 cffi
$env SECP_BUNDLED_EXPERIMENTAL=1 INCLUDE_DIR=/usr/local/include LIB_DIR=/usr/local/lib pip install --no-binary :all:  secp256k1 --no-cache-dir

here you are. gook luck and have fun.

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