N.Y. Second Class Cities Law § 55
The mayor shall, on behalf of the city, execute all deeds and contracts made by it and shall cause to be affixed thereto the city seal.