Cryptocurrencies are digital assets that work as a medium of exchange for many transactions across the world. It is based on cryptography and the transactions are recorded in a public…