[−][src]Struct solana_libra_nextgen_crypto::ed25519::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]
&self,
message: &HashValue,
public_key: &Ed25519PublicKey
) -> Result<()>
Checks that self
is valid for message
using public_key
.
fn verify_arbitrary_msg(
&self,
message: &[u8],
public_key: &Ed25519PublicKey
) -> Result<()>
[src]
&self,
message: &[u8],
public_key: &Ed25519PublicKey
) -> Result<()>
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]
message: &HashValue,
keys_and_signatures: Vec<(Self::VerifyingKeyMaterial, Self)>
) -> Result<()>
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.
fn to_bytes(&self) -> Vec<u8>
[src]
impl Clone for Ed25519Signature
[src]
fn clone(&self) -> 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]
fn from(signature: Ed25519Signature) -> Self
[src]
impl From<Signature> for Ed25519Signature
[src]
impl PartialEq<Ed25519Signature> for Ed25519Signature
[src]
fn eq(&self, other: &Ed25519Signature) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Ed25519Signature
[src]
impl Debug for Ed25519Signature
[src]
impl Hash for Ed25519Signature
[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 Ed25519Signature
[src]
type Error = CryptoMaterialError
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8]) -> Result<Ed25519Signature, CryptoMaterialError>
[src]
impl Serialize for Ed25519Signature
[src]
impl<'de> Deserialize<'de> for Ed25519Signature
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for Ed25519Signature
impl Send for Ed25519Signature
impl Unpin for Ed25519Signature
impl RefUnwindSafe for Ed25519Signature
impl UnwindSafe for Ed25519Signature
Blanket Implementations
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, 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>,