pub fn public_key(&self) -> PublicKey {
        if let Some(keys) = &self.bls {
            PublicKey::BlsShare(keys.public)
        } else {
            PublicKey::Ed25519(self.ed25519.public)
        }
    }
/// Returns the BLS if any, else the Ed25519.
Returns the BLS if any, else the Ed25519.
Returns the BLS if any else the Ed25519 .
pub fn public_key(&self) -> PublicKey {
        if let Some(keys) = &self.bls {
            PublicKey::BlsShare(keys.public)
        } else {
            PublicKey::Ed25519(self.ed25519.public)
        }
    }
pub fn public_key ( & self ) -> PublicKey { if let Some ( keys ) = & self . bls { PublicKey :: BlsShare ( keys . public ) } else { PublicKey :: Ed25519 ( self . ed25519 . public ) } }
Returns the BLS if any, else the Ed25519.
Returns the BLS if any else the Ed25519 .
&self
&self