pub trait Transcript<D: Domain> {
const IS_PROVER: bool = false;
// Required methods
fn input(&mut self) -> Wire<D>;
fn reconstruct(&mut self, mask: D::Share) -> D::Recon;
fn correction(&mut self, corr: D::Recon) -> D::Recon;
fn zero_check(&mut self, recon: D::Recon);
fn new_mask(&mut self) -> D::Share;
fn online_hash(&self) -> [Hash; 8];
fn preprocess_hash(&self) -> [Hash; 8];
// Provided method
fn hash(&self) -> [Hash; 8] { ... }
}Provided Associated Constants§
Required Methods§
fn input(&mut self) -> Wire<D>
Sourcefn reconstruct(&mut self, mask: D::Share) -> D::Recon
fn reconstruct(&mut self, mask: D::Share) -> D::Recon
Sourcefn correction(&mut self, corr: D::Recon) -> D::Recon
fn correction(&mut self, corr: D::Recon) -> D::Recon
Sourcefn zero_check(&mut self, recon: D::Recon)
fn zero_check(&mut self, recon: D::Recon)
fn new_mask(&mut self) -> D::Share
Sourcefn online_hash(&self) -> [Hash; 8]
fn online_hash(&self) -> [Hash; 8]
Return the commitment to the online phase
Sourcefn preprocess_hash(&self) -> [Hash; 8]
fn preprocess_hash(&self) -> [Hash; 8]
Return the commitment to the preprocessing phase
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.