[][src]Trait reverie::algebra::Sharing

pub trait Sharing<R: RingElement>: RingModule<R> + Serializable + LocalOperation {
    pub fn reconstruct(&self) -> R;
}

A sharing is a serializable ring module with a reconstruction homomorphism:

(v1 + v2).reconstruct() = v1.reconstruct() + v2.reconstruct()

For additive sharings (used here) this corresponds to the sum of the coordinates. The dimension of the sharing is equal to the number of players in the MPC protocol.

Required methods

pub fn reconstruct(&self) -> R[src]

Loading content...

Implementors

impl Sharing<BitScalar> for BitSharing8[src]

impl Sharing<BitScalar> for BitSharing64[src]

Loading content...