pub fn contains(&self, hex: &str) -> bool {
        let bytes = hex::decode(hex).unwrap();
        let public_key = PublicKey::from_bytes(&bytes).unwrap();

        *self.local.public_key_inner() == public_key
            || self.cores.get_by_public(&public_key).is_some()
    }
/// Returns `true` if contains a [Core] under the given public key.
Returns `true` if contains a [Core] under the given public key.
Returns ` true ` if contains a [ Core ] under the given public key .
pub fn contains(&self, hex: &str) -> bool {
        let bytes = hex::decode(hex).unwrap();
        let public_key = PublicKey::from_bytes(&bytes).unwrap();
        *self.local.public_key_inner() == public_key
            || self.cores.get_by_public(&public_key).is_some()
    }
pub fn contains ( & self , hex : & str ) -> bool { let bytes = hex :: decode ( hex ) . unwrap ( ) ; let public_key = PublicKey :: from_bytes ( & bytes ) . unwrap ( ) ; * self . local . public_key_inner ( ) == public_key || self . cores . get_by_public ( & public_key ) . is_some ( ) }
Returns `true` if contains a [Core] under the given public key.
Returns ` true ` if contains a [ Core ] under the given public key .
&self
hex
&str
&self
hex
&str