Skip to main content

Module shamir

Module shamir 

Source
Expand description

Real Shamir secret sharing over the P-256 scalar field.

Structs§

Share
A Shamir share: (x, y).

Enums§

ShamirError
Shamir errors.

Functions§

recover_secret
Recover the secret via Lagrange interpolation at x=0.
split_secret
Split secret into n shares with threshold t.