fix btcec !cgo thing and add the cgo secp256k1 install script

This commit is contained in:
2025-04-21 19:52:17 -01:06
parent e74cb9d4b9
commit 0db68184ef
2 changed files with 15 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
package p256k
import (
"relay.mleku.dev/log"
"relay.mleku.dev/p256k/btcec"
)

14
ubuntu_install_libsecp256k1.sh Executable file
View File

@@ -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 --enable-module-ecdh --prefix=/usr
make -j1
sudo make install