The digital yuan could make transactions faster, cheaper and more transparent, but there are dangers for the global economy.