Repository navigation
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: |
|
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. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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:
All reactions