github.com/piotrnar/gocoin@v0.0.0-20240512203912-faa0448c5e96/lib/others/cgo/sipasec/sipasec_unix.go (about)

     1  //go:build darwin || dragonfly || freebsd || linux || openbsd || solaris || netbsd
     2  // +build darwin dragonfly freebsd linux openbsd solaris netbsd
     3  
     4  package sipasec
     5  
     6  /*
     7  To build and install secp256k1 lib on Debian Linux system, execute the following steps:
     8  
     9   * sudo apt-get install gcc autoconf libtool make
    10   * git clone https://github.com/bitcoin/bitcoin.git
    11   * cd bitcoin/src/secp256k1/
    12   * ./autogen.sh
    13   * ./configure --enable-module-schnorrsig --enable-experimental
    14   * make
    15   * sudo make install
    16  
    17  When the lib is properly installed, executing "go test" in this folder will say "PASS".
    18  Then copy "gocoin/client/speedups/sipasec.go" to "gocoin/client/" to boost your client.
    19  */
    20  
    21  // #cgo LDFLAGS: /usr/local/lib/libsecp256k1.a -lgmp
    22  import "C"