Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check v before ecrecover #105

Merged
merged 1 commit into from
May 9, 2019
Merged

check v before ecrecover #105

merged 1 commit into from
May 9, 2019

Conversation

johannbarbie
Copy link
Member

resolves #104
maybe also #102

@codecov-io
Copy link

Codecov Report

Merging #105 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
+ Coverage   84.17%   84.19%   +0.01%     
==========================================
  Files          12       12              
  Lines         910      911       +1     
==========================================
+ Hits          766      767       +1     
  Misses        144      144
Impacted Files Coverage Δ
lib/input.js 90.51% <100%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 832f255...2f1ab60. Read the comment docs.

1 similar comment
@codecov-io
Copy link

Codecov Report

Merging #105 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
+ Coverage   84.17%   84.19%   +0.01%     
==========================================
  Files          12       12              
  Lines         910      911       +1     
==========================================
+ Hits          766      767       +1     
  Misses        144      144
Impacted Files Coverage Δ
lib/input.js 90.51% <100%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 832f255...2f1ab60. Read the comment docs.

const signer = Input.recoverSignerAddress(sigHashBuf, v, r, s);

input.setSig(r, s, v, signer);
if (v > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we just want to check v here? I assume we should check r and s to equals 0, too?

Copy link
Member Author

Choose a reason for hiding this comment

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

correct :)

Copy link
Contributor

@pinkiebell pinkiebell left a comment

Choose a reason for hiding this comment

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

Hack 🌮

@johannbarbie johannbarbie merged commit 95f5263 into master May 9, 2019
@johannbarbie johannbarbie deleted the fix/mandatorySig branch May 9, 2019 09:46
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.

allow unsigned inputs, if they belong to spending condition
3 participants