sinu.eth e1bfb563b6 MPC-TLS actor refactor (#405)
* encapsulate record layer

* decouple commitment from decryption

* use record layer byte counts

* actor refactor

* shutdown follower on finalize, not close

* rustfmt

* re-enable lints

* fix lint errors

* flatten ifelse block

* Apply suggestions from code review

Co-authored-by: dan <themighty1@users.noreply.github.com>

* stick to leader/follower semantics in comment

Co-authored-by: dan <themighty1@users.noreply.github.com>

* rustfmt

* update follower shutdown error

---------

Co-authored-by: dan <themighty1@users.noreply.github.com>
2024-01-15 11:11:05 -08:00
2024-01-15 11:11:05 -08:00
2024-01-15 11:11:05 -08:00
2023-10-13 15:08:00 +08:00
2023-06-23 10:48:11 +02:00
2023-06-08 10:31:03 +02:00
2023-06-08 10:31:03 +02:00
2023-10-13 15:08:00 +08:00
2022-12-13 20:23:54 -08:00

MIT licensed Apache licensed Build Status

Website | Documentation | API Docs | Discord

TLSNotary

⚠️ Notice

This project is currently under active development and should not be used in production. Expect bugs and regular major breaking changes.

License

All crates in this repository are licensed under either of

at your option.

Overview

  • tls: Home of the TLS logic of our protocol like handshake en-/decryption, ghash, currently outdated
  • utils: Utility functions which are frequently used everywhere
  • actors: Provides actors, which implement protocol-specific functionality using the actor pattern. They usually wrap an aio module
  • universal-hash: Implements ghash, which is used AES-GCM. Poly-1305 coming soon.
  • point-addition: Used in key-exchange and allows to compute a two party sharing of an EC curve point

General remarks

  • the TLSNotary codebase makes heavy use of async Rust. Usually an aio crate/module implements the network IO and wraps a core crate/module which provides the protocol implementation. This is a frequent pattern you will encounter in the codebase.
  • some protocols are implemented using the actor pattern to facilitate asynchronous message processing with shared state.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Description
No description provided
Readme 108 MiB
Languages
Rust 98.4%
JavaScript 0.7%
Shell 0.5%
HTML 0.2%
Noir 0.1%