pub struct OffChainCoordinatorClient<F, S>where
F: FftField,
S: ShareBound<F>,{ /* private fields */ }Implementations§
Source§impl<F, S> OffChainCoordinatorClient<F, S>where
F: FftField,
S: ShareBound<F>,
impl<F, S> OffChainCoordinatorClient<F, S>where
F: FftField,
S: ShareBound<F>,
pub async fn start_rpc_client_from_cert( addr: &str, port: u16, t: u64, n_parties: u64, n_outputs: u64, client_cert: Arc<CertifiedKey<KeyPair>>, ) -> Result<OffChainCoordinatorClient<F, S>, CoordinatorError>
pub async fn start_rpc_client( addr: &str, port: u16, t: u64, n_parties: u64, n_outputs: u64, cert_der: Vec<u8>, key_der: Vec<u8>, ) -> Result<OffChainCoordinatorClient<F, S>, CoordinatorError>
pub async fn start_rpc_client_with_parties( addr: &str, port: u16, t: u64, n_parties: u64, n_outputs: u64, cert_der: Vec<u8>, key_der: Vec<u8>, ) -> Result<OffChainCoordinatorClient<F, S>, CoordinatorError>
pub async fn trigger_round(&self, round: Round) -> Result<(), CoordinatorError>
Trait Implementations§
Source§impl<F, S> Coordinator<F, S> for OffChainCoordinatorClient<F, S>where
F: FftField,
S: ShareBound<F>,
impl<F, S> Coordinator<F, S> for OffChainCoordinatorClient<F, S>where
F: FftField,
S: ShareBound<F>,
type ClientIdentity = Vec<u8>
async fn start_preprocessing(&self) -> Result<(), CoordinatorError>
async fn reserve_input_masks(&self) -> Result<(), CoordinatorError>
async fn collect_inputs(&self) -> Result<(), CoordinatorError>
async fn start_mpc(&self) -> Result<(), CoordinatorError>
async fn send_output(&self) -> Result<(), CoordinatorError>
async fn finalize(&self) -> Result<(), CoordinatorError>
async fn reset_coord(&self) -> Result<(), CoordinatorError>
async fn wait_for_indices( &self, n_inputs: u64, ) -> Result<HashMap<Vec<u8>, Vec<u64>>, CoordinatorError>
async fn wait_for_inputs( &self, n_inputs: u64, mask_shares: Vec<S>, ) -> Result<HashMap<Vec<u8>, Vec<S>>, CoordinatorError>
async fn wait_for_round(&self, round: Round) -> Result<(), CoordinatorError>
async fn send_masked_input( &self, masked_input: <S as ShareBound<F>>::ValueType, i: u64, ) -> Result<(), CoordinatorError>
async fn reserve_mask_index(&mut self, i: u64) -> Result<(), CoordinatorError>
async fn obtain_outputs( &self, ) -> Result<Vec<<S as ShareBound<F>>::ValueType>, CoordinatorError>
Auto Trait Implementations§
impl<F, S> !Freeze for OffChainCoordinatorClient<F, S>
impl<F, S> !RefUnwindSafe for OffChainCoordinatorClient<F, S>
impl<F, S> !UnwindSafe for OffChainCoordinatorClient<F, S>
impl<F, S> Send for OffChainCoordinatorClient<F, S>
impl<F, S> Sync for OffChainCoordinatorClient<F, S>
impl<F, S> Unpin for OffChainCoordinatorClient<F, S>
impl<F, S> UnsafeUnpin for OffChainCoordinatorClient<F, S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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