pub enum SignatureVerification {
Verified {
key_id: String,
sig_path: PathBuf,
},
KeyNotTrusted {
key_id: String,
},
Forged {
sig_path: PathBuf,
},
NotPresent,
Error {
reason: String,
},
}Expand description
Outcome of a minisign signature verification.
Variants§
Verified
Signature is cryptographically valid AND signed by a key in the trust store. Authentication established.
Fields
KeyNotTrusted
Signature parsed and is structurally valid, but the signing key is not in the trust store.
Forged
Signature parsed but the computed signature over the ISO bytes does not match what the sig file claims — tampering or corruption.
NotPresent
No .minisig sidecar was found.
Error
An I/O or parse error made verification impossible. Treated the same
as NotPresent for UX purposes but logged separately.
Implementations§
Trait Implementations§
Source§impl Clone for SignatureVerification
impl Clone for SignatureVerification
Source§fn clone(&self) -> SignatureVerification
fn clone(&self) -> SignatureVerification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignatureVerification
impl Debug for SignatureVerification
Source§impl<'de> Deserialize<'de> for SignatureVerification
impl<'de> Deserialize<'de> for SignatureVerification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SignatureVerification
impl PartialEq for SignatureVerification
Source§impl Serialize for SignatureVerification
impl Serialize for SignatureVerification
impl Eq for SignatureVerification
impl StructuralPartialEq for SignatureVerification
Auto Trait Implementations§
impl Freeze for SignatureVerification
impl RefUnwindSafe for SignatureVerification
impl Send for SignatureVerification
impl Sync for SignatureVerification
impl Unpin for SignatureVerification
impl UnsafeUnpin for SignatureVerification
impl UnwindSafe for SignatureVerification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more