The Ukrainian parliament has passed legislation that legitimizes and regulates crypto assets within the country in an effort to attract investment.