Skip to content

wind-mask/minisign-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI status Last version Documentation

minisign-rs

A Rust implementation lib of the Minisign.

Low-level library for the minisign system, designed to be used in CI/CD pipelines, or embedded into other processes (rather than manual command line).

!!! This library not support legacy signature format !!!

Example

let KeyPairBox {
    public_key_box,
    secret_key_box,
} = KeyPairBox::generate(
    Some(b"password"),
    Some("pk untrusted comment"),
    Some("sk untrusted comment"),
)
.unwrap();
let msg = "test";
let sig_box = sign(
    Some(&public_key_box),
    &secret_key_box,
    Some(b"password"),
    msg.as_bytes(),
    Some("trusted comment"),
    Some("untrusted comment"),
)
.unwrap();
let v = verify(&public_key_box, &sig_box, msg.as_bytes()).unwrap();
assert_eq!(v, true);

About

A crate for minisign in rust.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages