The government of El Salvador will declare bitcoin as legal tender, according to an announcement from its president.