Ukraine legalizes cryptocurrency