#libsecp256k1 #ecdsa #bitcoin #crypto #secp256k1 #elliptic-curve

rs-secp256k1

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

1 unstable release

Uses old Rust 2015

0.5.7 May 14, 2019

#11 in #libsecp256k1

CC0 license

455KB
9K SLoC

C 6K SLoC // 0.1% comments Rust 1.5K SLoC // 0.1% comments GNU Style Assembly 748 SLoC // 0.1% comments Java 462 SLoC // 0.3% comments M4 224 SLoC // 0.3% comments Automake 155 SLoC Shell 2 SLoC

Contains (obscure autoconf code, 17KB) depend/secp256k1/configure.ac

Build Status

rs-secp256k1

rs-secp256k1 is a wrapper around libsecp256k1, a C library by Peter 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

Full documentation


lib.rs:

Secp256k1

Rust bindings for Pieter Wuille's secp256k1 library, which is used for fast and accurate manipulation of ECDSA signatures on the secp256k1 curve. Such signatures are used extensively by the Bitcoin network and its derivatives.

Dependencies

~0.4–1MB
~15K SLoC