Replies: 2 comments 3 replies
-
I'm not sure what you mean with "While trying to write a threshold version of DSA demo" because both the demos dsa.py and elgamal.py already operate as threshold schemes. For instance, the line self.x, self.y = await self._keygen(self.group.generator) ensures that So, you don't need to manipulate the shares yourself like you want to do above, with You should keep the creation of the secure finite field as in the original demos: To access the modulus, you would first need to access the underlying field:
|
Beta Was this translation helpful? Give feedback.
-
Oh, thx, I see. In principle you can program this yourself but things may get rather complicated as you probably have to deal with quite a few low-level details, details which MPyC otherwise takes care of. |
Beta Was this translation helpful? Give feedback.
-
While trying to write a threshold version of DSA demo I am getting this error when call
random_split(self.field, [self.x], self.threshold, self.num_parties)
even that I defined the modulus explicitly
self.field = mpc.SecFld(order=n, modulus=n)
the code is below:
Beta Was this translation helpful? Give feedback.
All reactions