justinwongcn/moonpgp/error does not have a README file
pub(all) suberror PgpError {
PgpError(msg~ : String)
Malformed(msg~ : String)
Unsupported(msg~ : String)
WrongPassphrase(msg~ : String)
}test "match picks the variant, message stays available" {
let e : @error.PgpError = WrongPassphrase(
msg="api: wrong passphrase (checksum failed)",
)
match e {
WrongPassphrase(msg~) =>
inspect(msg, content="api: wrong passphrase (checksum failed)")
_ => @error.fail("expected WrongPassphrase")
}
}Install
Download zipPure-MoonBit OpenPGP implementation (RFC 4880/9580): email encryption, decryption, signing and verification, interoperable with GnuPG and gopenpgp.