#zero-knowledge #bitcoin #crypto #mugle #secp256k1

mugle_secp256k1zkp

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

2 releases

0.7.12 Jun 26, 2022
0.7.11 Jun 26, 2022

#2058 in Cryptography

Download history 17/week @ 2023-12-18 14/week @ 2023-12-25 19/week @ 2024-01-08 14/week @ 2024-01-15 59/week @ 2024-01-22 6/week @ 2024-01-29 21/week @ 2024-02-05 19/week @ 2024-02-12 27/week @ 2024-02-19 53/week @ 2024-02-26 22/week @ 2024-03-04 27/week @ 2024-03-11 31/week @ 2024-03-18 47/week @ 2024-03-25 108/week @ 2024-04-01

219 downloads per month
Used in 10 crates (via mugle_util)

CC0 license

630KB
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 M4 224 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

~1.5–2.5MB
~53K SLoC