Bitcoin and Cryptocurrency Technologies: A Comprehensive Introduction