Méthode | Description | |
---|---|---|
GenerateCommitment ( int numShares, BigZp coeffs, System.Numerics.BigInteger prime, MG &witnesses, PolyCommit polyCommit ) : MG | ||
Recombine ( IList |
||
Recombine ( IList |
Recombines (interpolate) the secret from secret shares.
|
|
Share ( BigZp secret, int numPlayers, int polyDeg ) : IList |
Calculates the shares of a secret with polynomial of degree t and numPlayers players.
|
|
Share ( BigZp secret, int numPlayers, int polyDeg, IList |
Calculates the shares of a secret with polynomial of degree t and numPlayers players. The method also returns the array of coefficients of the polynomial.
|
Méthode | Description | |
---|---|---|
Share ( BigZp secret, int numPlayers, int polyDeg, bool usePrimitiveShare, IList |
Evaluates the shares of secret with polynomial of degree 'polynomDeg' and 'numPlayers' players.
|
|
SimpleRecombine ( IList |
||
TruncateVector ( BigZp vector, int toSize ) : BigZp[] |
public static GenerateCommitment ( int numShares, BigZp coeffs, System.Numerics.BigInteger prime, MG &witnesses, PolyCommit polyCommit ) : MG | ||
numShares | int | |
coeffs | BigZp | |
prime | System.Numerics.BigInteger | |
witnesses | MG | |
polyCommit | PolyCommit | |
Résultat | MG |
public static Recombine ( IList |
||
sharedSecrets | IList |
|
polyDeg | int | |
prime | System.Numerics.BigInteger | |
Résultat | BigZp |
public static Recombine ( IList |
||
sharedSecrets | IList |
|
polyDeg | int | |
prime | System.Numerics.BigInteger | |
usePrimitiveRecombine | bool | |
Résultat | BigZp |
public static Share ( BigZp secret, int numPlayers, int polyDeg ) : IList |
||
secret | BigZp | |
numPlayers | int | |
polyDeg | int | |
Résultat | IList |
public static Share ( BigZp secret, int numPlayers, int polyDeg, IList |
||
secret | BigZp | |
numPlayers | int | |
polyDeg | int | |
coeffs | IList |
|
Résultat | IList |