#mwc #zero-knowledge #bitcoin #crypto #secp256k1

mwc_secp256k1zkp

Mwc’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.

1 unstable release

0.7.16 Nov 12, 2024
0.7.15 Nov 3, 2024

#9 in #mwc

Download history 65/week @ 2024-10-28 60/week @ 2024-11-04 208/week @ 2024-11-11 47/week @ 2024-11-18 44/week @ 2024-11-25 63/week @ 2024-12-02 68/week @ 2024-12-09

229 downloads per month
Used in 19 crates (2 directly)

CC0 license

585KB
13K SLoC

C 7K SLoC // 0.1% comments Rust 4.5K SLoC // 0.1% comments GNU Style Assembly 748 SLoC // 0.1% comments Automake 148 SLoC M4 134 SLoC // 0.3% comments Shell 2 SLoC

Contains (obscure autoconf code, 23KB) depend/secp256k1-zkp/configure.ac

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

~1.2–2.5MB
~51K SLoC