From 5b689bd6e77f047eff37e43f0ffa487cb59edc45 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Fri, 13 Sep 2019 10:01:32 +1000 Subject: Fix trailing whitespace --- src/js/bitcoinjs-3.3.2.js | 6 ++-- src/js/bitcoinjs-bip38-2.0.2.js | 20 ++++++------ src/js/casinocoin-util.js | 3 +- src/js/nebulas-account.js | 18 +++++------ src/js/ripple-util.js | 4 +-- src/js/segwit-parameters.js | 6 ++-- src/js/sjcl-bip39.js | 70 ++++++++++++++++++++--------------------- src/js/stellar-util.js | 18 +++++------ 8 files changed, 72 insertions(+), 73 deletions(-) diff --git a/src/js/bitcoinjs-3.3.2.js b/src/js/bitcoinjs-3.3.2.js index 2390168..76f57e7 100644 --- a/src/js/bitcoinjs-3.3.2.js +++ b/src/js/bitcoinjs-3.3.2.js @@ -8596,13 +8596,13 @@ module.exports={ "OP_CHECKMULTISIGVERIFY": 175, "OP_NOP1": 176, - + "OP_NOP2": 177, "OP_CHECKLOCKTIMEVERIFY": 177, "OP_NOP3": 178, "OP_CHECKSEQUENCEVERIFY": 178, - + "OP_NOP4": 179, "OP_NOP5": 180, "OP_NOP6": 181, @@ -15165,4 +15165,4 @@ module.exports = { }).call(this,require("buffer").Buffer) },{"bs58check":83,"buffer":5}]},{},[34])(34) -}); \ No newline at end of file +}); 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 +}); diff --git a/src/js/casinocoin-util.js b/src/js/casinocoin-util.js index f76e989..ac40c5a 100644 --- a/src/js/casinocoin-util.js +++ b/src/js/casinocoin-util.js @@ -6,5 +6,4 @@ function convertCasinoCoinAdrr(address) { function convertCasinoCoinPriv(priv) { return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66) -} - +} diff --git a/src/js/nebulas-account.js b/src/js/nebulas-account.js index 45d8724..bded3e9 100644 --- a/src/js/nebulas-account.js +++ b/src/js/nebulas-account.js @@ -21709,7 +21709,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) { @@ -27194,13 +27194,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; @@ -27209,7 +27209,7 @@ Script.prototype.runInContext = function (context) { wExecScript.call(win, 'null'); wEval = win.eval; } - + forEach(Object_keys(context), function (key) { win[key] = context[key]; }); @@ -27218,11 +27218,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` @@ -27237,9 +27237,9 @@ Script.prototype.runInContext = function (context) { defineProp(context, key, win[key]); } }); - + document.body.removeChild(iframe); - + return res; }; diff --git a/src/js/ripple-util.js b/src/js/ripple-util.js index 8184a76..f26a93a 100644 --- a/src/js/ripple-util.js +++ b/src/js/ripple-util.js @@ -6,5 +6,5 @@ function convertRippleAdrr(address) { function convertRipplePriv(priv) { return window.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66) -} - +} + diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js index aab7df0..2f729f8 100644 --- a/src/js/segwit-parameters.js +++ b/src/js/segwit-parameters.js @@ -173,7 +173,7 @@ bitcoinjs.bitcoin.networks.digibyte.p2wpkh = { }; bitcoinjs.bitcoin.networks.digibyte.p2wpkhInP2sh = { - baseNetwork: "digibyte", + baseNetwork: "digibyte", messagePrefix: '\x19DigiByte Signed Message:\n', bech32: 'dgb', bip32: { @@ -199,7 +199,7 @@ bitcoinjs.bitcoin.networks.blockstamp.p2wpkh = { }; bitcoinjs.bitcoin.networks.blockstamp.p2wpkhInP2sh = { - baseNetwork: "blockstamp", + baseNetwork: "blockstamp", messagePrefix: '\x18BlockStamp Signed Message:\n', bech32: 'bc', bip32: { @@ -225,7 +225,7 @@ bitcoinjs.bitcoin.networks.nix.p2wpkh = { }; bitcoinjs.bitcoin.networks.nix.p2wpkhInP2sh = { - baseNetwork: "nix", + baseNetwork: "nix", messagePrefix: '\x18Nix Signed Message:\n', bech32: 'nix', bip32: { diff --git a/src/js/sjcl-bip39.js b/src/js/sjcl-bip39.js index 537e3b8..447b565 100644 --- a/src/js/sjcl-bip39.js +++ b/src/js/sjcl-bip39.js @@ -26,13 +26,13 @@ var sjcl = { /** @namespace Key exchange functions. Right now only SRP is implemented. */ keyexchange: {}, - + /** @namespace Block cipher modes of operation. */ mode: {}, /** @namespace Miscellaneous. HMAC and PBKDF2. */ misc: {}, - + /** * @namespace Bit array encoders and decoders. * @@ -43,7 +43,7 @@ var sjcl = { * the method names are "fromBits" and "toBits". */ codec: {}, - + /** @namespace Exceptions. */ exception: { /** @constructor Ciphertext is corrupt. */ @@ -51,13 +51,13 @@ var sjcl = { this.toString = function() { return "CORRUPT: "+this.message; }; this.message = message; }, - + /** @constructor Invalid parameter. */ invalid: function(message) { this.toString = function() { return "INVALID: "+this.message; }; this.message = message; }, - + /** @constructor Bug or missing feature in SJCL. @constructor */ bug: function(message) { this.toString = function() { return "BUG: "+this.message; }; @@ -159,7 +159,7 @@ sjcl.bitArray = { if (a1.length === 0 || a2.length === 0) { return a1.concat(a2); } - + var last = a1[a1.length-1], shift = sjcl.bitArray.getPartial(last); if (shift === 32) { return a1.concat(a2); @@ -245,7 +245,7 @@ sjcl.bitArray = { _shiftRight: function (a, shift, carry, out) { var i, last2=0, shift2; if (out === undefined) { out = []; } - + for (; shift >= 32; shift -= 32) { out.push(carry); carry = 0; @@ -253,7 +253,7 @@ sjcl.bitArray = { if (shift === 0) { return out.concat(a); } - + for (i=0; i>>shift); carry = a[i] << (32-shift); @@ -263,7 +263,7 @@ sjcl.bitArray = { out.push(sjcl.bitArray.partial(shift+shift2 & 31, (shift + shift2 > 32) ? carry : out.pop(),1)); return out; }, - + /** xor a block of 4 words together. * @private */ @@ -295,7 +295,7 @@ sjcl.bitArray = { * @author Mike Hamburg * @author Dan Boneh */ - + /** @namespace UTF-8 strings */ sjcl.codec.utf8String = { /** Convert from a bitArray to a UTF-8 string. */ @@ -310,7 +310,7 @@ sjcl.codec.utf8String = { } return decodeURIComponent(escape(out)); }, - + /** Convert from a UTF-8 string to a bitArray. */ toBits: function (str) { str = unescape(encodeURIComponent(str)); @@ -412,7 +412,7 @@ sjcl.hash.sha512.prototype = { * @constant */ blockSize: 1024, - + /** * Reset the hash state. * @return this @@ -423,7 +423,7 @@ sjcl.hash.sha512.prototype = { this._length = 0; return this; }, - + /** * Input several words to the hash. * @param {bitArray|String} data the data to hash. @@ -441,7 +441,7 @@ sjcl.hash.sha512.prototype = { } return this; }, - + /** * Complete hashing and output the hash value. * @return {bitArray} The hash value, an array of 16 big-endian words. @@ -736,12 +736,12 @@ sjcl.misc.hmac = function (key, Hash) { if (key.length > bs) { key = Hash.hash(key); } - + for (i=0; i>>7 ^ a>>>18 ^ a>>>3 ^ a<<25 ^ a<<14) + + tmp = w[i&15] = ((a>>>7 ^ a>>>18 ^ a>>>3 ^ a<<25 ^ a<<14) + (b>>>17 ^ b>>>19 ^ b>>>10 ^ b<<15 ^ b<<13) + w[i&15] + w[(i+9) & 15]) | 0; } - + tmp = (tmp + h7 + (h4>>>6 ^ h4>>>11 ^ h4>>>25 ^ h4<<26 ^ h4<<21 ^ h4<<7) + (h6 ^ h4&(h5^h6)) + k[i]); // | 0; - + // shift register h7 = h6; h6 = h5; h5 = h4; h4 = h3 + tmp | 0; diff --git a/src/js/stellar-util.js b/src/js/stellar-util.js index 8722fbf..d576a36 100644 --- a/src/js/stellar-util.js +++ b/src/js/stellar-util.js @@ -13146,7 +13146,7 @@ Cursor.prototype.fill = function(value, length) { length = this.buffer().length - this.tell(); } - + this.buffer().fill(value, this.tell(), this.tell() + length); this.seek('+', length); @@ -42404,13 +42404,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; @@ -42419,7 +42419,7 @@ Script.prototype.runInContext = function (context) { wExecScript.call(win, 'null'); wEval = win.eval; } - + forEach(Object_keys(context), function (key) { win[key] = context[key]; }); @@ -42428,11 +42428,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` @@ -42447,9 +42447,9 @@ Script.prototype.runInContext = function (context) { defineProp(context, key, win[key]); } }); - + document.body.removeChild(iframe); - + return res; }; -- cgit v1.2.3