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

Don't sign over the PartSetHeader or include it in the Header #456

Closed
2 tasks
Tracked by #418
evan-forbes opened this issue Jul 11, 2021 · 0 comments · Fixed by #457
Closed
2 tasks
Tracked by #418

Don't sign over the PartSetHeader or include it in the Header #456

evan-forbes opened this issue Jul 11, 2021 · 0 comments · Fixed by #457
Assignees

Comments

@evan-forbes
Copy link
Member

evan-forbes commented Jul 11, 2021

Summary

As discussed in the comments here and here, we should not include the PartSetHeader in the data that is signed over or used to create the hash of the Header. While we're at it, we might as well remove the LastPartSetHeader field from Header completely after #441 is merged.

Details

We're planning on only using the header hash for the BlockID #184, which means that the PartSetHeader only needs to used when propagating blocks during consensus (but that might change too, #434) and should not be in the header. If it's not in the header, then the hash PartSetHeader can't be validated. Therefore, it should not contribute to the hash or be signed over.

Action Items

  • Stop including the PartSetHeader in the bytes that are signed over when voting
  • Remove the LastPartSetHeader field from the Header (and thus removing from contributing to the hash)

References

ref Define commit validation #92

part of #418

blocked by #441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant