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

Logical bug fix #3

Closed
wants to merge 1 commit into from

Conversation

jfarid27
Copy link

I think this is broken in this line. ecrecover seems to return a single address, but the test requires the address be equal to the channelSender and the channelRecipient. By adding the ||, Alice or Bob can post... Alice or Bob's hash values, and the other party would then need to sign the hash value to release the funds.

I asked about this here, and I'd love to hear your input. I first thought maybe I didn't understand ecrecover, but in the docs, it really does only return a single address unless I'm mistaken.

@jfarid27 jfarid27 closed this Jun 26, 2017
@jfarid27
Copy link
Author

Turns out the logical error was in my head.

@lopezi
Copy link

lopezi commented Jun 26, 2017 via email

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.

2 participants