Enum enr::CombinedPublicKey
source · pub enum CombinedPublicKey {
Secp256k1(VerifyingKey),
Ed25519(VerifyingKey),
}
Expand description
A combined implementation of EnrPublicKey
which has support for Secp256k1
and Ed25519
for ENR signature verification.
Variants§
Trait Implementations§
source§impl Clone for CombinedPublicKey
impl Clone for CombinedPublicKey
source§fn clone(&self) -> CombinedPublicKey
fn clone(&self) -> CombinedPublicKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CombinedPublicKey
impl Debug for CombinedPublicKey
source§impl EnrPublicKey for CombinedPublicKey
impl EnrPublicKey for CombinedPublicKey
source§impl From<VerifyingKey<Secp256k1>> for CombinedPublicKey
impl From<VerifyingKey<Secp256k1>> for CombinedPublicKey
source§fn from(public_key: VerifyingKey) -> Self
fn from(public_key: VerifyingKey) -> Self
Converts to this type from the input type.
source§impl From<VerifyingKey> for CombinedPublicKey
impl From<VerifyingKey> for CombinedPublicKey
source§fn from(public_key: VerifyingKey) -> Self
fn from(public_key: VerifyingKey) -> Self
Converts to this type from the input type.
source§impl PartialEq for CombinedPublicKey
impl PartialEq for CombinedPublicKey
source§fn eq(&self, other: &CombinedPublicKey) -> bool
fn eq(&self, other: &CombinedPublicKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CombinedPublicKey
impl StructuralPartialEq for CombinedPublicKey
Auto Trait Implementations§
impl Freeze for CombinedPublicKey
impl RefUnwindSafe for CombinedPublicKey
impl Send for CombinedPublicKey
impl Sync for CombinedPublicKey
impl Unpin for CombinedPublicKey
impl UnwindSafe for CombinedPublicKey
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more