The correct way to cook eggs with walnuts is as follows:
Prepare materials: walnuts, eggs, water, salt, etc.
Wash the walnuts and soak them in water for 30 minutes in order to fully absorb the water.
Wash the eggs and put them into a pot, add the right amount of water, boil over high heat and then turn to low heat to cook for 5 minutes, then fish out the eggs and set aside.
Put the soaked walnuts and hard-boiled eggs together in a pot, add water and salt, bring to a boil over high heat, then reduce the heat to low and cook for 10 minutes.
The boiled walnut eggs can be fished out and cooled for consumption, or the eggs can be shelled and eaten with the walnuts.