Skip to content

olegabu/go-secp256k1-zkp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9d7d58d · Nov 26, 2020
Jan 29, 2020
Nov 26, 2020
Apr 19, 2020
Nov 2, 2019
Jun 28, 2019
Nov 2, 2019
Nov 23, 2020
Jan 16, 2020
Jun 28, 2019
Jan 15, 2020
Nov 23, 2020
May 19, 2020
Jun 10, 2020
Apr 18, 2020
Apr 18, 2020
Apr 19, 2020
Apr 19, 2020
Jun 10, 2020
Nov 29, 2019
Nov 23, 2020
Jan 16, 2020
Nov 26, 2020
Nov 26, 2020

Repository files navigation

go-secp256k1-zkp

This package provides bindings (using cgo) to secp256k1-zkp C library which is an experimental fork of libsecp256k1 with support for Pedersen commitments and range proofs.

TODO

  • folder secp256k1-zkp is a copy from its repo not a git submodule to avoid errors in using with module based packages
  • go modules are not yet supported, use unset GO111MODULE before building
  • some packages using this library fail to build with a link error, use CFLAGS="-fPIC" make
  • investigate if C library can be linked statically, otherwise other projects need to build explicitely into secp256k1-zkp/.libs

Building

make # builds the C library into secp256k1-zkp/.libs folder

unset GO111MODULE # in case it's set to the modern default in the profile
go install

Testing GO code

cd tests
go test

Testing C library secp256k1-zkp

Tests can be run by calling make test Coverage can be built by calling make coverage To display a HTML code coverage report, call make coverage-html