Now, if Alice were to transact with Bob using bitcoin. Alice will have to broadcast her transaction to the network that she intends to send $1 to Bob in equivalent amount of bitcoin. So how does the system determine if Alice has enough bitcoin to execute the transaction? This is where mining takes place.