package torrent
-import (
- "encoding/hex"
-)
+import "github.com/anacrolix/torrent/types"
-type peerID [20]byte
-
-func (me peerID) String() string {
- if me[0] == '-' && me[7] == '-' {
- return string(me[:8]) + hex.EncodeToString(me[8:])
- }
- return hex.EncodeToString(me[:])
-}
+type PeerID = types.PeerID