VladTheJunior/BitmainFirmwareUnpacker ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python tool that can open Bitmain .BMU firmware files and unpack them for me.

It should handle both the normal single file BMU and the bigger merged BMU that contains several firmware images for different miner types. When I run it from the command line, I want it to detect which kind of file it is, print a readable summary of the header and contents, then extract the files into folders so I can inspect them.

For single BMU files, also pull out the miner public key, the signature file, and verify the extracted parts if possible. For merged BMU files, split out each included firmware into its own named file or folder with the model and hardware type shown clearly.

If there’s a way to calculate the miner type hash from a model name, include that too. Make the output easy to read in the terminal, and if you need to check current Bitmain docs or file details online, go ahead and do that.