Gun powder is an explosive. It has a low brisance, meaning it is not comsumed as fast. The wave produced is subsonic. What you are talking about is a high explosive with a fast brisance and a supersonic blast wave. That will not be contained in a firearm. I believe the shock wave of the detonation will destroy any firearm
|