Skip to content

Commit

Permalink
docs(frontend): review
Browse files Browse the repository at this point in the history
  • Loading branch information
bcm-at-zama committed Jul 10, 2024
1 parent bb63f35 commit 817341f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ def _compute_in_fhe(self, list_patterns: list, show_distance: bool = False):
@fhe.module()
class LevenshsteinModule:
@fhe.function({"x": "encrypted", "y": "encrypted"})
def equal(x: int, y: int):
def equal(x, y):
"""Assert equality between two chars of the alphabet."""
return x == y

@fhe.function({"x": "clear"})
def constant(x: int):
def constant(x):
return fhe.zero() + x

@fhe.function(
Expand All @@ -234,7 +234,7 @@ def constant(x: int):
"case_3": "encrypted",
}
)
def mix(is_equal: bool, if_equal: int, case_1: int, case_2: int, case_3: int):
def mix(is_equal, if_equal, case_1, case_2, case_3):
"""Compute the min of (case_1, case_2, case_3), and then return `if_equal` if `is_equal` is
True, or the min in the other case."""
min_12 = numpy.minimum(case_1, case_2)
Expand Down

0 comments on commit 817341f

Please sign in to comment.