[monero-project/monero] Bp multi aggregation pippenger (#4219)

moneromooo-monero commented on this pull request.

> +
+bool gen_bp_tx_valid_1::generate(std::vector& events) const
+{
+ const size_t mixin = 10;
+ const uint64_t amounts_paid[] = {10000, (uint64_t)-1};
+ const size_t bp_sizes[] = {1, (size_t)-1};
+ const rct::RangeProofType range_proof_type[] = {rct::RangeProofPaddedBulletproof};
+ return generate_with(events, mixin, 1, amounts_paid, true, range_proof_type, NULL, [&](const cryptonote::transaction &tx, size_t tx_idx){ return check_bp(tx, tx_idx, bp_sizes, «gen_bp_tx_valid_1»); });
+}
+
+bool gen_bp_tx_invalid_1_1::generate(std::vector& events) const
+{
+ const size_t mixin = 10;
+ const uint64_t amounts_paid[] = {5000, 5000, (uint64_t)-1};
+ const size_t bp_sizes[] = {1, 1, (size_t)-1};
+ const rct::RangeProofType range_proof_type[] = { rct::RangeProofBulletproof };

Because ArticMine’s recommendation is for a single proof per tx.

Добавить комментарий