Earlier quoted context omitted.
Create a government from scratch. Version control the laws. Compare the laws with all other countries. Hoard data. Write code to replace government employees and to make laws easy to implement. (If done well consider selling a product or service) Make everything modular so that the establishment can steal it. Get people involved. Doesn't matter if you need to write a sim and convince them it is a game. Pretend the wh…
I'm not sure you can code your way into having a monopoly on violence.
For the longer explanation, see: https://news.ycombinator.com/item?id=37366751>.
That said, legitimacy is a political property, and one which cannot be attained through purely technical means. To that extent I agree with your critique.