docs/generated/contracts.mdgenerated from code
Reference · 1 min read
wire-verify
Contracts: wire-verify.
Read as
Source: crates/lvcs-net/src/wire/mod.rs.
1/// Check that `envelope.sig` is its sender's Ed25519 (`SIGNATURE`)2/// signature over [`signing_input`]; [`WireError::BadSignature`] otherwise.3///4/// # Errors5///6/// [`WireError::BadSignature`] when the sender's key is not an Ed255197/// public key or the signature does not verify.8pub fn verify(envelope: &Envelope) -> Result<(), WireError> {