Giter Club home page Giter Club logo

signatory's Introduction

Signatory

crate Docs Apache2/MIT licensed MSRV Build Status

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, ring, secp256k1, 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.36+

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.

signatory's People

Contributors

tarcieri avatar tony-iqlusion avatar jleni avatar linfeng-crypto avatar liamsi avatar ebuchman avatar hdevalence avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.