Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Refactor mnemonic.js usage, update licensing and add tests - Closes #140 #141

Merged
merged 6 commits into from
Jun 28, 2017

Conversation

toschdev
Copy link
Contributor

@toschdev toschdev commented Jun 27, 2017

Closes #140

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 99.368% when pulling 9875cea on 140-peer-review into f946fd1 on development.

@Isabello Isabello changed the title Peer review - Solves #140 Refactor mnemonic.js usage, update licensing and add tests - Solves #140 Jun 28, 2017
@Isabello Isabello changed the title Refactor mnemonic.js usage, update licensing and add tests - Solves #140 Refactor mnemonic.js usage, update licensing and add tests - Closes #140 Jun 28, 2017
@Isabello Isabello self-requested a review June 28, 2017 14:20
Copy link

@Isabello Isabello left a 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

@toschdev toschdev merged commit 75a656f into development Jun 28, 2017
@toschdev toschdev deleted the 140-peer-review branch June 28, 2017 14:32
Copy link
Contributor

@karmacoma karmacoma left a 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 () {
Copy link
Contributor

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 () {

});
*/

Copy link
Contributor

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');
});

Copy link
Contributor

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
*
* --------------------------------------------------
Copy link
Contributor

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
Copy link
Contributor

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.
*
*
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var nonHashBits

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants