| Crates.io | mini-sign |
| lib.rs | mini-sign |
| version | 0.1.1 |
| created_at | 2024-11-27 15:09:45.673292+00 |
| updated_at | 2025-01-17 15:16:22.576801+00 |
| description | A crate for minisign in rust. |
| homepage | https://github.com/wind-mask/minisign-rs |
| repository | https://github.com/wind-mask/minisign-rs |
| max_upload_size | |
| id | 1463162 |
| size | 52,322 |
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).
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);