Function libp2p::tls::certificate::parse
pub fn parse(
certificate: &Certificate
) -> Result<P2pCertificate<'_>, ParseError>
Available on crate feature
tls
only.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.