Skip to content

Commit

Permalink
update paillier
Browse files Browse the repository at this point in the history
Signed-off-by: weiwee <wbwmat@gmail.com>
  • Loading branch information
sagewe committed Aug 9, 2023
1 parent be76283 commit 9afdbd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/fate/arch/protocol/phe/paillier.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from fate_utils.paillier import PK as _PK
from fate_utils.paillier import SK as _SK
from fate_utils.paillier import Coders as _Coder
from fate_utils.paillier import Evaluator as _Evaluator
from fate_utils.paillier import FixedpointPaillierVector, FixedpointVector
from fate_utils.paillier import keygen as _keygen

Expand Down Expand Up @@ -294,7 +295,7 @@ def slice_indexes(a: EV, indexes: List[int]) -> EV:
Returns:
"""
return a.slice_indexes(indexes)
return _Evaluator.slice_indexes(a, indexes)

@staticmethod
def cat(list: List[EV]) -> EV:
Expand All @@ -305,7 +306,7 @@ def cat(list: List[EV]) -> EV:
Returns: the concatenated vector
"""
return list[0].cat(list[1:])
return _Evaluator.cat(list)

@staticmethod
def intervals_sum_with_step(pk: PK, a: EV, intervals: List[Tuple[int, int]], step: int):
Expand Down

0 comments on commit 9afdbd3

Please sign in to comment.