From 73d7679fc8028e2e4a21cf3482e4e35a5782c598 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Fri, 27 Sep 2019 14:40:04 +0200 Subject: [PATCH] Document new fields in the Reward Proof These new fields were introduced in https://github.com/raiden-network/raiden-contracts/pull/1238 to remove ambiguity. This is a part of https://github.com/raiden-network/spec/issues/254. --- monitoring_service.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/monitoring_service.rst b/monitoring_service.rst index ea13622..01b4789 100644 --- a/monitoring_service.rst +++ b/monitoring_service.rst @@ -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 @@ -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 | | | @@ -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 |