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

LibP2P.Transport.WebTransport

Description

libp2p WebTransport over HTTP/3 and QUIC v1.

The first WebTransport stream performs a Noise XX handshake to authenticate peer identities and bind the advertised TLS certificate hashes. Subsequent WebTransport streams are exposed directly as the native libp2p muxer.

Synopsis

Documentation

newWebTransportTransport :: KeyPair -> IO Transport Source #

Construct a WebTransport transport with one short-lived self-signed TLS certificate. The listener address includes its SHA-256 /certhash.

canDialWebTransport :: Multiaddr -> Bool Source #

Match dialable WebTransport multiaddrs containing at least one certificate hash. A trailing peer ID is optional.