SpinResearch / RustySecrets

🔑 Threshold Shamir's secret sharing in Rust
BSD 3-Clause "New" or "Revised" License
258 stars 33 forks source link

Fix bug where threshold did not set deg of secret polynomial #44

Closed psivesely closed 6 years ago

psivesely commented 6 years ago

Fixes #43.

Fixes a syntactic error. Threshold should determine the number of coefficients in the secret polynomial. As is the code is equivalent to threshold always being 2.