code: func (s *Scanner) Checksum() (plumbing.Hash, error) {
  	err := s.discardObjectIfNeeded()
  	if err != nil {
  		return plumbing.ZeroHash, err
  	}
  
  	return binary.ReadHash(s.r)
  }
docs: // Checksum returns the checksum of the packfile