diff --git a/src/type/mpi.js b/src/type/mpi.js index efa4292c..b3d98d1d 100644 --- a/src/type/mpi.js +++ b/src/type/mpi.js @@ -130,6 +130,7 @@ MPI.prototype.fromBN = function (bn) { }; MPI.fromClone = function (clone) { + clone.data.copy = BN.prototype.copy; const bn = new BN(); clone.data.copy(bn); return new MPI(bn);