How exactly does the bitcoin Code Do the job?