2019-05-14 18:48:48 -04:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
var bytes_1 = require("@ethersproject/bytes");
|
|
|
|
function decode(textData) {
|
|
|
|
return bytes_1.arrayify(new Uint8Array(Buffer.from(textData, "base64")));
|
|
|
|
}
|
|
|
|
exports.decode = decode;
|
|
|
|
;
|
|
|
|
function encode(data) {
|
|
|
|
return Buffer.from(bytes_1.arrayify(data)).toString("base64");
|
|
|
|
}
|
|
|
|
exports.encode = encode;
|
2020-07-13 08:03:56 -04:00
|
|
|
//# sourceMappingURL=index.js.map
|