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

watermark order is gone, watermark v2 is introduced #381

Closed
wants to merge 2 commits into from

Conversation

stephengaudet
Copy link
Contributor

@stephengaudet stephengaudet commented Jun 28, 2023

While the endorsement operation can't obviously be injected before the block it's endorsing it still can be forged and signed before the block header (but not before operations) as it doesn't refer to the final hash of the signed block but to block's payload hash instead which is computed from the operations hash and the block's predecessor hash only. So the signer service shouldn't expect any specific order of block header and endorsement requests.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 29, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c2e0271
Status: ✅  Deploy successful!
Preview URL: https://fe3361bd.signatory.pages.dev
Branch Preview URL: https://379-watermark-order-issue.signatory.pages.dev

View logs

@e-asphyx
Copy link
Contributor

Some background information: while the endorsement operation can't obviously be injected before the block it's endorsing it still can be forged and signed before the block header (but not before operations) as it doesn't refer to the final hash of the signed block but to block's payload hash instead which is computed from the operations hash and the block's predecessor hash only. So the signer service shouldn't expect any specific order of block header and endorsement requests.

@e-asphyx e-asphyx closed this Jun 30, 2023
@e-asphyx e-asphyx deleted the #379-watermark-order-issue branch June 30, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants