minisign-verify

Crates.iominisign-verify
lib.rsminisign-verify
version0.2.3
sourcesrc
created_at2019-04-20 18:16:50.967523
updated_at2024-12-09 11:59:43.207046
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: 65

cargo fmt