minisign-verify

Crates.iominisign-verify
lib.rsminisign-verify
version0.2.2
sourcesrc
created_at2019-04-20 18:16:50.967523
updated_at2024-08-30 08:03:18.137748
descriptionA small crate to verify Minisign signatures.
homepagehttps://github.com/jedisct1/rust-minisign-verify
repositoryhttps://github.com/jedisct1/rust-minisign-verify
max_upload_size
id129123
size88,093
Frank Denis (jedisct1)

documentation

README

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");
Commit count: 55

cargo fmt