diff --git a/lib/hdkey.js b/lib/hdkey.js index e26c5a5..670386c 100644 --- a/lib/hdkey.js +++ b/lib/hdkey.js @@ -22,8 +22,8 @@ function HDKey (versions) { } Object.defineProperty(HDKey.prototype, 'fingerprint', { get: function () { return this._fingerprint } }) -Object.defineProperty(HDKey.prototype, 'identifier', {get: function () { return this._identifier } }) -Object.defineProperty(HDKey.prototype, 'pubKeyHash', {get: function () { return this.identifier }}) +Object.defineProperty(HDKey.prototype, 'identifier', { get: function () { return this._identifier } }) +Object.defineProperty(HDKey.prototype, 'pubKeyHash', { get: function () { return this.identifier } }) Object.defineProperty(HDKey.prototype, 'privateKey', { get: function () { diff --git a/test/hdkey.test.js b/test/hdkey.test.js index 96ce627..3d2c5fa 100644 --- a/test/hdkey.test.js +++ b/test/hdkey.test.js @@ -119,7 +119,6 @@ describe('hdkey', function () { var expected = 'xpub6JdKdVJtdx6sC3nh87pDvnGhotXuU5Kz6Qy7Piy84vUAwWSYShsUGULE8u6gCivTHgz7cCKJHiXaaMeieB4YnoFVAsNgHHKXJ2mN6jCMbH1' assert.equal(derivedHDKey.publicExtendedKey, expected) - }) })