pub fn serialize(&self, public_key: TendermintKey) -> String {
        match self {
            Format::Bech32 {
                account_key_prefix,
                consensus_key_prefix,
            } => match public_key {
                TendermintKey::AccountKey(pk) => pk.to_bech32(account_key_prefix),
                TendermintKey::ConsensusKey(pk) => pk.to_bech32(consensus_key_prefix),
            },
            Format::Hex => public_key.to_hex(),
        }
    }
/// Serialize a `TendermintKey` according to chain-specific rules
Serialize a `TendermintKey` according to chain-specific rules
Serialize a ` TendermintKey ` according to chain - specific rules
pub fn serialize(&self, public_key: TendermintKey) -> String {
        match self {
            Format::Bech32 {
                account_key_prefix,
                consensus_key_prefix,
            } => match public_key {
                TendermintKey::AccountKey(pk) => pk.to_bech32(account_key_prefix),
                TendermintKey::ConsensusKey(pk) => pk.to_bech32(consensus_key_prefix),
            },
            Format::Hex => public_key.to_hex(),
        }
    }
pub fn serialize ( & self , public_key : TendermintKey ) -> String { match self { Format :: Bech32 { account_key_prefix , consensus_key_prefix , } => match public_key { TendermintKey :: AccountKey ( pk ) => pk . to_bech32 ( account_key_prefix ) , TendermintKey :: ConsensusKey ( pk ) => pk . to_bech32 ( consensus_key_prefix ) , } , Format :: Hex => public_key . to_hex ( ) , } }
Serialize a `TendermintKey` according to chain-specific rules
Serialize a ` TendermintKey ` according to chain - specific rules
&self
public_key
TendermintKey