import { peerIdFromString } from "@libp2p/peer-id";
import { base58btc } from "multiformats/bases/base58";
export { peerIdFromString };
export function peerIdToString(peerId) {
    return base58btc.encode(peerId.toMultihash().bytes).slice(1);
}
//# sourceMappingURL=peerId.js.map