The world of cryptocurrency mining has been shaken by allegations of theft and internal power struggles at Bitmain, one of the industry’s leading.