Function libp2p_tls::certificate::parse

source ยท
pub fn parse<'a>(
    certificate: &'a CertificateDer<'a>,
) -> Result<P2pCertificate<'a>, ParseError>
Expand description

Attempts to parse the provided bytes as a P2pCertificate.

For this to succeed, the certificate must contain the specified extension and the signature must match the embedded public key.