libp2p-hs-0.1.0.0: Haskell implementation of the libp2p networking stack
Safe HaskellNone
LanguageGHC2021

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.