Skip to content

Commit

Permalink
Simplify decoding the initial line point in ReadLinePoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislav authored and hoffmang9 committed Sep 4, 2020
1 parent 885be42 commit 17ecad8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/prover_disk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,7 @@ class DiskProver {
uint16_t line_point_size_bits = DiskPlotter::CalculateLinePointSize(k) * 8;
uint8_t * line_point_bin = new uint8_t[line_point_size_bits / 8];
disk_file.read(reinterpret_cast<char*>(line_point_bin), line_point_size_bits / 8);
uint128_t line_point = Bits(line_point_bin, line_point_size_bits / 8, line_point_size_bits)
.Slice(0, k * 2)
.GetValue128();
uint128_t line_point = Util::SliceInt128FromBytes(line_point_bin, 0, k * 2);

// Reads EPP stubs
uint32_t stubs_size_bits = DiskPlotter::CalculateStubsSize(k) * 8;
Expand Down

0 comments on commit 17ecad8

Please sign in to comment.