Skip to main content

SecretShare

Trait SecretShare 

Source
pub trait SecretShare:
    Reconstructible
    + PlaintextOps<<Self as Reconstructible>::Value>
    + Clone
    + Debug
    + Send
    + Sync
    + 'static
    + PartialEq
    + Serialize
    + DeserializeOwned
    + SchemaWrite<Src = Self>
    + for<'de> SchemaRead<'de, Dst = Self>
    + for<'a> Add<&'a Self, Output = Self>
    + for<'s> Sub<&'s Self, Output = Self>
    + Neg<Output = Self> { }
Expand description

Secret share bounds, allowing arithmetic operations and reconstruction. Sharing/inputting a secret might requre communication and is thus deferred to the online phase.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> SecretShare for T
where T: Reconstructible + PlaintextOps<<Self as Reconstructible>::Value> + Clone + Debug + Send + Sync + 'static + PartialEq + Serialize + DeserializeOwned + SchemaWrite<Src = Self> + for<'de> SchemaRead<'de, Dst = Self> + for<'a> Add<&'a Self, Output = Self> + for<'a> Sub<&'a Self, Output = Self> + Neg<Output = Self>,