Package viff :: Module config :: Class Player
[hide private]
[frames] | no frames]

Class Player

source code

Wrapper for information about a player in the protocol.
Instance Methods [hide private]
 
__init__(self, id, host, port, pubkey, seckey=None, keys=None, dealer_keys=None)
Initialize a player.
source code
 
prfs(self, modulus)
Retrieve PRSS PRFs.
source code
 
dealer_prfs(self, modulus)
Retrieve dealer PRSS PRFs.
source code
 
__repr__(self)
Simple string representation of the player.
source code
Method Details [hide private]

prfs(self, modulus)

source code 

Retrieve PRSS PRFs.

The pseudo-random functions are used when this player is part of a pseudo-random secret sharing for sharing an element random to all players.

Return a mapping from player subsets to viff.prss.PRF instances.

dealer_prfs(self, modulus)

source code 

Retrieve dealer PRSS PRFs.

The pseudo-random functions are used when this player is the dealer in a pseudo-random secret sharing.

Return a mapping from player subsets to viff.prss.PRF instances.