README ¶
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
Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateKeyPair ¶
func GeneratePubKey ¶
func RecoverPubkey ¶
RecoverPubkey returns the the public key of the signer. msg must be the 32-byte hash of the message to be signed. sig must be a 65-byte compact ECDSA signature containing the recovery id as the last element.
func VerifySeckeyValidity ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.