code: func IDFromPublicKey(pk ic.PubKey) (ID, error) {
  	b, err := pk.Bytes()
  	if err != nil {
  		return "", err
  	}
  	var alg uint64 = mh.SHA2_256
  	if AdvancedEnableInlining && len(b) <= maxInlineKeyLength {
  		alg = mh.ID
  	}
  	hash, _ := mh.Sum(b, alg, -1)
  	return ID(hash), nil
  }
docs: // IDFromPublicKey returns the Peer ID corresponding to pk