Implementation of Bitcoin Mining in Scala