libp2p.identity.identify package

Subpackages

Submodules

libp2p.identity.identify.identify module

libp2p.identity.identify.identify.identify_handler_for(host: IHost, use_varint_format: bool = True) Callable[[object], Awaitable[None]]
libp2p.identity.identify.identify.parse_identify_response(response: bytes) Identify

Parse identify response that could be either: - Old format: raw protobuf - New format: length-prefixed protobuf

This function provides backward and forward compatibility.

Module contents

libp2p.identity.identify.identify_handler_for(host: IHost, use_varint_format: bool = True) Callable[[object], Awaitable[None]]