

const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
let __multiformats_base_x = require("@multiformats/base-x");
__multiformats_base_x = require_rolldown_runtime.__toESM(__multiformats_base_x);

//#region src/utils/base58.ts
const base58Converter = (0, __multiformats_base_x.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
function decodeFromBase58(base58) {
	return base58Converter.decode(base58);
}
function encodeToBase58(buffer) {
	return base58Converter.encode(buffer);
}

//#endregion
exports.decodeFromBase58 = decodeFromBase58;
exports.encodeToBase58 = encodeToBase58;