Struct tari_bulletproofs::range_proof::party::PartyAwaitingPosition
source · pub struct PartyAwaitingPosition<'a> { /* private fields */ }
Expand description
A party waiting for the dealer to assign their position in the aggregation.
Implementations§
source§impl<'a> PartyAwaitingPosition<'a>
impl<'a> PartyAwaitingPosition<'a>
sourcepub fn assign_position(
self,
j: usize
) -> Result<(PartyAwaitingBitChallenge<'a>, BitCommitment), MPCError>
pub fn assign_position( self, j: usize ) -> Result<(PartyAwaitingBitChallenge<'a>, BitCommitment), MPCError>
Assigns a position in the aggregated proof to this party, allowing the party to commit to the bits of their value.
sourcepub fn assign_position_with_rng<T: RngCore + CryptoRng>(
self,
j: usize,
rng: &mut T
) -> Result<(PartyAwaitingBitChallenge<'a>, BitCommitment), MPCError>
pub fn assign_position_with_rng<T: RngCore + CryptoRng>( self, j: usize, rng: &mut T ) -> Result<(PartyAwaitingBitChallenge<'a>, BitCommitment), MPCError>
Assigns a position in the aggregated proof to this party, allowing the party to commit to the bits of their value.