-
Notifications
You must be signed in to change notification settings - Fork 64
Refactor mnemonic.js usage, update licensing and add tests - Closes #140 #141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No complaints from me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already merged, but here is my review. Some very minor points.
// TODO Find out if this is because of NodeJS probably adding them while routing. | ||
describe('#useFirstEightBufferEntriesReversed, #toAddress convert.js', function () { | ||
|
||
it('should use a Buffer, cut after first 8 entries and reverse them. Create numeric addresss from this', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it('should use a Buffer, cut after first 8 entries and reverse them, then create numeric addresss from this', function () {
}); | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove line
@@ -56,6 +55,7 @@ describe('crypto/index.js', function () { | |||
|
|||
(hashString).should.be.equal('a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3'); | |||
}); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove line
* | ||
* https://github.com/bitpay/bitcore-mnemonic/blob/master/LICENSE | ||
* | ||
* -------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* -----------------------------------------------------------------------------
* https://github.com/bitpay/bitcore-mnemonic/blob/master/LICENSE | ||
* | ||
* -------------------------------------------------- | ||
* | ||
* Copyright © 2017 Lisk Foundation | ||
* | ||
* See the LICENSE file at the top-level directory of this distribution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* See the LICENSE file at the top-level directory of this distribution.
@@ -11,6 +21,7 @@ | |||
* | |||
* Removal or modification of this copyright notice is prohibited. | |||
* | |||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove line
@@ -149,7 +160,7 @@ function isValid(mnemonic) { | |||
var cs = bin.length / 33; | |||
var hashBits = bin.slice(-cs); | |||
var nonhashBits = bin.slice(0, bin.length - cs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var nonHashBits
Closes #140