UNPKG

@waku/proto

Version:
31 lines (30 loc) 1.06 kB
import type { Codec, DecodeOptions } from 'protons-runtime'; import type { Uint8ArrayList } from 'uint8arraylist'; export interface RateLimitProof { proof: Uint8Array; merkleRoot: Uint8Array; epoch: Uint8Array; shareX: Uint8Array; shareY: Uint8Array; nullifier: Uint8Array; rlnIdentifier: Uint8Array; } export declare namespace RateLimitProof { const codec: () => Codec<RateLimitProof>; const encode: (obj: Partial<RateLimitProof>) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions<RateLimitProof>) => RateLimitProof; } export interface WakuMessage { payload: Uint8Array; contentTopic: string; version?: number; timestamp?: bigint; meta?: Uint8Array; rateLimitProof?: RateLimitProof; ephemeral?: boolean; } export declare namespace WakuMessage { const codec: () => Codec<WakuMessage>; const encode: (obj: Partial<WakuMessage>) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions<WakuMessage>) => WakuMessage; }