pub struct VerifyingKey(pub [u8; 32]);
Available on crate feature
signature
only.Expand description
Ed25519 verifying key.
Tuple Fields§
§0: [u8; 32]
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
Sourcepub const SIZE: usize = 32usize
pub const SIZE: usize = 32usize
Size of a VerifyingKey
in bytes.
Sourcepub fn from_slice(slice: &[u8]) -> Result<Self>
pub fn from_slice(slice: &[u8]) -> Result<Self>
Parse a verify key (encoded in compressed Edwards-y form) from a byte slice.
Trait Implementations§
Source§impl AsRef<[u8]> for VerifyingKey
impl AsRef<[u8]> for VerifyingKey
Source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
Source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
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 VerifyingKey
impl Debug for VerifyingKey
Source§impl From<&SigningKey> for VerifyingKey
impl From<&SigningKey> for VerifyingKey
Source§fn from(signing_key: &SigningKey) -> Self
fn from(signing_key: &SigningKey) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VerifyingKey
impl PartialEq for VerifyingKey
Source§impl TryFrom<&[u8]> for VerifyingKey
impl TryFrom<&[u8]> for VerifyingKey
Source§impl Verifier<Signature> for VerifyingKey
impl Verifier<Signature> 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 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