func (opts TrustOptions) ValidateBasic() error {
	if opts.Period <= 0 {
		return errors.New("negative or zero period")
	}
	if opts.Height <= 0 {
		return errors.New("negative or zero height")
	}
	if len(opts.Hash) != tmhash.Size {
		return fmt.Errorf("expected hash size to be %d bytes, got %d bytes",
			tmhash.Size,
			len(opts.Hash),
		)
	}
	return nil
}
ValidateBasic performs basic validation.
package light
import (
	"errors"
	"fmt"
	"time"
	"github.com/tendermint/tendermint/crypto/tmhash"
)
type TrustOptions struct {
	Period time.Duration
	Height int64
	Hash   []byte
}