| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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
- newWebTransportTransport :: KeyPair -> IO Transport
- canDialWebTransport :: Multiaddr -> Bool
- verifyBoundHashes :: [ByteString] -> [ByteString] -> IO ()
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.
verifyBoundHashes :: [ByteString] -> [ByteString] -> IO () Source #