Skip to content

Commit

Permalink
add secp256k1 build/install script
Browse files Browse the repository at this point in the history
  • Loading branch information
mleku committed Nov 28, 2024
1 parent d21e883 commit c7321df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down
14 changes: 14 additions & 0 deletions p256k/install_libsecp256k1.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c7321df

Please sign in to comment.