code: func CompareSHA2Homogeneity(chain1, chain2 []*x509.Certificate) int {
  	w1 := SHA2Homogeneity(chain1)
  	w2 := SHA2Homogeneity(chain2)
  	return w1 - w2
  }
docs: // CompareSHA2Homogeneity compares the chains based on SHA2 homogeneity. Full SHA-2 chain (excluding root) is rated higher that the rest.