carrot+fcmp: rework for Carrot scanning changes
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user