pub enum RegistryResult {
Registered,
Verified,
InvalidSignature,
KeyMismatch {
node_id: NodeId,
},
}Expand description
Result of identity verification
Variants§
Registered
Identity was newly registered (first contact)
Verified
Identity was verified against existing record
InvalidSignature
Signature verification failed
KeyMismatch
Public key doesn’t match previously registered key (impersonation attempt!)
Implementations§
Source§impl RegistryResult
impl RegistryResult
Sourcepub fn is_trusted(&self) -> bool
pub fn is_trusted(&self) -> bool
Returns true if the identity is trusted (registered or verified)
Sourcepub fn is_violation(&self) -> bool
pub fn is_violation(&self) -> bool
Returns true if this is a security violation
Trait Implementations§
Source§impl Clone for RegistryResult
impl Clone for RegistryResult
Source§fn clone(&self) -> RegistryResult
fn clone(&self) -> RegistryResult
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 RegistryResult
impl Debug for RegistryResult
Source§impl PartialEq for RegistryResult
impl PartialEq for RegistryResult
impl Copy for RegistryResult
impl Eq for RegistryResult
impl StructuralPartialEq for RegistryResult
Auto Trait Implementations§
impl Freeze for RegistryResult
impl RefUnwindSafe for RegistryResult
impl Send for RegistryResult
impl Sync for RegistryResult
impl Unpin for RegistryResult
impl UnsafeUnpin for RegistryResult
impl UnwindSafe for RegistryResult
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.