-
Hi, from mpyc.runtime import mpc
import numpy as np
secfld = mpc.SecFld(2)
arr1 = np.array([secfld(1), secfld(2), secfld(3)])
arr2 = secfld.array(np.array([1, 2, 3]))
print(arr1)
# [<mpyc.sectypes.SecFld1(GF(2)) object at 0x103a13670>
# <mpyc.sectypes.SecFld1(GF(2)) object at 0x1066e11e0>
# <mpyc.sectypes.SecFld1(GF(2)) object at 0x1066e0040>]
print(arr2)
# <mpyc.sectypes.ArraySecFld1(GF(2)) object at 0x1066e1120> I am trying to use the SHA3 hashing approach where an intermediate function only works with |
Beta Was this translation helpful? Give feedback.
Answered by
abraj
Oct 6, 2024
Replies: 1 comment
-
I believe |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
abraj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe
mpc.np_fromlist
andmpc.np_tolist
can be used for this.So, closing the discussion.