carrot+fcmp: rework for Carrot scanning changes

This commit is contained in:
jeffro256
2025-04-16 18:41:10 -05:00
committed by akildemir
parent c607f23a60
commit b529887e88
7 changed files with 718 additions and 551 deletions
+19
View File
@@ -257,6 +257,25 @@ namespace rct {
}
}
bool is_rct_short_amount(int type)
{
switch (type)
{
case RCTTypeBulletproof2:
case RCTTypeCLSAG:
case RCTTypeBulletproofPlus:
case RCTTypeFcmpPlusPlus:
return true;
case RCTTypeNull:
case RCTTypeFull:
case RCTTypeSimple:
case RCTTypeBulletproof:
return false;
default:
CHECK_AND_ASSERT_THROW_MES(false, "unknown rct type = " << type);
}
}
static size_t n_bulletproof_amounts_base(const size_t L_size, const size_t R_size, const size_t V_size, const size_t max_outputs)
{
CHECK_AND_ASSERT_MES(L_size >= 6, 0, "Invalid bulletproof L size");
+1
View File
@@ -818,6 +818,7 @@ namespace rct {
bool is_rct_bulletproof_plus(int type);
bool is_rct_borromean(int type);
bool is_rct_clsag(int type);
bool is_rct_short_amount(int type);
static inline const rct::key &pk2rct(const crypto::public_key &pk) { return (const rct::key&)pk; }
static inline const rct::key &sk2rct(const crypto::secret_key &sk) { return (const rct::key&)sk; }