diff --git a/lib/account.js b/lib/account.js index b702298..571ad94 100644 --- a/lib/account.js +++ b/lib/account.js @@ -6,6 +6,7 @@ import BigInteger from "jsbn"; import * as pako from "pako"; import cryptoJs from "crypto-js"; import hex from "crypto-js/enc-hex"; +import { Buffer } from "buffer"; function rsConvert(address) { var addr = new NxtAddress(); diff --git a/lib/helpers.js b/lib/helpers.js index b9e3448..5a81bf8 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -1,6 +1,7 @@ import cryptoJs from "crypto-js"; import hex from "crypto-js/enc-hex"; import { BigInteger } from "jsbn"; +import { Buffer } from "buffer"; var charToNibble = {}; var nibbleToChar = [];