[][src]Struct iop_keyvault::ed25519::Ed25519

pub struct Ed25519;

This elliptic curve cryptography implements both the AsymmetricCrypto and KeyDerivationCrypto traits so it can be used in EcDSA, Cardano and of course, Mopheus/Prometheus/Mercury.

Trait Implementations

impl AsymmetricCrypto for Ed25519[src]

type KeyId = EdKeyId

The ID (also called fingerprint or address in some literature) of the public key. See PublicKey::key_id for more details. Read more

type PublicKey = EdPublicKey

See PublicKey for more details. Read more

type PrivateKey = EdPrivateKey

See PrivateKey for more details. Read more

type Signature = EdSignature

The signature of a given message with a given private key. Its size and representation is up to the implementation. Read more

impl Clone for Ed25519[src]

impl Debug for Ed25519[src]

impl ExtendedPrivateKey<Ed25519> for EdExtPrivateKey[src]

fn derive_hardened_child(&self, idx: i32) -> Result<EdExtPrivateKey>[src]

There is a potential vulnerability in that might affect all SLIP-0010 compatible Ed25519 wallets. We should never assume that there is only 1 public key that can verify a given signature. Actually, there are 8 public keys.

impl ExtendedPublicKey<Ed25519> for EdPublicKey[src]

impl KeyDerivationCrypto for Ed25519[src]

type ExtendedPrivateKey = EdExtPrivateKey

See ExtendedPrivateKey for more details. Read more

type ExtendedPublicKey = EdPublicKey

See ExtendedPublicKey for more details. Read more

impl PrivateKey<Ed25519> for EdPrivateKey[src]

impl PublicKey<Ed25519> for EdPublicKey[src]

fn verify<D: AsRef<[u8]>>(&self, data: D, sig: &EdSignature) -> bool[src]

We should never assume that there is only 1 public key that can verify a given signature. Actually, there are 8 public keys.

Auto Trait Implementations

impl RefUnwindSafe for Ed25519

impl Send for Ed25519

impl Sync for Ed25519

impl Unpin for Ed25519

impl UnwindSafe for Ed25519

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,