go-ethereum/crypto/secp256k1
Felix Lange 1b29aed128 crypto/secp256k1: verify recovery ID before calling libsecp256k1
The C library treats the recovery ID as trusted input and crashes
the process for invalid values, so it needs to be verified before
calling into C. This will inhibit the crash in #1983.

Also remove VerifySignature because we don't use it.
2015-11-17 09:51:59 +01:00
..
libsecp256k1 Update libsecp256k1 2015-09-28 17:46:38 +02:00
.gitignore Moved obscuren secp256k1-go 2015-01-22 00:35:00 +01:00
notes.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
README.md doc: crypto/secp256k1 GMP dependency package name. 2015-04-23 17:33:48 +03:00
secp256_test.go crypto/secp256k1: verify recovery ID before calling libsecp256k1 2015-11-17 09:51:59 +01:00
secp256.go crypto/secp256k1: verify recovery ID before calling libsecp256k1 2015-11-17 09:51:59 +01:00

secp256k1-go

golang secp256k1 library

Implements cryptographic operations for the secp256k1 ECDSA curve used by Bitcoin.

Installing

GMP library headers are required to build. On Debian-based systems, the package is called libgmp-dev.

sudo apt-get install libgmp-dev

Now compiles with cgo!

Test

To run tests do

go tests