tangle
tangle copied to clipboard
[CHECKLIST] E2E Integration of MPC jobs
Issue: End-to-End Integration of Mpc Jobs Flow
Jobs/Roles Pallet
-
[x] Jobs Pallet Implementation
- [x] https://github.com/webb-tools/tangle/issues/289
- [x] https://github.com/webb-tools/tangle/issues/290
- [x] https://github.com/webb-tools/tangle/issues/301
- [x] #318
- [x] #326
- [x] #327
- [x] #337
-
[x] Roles Pallet Implementation
- [x] https://github.com/webb-tools/tangle/issues/291
- [x] https://github.com/webb-tools/tangle/issues/292
- [x] https://github.com/webb-tools/tangle/issues/293
- [x] #287
- [X] #308
- [x] #325
-
[X] Integrate roles/jobs and protocol pallets to testnet runtime (https://github.com/webb-tools/tangle/issues/289)
Protocol Pallets
-
[x] DKG Pallet
- [x] Integrate the dkg pallet from dkg-substrate (#314)
- [x] Implement the required traits for jobs/roles pallet (#314)
-
[x] zkSaas Pallet
- [x] #319
- [x] #320
Gadget Work
- [ ] Gadget Integration
- [x] https://github.com/webb-tools/tangle/issues/283
- [x] #333
- [x] https://github.com/webb-tools/gadget/issues/3
Post integration work
- [ ] Update all weights
- [ ] Document runtime extrinsics
Integration test
DKG
- All validators sign up for the DKG role and restake all their tokens.
- A user submits a Phase 1 job through PolkadotJS app, run a DKG w/ all participants (3,5)
- Verify success of first job, DKG key created, verify job result onchain and other metadata.
- A user submits a Phase 2 job through PolkadotJS app, run a TSS.
- Verify success of job, signature created, verify job result onchain and other metadata.
zkSaaS
- All validators sign up for the DKG role and restake all their tokens.
- A user submits a Phase 1 job through PolkadotJS app, run a zkSaaS w/ all participants (1,4)
- A user submits a Phase 2 job through PolkadotJS app, run a zkSaaS proof generation.
- Verify success of job, proof created, verify job result onchain and other metadata.
- Simulate a withdrawal/transfer from Webb's bridge.
Webb bridge
- All validators sign up for the DKG role and restake all their tokens.
- Webb submits a Phase 1 job, run DKG w/ all participants, use a signing rule that supports democracy + voting.
- Deploy a bridge, make a deposit, make a withdrawal use zkSaaS flow here as well.
- Use the relayer to catch the events.
- Update the relayer to submit Txes to EVM contract on Tangle rather than Substrate pallet (
dkg-proposals
). - Verify a Phase 2 job gets submitted and signed.
- Update the relayer to watch for completed jobs under the Phase 1 job ID, catch the job result.
- Submit to the bridges.