pub struct VaultSignature {
pub signer: String,
pub v: u32,
pub sig: String,
}Expand description
An Ed25519 signature over the vault’s canonical content.
The shared-key MAC binds ciphertexts together but authenticates no author:
its key lives in the meta blob, which anyone can re-encrypt using the public
recipient keys. A signature closes that — an attacker without a recipient’s
signing key cannot forge one. Stored in the meta alongside the MAC. See
crate::signing and THREAT_MODEL.md.
Fields§
§signer: StringThe recipient pubkey (age1...) whose signing key produced sig. Must be
a current recipient, with a verifying key in Meta::signers, at verify time.
v: u32Signed-view version — bumped if the canonical signing message changes, so an old binary rejects a newer signed view rather than misverifying it.
sig: StringBase64-encoded 64-byte Ed25519 signature.
Trait Implementations§
Source§impl Clone for VaultSignature
impl Clone for VaultSignature
Source§fn clone(&self) -> VaultSignature
fn clone(&self) -> VaultSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VaultSignature
impl Debug for VaultSignature
Source§impl<'de> Deserialize<'de> for VaultSignature
impl<'de> Deserialize<'de> for VaultSignature
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
impl Eq for VaultSignature
Source§impl PartialEq for VaultSignature
impl PartialEq for VaultSignature
Source§fn eq(&self, other: &VaultSignature) -> bool
fn eq(&self, other: &VaultSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VaultSignature
impl Serialize for VaultSignature
impl StructuralPartialEq for VaultSignature
Auto Trait Implementations§
impl Freeze for VaultSignature
impl RefUnwindSafe for VaultSignature
impl Send for VaultSignature
impl Sync for VaultSignature
impl Unpin for VaultSignature
impl UnsafeUnpin for VaultSignature
impl UnwindSafe for VaultSignature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more