X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjs%2Fbitcoinjs-bip38-2.0.2.js;h=57c1168eca1ac1ab33fe675893523efb1a6a9713;hb=5b689bd6e77f047eff37e43f0ffa487cb59edc45;hp=ea38715b8e10475446831d27ff1ab61326d26627;hpb=ac537983d9a89d2f5cc022dc4aa32dc24bcbda86;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git 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) { } else { padding = 4; } - + var key = parseKeys(private_key); var k = key.modulus.byteLength(); if (enc.length > k || new bn(enc).cmp(key.modulus) >= 0) { @@ -22690,13 +22690,13 @@ Script.prototype.runInContext = function (context) { if (!(context instanceof Context)) { throw new TypeError("needs a 'context' argument."); } - + var iframe = document.createElement('iframe'); if (!iframe.style) iframe.style = {}; iframe.style.display = 'none'; - + document.body.appendChild(iframe); - + var win = iframe.contentWindow; var wEval = win.eval, wExecScript = win.execScript; @@ -22705,7 +22705,7 @@ Script.prototype.runInContext = function (context) { wExecScript.call(win, 'null'); wEval = win.eval; } - + forEach(Object_keys(context), function (key) { win[key] = context[key]; }); @@ -22714,11 +22714,11 @@ Script.prototype.runInContext = function (context) { win[key] = context[key]; } }); - + var winKeys = Object_keys(win); var res = wEval.call(win, this.code); - + forEach(Object_keys(win), function (key) { // Avoid copying circular objects like `top` and `window` by only // updating existing context properties or new properties in the `win` @@ -22733,9 +22733,9 @@ Script.prototype.runInContext = function (context) { defineProp(context, key, win[key]); } }); - + document.body.removeChild(iframe); - + return res; }; @@ -27914,4 +27914,4 @@ Sha512.prototype._hash = function () { module.exports = Sha512 },{"./hash":195,"inherits":189,"safe-buffer":193}]},{},[150])(150) -}); \ No newline at end of file +});