Skip to content

Instantly share code, notes, and snippets.

use minisign::{KeyPair, SecretKeyBox};
use std::io::Cursor;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let key_pair = KeyPair::generate_encrypted_keypair(Some("pw".to_owned()))?;
eprintln!("loading secret key from box");
works(&key_pair)?;
eprintln!("using secret key directly");
fails(&key_pair)?;