aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorkoe <ukoe@protonmail.com>2022-04-30 16:54:24 -0500
committerkoe <ukoe@protonmail.com>2022-07-13 12:40:34 -0500
commitedcc094558779a25811f2736beca97d78a26bff5 (patch)
tree4c672f17593d29db37f8247b9c4ee6c802bca8d3 /src/wallet/wallet2.h
parentMerge pull request #8421 (diff)
downloadmonero-edcc094558779a25811f2736beca97d78a26bff5.tar.xz
derive multisig tx secret keys from an entropy source plus the tx inputs' key images
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index 836373939..f07673e53 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -632,10 +632,12 @@ private:
std::vector<crypto::secret_key> additional_tx_keys;
std::vector<cryptonote::tx_destination_entry> dests;
std::vector<multisig_sig> multisig_sigs;
+ crypto::secret_key multisig_tx_key_entropy;
tx_construction_data construction_data;
BEGIN_SERIALIZE_OBJECT()
+ VERSION_FIELD(1)
FIELD(tx)
FIELD(dust)
FIELD(fee)
@@ -648,6 +650,12 @@ private:
FIELD(dests)
FIELD(construction_data)
FIELD(multisig_sigs)
+ if (version < 1)
+ {
+ multisig_tx_key_entropy = crypto::null_skey;
+ return true;
+ }
+ FIELD(multisig_tx_key_entropy)
END_SERIALIZE()
};