UNPKG

lotus-sdk

Version:

Central repository for several classes of tools for integrating with, and building for, the Lotusia ecosystem

11 lines 896 B
import type { PeerId } from '@libp2p/interface-peer-id'; import { PrivateKey } from '../bitcore/privatekey.js'; export declare function createPeerIdFromPrivateKey(privateKey: PrivateKey): Promise<import("@libp2p/interface").Ed25519PeerId>; export declare function createRandomPeerId(): Promise<import("@libp2p/interface").Ed25519PeerId>; export declare function parsePeerId(peerIdStr: string): import("@libp2p/interface").RSAPeerId | import("@libp2p/interface").Ed25519PeerId | import("@libp2p/interface").Secp256k1PeerId | import("@libp2p/interface").URLPeerId; export declare function serializePeerId(peerId: PeerId): string; export declare function parseMultiaddrs(addrs: string | string[]): string[]; export declare function waitForEvent<T = unknown>(emitter: { once: (event: any, listener: any) => void; }, event: any, timeoutMs?: number): Promise<T>; //# sourceMappingURL=utils.d.ts.map