What is a cryptocurrency and how does it work?