-
Notifications
You must be signed in to change notification settings - Fork 45
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
Differentiate close and update signature checks #1150
Differentiate close and update signature checks #1150
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1150 +/- ##
=======================================
Coverage 81.14% 81.14%
=======================================
Files 21 21
Lines 1453 1453
Branches 191 191
=======================================
Hits 1179 1179
Misses 231 231
Partials 43 43
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
4a2f9bc
to
b4dfc4c
Compare
83b62b9
to
4001f97
Compare
updateNonClosingBalanceProof().
Now `pack_balance_proof` is used as often for the updating as the closing, so the default value makes less sense now.
Pylint doesn't understand balance_proof[:3] correctly, and it complained that msg_type argument appears twice.
There were two very similar functions sign_balance_proof_close_message() and sign_balance_proof_update_message(). These two are combined into sign_balance_proof_message().
create_balance_proof_closing_countersignature() and create_balance_proof_updating_countersignature() into create_balance_proof_countersignature()
for closeChannel() and updateNonClosingBalanceProof().
f74f665
to
6bb17c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solves the signature problem mentioned in the issue. The refactoring Karl talked about can happen later in my eyes.
This follows the implementation change in raiden-network/raiden-contracts#1150 Since Balance Proof Update message is used both for closeChnanel() and updateNonClosingBalanceProof() call, the signature must be differentiated using different message IDs.
This follows the implementation change in raiden-network/raiden-contracts#1150 Since Balance Proof Update message is used both for closeChnanel() and updateNonClosingBalanceProof() call, the signature must be differentiated using different message IDs.
This follows the implementation change in raiden-network/raiden-contracts#1150 Since Balance Proof Update message is used both for closeChnanel() and updateNonClosingBalanceProof() call, the signature must be differentiated using different message IDs.
with different MessageTypeId's. This closes #1149.