Commit 892cb92
feat(scripts): deploy DKG/ECIES in service deployment; wire DKG into AddKeyperSet
Service deployment now also deploys DKGContract and ECIESKeyRegistry, so the
e2e tests can exercise the full DKG cycle against the shutterservice keyper.
AddKeyperSet (both common and gnosh) accept an optional DKG_CONTRACT_ADDRESS
env var and call setDKGContract on the new KeyperSet when provided.
Key decisions:
- Reuse the existing deployDKGContract / deployECIESKeyRegistry helpers
(already shared with Deploy.gnosh.s.sol) instead of forking. Reads the
same DKG_PHASE_LENGTH / DKG_LEAD_LENGTH env defaults.
- AddKeyperSet treats DKG_CONTRACT_ADDRESS as optional: if unset, no
setDKGContract call is made. This keeps backward compatibility with
callers that haven't been updated, and lets the keyper's eons-row code
fall back to its config-supplied global DKG contract.
Files changed:
- script/Deploy.service.s.sol: deploys DKGContract + ECIESKeyRegistry.
- script/AddKeyperSet.s.sol, script/AddKeyperSet.gnosh.s.sol: accept
DKG_CONTRACT_ADDRESS env var.
Notes for next iteration:
- mise-test-setup's contracts container is built from
https://github.com/shutter-network/contracts.git#docker so these script
changes will only reach the e2e test runs once that branch is pushed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b21b311 commit 892cb92
3 files changed
Lines changed: 41 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
37 | 65 | | |
38 | 66 | | |
39 | 67 | | |
| |||
58 | 86 | | |
59 | 87 | | |
60 | 88 | | |
61 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
62 | 92 | | |
63 | 93 | | |
64 | 94 | | |
| |||
0 commit comments