diff --git a/lib/BigNumber.js b/lib/BigNumber.js index f53ce28..c8f3be9 100644 --- a/lib/BigNumber.js +++ b/lib/BigNumber.js @@ -4,7 +4,8 @@ const { jsbn: { BigInteger } } = require('node-forge'); class BigNumber { constructor(value = '') { - this._n = new BigInteger(value); + this._n = new BigInteger(null); + this._n.fromInt(value); } toBEBuffer(length = undefined) {