Such security, when not otherwise directed, may, if for the benefit of individuals, be given to the party intended to be secured thereby; if in relation to the public matters concerning the inhabitants of one county or part of a county, it may be made payable to the county; if concerning the inhabitants of more than one county, it may be made payable to the state, but a mere mistake in these respects will not vitiate the security.
Iowa Code § 636.2
See §633.181