#crypto #secp256k1 #grin #bitcoin #zero-knowledge

grin_secp256k1zkp

Grin’s fork with Zero-Knowledge extensions of Rust bindings for Pieter Wuille’s libsecp256k1 library. Implements ECDSA for the SECG elliptic curve group secp256k1 and related utilities.

9 releases

0.7.9 Apr 10, 2020
0.7.8 Mar 25, 2020
0.7.7 Jun 25, 2019
0.7.5 Mar 6, 2019
0.7.1 Oct 25, 2018

#6 in #secp256k1

Download history 298/week @ 2020-08-11 212/week @ 2020-08-18 194/week @ 2020-08-25 239/week @ 2020-09-01 243/week @ 2020-09-08 257/week @ 2020-09-15 309/week @ 2020-09-22 522/week @ 2020-09-29 778/week @ 2020-10-06 231/week @ 2020-10-13 1499/week @ 2020-10-20 3585/week @ 2020-10-27 2931/week @ 2020-11-03 787/week @ 2020-11-10 996/week @ 2020-11-17 677/week @ 2020-11-24

1,011 downloads per month
Used in 25 crates (4 directly)

CC0 license

620KB
13K SLoC

C 7K SLoC // 0.1% comments Rust 4.5K SLoC // 0.1% comments GNU Style Assembly 748 SLoC // 0.1% comments Java 438 SLoC // 0.3% comments Automake 182 SLoC Shell 2 SLoC

Build Status

rust-secp256k1

rust-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

~3.5MB
~75K SLoC