Trait enr::EnrKeyUnambiguous
source · pub trait EnrKeyUnambiguous: EnrKey {
// Required method
fn decode_public(bytes: &[u8]) -> Result<Self::PublicKey, DecoderError>;
}Expand description
Trait for keys that are uniquely represented
Required Methods§
sourcefn decode_public(bytes: &[u8]) -> Result<Self::PublicKey, DecoderError>
fn decode_public(bytes: &[u8]) -> Result<Self::PublicKey, DecoderError>
Decode raw bytes as corresponding public key.
Object Safety§
This trait is not object safe.