Hut 8, one of the world's largest public-listed bitcoin mining companies, announced record earnings during its second quarter as crypto prices rose to 18-month highs.