Crate threshold_secret_sharing [] [src]

Threshold Secret Sharing

Pure-Rust library for secret sharing, offering efficient share generation and reconstruction for both traditional Shamir sharing and its packet (or ramp) variant. For now, secrets and shares are fixed as prime field elements represented by i64 values.

Modules

packed

Packed (or ramp) variant of Shamir secret sharing, allowing efficient sharing of several secrets together.

shamir

Standard Shamir secret sharing for a single secret.

Functions

positivise

Map values from [-n/2, n/2) to [0, n).