Skip to content

Commit

Permalink
Sync Vote.Verify() in spec with implementation (tendermint#9466)
Browse files Browse the repository at this point in the history
  • Loading branch information
thanethomson authored Sep 22, 2022
1 parent e48d5a0 commit f1dc581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/core/data_structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ func (vote *Vote) Verify(chainID string, pubKey crypto.PubKey) error {
if !bytes.Equal(pubKey.Address(), vote.ValidatorAddress) {
return ErrVoteInvalidValidatorAddress
}

if !pubKey.VerifyBytes(types.VoteSignBytes(chainID), vote.Signature) {
v := vote.ToProto()
if !pubKey.VerifyBytes(types.VoteSignBytes(chainID, v), vote.Signature) {
return ErrVoteInvalidSignature
}
return nil
Expand Down

0 comments on commit f1dc581

Please sign in to comment.