pub struct TranscriptProofBuilder<'a> { /* private fields */ }
Expand description
Builder for TranscriptProof
.
Implementations§
Source§impl<'a> TranscriptProofBuilder<'a>
impl<'a> TranscriptProofBuilder<'a>
Sourcepub fn commitment_kinds(
&mut self,
kinds: &[TranscriptCommitmentKind],
) -> &mut Self
pub fn commitment_kinds( &mut self, kinds: &[TranscriptCommitmentKind], ) -> &mut Self
Sets the commitment kinds in order of preference for building transcript proofs, i.e. the first one is the most preferred.
Sourcepub fn reveal(
&mut self,
ranges: &dyn ToRangeSet<usize>,
direction: Direction,
) -> Result<&mut Self, TranscriptProofBuilderError>
pub fn reveal( &mut self, ranges: &dyn ToRangeSet<usize>, direction: Direction, ) -> Result<&mut Self, TranscriptProofBuilderError>
Reveals the given ranges in the transcript.
§Arguments
ranges
- The ranges to reveal.direction
- The direction of the transcript.
Sourcepub fn reveal_sent(
&mut self,
ranges: &dyn ToRangeSet<usize>,
) -> Result<&mut Self, TranscriptProofBuilderError>
pub fn reveal_sent( &mut self, ranges: &dyn ToRangeSet<usize>, ) -> Result<&mut Self, TranscriptProofBuilderError>
Sourcepub fn reveal_recv(
&mut self,
ranges: &dyn ToRangeSet<usize>,
) -> Result<&mut Self, TranscriptProofBuilderError>
pub fn reveal_recv( &mut self, ranges: &dyn ToRangeSet<usize>, ) -> Result<&mut Self, TranscriptProofBuilderError>
Sourcepub fn build(self) -> Result<TranscriptProof, TranscriptProofBuilderError>
pub fn build(self) -> Result<TranscriptProof, TranscriptProofBuilderError>
Builds the transcript proof.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TranscriptProofBuilder<'a>
impl<'a> RefUnwindSafe for TranscriptProofBuilder<'a>
impl<'a> Send for TranscriptProofBuilder<'a>
impl<'a> Sync for TranscriptProofBuilder<'a>
impl<'a> Unpin for TranscriptProofBuilder<'a>
impl<'a> UnwindSafe for TranscriptProofBuilder<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more