Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed Oct 3, 2019
1 parent f521f04 commit a28f145
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lite/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ pub trait Commit {
/// so each vote is for a slightly different message.
/// Note the Vote must also know which validator it is from.
/// Note that implementers are responsible for ensuring that the vote's sign_bytes
/// are a function of the chain id, so that validators can sign on distinct chains
/// without being slashed. This information is implicit here since it's not otherwise
/// relevant for the correctness of the single chain lite client.
/// are a function of the block id and the chain id. These don't appear directly in the trait
/// since the particular values aren't relevant to correctness here - the Vote is already
/// within an enum at the VoteSet level indicating which block it is for, and the chain id
/// is only necessary to avoid slashing in the multi chain context.
pub trait Vote {
fn validator_id(&self) -> ValID;
fn sign_bytes(&self) -> Bytes;
Expand Down

0 comments on commit a28f145

Please sign in to comment.