UNPKG

@waku/enr

Version:
8 lines (7 loc) 374 B
import type { ENRKey, ENRValue } from "@waku/interfaces"; import { ENR } from "./enr.js"; export declare class EnrEncoder { static toValues(enr: ENR, privateKey?: Uint8Array): Promise<(ENRKey | ENRValue | number[])[]>; static toBytes(enr: ENR, privateKey?: Uint8Array): Promise<Uint8Array>; static toString(enr: ENR, privateKey?: Uint8Array): Promise<string>; }