The QmId part is actually just a bare base58 encoded multihash (for now). It's a direct hash of the peer's public key.