10 // Pretty prints the ID as hex, except parts that adher to the Peer ID
11 // Conventions of BEP 20.
12 func (me PeerID) String() string {
13 if me[0] == '-' && me[7] == '-' {
14 return string(me[:8]) + hex.EncodeToString(me[8:])
16 return hex.EncodeToString(me[:])