Yes, which I agree, as a libertarian, is a theoretical solution to these problems. Only, our judicial systems don’t work so we end up legislating instead, and the only contracts the government likes to enforce are its own.