@waku/enr
Version:
ENR (EIP-778) for Waku
8 lines (7 loc) • 346 B
TypeScript
import type { PeerId } from "@libp2p/interface";
import type { ENRKey, ENRValue } from "@waku/interfaces";
import { ENR } from "./enr.js";
export declare class EnrCreator {
static fromPublicKey(publicKey: Uint8Array, kvs?: Record<ENRKey, ENRValue>): ENR;
static fromPeerId(peerId: PeerId, kvs?: Record<ENRKey, ENRValue>): Promise<ENR>;
}