| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
LibP2P.Transport.QUIC.Certificate
Description
libp2p identity certificates for QUIC's mutual TLS handshake.
Synopsis
Documentation
newQUICCredential :: KeyPair -> IO Credential Source #
Generate an ephemeral self-signed Ed25519 certificate bound to a host key.
verifyQUICCertificate :: CertificateChain -> IO (Either String PeerId) Source #
Verify a peer's one-certificate chain against the current time and recover its authenticated Peer ID.
verifyQUICCertificateAt :: DateTime -> CertificateChain -> Either String PeerId Source #
Verify a peer's one-certificate chain as of the given UTC time.
libp2pExtensionOID :: OID Source #
IANA private enterprise extension assigned to libp2p.