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

Use context, not block number in TDX quote input data #1179

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ameba23
Copy link
Contributor

@ameba23 ameba23 commented Nov 21, 2024

Closes #1174

This removes block number from the quote input data as this is time sensitive and it can be difficult to know at the moment of creating the quote when it will be validated.

Instead we use a QuoteContext enum which indicates the context in which this quote is intended to be used.

This can currently be one of:

  • The validate extrinsic
  • The change_endpoint extrinsic
  • The change_threshold_accounts extrinsic

@ameba23 ameba23 marked this pull request as draft November 21, 2024 10:42
@ameba23 ameba23 marked this pull request as ready for review November 22, 2024 09:20
Copy link
Member

@JesseAbram JesseAbram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm probably should have hernando also check it tho

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.

Block number used in TDX quote cannot be known when quote is not immediately submitted
2 participants