Skip to content

allocz/secp256k1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secp256k1

secp256k1 in Go

This library uses a pure Go implementation with CGO_ENABLED=0, but also uses libsecp256k1 and platform specific code when CGO_ENABLED=0 is not set, delivering better performance when CGO is enabled but keeping portability and Go cross compilation to all supported targets when CGO is not allowed.

There are some platform specific optimizations for amd64 and arm64 which can be disabled by compiling with the tag forceportable.

Benchmark against other libraries available here.

Acknowledgments

Code from the following libraries is used here:

  • secp256k1: C implementation of secp256k1.
  • dcrec: Pure Go secp256k1 implementation.
  • btcec: Schnorr signature implementation in Go.

About

secp256k1 library that is both portable and fast

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors