pub struct VerifyingKey(/* private fields */);Expand description
Public Ed25519 key used for identifying peers and verifying signed data.
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
Sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, IdentityError>
pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, IdentityError>
Create a VerifyingKey from its raw bytes representation.
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for VerifyingKey
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for VerifyingKey
Available on crate feature
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for VerifyingKey
impl Clone for VerifyingKey
Source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
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 VerifyingKey
impl Debug for VerifyingKey
Source§impl Default for VerifyingKey
impl Default for VerifyingKey
Source§fn default() -> VerifyingKey
fn default() -> VerifyingKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VerifyingKey
impl<'de> Deserialize<'de> for VerifyingKey
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 Display for VerifyingKey
impl Display for VerifyingKey
Source§impl From<VerifyingKey> for [u8; 32]
impl From<VerifyingKey> for [u8; 32]
Source§fn from(value: VerifyingKey) -> Self
fn from(value: VerifyingKey) -> Self
Converts to this type from the input type.
Source§impl From<VerifyingKey> for Topic
impl From<VerifyingKey> for Topic
Source§fn from(value: VerifyingKey) -> Self
fn from(value: VerifyingKey) -> Self
Converts to this type from the input type.
Source§impl From<VerifyingKey> for VerifyingKey
impl From<VerifyingKey> for VerifyingKey
Source§fn from(value: VerifyingKey) -> Self
fn from(value: VerifyingKey) -> Self
Converts to this type from the input type.
Source§impl From<VerifyingKey> for VerifyingKey
impl From<VerifyingKey> for VerifyingKey
Source§fn from(value: VerifyingKey) -> Self
fn from(value: VerifyingKey) -> Self
Converts to this type from the input type.
Source§impl FromStr for VerifyingKey
impl FromStr for VerifyingKey
Source§impl Hash for VerifyingKey
impl Hash for VerifyingKey
Source§impl Ord for VerifyingKey
impl Ord for VerifyingKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VerifyingKey
impl PartialEq for VerifyingKey
Source§fn eq(&self, other: &VerifyingKey) -> bool
fn eq(&self, other: &VerifyingKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VerifyingKey
impl PartialOrd for VerifyingKey
Source§impl Serialize for VerifyingKey
impl Serialize for VerifyingKey
Source§impl TryFrom<&[u8]> for VerifyingKey
impl TryFrom<&[u8]> for VerifyingKey
impl Author for VerifyingKey
impl Copy for VerifyingKey
impl Eq for VerifyingKey
impl StructuralPartialEq for VerifyingKey
Auto Trait Implementations§
impl Freeze for VerifyingKey
impl RefUnwindSafe for VerifyingKey
impl Send for VerifyingKey
impl Sync for VerifyingKey
impl Unpin for VerifyingKey
impl UnsafeUnpin for VerifyingKey
impl UnwindSafe for VerifyingKey
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