| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Network.LibP2P.Multiaddr.Codec
Description
Binary and text encoding/decoding for multiaddr.
Synopsis
- encodeProtocols :: [Protocol] -> ByteString
- decodeProtocols :: ByteString -> Either String [Protocol]
- protocolsToText :: [Protocol] -> Text
- textToProtocols :: Text -> Either String [Protocol]
Documentation
encodeProtocols :: [Protocol] -> ByteString Source #
Encode a list of protocols to binary multiaddr format.
decodeProtocols :: ByteString -> Either String [Protocol] Source #
Decode binary multiaddr format to a list of protocols.
protocolsToText :: [Protocol] -> Text Source #
Convert a list of protocols to human-readable text form.