The walnut is the large, wrinkled edible seed of the eponymous tree. It consists of two halves contained within a hard shell, enclosed in a green fruit. Walnuts are rich in oil, and are commonly eaten both fresh and used in cooking.