dkg-substrate icon indicating copy to clipboard operation
dkg-substrate copied to clipboard

Implement FROST DKG into the DKG

Open tbraun96 opened this issue 2 years ago • 4 comments

We currently have a PR up on a FROST-related repo that will enable us to use that repo properly with the DKG gadget. We can use the fork, then, we can use the official repository once the PR is merged to add a DKGModule for FROST.

Steps

  • Prototype the protocol using a basic network test engine, sort out any nuances (https://github.com/webb-tools/dkg-substrate/issues/712)
  • Add a DKGModule trait implementation for FROST, e.g., FrostModule (https://github.com/webb-tools/dkg-substrate/issues/713)
  • Add on-pallet logic for unsigned proposals and keygens (i.e., should_execute_keygen related information) that uses a single byte-sized field for denoting which DKGModule to use for the given unsigned proposal or keygen (https://github.com/webb-tools/dkg-substrate/issues/714)
  • Determine a mechanism for selecting a DKGModule during runtime (https://github.com/webb-tools/dkg-substrate/issues/714)
  • Add integration test that selects the FrostModule and runs it in the local chain environment https://github.com/webb-tools/dkg-substrate/issues/715

tbraun96 avatar Sep 12 '23 12:09 tbraun96

If we convert these into tasks (make this a proper checklist) and then assign deadlines to them. We want to get this into the Universe board.

drewstone avatar Sep 14 '23 16:09 drewstone

The final part of this task, which will be done in the future, is to determine the selection algorithm/process for determining which DKG to use. Then, we must debug and test FROST.

tbraun96 avatar Sep 27 '23 11:09 tbraun96

As I understand currently, the frost algorithm is not used in dkg-gadget for signing msg. Can I help you with that logic of implementing updates to pallets?

akorchyn avatar Oct 24 '23 13:10 akorchyn

Yea but it's important @akorchyn to ensure that it adds functionality and not removes any so that one can still use it for ECDSA if one pleases. We have been working together w/ some others on CGGMP implementation too. Let us know in our slack if you have an approach.

drewstone avatar Oct 24 '23 14:10 drewstone