diff --git a/src/hdnode.js b/src/hdnode.js index a3aa5ef..627b67d 100644 --- a/src/hdnode.js +++ b/src/hdnode.js @@ -52,8 +52,8 @@ HDNode.LENGTH = 78 HDNode.fromSeedBuffer = function(seed, network) { assert(Buffer.isBuffer(seed), 'Expected Buffer, got' + seed) - assert(seed.length >= 16, 'Seed should be atleast 128 bits') - assert(seed.length <= 64, 'Seed should be atmost 512 bits') + assert(seed.length >= 16, 'Seed should be at least 128 bits') + assert(seed.length <= 64, 'Seed should be at most 512 bits') var I = crypto.HmacSHA512(seed, HDNode.MASTER_SECRET) var IL = I.slice(0, 32) diff --git a/test/hdnode.js b/test/hdnode.js index f4011ac..bc951a2 100644 --- a/test/hdnode.js +++ b/test/hdnode.js @@ -69,13 +69,13 @@ describe('HDNode', function() { it('throws on low entropy seed', function() { assert.throws(function() { HDNode.fromSeedHex('ffffffffff') - }, /Seed should be atleast 128 bits/) + }, /Seed should be at least 128 bits/) }) it('throws on too high entropy seed', function() { assert.throws(function() { HDNode.fromSeedHex('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff') - }, /Seed should be atmost 512 bits/) + }, /Seed should be at most 512 bits/) }) })