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

#1883 in Cryptography

Download history 1/week @ 2024-09-17 9/week @ 2024-09-24 6/week @ 2024-10-01

59 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

~10–17MB
~227K SLoC