#cryptography #ecdsa #ed25519 #signing #signatures

no-std signatory

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

32 releases (11 breaking)

✓ Uses Rust 2018 edition

0.11.3 Mar 13, 2019
0.11.1 Feb 24, 2019
0.10.1 Nov 27, 2018
0.6.1 Jul 31, 2018
0.3.2 Mar 31, 2018

#45 in Cryptography

Download history 375/week @ 2018-12-20 7/week @ 2018-12-27 53/week @ 2019-01-03 27/week @ 2019-01-10 14/week @ 2019-01-17 19/week @ 2019-01-24 20/week @ 2019-01-31 21/week @ 2019-02-07 51/week @ 2019-02-14 84/week @ 2019-02-21 94/week @ 2019-02-28 141/week @ 2019-03-07 71/week @ 2019-03-14 145/week @ 2019-03-21 218/week @ 2019-03-28

316 downloads per month
Used in 14 crates (13 directly)

Apache-2.0 OR MIT

165KB
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, 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.

Requirements

All Signatory providers require Rust 1.31+.

Provider Support

Signatory includes the following providers, which are each packaged into their own respective crates (except for the yubihsm provider, which is included directly in the yubihsm crate).

ECDSA providers

Provider Crate Backend Crate Type P‑256 P‑384 secp256k1
signatory‑ring ring Soft
signatory‑secp256k1 secp256k1 Soft
yubihsm yubihsm 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
yubihsm yubihsm Hard ~8/s N/A

Tendermint only providers (amino encoded consensus votes)

Provider Crate Backend Crate Type Signing Verification
signatory‑ledger-tm ledger-tendermint Hard N/A 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