Skip to content

Commit

Permalink
feat: return RingCtMaterial from TransactionBuilder::build()
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-da authored and dirvine committed Feb 17, 2022
1 parent c436014 commit afede07
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ impl TransactionBuilder {
pub fn build(
self,
rng: impl RngCore + rand_core::CryptoRng,
) -> Result<(RingCtTransaction, Vec<RevealedCommitment>)> {
self.0.sign(rng).map_err(|e| e.into())
) -> Result<(RingCtTransaction, Vec<RevealedCommitment>, RingCtMaterial)> {
let result: Result<(RingCtTransaction, Vec<RevealedCommitment>)> =
self.0.sign(rng).map_err(|e| e.into());
let (transaction, revealed_commitments) = result?;
Ok((transaction, revealed_commitments, self.0))
}
}

Expand Down

0 comments on commit afede07

Please sign in to comment.