Skip to content
A small Rust crate to verify Minisign signatures.
Branch: master
Clone or download
Latest commit aeeb4a5 Apr 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Bump Apr 25, 2019
.gitignore New repository Apr 20, 2019
.travis.yml Add Travis Apr 28, 2019
Cargo.toml Bump Apr 25, 2019
LICENSE Remove the dependency on ed25519-dalek Apr 21, 2019
README.md Shrink example Apr 20, 2019

README.md

minisign-verify

A small 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).expect("Signature didn't verify");
You can’t perform that action at this time.