Open fjarri opened 3 years ago
Following the discussion in https://github.com/nucypher/nucypher/pull/2774, we're renaming num_kfrags
to shares
instead, while keeping the relation between it and threshold
.
This is related to #85 - should we just panic if threshold > shares
?
Currently the user can supply
num_kfrags < threshold
, rendering the resulting kfrags useless. We can passoverhead
(or some other name) instead ofnum_kfrags
, and returnthreshold + overhead
kfrags. If boththreshold
andoverhead
are unsigned, it will be impossible to create a set of useless kfrags.