11 releases

0.2.1 Mar 30, 2022
0.2.0 Oct 8, 2021
0.1.8 May 20, 2020
0.1.4 Nov 20, 2019
0.1.3 Apr 25, 2019

#1052 in Cryptography

Download history 10031/week @ 2024-03-14 10910/week @ 2024-03-21 9703/week @ 2024-03-28 9753/week @ 2024-04-04 11839/week @ 2024-04-11 12057/week @ 2024-04-18 12912/week @ 2024-04-25 12553/week @ 2024-05-02 12941/week @ 2024-05-09 14441/week @ 2024-05-16 13559/week @ 2024-05-23 15474/week @ 2024-05-30 11583/week @ 2024-06-06 13179/week @ 2024-06-13 12866/week @ 2024-06-20 11374/week @ 2024-06-27

51,529 downloads per month
Used in 94 crates (11 directly)

MIT license

86KB
2.5K SLoC

minisign-verify

A small, zero-dependencies Rust crate to verify Minisign signatures.

API documentation

Example:

let public_key =
    PublicKey::from_base64("RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3")
        .expect("Unable to decode the public key");

let signature = Signature::decode(
    "untrusted comment: signature from minisign secret key
RWQf6LRCGA9i59SLOFxz6NxvASXDJeRtuZykwQepbDEGt87ig1BNpWaVWuNrm73YiIiJbq71Wi+dP9eKL8OC351vwIasSSbXxwA=
trusted comment: timestamp:1555779966\tfile:test
QtKMXWyYcwdpZAlPF7tE2ENJkRd1ujvKjlj1m9RtHTBnZPa5WKU5uWRs5GoP5M/VqE81QFuMKI5k/SfNQUaOAA==",
    ).expect("Unable to decode the signature");

let bin = b"test";
public_key.verify(&bin[..], &signature, false).expect("Signature didn't verify");

lib.rs:

A small crate to verify Minisign signatures.

Example

use minisign_verify::{PublicKey, Signature};

let public_key =
    PublicKey::from_base64("RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3")
   .expect("Unable to decode the public key");

let signature = Signature::decode("untrusted comment: signature from minisign secret key
RUQf6LRCGA9i559r3g7V1qNyJDApGip8MfqcadIgT9CuhV3EMhHoN1mGTkUidF/z7SrlQgXdy8ofjb7bNJJylDOocrCo8KLzZwo=
trusted comment: timestamp:1633700835\tfile:test\tprehashed
wLMDjy9FLAuxZ3q4NlEvkgtyhrr0gtTu6KC4KBJdITbbOeAi1zBIYo0v4iTgt8jJpIidRJnp94ABQkJAgAooBQ==")
    .expect("Unable to decode the signature");

let bin = b"test";
public_key.verify(&bin[..], &signature, false).expect("Signature didn't verify");

No runtime deps