tendermint::public_key

Function deserialize_public_key

Source
pub fn deserialize_public_key<'de, D>(
    deserializer: D,
) -> Result<PublicKey, D::Error>
where D: Deserializer<'de>,
Expand description

Custom deserialization for public keys to handle multiple potential JSON formats from Tendermint.

See https://github.com/informalsystems/tendermint-rs/issues/1021 for context.