ethers.js/lib.esm/utils/base64.js

9 lines
287 B
JavaScript
Raw Normal View History

2022-09-05 23:57:11 +03:00
import { logger } from "./logger.js";
export function decodeBase64(textData) {
return logger.getBytesCopy(Buffer.from(textData, "base64"));
}
;
export function encodeBase64(data) {
return Buffer.from(logger.getBytes(data)).toString("base64");
}
//# sourceMappingURL=base64.js.map