[][src]Struct solana_libra_nextgen_crypto::ed25519::Ed25519Signature

pub struct Ed25519Signature(_);

An Ed25519 signature

Methods

impl Ed25519Signature[src]

pub fn to_bytes(&self) -> [u8; 64][src]

Serialize an Ed25519Signature.

pub fn check_malleability(bytes: &[u8]) -> Result<(), CryptoMaterialError>[src]

Check for correct size and malleability issues. This method ensures s is of canonical form and R does not lie on a small group.

Trait Implementations

impl Signature for Ed25519Signature[src]

type VerifyingKeyMaterial = Ed25519PublicKey

The associated verifying key type for this signature.

type SigningKeyMaterial = Ed25519PrivateKey

The associated signing key type for this signature

fn verify(
    &self,
    message: &HashValue,
    public_key: &Ed25519PublicKey
) -> Result<()>
[src]

Checks that self is valid for message using public_key.

fn verify_arbitrary_msg(
    &self,
    message: &[u8],
    public_key: &Ed25519PublicKey
) -> Result<()>
[src]

Checks that self is valid for an arbitrary &u8 message using public_key. Outside of this crate, this particular function should only be used for native signature verification in move

fn batch_verify_signatures(
    message: &HashValue,
    keys_and_signatures: Vec<(Self::VerifyingKeyMaterial, Self)>
) -> Result<()>
[src]

Batch signature verification as described in the original EdDSA article by Bernstein et al. "High-speed high-security signatures". Current implementation works for signatures on the same message and it checks for malleability.

impl Clone for Ed25519Signature[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<Ed25519Signature> for LegacySignature[src]

impl From<Signature> for Ed25519Signature[src]

impl PartialEq<Ed25519Signature> for Ed25519Signature[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Eq for Ed25519Signature[src]

impl Debug for Ed25519Signature[src]

impl Hash for Ed25519Signature[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'_> TryFrom<&'_ [u8]> for Ed25519Signature[src]

type Error = CryptoMaterialError

The type returned in the event of a conversion error.

impl Serialize for Ed25519Signature[src]

impl<'de> Deserialize<'de> for Ed25519Signature[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,