ethers.js/packages/bytes/lib/base64.js
2022-04-11 17:14:19 -04:00

9 lines
290 B
JavaScript

import { logger } from "./logger.js";
export function decodeBase64(textData) {
return new Uint8Array(Buffer.from(textData, "base64"));
}
;
export function encodeBase64(data) {
return Buffer.from(logger.getBytes(data, "data")).toString("base64");
}
//# sourceMappingURL=base64.js.map