code: func (h *DBHeader) ValidateSha256(hash [32]byte) error {
  	sha := h.GetSha256()
  	if !reflect.DeepEqual(sha, hash) {
  		return errors.New("Sha256 of header mismatching")
  	}
  	return nil
  }
docs: // ValidateSha256 validates the given hash with the Sha256 of the header