code: func (typedData *TypedData) validate() error {
  	if err := typedData.Types.validate(); err != nil {
  		return err
  	}
  	if err := typedData.Domain.validate(); err != nil {
  		return err
  	}
  	return nil
  }
docs: // validate makes sure the types are sound