round-based-protocol icon indicating copy to clipboard operation
round-based-protocol copied to clipboard

Driver for round-based protocols in Rust

Results 4 round-based-protocol issues
Sort by recently updated
recently updated
newest added

In this repo is minimal code to reproduce the issue: [https://github.com/35359595/mpecdsa-future-error](https://github.com/35359595/mpecdsa-future-error) There's a know issue with the compiler described here: [https://github.com/rust-lang/rust/issues/102211#issuecomment-1380167541](https://github.com/rust-lang/rust/issues/102211#issuecomment-1380167541) In general, some internal future[s] of `AsyncProtocol::run()` have to...

The most challenging task in protocol execution is establishing secure p2p & broadcast channels. Transport layer would help users to build a reliable solution.

Currently, [AsyncProtocol] runs blocking operations via [spawn_blocking]. It should be generalised by introducing new trait that can be implemented for users' thread pool. [AsyncProtocol]: https://docs.rs/round-based/0.1.1/round_based/async_runtime/struct.AsyncProtocol.html [spawn_blocking]: https://docs.rs/tokio/1.1.0/tokio/task/fn.spawn_blocking.html

[ProtocolWatcher trait](https://docs.rs/round-based/0.1.1/round_based/async_runtime/watcher/trait.ProtocolWatcher.html) should be able to receive every possible event which can cause (or which was caused by) state changing, e.g. received incoming message, result of handling incoming message, sending...