コード例 #1
0
ファイル: orlandi.py プロジェクト: MaxFangX/viff
 def __init__(self, player, threshold=None, options=None):
     """Initialize runtime."""
     SimpleArithmeticRuntime.__init__(self, player, threshold, options)
     self.threshold = self.num_players - 1
     self.s = 1
     self.d = 0
     self.s_lambda = 1
     self.triples = []
コード例 #2
0
ファイル: orlandi.py プロジェクト: lu562/viff
 def __init__(self, player, threshold=None, options=None):
     """Initialize runtime."""
     SimpleArithmeticRuntime.__init__(self, player, threshold, options)
     self.threshold = self.num_players - 1
     self.s = 1
     self.d = 0
     self.s_lambda = 1
     self.triples = []
コード例 #3
0
    def __init__(self, player, threshold=None, options=None, triples=[]):
        """Initialize runtime.

        *triples* is a list of multiplicative triples previously
        generated using the bedoza_triple.TripleGenerator.
        """
        SimpleArithmeticRuntime.__init__(self, player, threshold, options)
        self.threshold = self.num_players - 1
        self.triples = triples
コード例 #4
0
ファイル: bedoza.py プロジェクト: MaxFangX/viff
    def __init__(self, player, threshold=None, options=None, triples=[]):
        """Initialize runtime.

        *triples* is a list of multiplicative triples previously
        generated using the bedoza_triple.TripleGenerator.
        """
        SimpleArithmeticRuntime.__init__(self, player, threshold, options)
        self.threshold = self.num_players - 1
        self.triples = triples