1. Melt the butter or shortening in a saucepan, and stir in the flour gradually, using a wire wisk to prevent lumps.
2. Stir it over medium heat until golden brown in color. Remove from heat.
3. In another saucepan, boil the sugar and water together until the sugar is dissolved, then add the rosewater and saffron.
4. Stir the syrup into the browned flour and keep stirring until the mixture thickens.
5. If too thin, cook it briefly over a medium heat, being careful not to burn.
6. When thickened, press the halvah into a plate, smoothing the top with the back of a spoon.
7. Cool before serving, and garnish with the chopped pistachios.