2018-06-09 04:25:48 -07:00
|
|
|
package lite
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/tendermint/tendermint/types"
|
|
|
|
)
|
|
|
|
|
2019-04-17 11:27:37 -07:00
|
|
|
// NOTE: The Verifier interface is deprecated. BaseVerifier can continue to
|
|
|
|
// exist, but this interface isn't very useful on its own to declare here.
|
|
|
|
//
|
2018-08-02 03:10:50 -07:00
|
|
|
// Verifier checks the votes to make sure the block really is signed properly.
|
|
|
|
// Verifier must know the current or recent set of validitors by some other
|
2018-06-09 04:25:48 -07:00
|
|
|
// means.
|
2018-08-02 03:10:50 -07:00
|
|
|
type Verifier interface {
|
2018-09-29 07:23:21 +08:00
|
|
|
Verify(sheader types.SignedHeader) error
|
2018-06-09 04:25:48 -07:00
|
|
|
ChainID() string
|
|
|
|
}
|