Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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 | |
Результат | MG |
public static Recombine ( IList |
||
sharedSecrets | IList |
|
polyDeg | int | |
prime | System.Numerics.BigInteger | |
Результат | BigZp |
public static Recombine ( IList |
||
sharedSecrets | IList |
|
polyDeg | int | |
prime | System.Numerics.BigInteger | |
usePrimitiveRecombine | bool | |
Результат | BigZp |
public static Share ( BigZp secret, int numPlayers, int polyDeg ) : IList |
||
secret | BigZp | |
numPlayers | int | |
polyDeg | int | |
Результат | IList |
public static Share ( BigZp secret, int numPlayers, int polyDeg, IList |
||
secret | BigZp | |
numPlayers | int | |
polyDeg | int | |
coeffs | IList |
|
Результат | IList |