From ae43be71512f1718d48d40fca3b9df31cb585255 Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Fri, 31 Jul 2015 10:59:19 -0400 Subject: [PATCH] memo.hpp: Add information to comment --- libraries/chain/include/graphene/chain/protocol/memo.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/chain/include/graphene/chain/protocol/memo.hpp b/libraries/chain/include/graphene/chain/protocol/memo.hpp index b5bec350..4a16f392 100644 --- a/libraries/chain/include/graphene/chain/protocol/memo.hpp +++ b/libraries/chain/include/graphene/chain/protocol/memo.hpp @@ -13,6 +13,10 @@ namespace graphene { namespace chain { * If @ref from == @ref to and @ref from == 0 then no encryption is used, the memo is public. * If @ref from == @ref to and @ref from != 0 then invalid memo data * + * The reason we include *both* keys is to allow the wallet to + * rebuild the data for any transfer, including the memo, from the + * user's private keys and the contents of the blockchain -- + * regardless of whether the user is the sender or receiver. */ struct memo_data {