[][src]Function cryptoballot::deal_secret_shares

pub fn deal_secret_shares(
    theshold: u8,
    num_trustees: usize,
    secret: &[u8]
) -> Vec<Vec<u8>>

Deal the election secret into shares, ready to be distributed to trustees.

Generally the election authority will generate the secret, distribute it to trustees, then destroy the secret.

Future plans include moving to distributed key generation, removing all centralized control of the secret key.