A power supply system for a firearm including a plurality of leads disposed in a rail for providing power to an electric firearm accessory attached thereto and an electric firearm accessory including connectors for electrically connecting to leads disposed in a rail on which the accessory is mounted.