serai/coins/monero
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
..
generators Fill out Cargo.tomls 2022-10-15 23:46:22 -04:00
src Support caching preprocesses in FROST (#190) 2022-12-08 19:04:35 -05:00
tests Support caching preprocesses in FROST (#190) 2022-12-08 19:04:35 -05:00
build.rs Publish an alpha version of the Monero crate (#123) 2022-09-29 01:24:33 -05:00
Cargo.toml Support an authenticated Monero RPC 2022-11-14 23:24:35 -05:00
LICENSE Move the Monero create to coins/ 2022-04-27 00:09:05 -04:00
README.md Expand and correct documentation 2022-09-29 05:25:29 -04:00

monero-serai

A modern Monero transaction library intended for usage in wallets. It prides itself on accuracy, correctness, and removing common pit falls developers may face.

monero-serai contains safety features, such as first-class acknowledgement of the burning bug, yet also a high level API around creating transactions. monero-serai also offers a FROST-based multisig, which is orders of magnitude more performant than Monero's.

monero-serai was written for Serai, a decentralized exchange aiming to support Monero. Despite this, monero-serai is intended to be a widely usable library, accurate to Monero. monero-serai guarantees the functionality needed for Serai, yet will not deprive functionality from other users, and may potentially leave Serai's umbrella at some point.

Various legacy transaction formats are not currently implemented, yet monero-serai is still increasing its support for various transaction types.