You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would also be useful to split part3 function into several parts. For example, one part takes max_signers, identifier, round1_packages, round2_packages. This way, some independent party (like a smart contract) can find culprit, and other participants can locally calculate their secret shares.
Also, an independent party can probably compute PublicKeyPackage since it only requires an identifier and a commitment (VerifiableSecretSharingCommitment). It would be nice to have such an API.
I'm not really sure if splitting the function is necessary. I'd like to have an API like this: https://github.com/StackOverflowExcept1on/roast/blob/dkg/roast-core/src/dkg.rs. The dealer collects round1 and can instantly reject them, the dealer also collects round2. Those who didn't send round1 and round2 can be blamed by the smart contract. Also, when all participants passed round1 and round2 and no one was blamed, there is another option - each participant can locally run part3 and get a list of culprits (not just Error on the first culprit), and then send it to the contract so that the contract can check the list of culprits and blame them for sending bad data on round2, and then restart DKG in case of this. Blaming also means that the deposit of bad participants will be reduced.
The current API is only convenient for use on centralized platforms, but it would be cool to do this in web3.
Originally posted by @StackOverflowExcept1on in #728 (comment)
The text was updated successfully, but these errors were encountered: