Blockchain mining’s massive carbon footprint is impossible to justify — and puts it in the crosshairs of global environmental legislation.