Skip to content

Commit

Permalink
Document new fields in the Reward Proof
Browse files Browse the repository at this point in the history
These new fields were introduced in
raiden-network/raiden-contracts#1238
to remove ambiguity.

This is a part of raiden-network#254.
  • Loading branch information
pirapira committed Sep 27, 2019
1 parent ca7373c commit 73d7679
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions monitoring_service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Reward Proof

ecdsa_recoverable(privkey, sha3_keccak("\x19Ethereum Signed Message:\n181"
|| monitoring_service_contract_address || chain_id || MessageTypeId.MSReward
|| non_closing_signature || reward_amount ))
|| token_network_address || non_closing_participant || non_closing_signature || reward_amount ))


Fields
Expand All @@ -254,7 +254,7 @@ Fields
+=======================+============+============================================================================================+
| signature_prefix | string | ``\x19Ethereum Signed Message:\n`` |
+-----------------------+------------+--------------------------------------------------------------------------------------------+
| message_length | string | ``181`` = length of message = ``20 + 32 + 32 + 65 + 32`` |
| message_length | string | ``221`` = length of message = ``20 + 32 + 32 + 65 + 20 + 20 + 32`` |
+-----------------------+------------+--------------------------------------------------------------------------------------------+
| monitoring_service | address | Address of the monitoring service contract in which the reward can be claimed |
| _contract_address | | |
Expand All @@ -264,6 +264,10 @@ Fields
| MessageTypeId.MSReward| uint256 | A constant with the value of 6 used to make sure that no other messages accidentally share |
| | | the same signature. |
+-----------------------+------------+--------------------------------------------------------------------------------------------+
| token_network_address | address | Address of TokenNetwork that the request is about |
+-----------------------+------------+--------------------------------------------------------------------------------------------+
| non_closing_address | address | Address of the client that signed ``non_closing_signature`` |
+-----------------------+------------+--------------------------------------------------------------------------------------------+
| non_closing_signature | bytes | Signature of the on-chain balance proof by the client |
+-----------------------+------------+--------------------------------------------------------------------------------------------+
| reward_amount | uint256 | Rewards received for updating the channel |
Expand Down

0 comments on commit 73d7679

Please sign in to comment.