Beispiel #1
0
 def __init__(self, runtime, field, value=None, keyList=None,
              authentication_codes=None):
     if value == None and keyList == None and authentication_codes == None:
         Share.__init__(self, runtime, field)
     else:
         Share.__init__(self, runtime, field,
                        BeDOZaShareContents(value, keyList,
                                            authentication_codes))
Beispiel #2
0
 def __init__(self, runtime, field, value=None, enc_shares=None):
     if value == None and enc_shares == None:
         Share.__init__(self, runtime, field)
     else:
         N_squared_list = [ runtime.players[player_id].pubkey['n_square']
                           for player_id in runtime.players.keys()]
         partial_share_contents = PartialShareContents(value, enc_shares,
                                                       N_squared_list)
         Share.__init__(self, runtime, field, partial_share_contents)
Beispiel #3
0
 def __init__(self, runtime, field, value=None, enc_shares=None):
     if value == None and enc_shares == None:
         Share.__init__(self, runtime, field)
     else:
         N_squared_list = [
             runtime.players[player_id].pubkey['n_square']
             for player_id in runtime.players.keys()
         ]
         partial_share_contents = PartialShareContents(
             value, enc_shares, N_squared_list)
         Share.__init__(self, runtime, field, partial_share_contents)
Beispiel #4
0
 def __init__(self,
              runtime,
              field,
              value=None,
              keyList=None,
              authentication_codes=None):
     if value == None and keyList == None and authentication_codes == None:
         Share.__init__(self, runtime, field)
     else:
         Share.__init__(
             self, runtime, field,
             BeDOZaShareContents(value, keyList, authentication_codes))
Beispiel #5
0
 def __init__(self, runtime, field, value=None, rho=None, commitment=None):
     self.share = value
     self.rho = rho
     self.commitment = commitment
     Share.__init__(self, runtime, field, (value, rho, commitment))
Beispiel #6
0
 def __init__(self, runtime, field, value=None, rho=None, commitment=None):
     self.share = value
     self.rho = rho
     self.commitment = commitment
     Share.__init__(self, runtime, field, (value, rho, commitment))