Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AdvancedEnableInlining = true
Functions ¶
Types ¶
type ID ¶
type ID string
func IDFromPublicKey ¶
func IDFromPublicKey(pk libp2pcrypto.PubKey) (ID, error)
IDFromPublicKey returns the Peer ID corresponding to the public key pk. nolint: staticcheck
func SplitAddr ¶
SplitAddr splits a p2p Multiaddr into a transport multiaddr and a peer ID.
* Returns a nil transport if the address only contains a /p2p part. * Returns a empty peer ID if the address doesn't contain a /p2p part.
Click to show internal directories.
Click to hide internal directories.