Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSZ list Merkle hashing change #538

Merged
merged 4 commits into from
Feb 3, 2019
Merged

SSZ list Merkle hashing change #538

merged 4 commits into from
Feb 3, 2019

Commits on Jan 31, 2019

  1. SSZ list Merkle hashing change

    The current spec is arguably inconsistent, in that if a set of N values gets chunked into M chunks where M is not an exact power of 2, the chunks between M and next_power_of_2(M) are filled with SSZ_CHUNK_SIZE zero bytes each, but the last chunk is not padded, and could be arbitrarily short (eg. if the values are 4 bytes and there are 257 of them, then that gets serialized into eight chunks chunks where the first four are 64 values each, the fifth is 4 bytes corresponding to the last value, and the last three chunks are SSZ_CHUNK_SIZE zero bytes). This PR fills every chunk up to exactly SSZ_CHUNK_SIZE bytes for consistency.
    vbuterin authored Jan 31, 2019
    Configuration menu
    Copy the full SHA
    5488e7b View commit details
    Browse the repository at this point in the history
  2. Update specs/simple-serialize.md

    Co-Authored-By: vbuterin <v@buterin.com>
    hwwhww and vbuterin authored Jan 31, 2019
    Configuration menu
    Copy the full SHA
    9271e6e View commit details
    Browse the repository at this point in the history
  3. Update specs/simple-serialize.md

    Co-Authored-By: vbuterin <v@buterin.com>
    hwwhww and vbuterin authored Jan 31, 2019
    Configuration menu
    Copy the full SHA
    acb432e View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2019

  1. Zpad is already in #543

    vbuterin authored Feb 3, 2019
    Configuration menu
    Copy the full SHA
    197fa18 View commit details
    Browse the repository at this point in the history