SoK Research Perspectives and Challenges for Bitcoin and Cryptocurrencies