pub struct Signature { /* private fields */ }Expand description
A digital signature.
Implementations§
Source§impl Signature
impl Signature
Sourcepub fn algorithm(&self) -> SigningKeyAlgorithm
pub fn algorithm(&self) -> SigningKeyAlgorithm
The algorithm used to generate the signature.
Sourcepub fn base64(&self) -> String
pub fn base64(&self) -> String
A base64 encoding of the signature.
Uses the standard character set with no padding.
Sourcepub fn id(&self) -> String
pub fn id(&self) -> String
The key identifier, a string containing the signature algorithm and the key “version”
separated by a colon, e.g. ed25519:1.
Sourcepub fn version(&self) -> &str
pub fn version(&self) -> &str
The “version” of the key used for this signature.
Versions are used as an identifier to distinguish signatures generated from different keys but using the same algorithm on the same homeserver.
Sourcepub fn into_parts(self) -> (OwnedSigningKeyId<AnyKeyName>, Vec<u8>)
pub fn into_parts(self) -> (OwnedSigningKeyId<AnyKeyName>, Vec<u8>)
Split this Signature into its key identifier and bytes.
Trait Implementations§
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.