VoteSignBytes returns the bytes of the Vote corresponding to valIdx for signing. The only unique part is the Timestamp - all other fields signed over are otherwise the same for all validators. Panics if valIdx >= commit.Size(). See VoteSignBytes
(chainID string, valIdx int32)
| 805 | // |
| 806 | // See VoteSignBytes |
| 807 | func (commit *Commit) VoteSignBytes(chainID string, valIdx int32) []byte { |
| 808 | v := commit.GetVote(valIdx).ToProto() |
| 809 | return VoteSignBytes(chainID, v) |
| 810 | } |
| 811 | |
| 812 | // Type returns the vote type of the commit, which is always VoteTypePrecommit |
| 813 | // Implements VoteSetReader. |
no test coverage detected