#crypto #ECDSA #secp256k1 #libsecp256k1 #bitcoin

secp256k1

Rust bindings for Pieter Wuille’s libsecp256k1 library. Implements ECDSA for the SECG elliptic curve group secp256k1 and related utilities.

40 releases (10 breaking)

0.11.1 Aug 22, 2018
0.10.0 Jul 26, 2018
0.9.0 Mar 21, 2018
0.8.1 Dec 22, 2017
0.1.2 May 4, 2015

#22 in Cryptography

Download history 872/week @ 2018-05-31 1354/week @ 2018-06-07 1463/week @ 2018-06-14 1485/week @ 2018-06-21 1795/week @ 2018-06-28 1941/week @ 2018-07-05 2484/week @ 2018-07-12 1588/week @ 2018-07-19 2665/week @ 2018-07-26 2251/week @ 2018-08-02 2303/week @ 2018-08-09 1919/week @ 2018-08-16 2213/week @ 2018-08-23

8,110 downloads per month
Used in 25 crates (18 directly)

CC0 license

481KB
10K SLoC

C 6.5K SLoC // 0.1% comments Rust 2K SLoC // 0.2% comments Assembly 835 SLoC Java 438 SLoC // 0.3% comments Shell 2 SLoC

Build Status

Full documentation

rust-secp256k1

rust-secp256k1 is a wrapper around libsecp256k1, a C library by Pieter Wuille for producing ECDSA signatures using the SECG curve secp256k1. This library

  • exposes type-safe Rust bindings for all libsecp256k1 functions
  • implements key generation
  • implements deterministic nonce generation via RFC6979
  • implements many unit tests, adding to those already present in libsecp256k1
  • makes no allocations (except in unit tests) for efficiency and use in freestanding implementations

Contributing

Contributions to this library are welcome. A few guidelines:

  • Any breaking changes must have an accompanied entry in CHANGELOG.md
  • No new dependencies, please.
  • No crypto should be implemented in Rust, with the possible exception of hash functions. Cryptographic contributions should be directed upstream to libsecp256k1.
  • This library should always compile with any combination of features on Rust 1.14, which is the currently shipping compiler on Debian.

Dependencies