Skip to content

[MINOR] Use EC segment size

Peter-Jan Brone requested to merge ec-segment-size into master

MERGE REQUEST

MR Guidelines

Overview

Currently the helper function 'bytesToRecover' hardcodes a segment size equal to the crypto.SegmentSize and thus 64. Ideally however we use the returned value from the EC after calling supportsPartialEncoding.

I tried adding a unit test for it by extending TestBytesToRecover but found there's no need really seeing as it is currently impossible to instantiate an EC with a segment size different from 64. Making it impossible to pass an EC where segmentsize is anything other than 64.

Example for Visual Changes

N/A

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • All new methods or updated methods have clear docstrings
  • Testing added or updated for new methods
  • Any new packages are added to Makefile and .gitlab-ci.yml
  • API documentation updated for API updates
  • Module README.md updated for changes to workflow
  • Issue added to Sia-UI repo for new supporting features
  • Changelog File Created

Issues Closed

N/A

Merge request reports