You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that VoteData should not impl Committable. Or, at the very least, its impl of Committable should just return the commitment that's already stored in VoteData.
The text was updated successfully, but these errors were encountered:
However, the return type of the above code is Commitment<COMMITTABLE>. That might seem right, but any impl of Committable for VoteData<COMMITTABLE> must have return type Commitment<VoteData<COMMITTABLE>>. In other words, it must be a commitment of a commitment. We should not have anything with that type.
Currently we are needlessly computing commitments of commitments in the impl of
Committable
forVoteData
.All variants of
VoteData
are of typeCommitment<COMMITTABLE>
. In other words: they are already commitments.HotShot/crates/types/src/traits/election.rs
Lines 77 to 79 in 598b22e
However, the impl of
Committable
computes another commitment of the commitment:HotShot/crates/types/src/traits/election.rs
Lines 95 to 102 in 598b22e
Seems that
VoteData
should not implCommittable
. Or, at the very least, its impl ofCommittable
should just return the commitment that's already stored inVoteData
.The text was updated successfully, but these errors were encountered: