aboutsummaryrefslogtreecommitdiff
path: root/src/js/bitcoinjs-bip38-2.0.2.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/bitcoinjs-bip38-2.0.2.js')
-rw-r--r--src/js/bitcoinjs-bip38-2.0.2.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/js/bitcoinjs-bip38-2.0.2.js b/src/js/bitcoinjs-bip38-2.0.2.js
index ea38715..57c1168 100644
--- a/src/js/bitcoinjs-bip38-2.0.2.js
+++ b/src/js/bitcoinjs-bip38-2.0.2.js
@@ -18123,7 +18123,7 @@ module.exports = function privateDecrypt(private_key, enc, reverse) {
18123 } else { 18123 } else {
18124 padding = 4; 18124 padding = 4;
18125 } 18125 }
18126 18126
18127 var key = parseKeys(private_key); 18127 var key = parseKeys(private_key);
18128 var k = key.modulus.byteLength(); 18128 var k = key.modulus.byteLength();
18129 if (enc.length > k || new bn(enc).cmp(key.modulus) >= 0) { 18129 if (enc.length > k || new bn(enc).cmp(key.modulus) >= 0) {
@@ -22690,13 +22690,13 @@ Script.prototype.runInContext = function (context) {
22690 if (!(context instanceof Context)) { 22690 if (!(context instanceof Context)) {
22691 throw new TypeError("needs a 'context' argument."); 22691 throw new TypeError("needs a 'context' argument.");
22692 } 22692 }
22693 22693
22694 var iframe = document.createElement('iframe'); 22694 var iframe = document.createElement('iframe');
22695 if (!iframe.style) iframe.style = {}; 22695 if (!iframe.style) iframe.style = {};
22696 iframe.style.display = 'none'; 22696 iframe.style.display = 'none';
22697 22697
22698 document.body.appendChild(iframe); 22698 document.body.appendChild(iframe);
22699 22699
22700 var win = iframe.contentWindow; 22700 var win = iframe.contentWindow;
22701 var wEval = win.eval, wExecScript = win.execScript; 22701 var wEval = win.eval, wExecScript = win.execScript;
22702 22702
@@ -22705,7 +22705,7 @@ Script.prototype.runInContext = function (context) {
22705 wExecScript.call(win, 'null'); 22705 wExecScript.call(win, 'null');
22706 wEval = win.eval; 22706 wEval = win.eval;
22707 } 22707 }
22708 22708
22709 forEach(Object_keys(context), function (key) { 22709 forEach(Object_keys(context), function (key) {
22710 win[key] = context[key]; 22710 win[key] = context[key];
22711 }); 22711 });
@@ -22714,11 +22714,11 @@ Script.prototype.runInContext = function (context) {
22714 win[key] = context[key]; 22714 win[key] = context[key];
22715 } 22715 }
22716 }); 22716 });
22717 22717
22718 var winKeys = Object_keys(win); 22718 var winKeys = Object_keys(win);
22719 22719
22720 var res = wEval.call(win, this.code); 22720 var res = wEval.call(win, this.code);
22721 22721
22722 forEach(Object_keys(win), function (key) { 22722 forEach(Object_keys(win), function (key) {
22723 // Avoid copying circular objects like `top` and `window` by only 22723 // Avoid copying circular objects like `top` and `window` by only
22724 // updating existing context properties or new properties in the `win` 22724 // updating existing context properties or new properties in the `win`
@@ -22733,9 +22733,9 @@ Script.prototype.runInContext = function (context) {
22733 defineProp(context, key, win[key]); 22733 defineProp(context, key, win[key]);
22734 } 22734 }
22735 }); 22735 });
22736 22736
22737 document.body.removeChild(iframe); 22737 document.body.removeChild(iframe);
22738 22738
22739 return res; 22739 return res;
22740}; 22740};
22741 22741
@@ -27914,4 +27914,4 @@ Sha512.prototype._hash = function () {
27914module.exports = Sha512 27914module.exports = Sha512
27915 27915
27916},{"./hash":195,"inherits":189,"safe-buffer":193}]},{},[150])(150) 27916},{"./hash":195,"inherits":189,"safe-buffer":193}]},{},[150])(150)
27917}); \ No newline at end of file 27917});