Skip to content

Conversation

@dcousens
Copy link
Contributor

This pull request adds more tests for ecdsa, message and scripts.

The only functional change is in recoverPubKey, which as discussed with @jprichardson, has had a superfluous verification step removed in favour of forcing the user to verify the pubKey themselves.
This is actually already inherent previously, but there were often only 2 candidate keys, not 4.

This does not affect any of our code, as we only use the recoverPubKey operation in Message.verify and ecdsa.calcPubKeyRecoveryParam , and in both cases we have independent verification occurring of the returned public key.
This change can be seen in https://github.com/dcousens/bitcoinjs-lib/commit/69e086275b6924dd93c8ddcaf86cf5867f7be3d3.

edit: The TransactionIn constructor was also changed in that it had untested functionality removed. This shouldn't be a problem, but was pointed out by @kyledrake. Change made in https://github.com/dcousens/bitcoinjs-lib/commit/e49e1796d53898f35bfd733242699430115bd16b.

@dcousens
Copy link
Contributor Author

@sidazhang https://travis-ci.org/bitcoinjs/bitcoinjs-lib/jobs/27565629, looks like the faucet is still having locking issues.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.46%) when pulling e49e179 on dcousens:tests into 55ff383 on bitcoinjs:master.

@dcousens dcousens mentioned this pull request Jun 14, 2014
Copy link
Contributor

Choose a reason for hiding this comment

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

You changed the constructor here, just wanted to make mention of it incase it was an accident (PR comment didn't mention a TX constructor change).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, this was added after the PR was written, as I continued removing untested functionality.
I will amend the PR.

@kyledrake
Copy link
Contributor

+1

weilu added a commit that referenced this pull request Jun 16, 2014
Various tests and recoverPubKey change
@weilu weilu merged commit bf42341 into bitcoinjs:master Jun 16, 2014
@dcousens dcousens deleted the tests branch June 16, 2014 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants