fedimint_core/encoding/tls.rs
use std::io::{Error, Write};
use hex::ToHex;
use tokio_rustls::rustls;
use crate::encoding::Encodable;
impl Encodable for rustls::Certificate {
fn consensus_encode<W: Write>(&self, writer: &mut W) -> Result<usize, Error> {
self.0.encode_hex::<String>().consensus_encode(writer)
}
}