Open pdyraga opened 5 years ago
There are two possible solutions here:
t
signatures in phase 14 before submitting DKG result to the contractt
signatures after submitting DKG result to the contract (verifySignatures
in KeepRandomBeaconOperator.sol
)I've done some tests in order to check the expected estimated gas cost reduction of both solutions. Average estimated gas costs of submitting DKG result are taken from 5 samples. I've assumed a gas price of 22 Gwei (according to ethgasstation) in order to calculate costs in dollar.
Group size: 5 | Threshold: 3
Group size: 50 | Threshold: 26
ok some initial findings: looks like the most expensive thing in DKG submission is actually sortition of submitted tickets, even with t
signatures we still need to sort all the submitted tickets. I'm investigating whether it's cheaper to spread this cost across all members, i.e. re-sort tickets on every ticket submit + maybe allow submit tickets in batch
When submitting DKG result in phase 14, it is enough to submit
t + 1
supporting signatures, assuming all those signatures were validated in the previous phase and they are all correct. This would allow us to reduce the cost of an on-chain validation.t
stands forthreshold
<=>minHonest
/maxMalicious