Double spending poses a critical threat to the integrity of digital currencies. It occurs when a single unit of currency…