serai/coins/ethereum
Luke Parker af86b7a499
Support caching preprocesses in FROST (#190)
* Remove the explicit included participants from FROST

Now, whoever submits preprocesses becomes the signing set. Better separates
preprocess from sign, at the cost of slightly more annoying integrations
(Monero needs to now independently lagrange/offset its key images).

* Support caching preprocesses

Closes https://github.com/serai-dex/serai/issues/40.

I *could* have added a serialization trait to Algorithm and written a ton of
data to disk, while requiring Algorithm implementors also accept such work.
Instead, I moved preprocess to a seeded RNG (Chacha20) which should be as
secure as the regular RNG. Rebuilding from cache simply loads the previously
used Chacha seed, making the Algorithm oblivious to the fact it's being
rebuilt from a cache. This removes any requirements for it to be modified
while guaranteeing equivalency.

This builds on the last commit which delayed determining the signing set till
post-preprocess acquisition. Unfortunately, that commit did force preprocess
from ThresholdView to ThresholdKeys which had visible effects on Monero.

Serai will actually need delayed set determination for #163, and overall,
it remains better, hence it's inclusion.

* Document FROST preprocess caching

* Update ethereum to new FROST

* Fix bug in Monero offset calculation and update processor
2022-12-08 19:04:35 -05:00
..
contracts ethereum: implement schnorr verification contract deployment and related crypto (#36) 2022-07-16 16:45:41 -05:00
src Update to ethers 1.0 2022-12-07 18:05:06 -05:00
tests Support caching preprocesses in FROST (#190) 2022-12-08 19:04:35 -05:00
.gitignore ethereum: implement schnorr verification contract deployment and related crypto (#36) 2022-07-16 16:45:41 -05:00
build.rs set up CI (#45) 2022-07-22 11:31:29 -05:00
Cargo.toml Update to ethers 1.0 2022-12-07 18:05:06 -05:00
LICENSE Clarify licensing per https://github.com/serai-dex/serai/issues/13 2022-08-25 04:02:13 -04:00
README.md Add a patch for zip so ethereum-serai doesn't conflict with Substrate 2022-07-16 17:49:35 -04:00

Ethereum

This package contains Ethereum-related functionality, specifically deploying and interacting with Serai contracts.

Dependencies