UNPKG

@waku/enr

Version:
8 lines (7 loc) 346 B
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>; }