Method | Description | |
---|---|---|
CalculateRandomShare ( Zp myShare, IList |
The i-th user gets a Qj(i) List from users, each user j calculated Qj(i) - the j element in the List
|
|
CheckSharedSecrets ( Zp secret, int numberOfPlayers, int polynomDeg, int prime ) : bool | ||
DetailedShare ( Zp secret, int numPlayers, int polynomDeg ) : |
Evaluates the shared secrets of secret with polynom of degree t and numberOfPlayers players.
|
|
GetRandomizedShares ( int numPlayers, int polynomDeg, int prime ) : IList |
Creates a random poynomial Qj(x), for the j player, and creates a list of elements, such that the i-th element is Qj(i)
|
|
GetRandomizedSharesByzantineCase ( int numPlayers, int polynomDeg, int prime ) : IList |
Creates a random poynomial Qj(x) ,for the j player,and creates a list of elements, such that the i-th element is Qj(i)
|
|
PrimitiveShare ( Zp secret, int numPlayers, int polynomDeg ) : IList |
||
Recombine ( IList |
||
Recombine ( IList |
Recombines (interpolate) the secret from secret shares.
|
|
Share ( Zp secret, int numPlayers, int polyDeg ) : IList |
Calculates the shares of a secret with polynomial of degree t and numPlayers players.
|
|
Share ( Zp 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.
|
|
SimpleRecombine ( IList |
Method | Description | |
---|---|---|
Share ( Zp secret, int numPlayers, int polynomDeg, bool usePrimitiveShare, IList |
Evaluates the shares of secret with polynomial of degree 'polynomDeg' and 'numPlayers' players.
|
|
TruncateVector ( Zp vector, int toSize ) : Zp[] |
public static CalculateRandomShare ( Zp myShare, IList |
||
myShare | Zp | |
polyUpdate | IList |
|
return | Zp |
public static CheckSharedSecrets ( Zp secret, int numberOfPlayers, int polynomDeg, int prime ) : bool | ||
secret | Zp | |
numberOfPlayers | int | |
polynomDeg | int | |
prime | int | |
return | bool |
public static DetailedShare ( Zp secret, int numPlayers, int polynomDeg ) : |
||
secret | Zp | |
numPlayers | int | |
polynomDeg | int | |
return |
public static GetRandomizedShares ( int numPlayers, int polynomDeg, int prime ) : IList |
||
numPlayers | int | |
polynomDeg | int | |
prime | int | |
return | IList |
public static GetRandomizedSharesByzantineCase ( int numPlayers, int polynomDeg, int prime ) : IList |
||
numPlayers | int | |
polynomDeg | int | |
prime | int | |
return | IList |
public static PrimitiveShare ( Zp secret, int numPlayers, int polynomDeg ) : IList |
||
secret | Zp | |
numPlayers | int | |
polynomDeg | int | |
return | IList |
public static Recombine ( IList |
||
sharedSecrets | IList |
|
polynomDeg | int | |
prime | int | |
return | Zp |
public static Recombine ( IList |
||
sharedSecrets | IList |
|
polyDeg | int | |
prime | int | |
usePrimitiveRecombine | bool | |
return | Zp |
public static Share ( Zp secret, int numPlayers, int polyDeg ) : IList |
||
secret | Zp | |
numPlayers | int | |
polyDeg | int | |
return | IList |
public static Share ( Zp secret, int numPlayers, int polyDeg, IList |
||
secret | Zp | |
numPlayers | int | |
polyDeg | int | |
coeffs | IList |
|
return | IList |
public static SimpleRecombine ( IList |
||
sharedSecrets | IList |
|
polyDeg | int | |
prime | int | |
return | Zp |