pub struct EntrySignature { /* private fields */ }
Expand description
Signature over an entry.
Implementations§
Source§impl EntrySignature
impl EntrySignature
Sourcepub fn from_entry(
entry: &Entry,
namespace: &NamespaceSecret,
author: &Author,
) -> Self
pub fn from_entry( entry: &Entry, namespace: &NamespaceSecret, author: &Author, ) -> Self
Create a new signature by signing an entry with the namespace
and author
.
Sourcepub fn verify(
&self,
entry: &Entry,
namespace: &NamespacePublicKey,
author: &AuthorPublicKey,
) -> Result<(), SignatureError>
pub fn verify( &self, entry: &Entry, namespace: &NamespacePublicKey, author: &AuthorPublicKey, ) -> Result<(), SignatureError>
Verify that this signature was created by signing the entry
with the
secret keys of the specified author
and namespace
.
Trait Implementations§
Source§impl Clone for EntrySignature
impl Clone for EntrySignature
Source§fn clone(&self) -> EntrySignature
fn clone(&self) -> EntrySignature
Returns a copy 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 EntrySignature
impl Debug for EntrySignature
Source§impl<'de> Deserialize<'de> for EntrySignature
impl<'de> Deserialize<'de> for EntrySignature
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 EntrySignature
impl PartialEq for EntrySignature
Source§impl Serialize for EntrySignature
impl Serialize for EntrySignature
impl Eq for EntrySignature
impl StructuralPartialEq for EntrySignature
Auto Trait Implementations§
impl Freeze for EntrySignature
impl RefUnwindSafe for EntrySignature
impl Send for EntrySignature
impl Sync for EntrySignature
impl Unpin for EntrySignature
impl UnwindSafe for EntrySignature
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more