pub struct ProveConfigBuilder<'a> { /* private fields */ }
Expand description
Builder for ProveConfig
.
Implementations§
Source§impl<'a> ProveConfigBuilder<'a>
impl<'a> ProveConfigBuilder<'a>
Sourcepub fn new(transcript: &'a Transcript) -> Self
pub fn new(transcript: &'a Transcript) -> Self
Creates a new builder.
Sourcepub fn server_identity(&mut self) -> &mut Self
pub fn server_identity(&mut self) -> &mut Self
Proves the server identity.
Sourcepub fn transcript_commit(
&mut self,
transcript_commit: TranscriptCommitConfig,
) -> &mut Self
pub fn transcript_commit( &mut self, transcript_commit: TranscriptCommitConfig, ) -> &mut Self
Configures transcript commitments.
Sourcepub fn reveal(
&mut self,
direction: Direction,
ranges: &dyn ToRangeSet<usize>,
) -> Result<&mut Self, ProveConfigBuilderError>
pub fn reveal( &mut self, direction: Direction, ranges: &dyn ToRangeSet<usize>, ) -> Result<&mut Self, ProveConfigBuilderError>
Reveals the given ranges of the transcript.
Sourcepub fn reveal_sent(
&mut self,
ranges: &dyn ToRangeSet<usize>,
) -> Result<&mut Self, ProveConfigBuilderError>
pub fn reveal_sent( &mut self, ranges: &dyn ToRangeSet<usize>, ) -> Result<&mut Self, ProveConfigBuilderError>
Reveals the given ranges of the sent data transcript.
Sourcepub fn reveal_recv(
&mut self,
ranges: &dyn ToRangeSet<usize>,
) -> Result<&mut Self, ProveConfigBuilderError>
pub fn reveal_recv( &mut self, ranges: &dyn ToRangeSet<usize>, ) -> Result<&mut Self, ProveConfigBuilderError>
Reveals the given ranges of the received data transcript.
Sourcepub fn build(self) -> Result<ProveConfig, ProveConfigBuilderError>
pub fn build(self) -> Result<ProveConfig, ProveConfigBuilderError>
Builds the configuration.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ProveConfigBuilder<'a>
impl<'a> RefUnwindSafe for ProveConfigBuilder<'a>
impl<'a> Send for ProveConfigBuilder<'a>
impl<'a> Sync for ProveConfigBuilder<'a>
impl<'a> Unpin for ProveConfigBuilder<'a>
impl<'a> UnwindSafe for ProveConfigBuilder<'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