func IDFromPublicKey(pk ic.PubKey) (core.ID, error) {
	return core.IDFromPublicKey(pk)
}
Deprecated: use github.com/libp2p/go-libp2p-core/peer.IDFromPublicKey instead.
package peer
import (
	core "github.com/libp2p/go-libp2p-core/peer"
	ic "github.com/libp2p/go-libp2p-crypto"
)
var (
	ErrEmptyPeerID = core.ErrEmptyPeerID
	ErrNoPublicKey = core.ErrNoPublicKey
)
var AdvancedEnableInlining = core.AdvancedEnableInlining
type ID = core.ID
type IDSlice = core.IDSlice
func IDFromString(s string) (core.ID, error) {
	return core.IDFromString(s)
}
func IDFromBytes(b []byte) (core.ID, error) {
	return core.IDFromBytes(b)
}
func IDB58Decode(s string) (core.ID, error) {
	return core.IDB58Decode(s)
}
func IDB58Encode(id ID) string {
	return core.IDB58Encode(id)
}
func IDHexDecode(s string) (core.ID, error) {
	return core.IDHexDecode(s)
}
func IDHexEncode(id ID) string {
	return core.IDHexEncode(id)
}