19 releases

0.0.20 Apr 16, 2020
0.0.18 Nov 19, 2019
0.0.16 Oct 28, 2019
0.0.7 Sep 27, 2019
0.0.3 Nov 25, 2018

#522 in Cryptography

Download history 8/week @ 2021-07-04 8/week @ 2021-07-11 29/week @ 2021-07-18 34/week @ 2021-07-25 45/week @ 2021-08-01 8/week @ 2021-08-08 25/week @ 2021-08-15 4/week @ 2021-08-22 3/week @ 2021-08-29 5/week @ 2021-09-05 3/week @ 2021-09-12 2/week @ 2021-09-19 19/week @ 2021-09-26 3/week @ 2021-10-03 45/week @ 2021-10-10 4/week @ 2021-10-17

106 downloads per month
Used in 2 crates

Apache-2.0

150KB
2.5K SLoC

Schnorr Gitter

A Rust implementation of Schnorr key generation, signing, verification, & multi-signatures. Furthermore key derivation functionality is supported.

This library aims to be a backbone for many different use cases but we focus on the Public Network needs.

Todo: - Serde Support - Adaptor Signatures

Disclaimers:

(1) This code should not be used for production at the moment.

(2) This code is not secure against side-channel attacks

(3) Little Endian Platforms ONLY

Bounty

We are running a Bug Bounty for this library. Please submit a PR with issue + fix and the crypto address of the coin you want. We will send

  • $200 For Major Bugs: Key Recovery,
  • $100 Wrong function procedures that cause major issues
  • $10 for Minor bugs

Other amounts can be given based on issues. We want a solid library for the community. Audits are very expensive so we choose to create an open bounty problem to get help from the world and give back what we can right now.

Installation

To install, add the following to your project's Cargo.toml:

[dependencies.schnorr]
version = "0.0.5"

Then, in your library or executable source, add:

extern crate schnorr;

By default, schnorr builds against curve25519-dalek's u64_backend feature, which uses Rust's i128 feature to achieve roughly double the speed as the u32_backend feature. When targetting 32-bit systems, however, you'll likely want to compile with cargo build --no-default-features --features="u32_backend". If you're building for a machine with avx2 instructions, there's also the experimental avx2_backend. To use it, compile with RUSTFLAGS="-C target_cpu=native" cargo build --no-default-features --features="avx2_backend"

Documentation

Documentation is available here.

Dependencies

~11MB
~219K SLoC

⺘^