parallelchain-io / hotstuff_rs

Rust implementation of the HotStuff consensus algorithm.
38 stars 5 forks source link

Refactor top-level modules related to cryptography, signed messages, and certificates #50

Open lyulka opened 3 months ago

lyulka commented 3 months ago

Affected version

v0.4 (branch: dev/v0.4)

Related issues

Definitely related: #49. May be related: #46.

Problem

Cryptography, signed messages, and certificates-related definitions are currently split up into seven modules:

I feel like the way these types are split up leaves a lot to be desired, for several reasons:

Proposed solution

Organization

I propose that we reorganize the top-level cryptography, signed messages, and certificates-related definitions into the following six modules:

Changes

The changes that the above organization makes on the current organization are:

lyulka commented 1 month ago

Most of the things in this issue has been implemented up to the last commit, the last things have to do with the networking module and the Certificate::is_correct method (may do the latter in the future instead of now).