forked from cerc-io/plugeth
1b29aed128
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. |
||
---|---|---|
.. | ||
libsecp256k1 | ||
.gitignore | ||
notes.go | ||
README.md | ||
secp256_test.go | ||
secp256.go |
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