Struct diem_crypto::ed25519::Ed25519PublicKey [−][src]
pub struct Ed25519PublicKey(_);
Expand description
An Ed25519 public key
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Convenient method to create a MultiEd25519PublicKey from a single Ed25519PublicKey.
Performs the conversion.
We require public / private types to be coupled, i.e. their associated type is each other. Read more
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.
type Error = CryptoMaterialError
type Error = CryptoMaterialError
The type returned in the event of a conversion error.
The unvalidated form of some type V
Attempt to validate a V::Unvalidated
and returning a validated V
on success
Return the unvalidated form of type V
The associated signing key type for this verifying key.
The associated signature type for this verifying key.
fn verify_struct_signature<T: CryptoHash + Serialize>(
&self,
message: &T,
signature: &Self::SignatureMaterial
) -> Result<()>
fn verify_struct_signature<T: CryptoHash + Serialize>(
&self,
message: &T,
signature: &Self::SignatureMaterial
) -> Result<()>
We provide the striaghtfoward implementation which dispatches to the signature.
fn batch_verify<T: CryptoHash + Serialize>(
message: &T,
keys_and_signatures: Vec<(Self, Self::SignatureMaterial)>
) -> Result<()>
fn batch_verify<T: CryptoHash + Serialize>(
message: &T,
keys_and_signatures: Vec<(Self, Self::SignatureMaterial)>
) -> Result<()>
We provide the implementation which dispatches to the signature.
Auto Trait Implementations
impl RefUnwindSafe for Ed25519PublicKey
impl Send for Ed25519PublicKey
impl Sync for Ed25519PublicKey
impl Unpin for Ed25519PublicKey
impl UnwindSafe for Ed25519PublicKey
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.
pub fn vzip(self) -> V
When trying to convert from bytes, we simply decode the string into bytes before checking if we can convert. Read more
A function to encode into hex-string after serializing.