Expand description
Real Shamir secret sharing over the P-256 scalar field.
Splits a Scalar secret into N shares using a random polynomial
of degree T-1. Any T shares can reconstruct the secret via Lagrange
interpolation.
Structs§
- Share
- A Shamir share: (x, y) where x is the party index and y is a scalar.
The secret
yfield is zeroized on drop.
Enums§
- Shamir
Error - Errors during Shamir operations.
Functions§
- recover_
secret - Recover the secret (the polynomial evaluated at x=0) from at least
tshares via Lagrange interpolation. - split_
secret - Split a
secretintonshares with thresholdt. Anytof thenshares can reconstruct the secret.