[−][src]Struct xaynet_core::crypto::PublicSigningKey
An Ed25519
public key for signatures.
Implementations
impl PublicSigningKey
[src]
pub fn verify_detached(&self, s: &Signature, m: &[u8]) -> bool
[src]
Verifies the signature s
against the message m
and this public key.
Returns true
if the signature is valid and false
otherwise.
Trait Implementations
impl AsMut<PublicKey> for PublicSigningKey
[src]
impl AsRef<PublicKey> for PublicSigningKey
[src]
impl ByteObject for PublicSigningKey
[src]
const LENGTH: usize
[src]
fn zeroed() -> Self
[src]
fn as_slice(&self) -> &[u8]
[src]
fn from_slice(bytes: &[u8]) -> Option<Self>
[src]
fn from_slice_unchecked(bytes: &[u8]) -> Self
[src]
fn generate() -> Self
[src]
fn fill_with(value: u8) -> Self
[src]
impl Clone for PublicSigningKey
[src]
fn clone(&self) -> PublicSigningKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PublicSigningKey
[src]
impl Debug for PublicSigningKey
[src]
impl<'de> Deserialize<'de> for PublicSigningKey
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for PublicSigningKey
[src]
impl From<PublicKey> for PublicSigningKey
[src]
fn from(original: PublicKey) -> PublicSigningKey
[src]
impl Hash for PublicSigningKey
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PublicSigningKey
[src]
fn cmp(&self, other: &PublicSigningKey) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PublicSigningKey> for PublicSigningKey
[src]
fn eq(&self, other: &PublicSigningKey) -> bool
[src]
fn ne(&self, other: &PublicSigningKey) -> bool
[src]
impl PartialOrd<PublicSigningKey> for PublicSigningKey
[src]
fn partial_cmp(&self, other: &PublicSigningKey) -> Option<Ordering>
[src]
fn lt(&self, other: &PublicSigningKey) -> bool
[src]
fn le(&self, other: &PublicSigningKey) -> bool
[src]
fn gt(&self, other: &PublicSigningKey) -> bool
[src]
fn ge(&self, other: &PublicSigningKey) -> bool
[src]
impl Serialize for PublicSigningKey
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for PublicSigningKey
[src]
impl StructuralPartialEq for PublicSigningKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for PublicSigningKey
impl Send for PublicSigningKey
impl Sync for PublicSigningKey
impl Unpin for PublicSigningKey
impl UnwindSafe for PublicSigningKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,