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§

source

fn decode_public(bytes: &[u8]) -> Result<Self::PublicKey, DecoderError>

Decode raw bytes as corresponding public key.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl EnrKeyUnambiguous for SigningKey

source§

impl EnrKeyUnambiguous for SecretKey

source§

impl EnrKeyUnambiguous for SigningKey

Implementors§