UNPKG

@libp2p/peer-id-factory

Version:
13 lines 454 B
import type { Codec } from 'protons-runtime'; import type { Uint8ArrayList } from 'uint8arraylist'; export interface PeerIdProto { id?: Uint8Array; pubKey?: Uint8Array; privKey?: Uint8Array; } export declare namespace PeerIdProto { const codec: () => Codec<PeerIdProto>; const encode: (obj: Partial<PeerIdProto>) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList) => PeerIdProto; } //# sourceMappingURL=proto.d.ts.map