pub struct VerifierChallengeSlot { /* private fields */ }Expand description
Capacity-1 outstanding challenge. Not a serialized ticket; restart needs a new slot.
Implementations§
Source§impl VerifierChallengeSlot
impl VerifierChallengeSlot
pub const fn new() -> Self
Sourcepub fn issue(
&mut self,
owner: &Mutex<AuthorityOwner>,
transcript: StrongDigest,
request_id: OperationId,
) -> Result<[u8; 32], E>
pub fn issue( &mut self, owner: &Mutex<AuthorityOwner>, transcript: StrongDigest, request_id: OperationId, ) -> Result<[u8; 32], E>
One live challenge tied to this owner mutex, transcript and request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VerifierChallengeSlot
impl RefUnwindSafe for VerifierChallengeSlot
impl Send for VerifierChallengeSlot
impl Sync for VerifierChallengeSlot
impl Unpin for VerifierChallengeSlot
impl UnsafeUnpin for VerifierChallengeSlot
impl UnwindSafe for VerifierChallengeSlot
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.