How does the Bitcoin network work?