[][src]Enum enr::DefaultPublicKey

pub enum DefaultPublicKey {
    Secp256k1(PublicKey),
    Ed25519(PublicKey),
}

A standard implementation of EnrPublicKey which has support for Secp256k1 and Ed25519 for ENR signature verification.

Variants

Secp256k1(PublicKey)

An Secp256k1 public key.

Ed25519(PublicKey)

An Ed25519 public key.

Trait Implementations

impl Clone for DefaultPublicKey[src]

impl Debug for DefaultPublicKey[src]

impl EnrPublicKey for DefaultPublicKey[src]

fn verify_v4(&self, msg: &[u8], sig: &[u8]) -> bool[src]

Verify a raw message, given a public key for the v4 identity scheme.

impl From<PublicKey> for DefaultPublicKey[src]

impl From<PublicKey> for DefaultPublicKey[src]

impl Into<String> for DefaultPublicKey[src]

Generates the ENR public key strings associated with each DefaultPublicKey variant.

These strings are stored as the keys in the ENR record.

Auto Trait Implementations

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>,