fixed keys for pre+post Carrot mining rewards

This commit is contained in:
Some Random Crypto Guy
2025-07-04 16:03:57 +01:00
parent 52736ea0a3
commit aa02928620
5 changed files with 21 additions and 12 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ DISABLE_VS_WARNINGS(4244 4345)
std::string account_base::get_carrot_public_address_str(network_type nettype) const
{
// Build the cryptonote::account_public_address
account_public_address addr{m_keys.m_carrot_account_address.m_spend_public_key, m_keys.m_account_address.m_view_public_key};
account_public_address addr{m_keys.m_carrot_main_address.m_spend_public_key, m_keys.m_carrot_main_address.m_view_public_key};
// change this code into base 58
return get_account_address_as_str(nettype, false, addr, true);
}
+4 -1
View File
@@ -61,9 +61,12 @@ namespace cryptonote
crypto::secret_key k_generate_image;
crypto::secret_key s_generate_address;
// carrot public keys (minus K_v, which is shared with legacy K_v)
// carrot public account address (K_s, K_v)
account_public_address m_carrot_account_address;
// carrot main address (K^0_s, K^0_v)
account_public_address m_carrot_main_address;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(m_account_address)