serai-dex / serai

Other
265 stars 49 forks source link

Increase `Batch` sign efficiency by caching preprocesses #488

Open kayabaNerve opened 11 months ago

kayabaNerve commented 11 months ago

With each new Batch to sign, we currently perform a 2-round protocol. If on DKG, we perform and publish a preprocess, we can use that when the first Batch to-sign appears. Then with our signature share, we can include our next preprocess.

This will turn the success case into a 1-round protocol.

kayabaNerve commented 11 months ago

DkgConfirmation already inlines its preprocesses.

DkgRemoval technically could inline its preprocess yet it's presumed infrequently run.