Unless otherwise specially provided, every bond required by any statute of this state of any person undertaking an office or employment shall be conditioned upon the faithful discharge by the principal of the duties of his office or employment, and upon accounting for and paying over, as required by law, all moneys which may come into his possession by virtue of the office or employment. The liability of the principal and his sureties upon such bond shall extend to all moneys received by the principal by virtue of his office or employment under the laws in effect at the time of the execution of the bond, and to all money which shall come into his possession by virtue of his office or employment under the provisions of any law enacted during his continuance in such office or employment.