#cryptography #ecdsa #ed25519 #signatures #signing

no-std signatory

Multi-provider elliptic curve digital signature library with ECDSA and Ed25519 support

18 releases (8 breaking)

0.8.0 Aug 20, 2018
0.6.1 Jul 31, 2018
0.3.2 Mar 31, 2018

#81 in Cryptography

Download history 17/week @ 2018-05-28 64/week @ 2018-06-04 5/week @ 2018-06-11 31/week @ 2018-06-18 116/week @ 2018-06-25 57/week @ 2018-07-02 13/week @ 2018-07-09 33/week @ 2018-07-16 18/week @ 2018-07-23 25/week @ 2018-07-30 203/week @ 2018-08-06 47/week @ 2018-08-13 40/week @ 2018-08-20

223 downloads per month
Used in 7 crates

Apache-2.0 OR MIT

166KB
2.5K SLoC

Signatory

crate Docs Build Status MIT/Apache2 licensed

A pure Rust multi-provider digital signature library with support for elliptic curve digital signature algorithms, namely ECDSA (described in FIPS 186‑4) and Ed25519 (described in RFC 8032).

Signatory provides a thread-safe and object-safe API and implements providers for many popular Rust crates, including ed25519‑dalek, secp256k1‑rs, ring, and sodiumoxide.

Documentation

About

Signatory exposes a thread-and-object-safe API for creating digital signatures which allows several signature providers to be compiled-in and available with specific providers selected at runtime.

Provider Support

Signatory includes the following providers, which are each packaged into their own respective crates:

ECDSA providers

Provider Crate Backend Crate Type P‑256 P‑384 secp256k1
signatory‑ring ring Soft
signatory‑secp256k1 secp256k1‑rs Soft
signatory‑yubihsm yubihsm‑rs Hard

Ed25519 providers

Provider Crate Backend Crate Type Signing Verification
signatory‑dalek ed25519‑dalek Soft 51 k/s 18 k/s
signatory‑ring ring Soft 47 k/s 16 k/s
signatory‑sodiumoxide sodiumoxide Soft 38 k/s 15 k/s
signatory‑yubihsm yubihsm‑rs Hard ~8/s N/A

Above benchmarks performed using cargo bench on an Intel Xeon E3-1225 v5 @ 3.30GHz.

License

Signatory is distributed under the terms of either the MIT license or the Apache License (Version 2.0), at your option.

See LICENSE-APACHE and LICENSE-MIT for details.

Dependencies

~1MB
~14K SLoC