Skip to main content

SignedObject

Trait SignedObject 

Source
pub trait SignedObject<E: Ord, K: KeyName + ?Sized>: Serialize + Debug {
    // Required method
    fn signatures(&self) -> Signatures<E, K>;
}
Expand description

Trait to be implemented on any signed key that you want to verify signatures on.

Required Methods§

Source

fn signatures(&self) -> Signatures<E, K>

Returns the signatures of the signed key. This is a map from User ID to Key ID to signature.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SignedObject<OwnedUserId, Base64PublicKeyOrDeviceId> for CrossSigningKey

Source§

fn signatures(&self) -> CrossSigningOrDeviceSignatures

Source§

impl SignedObject<OwnedUserId, Base64PublicKeyOrDeviceId> for DeviceKeys

Source§

fn signatures(&self) -> CrossSigningOrDeviceSignatures

Source§

impl SignedObject<OwnedUserId, Base64PublicKeyOrDeviceId> for SignedKey

Source§

fn signatures(&self) -> CrossSigningOrDeviceSignatures

Implementors§