@libp2p/peer-record
Version:
Used to transfer signed peer data across the network
14 lines • 530 B
TypeScript
import { type Codec, type DecodeOptions } from 'protons-runtime';
import type { Uint8ArrayList } from 'uint8arraylist';
export interface Envelope {
publicKey: Uint8Array;
payloadType: Uint8Array;
payload: Uint8Array;
signature: Uint8Array;
}
export declare namespace Envelope {
const codec: () => Codec<Envelope>;
const encode: (obj: Partial<Envelope>) => Uint8Array;
const decode: (buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions<Envelope>) => Envelope;
}
//# sourceMappingURL=envelope.d.ts.map