Class SharePolicy
- Namespace
- PostQuantum.SecretSharing
- Assembly
- PostQuantum.SecretSharing.dll
A threshold policy: split a secret into TotalShares shares
such that any Threshold of them reconstruct it and any
fewer reveal nothing.
public sealed record SharePolicy : IEquatable<SharePolicy>
- Inheritance
-
SharePolicy
- Implements
- Inherited Members
Constructors
SharePolicy(int, int)
A threshold policy: split a secret into TotalShares shares
such that any Threshold of them reconstruct it and any
fewer reveal nothing.
public SharePolicy(int Threshold, int TotalShares)
Parameters
ThresholdintThe quorum size
krequired to reconstruct. Must satisfy2 ≤ k ≤ TotalShares.k = 1is forbidden: every share would equal the secret, which is security theater rather than secret sharing.TotalSharesintThe number of shares
nto issue. Must satisfyk ≤ n ≤ 255(x-coordinates live in GF(2^8) and x=0 is reserved for the secret).
Properties
Threshold
The quorum size k required to reconstruct. Must satisfy
2 ≤ k ≤ TotalShares. k = 1 is forbidden: every share would equal
the secret, which is security theater rather than secret sharing.
public int Threshold { get; init; }
Property Value
TotalShares
The number of shares n to issue. Must satisfy k ≤ n ≤ 255
(x-coordinates live in GF(2^8) and x=0 is reserved for the secret).
public int TotalShares { get; init; }