Redo the Bulletproofs impl

Uses the IP-impl from the FCMP++ work.
This commit is contained in:
Luke Parker
2024-07-10 20:56:53 -04:00
parent 3ddf1eec0c
commit 7a68b065e0
12 changed files with 794 additions and 431 deletions

View File

@@ -272,7 +272,7 @@ impl SignableTransactionWithKeyImages {
let bulletproof = {
let mut bp_rng = self.intent.seeded_rng(b"bulletproof");
(match self.intent.rct_type {
RctType::ClsagBulletproof => Bulletproof::prove(&mut bp_rng, &bp_commitments),
RctType::ClsagBulletproof => Bulletproof::prove(&mut bp_rng, bp_commitments),
RctType::ClsagBulletproofPlus => Bulletproof::prove_plus(&mut bp_rng, bp_commitments),
_ => panic!("unsupported RctType"),
})