Bitcoin Forum
June 04, 2024, 06:00:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: x  (Read 1035 times)
abrkn (OP)
Full Member
***
Offline Offline

Activity: 232
Merit: 150



View Profile WWW
⇾ x
January 23, 2014, 07:54:30 AM
Last edit: March 15, 2015, 02:50:50 AM by abrkn
 #1

x

keybase.io/abrkn/key.asc
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 23, 2014, 08:01:35 AM
 #2

I re-implemented the BIP0032 wallet in vbuterin/bitcoinjs-lib and would like someone to review my work:

Source code: https://github.com/justcoin/bitcoinjs-lib/blob/master/src/hdwallet.js
Tests: https://github.com/justcoin/bitcoinjs-lib/blob/master/test/hdwallet.js

Is it customary to tip for code review?


If someone spends their time properly reviewing your code then I would certainly think a tip would be in order Smiley
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 26, 2014, 10:45:29 AM
 #3

Will pay a 0.1 BTC bounty

How many lines of js are we talking?
pocesar
Member
**
Offline Offline

Activity: 105
Merit: 10


View Profile WWW
January 30, 2014, 10:02:43 AM
 #4

You are missing tests for transaction.js, script.js and wallet.js and not taking in consideration third party modules (like jsbn and crypto-js).

You got some defined functions that arent being used (therefore tested if working), for example in index.js, rotl, rotr and endian.

You need to make tests cover exceptions being thrown (haven't found any in any file). since you are using qunit, assert.throws should do it.

On the derive of HDWallet, you are checking for this.priv, but the pub is not being covered (in case priv is false).

None of the base64 functions from convert.js are being covered.

This is what I got so far.

Btw, you should enable issues in your repo (since when you fork on github, it's not enabled by default)

https://github.com/pocesar - BTC 1KLRAFHGGhE2WiRASkASatvMR1vALmkB9L
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 30, 2014, 11:37:45 AM
 #5

You are missing tests for transaction.js, script.js and wallet.js and not taking in consideration third party modules (like jsbn and crypto-js).

You got some defined functions that arent being used (therefore tested if working), for example in index.js, rotl, rotr and endian.

You need to make tests cover exceptions being thrown (haven't found any in any file). since you are using qunit, assert.throws should do it.

On the derive of HDWallet, you are checking for this.priv, but the pub is not being covered (in case priv is false).

None of the base64 functions from convert.js are being covered.

This is what I got so far.

Btw, you should enable issues in your repo (since when you fork on github, it's not enabled by default)

Ouch - I think you should pay pocesar immediately Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!