code: func diff(chain1, chain2 []*x509.Certificate) bool {
  	// Check if bundled one is different from the input.
  	diff := false
  	if len(chain1) != len(chain2) {
  		diff = true
  	} else {
  		for i := 0; i < len(chain1); i++ {
  			cert1 := chain1[i]
  			cert2 := chain2[i]
  			// Use signature to differentiate.
  			if !bytes.Equal(cert1.Signature, cert2.Signature) {
  				diff = true
  				break
  			}
  		}
  	}
  	return diff
  }
docs: // diff checkes if two input cert chains are not identical