Skip to content

How to implement a seclist of seclist/list #82

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

You must be logged in to vote

Indeed, the elements of a seclist are currently required to be a secure number (secure type mpc.SecFld(), mpc.SecInt(), or mpc.SecFxp()).

If you want a nested secure list, say a 2D list, where the inner lists are all of the same length n, you may try to convert 2D indices (i,j) to n*i+j to flatten the secure list of lists.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@1191000814
Comment options

@lschoe
Comment options

Answer selected by lschoe
Comment options

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

Comment options

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

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