Preheat your oven to 325°F (163°C). If using dried coconut, soak it in warm water for 5 minutes, then drain and squeeze out excess liquid. For fresh coconut, no prep is needed.
Skin the pistachios for a vibrant color, then pulse them in a food processor until crumbly.
In a bowl, beat the egg and egg white, then mix in the pistachio crumbs, coconut, sugar, cornstarch, rosewater or vanilla, and salt until well combined.
Line a baking sheet with parchment paper and form rounded tablespoonfuls of the mixture into haystack shapes.
Bake for 25 to 30 minutes until golden brown. Let cool on the baking sheet.
Melt the dark chocolate and dip the tops of each macaroon, then return to the baking sheet.