The mainspring is the part that, under spring tension, provides the energy needed to operate the hammer / striker during firing.
Footnotes / Sources:
“Glossary ⇒.” Sporting Arms and Ammunition Manufacturers’ Institute. Ed. SAAMI’s Technical Committee. Web. 15-18 Jan. 2011.