All other bonds required by law, when not otherwise specially provided, shall be conditioned as the bonds of public officers.