standard formatting fixes
This commit is contained in:
parent
4c8b0f38ea
commit
e106d02731
3 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ function ECPair (d, Q, options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.defineProperty(ECPair.prototype, 'Q', {
|
Object.defineProperty(ECPair.prototype, 'Q', {
|
||||||
get: function() {
|
get: function () {
|
||||||
if (!this.__Q && this.d) {
|
if (!this.__Q && this.d) {
|
||||||
this.__Q = ECPair.curve.G.multiply(this.d)
|
this.__Q = ECPair.curve.G.multiply(this.d)
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ HDNode.fromBase58 = function (string, network) {
|
||||||
var chainCode = buffer.slice(13, 45)
|
var chainCode = buffer.slice(13, 45)
|
||||||
var data, keyPair
|
var data, keyPair
|
||||||
|
|
||||||
// 33 bytes: private key data (0x00 + k)
|
// 33 bytes: private key data (0x00 + k)
|
||||||
if (version === network.bip32.private) {
|
if (version === network.bip32.private) {
|
||||||
assert.strictEqual(buffer.readUInt8(45), 0x00, 'Invalid private key')
|
assert.strictEqual(buffer.readUInt8(45), 0x00, 'Invalid private key')
|
||||||
data = buffer.slice(46, 78)
|
data = buffer.slice(46, 78)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* global describe, it */
|
/* global describe, it, beforeEach */
|
||||||
/* eslint-disable no-new */
|
/* eslint-disable no-new */
|
||||||
|
|
||||||
var assert = require('assert')
|
var assert = require('assert')
|
||||||
|
|
Loading…
Add table
Reference in a new issue