github.com/piotrnar/gocoin@v0.0.0-20240512203912-faa0448c5e96/lib/others/cgo/sipasec/sipasec_windows.go (about) 1 //go:build windows 2 // +build windows 3 4 package sipasec 5 6 /* 7 1. MSYS2 + MinGW64 8 See the following web pages for info on installing MSYS2 and mingw64 for your Windows OS. 9 Please note that you will need the 64-bit compiler. 10 * http://www.msys2.org/ 11 * https://stackoverflow.com/questions/30069830/how-to-install-mingw-w64-and-msys2#30071634 12 13 14 2. Dependencies 15 After having MSYS2 and Mingw64 installed, you have to install dependency packages. 16 Just execute the following command from within the "MSYS2 MSYS" shell: 17 18 > pacman -S make autoconf automake libtool lzip 19 20 21 3. gmplib + secp256k1 22 Now use "MSYS2 MinGW 64-bit" shell and execute: 23 24 > cd ~ 25 > wget https://gmplib.org/download/gmp/gmp-6.2.0.tar.lz 26 > tar vxf gmp-6.2.0.tar.lz 27 > cd gmp-6.2.0 28 > ./configure 29 > make 30 > make install 31 32 > cd ~ 33 > git clone https://github.com/bitcoin/bitcoin.git 34 > cd bitcoin/src/secp256k1/ 35 > ./autogen.sh 36 > ./configure --enable-module-schnorrsig --enable-experimental 37 > make 38 > make install 39 40 41 42 If everything went well, you should see "PASS" executing "go test" in this folder. 43 Then copy "gocoin/client/speedups/sipasec.go" to "gocoin/client/" to boost your client. 44 */ 45 46 // #cgo LDFLAGS: -lsecp256k1 -lgmp 47 import "C"