2019-08-25 02:39:20 -04:00
|
|
|
"use strict";
|
|
|
|
import { arrayify } from "@ethersproject/bytes";
|
|
|
|
export function decode(textData) {
|
|
|
|
return arrayify(new Uint8Array(Buffer.from(textData, "base64")));
|
|
|
|
}
|
|
|
|
;
|
|
|
|
export function encode(data) {
|
|
|
|
return Buffer.from(arrayify(data)).toString("base64");
|
|
|
|
}
|
2020-07-13 08:03:56 -04:00
|
|
|
//# sourceMappingURL=index.js.map
|