code: func SHA2Homogeneity(chain []*x509.Certificate) int {
  	for i := 0; i < len(chain)-1; i++ {
  		if hashUbiquity(chain[i]) != SHA2Ubiquity {
  			return 0
  		}
  	}
  	return 1
  }
docs: // SHA2Homogeneity returns 1 if the chain contains only SHA-2 certs (excluding root). Otherwise it returns 0.