메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 |
|
리턴 | Zp |
public static CheckSharedSecrets ( Zp secret, int numberOfPlayers, int polynomDeg, int prime ) : bool | ||
secret | Zp | |
numberOfPlayers | int | |
polynomDeg | int | |
prime | int | |
리턴 | bool |
public static DetailedShare ( Zp secret, int numPlayers, int polynomDeg ) : |
||
secret | Zp | |
numPlayers | int | |
polynomDeg | int | |
리턴 |
public static GetRandomizedShares ( int numPlayers, int polynomDeg, int prime ) : IList |
||
numPlayers | int | |
polynomDeg | int | |
prime | int | |
리턴 | IList |
public static GetRandomizedSharesByzantineCase ( int numPlayers, int polynomDeg, int prime ) : IList |
||
numPlayers | int | |
polynomDeg | int | |
prime | int | |
리턴 | IList |
public static PrimitiveShare ( Zp secret, int numPlayers, int polynomDeg ) : IList |
||
secret | Zp | |
numPlayers | int | |
polynomDeg | int | |
리턴 | IList |
public static Recombine ( IList |
||
sharedSecrets | IList |
|
polynomDeg | int | |
prime | int | |
리턴 | Zp |
public static Recombine ( IList |
||
sharedSecrets | IList |
|
polyDeg | int | |
prime | int | |
usePrimitiveRecombine | bool | |
리턴 | Zp |
public static Share ( Zp secret, int numPlayers, int polyDeg ) : IList |
||
secret | Zp | |
numPlayers | int | |
polyDeg | int | |
리턴 | IList |
public static Share ( Zp secret, int numPlayers, int polyDeg, IList |
||
secret | Zp | |
numPlayers | int | |
polyDeg | int | |
coeffs | IList |
|
리턴 | IList |
public static SimpleRecombine ( IList |
||
sharedSecrets | IList |
|
polyDeg | int | |
prime | int | |
리턴 | Zp |