Comprehensive framework for regulating cryptocurrency