bulletproofs: add multi output bulletproofs to rct

This commit is contained in:
moneromooo-monero
2018-01-17 21:50:03 +00:00
parent f34e2e20bd
commit 9ce9f8caf6
13 changed files with 247 additions and 97 deletions
+32
View File
@@ -209,4 +209,36 @@ namespace rct {
return vali;
}
bool is_rct_simple(int type)
{
switch (type)
{
case RCTTypeSimple:
case RCTTypeSimpleBulletproof:
return true;
default:
return false;
}
}
bool is_rct_bulletproof(int type)
{
switch (type)
{
case RCTTypeSimpleBulletproof:
case RCTTypeFullBulletproof:
return true;
default:
return false;
}
}
size_t n_bulletproof_amounts(const std::vector<Bulletproof> &proofs)
{
size_t n = 0;
for (const Bulletproof &proof: proofs)
n += proof.V.size();
return n;
}
}