But how does bitcoin actually work?