How does bitcoin work? Who actually pays for the mining done?