public static BigInteger DecodeTotalWork(byte[] buffer) { var totalWorkBytes = new byte[64]; Buffer.BlockCopy(buffer, 0, totalWorkBytes, 0, 64); Array.Reverse(totalWorkBytes); return new BigInteger(totalWorkBytes); }