[−][src]Struct solana_libra_nextgen_crypto::ed25519::Ed25519PublicKey
An Ed25519 public key
Methods
impl Ed25519PublicKey
[src]
Trait Implementations
impl ValidKey for Ed25519PublicKey
[src]
fn to_bytes(&self) -> Vec<u8>
[src]
fn validate(&self) -> Result<(), CryptoMaterialError>
[src]
TryFrom is the source of truth on whether we can build a valid key. => we can use it once we've built, to validate! Read more
impl PublicKey for Ed25519PublicKey
[src]
type PrivateKeyMaterial = Ed25519PrivateKey
We require public / private types to be coupled, i.e. their associated type is each other. Read more
fn length() -> usize
[src]
impl VerifyingKey for Ed25519PublicKey
[src]
type SigningKeyMaterial = Ed25519PrivateKey
The associated signing key type for this verifying key.
type SignatureMaterial = Ed25519Signature
The associated signature type for this verifying key.
fn verify_signature(
&self,
message: &HashValue,
signature: &Self::SignatureMaterial
) -> Result<()>
[src]
&self,
message: &HashValue,
signature: &Self::SignatureMaterial
) -> Result<()>
We provide the logical implementation which dispatches to the signature.
fn batch_verify_signatures(
message: &HashValue,
keys_and_signatures: Vec<(Self, Self::SignatureMaterial)>
) -> Result<()>
[src]
message: &HashValue,
keys_and_signatures: Vec<(Self, Self::SignatureMaterial)>
) -> Result<()>
We provide the implementation which dispatches to the signature.
impl Clone for Ed25519PublicKey
[src]
fn clone(&self) -> Ed25519PublicKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'_> From<&'_ Ed25519PrivateKey> for Ed25519PublicKey
[src]
fn from(secret_key: &Ed25519PrivateKey) -> Self
[src]
impl From<Ed25519PublicKey> for LegacyPublicKey
[src]
fn from(public_key: Ed25519PublicKey) -> Self
[src]
impl From<PublicKey> for Ed25519PublicKey
[src]
impl PartialEq<Ed25519PublicKey> for Ed25519PublicKey
[src]
fn eq(&self, other: &Ed25519PublicKey) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Ed25519PublicKey
[src]
impl Display for Ed25519PublicKey
[src]
impl Debug for Ed25519PublicKey
[src]
impl Hash for Ed25519PublicKey
[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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'_> TryFrom<&'_ [u8]> for Ed25519PublicKey
[src]
type Error = CryptoMaterialError
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8]) -> Result<Ed25519PublicKey, CryptoMaterialError>
[src]
Deserialize an Ed25519PublicKey. This method will also check for key validity, for instance it will only deserialize keys that are safe against small subgroup attacks.
impl Serialize for Ed25519PublicKey
[src]
impl<'de> Deserialize<'de> for Ed25519PublicKey
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for Ed25519PublicKey
impl Send for Ed25519PublicKey
impl Unpin for Ed25519PublicKey
impl RefUnwindSafe for Ed25519PublicKey
impl UnwindSafe for Ed25519PublicKey
Blanket Implementations
impl<T> ValidKeyStringExt for T where
T: ValidKey,
[src]
T: ValidKey,
fn from_encoded_string(encoded_str: &str) -> Result<Self, CryptoMaterialError>
[src]
When trying to convert from bytes, we simply decode the string into bytes before checking if we can convert. Read more
fn to_encoded_string(&self) -> Result<String>
[src]
A function to encode into hex-string after serializing.
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,