Function libp2p_tls::certificate::parse
source · pub fn parse(
certificate: &Certificate
) -> Result<P2pCertificate<'_>, 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.