Swords like this date back to the Meiji period in Japanese history. The government was determined to bring the country's military up to the same standards as the West, and they saw the traditional martial weapons as an obstacle to this, so they issued a ban on swords. Obviously, there were a lot of people who resented this very strongly, and some took to carrying straight-edged katanas concealed in canes and staffs.