Trim the eggplant and cut it into 1-inch (2.5cm) cubes. If using a large or seedy eggplant, place the cubes in a colander, sprinkle generously with salt, and let sit for 30-60 minutes.
Rinse thoroughly and pat completely dry.
Bring a large pot of salted water to a rolling boil.
Add the eggplant cubes and cook for about 5 minutes, or until tender.
Drain well in a colander and allow to cool to room temperature.
While the eggplant cools, prepare the dressing.
In a large serving bowl, whisk together the miso, soy sauce, mirin, and rice vinegar until smooth. If the dressing is too thick, thin it with a tablespoon of water.
Gently pat the cooled eggplant with paper towels to remove any excess moisture.
Add the eggplant to the bowl with the dressing.
Sprinkle with a pinch of salt and cayenne pepper, then toss gently to coat everything evenly.
Taste and adjust the seasonings as needed.
Serve immediately, topped with chopped walnuts for a delightful crunch, if desired.