-
Notifications
You must be signed in to change notification settings - Fork 108
Add block proposer public keys and signature to block header #577
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
Add block proposer public keys and signature to block header #577
Conversation
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
AeonSw4n
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Got one comment regarding the handling of preSignature flag. In addition, I think we should increase our test coverage around MsgDeSoHeader, in particular testing the signing of the header hash.
| // The preSignature flag is unused during byte encoding in | ||
| // in header versions 0 and 1. We set it to true to ensure that | ||
| // it's forward compatible for versions 2 and beyond. | ||
| headerBytes, err := msg.ToBytes(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes so my initial comment re preSignature flag is applicable. We should add tests for signing the Hash to make sure everything is bulletproof.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

No description provided.