There are two ways to represent peer IDs in text: as a raw base58btc encoded multihash (e.g., Qm... , 1... ) and as a multibase encoded CID (e.g., bafz... ). Libp2p is slowly transitioning from the first (legacy) format to the second (new).
Implementations MUST support parsing both forms of peer IDs. Implementations SHOULD display peer IDs using the first (raw base58btc encoded multihash) format until the second format is widely supported.
Maybe your’e using a PeerID in the first format as a raw base58btc