This directory contains a bundled copy of libsecp256k1 for Linux AMD64 systems.
libsecp256k1.soThe bundled library provides several benefits:
The library loader automatically tries the bundled library first on Linux AMD64:
ctx, err := secp.NewContext(secp.ContextSign | secp.ContextVerify)
// Uses bundled ./libsecp256k1.so on Linux AMD64
The bundled library was built from the Bitcoin Core secp256k1 repository with:
./autogen.sh
./configure --enable-module-recovery \
--enable-module-schnorrsig \
--enable-module-ecdh \
--enable-module-extrakeys \
--enable-benchmark=no \
--enable-tests=no
make
If the bundled library doesn't work for your system, the loader will automatically fall back to system-installed versions:
libsecp256k1.so.5 (system)libsecp256k1.so.2 (system)/usr/lib/libsecp256k1.so/usr/local/lib/libsecp256k1.so/usr/lib/x86_64-linux-gnu/libsecp256k1.soFor other platforms (macOS, Windows, or other architectures), install libsecp256k1 using your system package manager:
macOS:
brew install libsecp256k1
Windows: Download from https://github.com/bitcoin-core/secp256k1/releases
libsecp256k1 is licensed under the MIT License. See: https://github.com/bitcoin-core/secp256k1/blob/master/COPYING