Enum sda_protocol::LinearSecretSharingScheme [] [src]

pub enum LinearSecretSharingScheme {
    Additive {
        share_count: usize,
        modulus: i64,
    },
    PackedShamir {
        secret_count: usize,
        share_count: usize,
        privacy_threshold: usize,
        prime_modulus: i64,
        omega_secrets: i64,
        omega_shares: i64,
    },
}

Supported secret sharing schemes and their parameters.

Variants

Computionally efficient basic scheme.

Fields of Additive

Number of shares to generate for each secret.

Modulus specifying the additive group in which to operate.

Packed Shamir scheme allowing for work to be distributed across many clerks.

Fields of PackedShamir

Dimension of secrets, i.e. number of components in vector.

Number of shares to generate for each vector of secrets.

Number of shares needed to reconstruct.

Prime number specifying the prime field in which to operate.

TODO

TODO

Methods

impl LinearSecretSharingScheme
[src]

Derived properties of the secret sharing schemes.

Number of secrets shared together.

Number of shares output by the scheme, which must match the number of clerks in the aggregation's committee.

Upper bound for the number of clerks that must collaborate with the server before privacy is leaked.

Lower bound for the number of clerks needed to correctly reconstruct.

Trait Implementations

impl Clone for LinearSecretSharingScheme
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LinearSecretSharingScheme
[src]

Formats the value using the given formatter.

impl Eq for LinearSecretSharingScheme
[src]

impl PartialEq for LinearSecretSharingScheme
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.