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

LibP2P.Security.TLS.Certificate

Description

libp2p identity certificates shared by TLS and QUIC transports.

Synopsis

Documentation

newIdentityCredential :: KeyPair -> IO Credential Source #

Generate an ephemeral self-signed Ed25519 certificate bound to a host key.

verifyIdentityCertificate :: CertificateChain -> IO (Either String PeerId) Source #

Verify a peer's one-certificate chain and recover its authenticated Peer ID.

verifyIdentityCertificateAt :: 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.