UNPKG

@libp2p/pubsub-peer-discovery

Version:

A libp2p module that uses pubsub for mdns like peer discovery

12 lines 446 B
import { type Codec, type DecodeOptions } from 'protons-runtime'; import type { Uint8ArrayList } from 'uint8arraylist'; export interface Peer { publicKey: Uint8Array; addrs: Uint8Array[]; } export declare namespace Peer { const codec: () => Codec<Peer>; const encode: (obj: Partial<Peer>) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions<Peer>) => Peer; } //# sourceMappingURL=peer.d.ts.map