Modularize Bulletproofs in prep for BP+

This commit is contained in:
Luke Parker
2022-07-26 08:06:56 -04:00
parent 60e15d5160
commit 37b8e3c025
5 changed files with 159 additions and 88 deletions

View File

@@ -329,7 +329,7 @@ impl SignableTransaction {
),
);
let mut tx = self.prepare_transaction(&commitments, Bulletproofs::new(rng, &commitments)?);
let mut tx = self.prepare_transaction(&commitments, Bulletproofs::prove(rng, &commitments)?);
let signable = prepare_inputs(rng, rpc, &self.inputs, spend, &mut tx).await?;