diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7f337c0..e8c1b23 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,7 +22,7 @@ jobs: go-version: '1.23.1' - name: install secp256k1 - run: cd p256k;bash install_secp256k1.sh + run: bash p256k/install_secp256k1.sh - name: Build run: go build -v ./... diff --git a/p256k/install_libsecp256k1.sh b/p256k/install_libsecp256k1.sh new file mode 100755 index 0000000..a0c0d15 --- /dev/null +++ b/p256k/install_libsecp256k1.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +sudo apt -y install build-essential autoconf libtool +cd $SCRIPT_DIR +rm -rf secp256k1 +git clone https://github.com/bitcoin-core/secp256k1.git +cd secp256k1 +git checkout v0.6.0 +git submodule init +git submodule update +./autogen.sh +./configure --enable-module-schnorrsig --prefix=/usr +make -j1 +sudo make install