pub fn parse(bytes: &[u8]) -> Result<Envelope, Refusal>Expand description
Parse and verify one datagram. Ok means: well-formed, in bounds, current, and the
signature proves the key. It does NOT mean trusted — trust policy runs above.
use majordomus_cli::mesh::protocol::{parse, Refusal};
assert_eq!(parse(b"not an envelope"), Err(Refusal::Malformed));