Trailing whitespace

This commit is contained in:
Andreas Brekken 2014-01-11 13:55:21 +07:00
parent d6290ef5df
commit bf6254d3e2
3 changed files with 5 additions and 6 deletions

View file

@ -19,10 +19,10 @@ var Address = function (bytes, version) {
this.version = arguments[0].version;
}
else if (typeof bytes === 'string') {
this.hash =
this.hash =
bytes.length <= 34 ? base58.checkDecode(bytes)
: bytes.length <= 40 ? conv.hexToBytes(bytes)
: util.error('Bad input');
: util.error('Bad input');
this.version = version || this.hash.version || 0;
}

View file

@ -117,7 +117,7 @@ BIP32key.prototype.privtopub = BIP32key.prototype.getPub = function() {
}
BIP32key.fromMasterKey = function(seed) {
var I = Crypto.HMAC(Crypto.SHA512,seed, 'Bitcoin seed' , { asBytes: true })
var I = Crypto.HMAC(Crypto.SHA512,seed, 'Bitcoin seed', { asBytes: true })
return new BIP32key({
vbytes: conv.stringToBytes(PRIVDERIV),
type: 'priv',

View file

@ -1,4 +1,3 @@
var conv = require('../convert');
var util = require('../util');
@ -44,7 +43,7 @@ var util = require('../util');
[0x4cc5d4be, 0xcb3e42b6], [0x597f299c, 0xfc657e2a],
[0x5fcb6fab, 0x3ad6faec], [0x6c44198c, 0x4a475817]
];
// Reusable objects
// Reusable objects
var W = [];
for (var i = 0; i < 80; i++) W.push([0,0])
@ -97,7 +96,7 @@ var util = require('../util');
var hh = H7h;
var hl = H7l;
// Rounds
// Rounds
for (var i = 0; i < 80; i++) {
// Shortcut
var Wi = W[i];