From e106d0273130fade4a66752b3e7d9a248709f6dd Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 19 Mar 2015 13:35:25 +1100 Subject: [PATCH] standard formatting fixes --- src/ecpair.js | 2 +- src/hdnode.js | 2 +- test/hdnode.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ecpair.js b/src/ecpair.js index 7f340b4..990c2dd 100644 --- a/src/ecpair.js +++ b/src/ecpair.js @@ -47,7 +47,7 @@ function ECPair (d, Q, options) { } Object.defineProperty(ECPair.prototype, 'Q', { - get: function() { + get: function () { if (!this.__Q && this.d) { this.__Q = ECPair.curve.G.multiply(this.d) } diff --git a/src/hdnode.js b/src/hdnode.js index 49f5ae4..6989b3e 100644 --- a/src/hdnode.js +++ b/src/hdnode.js @@ -99,7 +99,7 @@ HDNode.fromBase58 = function (string, network) { var chainCode = buffer.slice(13, 45) var data, keyPair - // 33 bytes: private key data (0x00 + k) + // 33 bytes: private key data (0x00 + k) if (version === network.bip32.private) { assert.strictEqual(buffer.readUInt8(45), 0x00, 'Invalid private key') data = buffer.slice(46, 78) diff --git a/test/hdnode.js b/test/hdnode.js index 46ff82b..46833e8 100644 --- a/test/hdnode.js +++ b/test/hdnode.js @@ -1,4 +1,4 @@ -/* global describe, it */ +/* global describe, it, beforeEach */ /* eslint-disable no-new */ var assert = require('assert')