Skip to content

Question on SecFld did not support '>='. #63

Answered by lschoe
winnnnnny asked this question in Q&A
Discussion options

You must be logged in to vote

Comparisons like < are (currently) not supported for (secure) field elements. To get secure integers with comparisons you can use types created with mpc.SecInt().

Mathematically it does not really make sense to support comparisons like $&lt;$ for finite fields because such an order lacks common properties such as $a\leq b \wedge c\leq d \Rightarrow a+c\leq b+d$. But one can fix an order for the finite field elements anyway, e.g., for a binary field $\mathbb F_{2^n}$ view the elements as nonnegative integers between $0$ and $2^n-1$. This may be useful in some applications, but is not supported yet in MPyC.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@winnnnnny
Comment options

Answer selected by winnnnnny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #62 on July 06, 2023 15:17.