Ghana has passed new legislation that formally permits cryptocurrency trading by assigning regulatory oversight to the nation's central bank.