Skip to content

feat(l2): signature-based TDX #2677

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

Merged
merged 82 commits into from
May 14, 2025
Merged

feat(l2): signature-based TDX #2677

merged 82 commits into from
May 14, 2025

Conversation

iovoid
Copy link
Contributor

@iovoid iovoid commented May 6, 2025

Motivation

Verifying TDX attestations on-chain is expensive (~5M gas), so it would be better to avoid them if possible

Description

By generating a private key inside the TDX VM (where the host can't read it), attesting it's validity and then using it to sign updates it's possible to massively decrease gas usage.

@iovoid iovoid requested a review from a team as a code owner May 6, 2025 15:29
@iovoid iovoid force-pushed the feat/tdx-signature branch from 622538f to d55e67d Compare May 9, 2025 14:40
```
# NOTE: initialize&update submodules on all repos
(ethrex) make dev # start L1
(ethrex crates/l2/tee/contracts) make deploy-deps
Copy link
Member

Choose a reason for hiding this comment

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

This requires setting up a PRIVATE_KEY environment variable for the account that's going to do the deployment, let's add that to the docs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, also made it more specifically about quote-pusher.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to either remove this or update.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@ilitteri ilitteri enabled auto-merge May 14, 2025 12:38
@ilitteri ilitteri added this pull request to the merge queue May 14, 2025
Merged via the queue into main with commit bc79391 May 14, 2025
25 checks passed
@ilitteri ilitteri deleted the feat/tdx-signature branch May 14, 2025 13:00
fmoletta pushed a commit that referenced this pull request May 15, 2025
**Motivation**

Verifying TDX attestations on-chain is expensive (~5M gas), so it would
be better to avoid them if possible

**Description**

By generating a private key inside the TDX VM (where the host can't read
it), attesting it's validity and then using it to sign updates it's
possible to massively decrease gas usage.
github-merge-queue bot pushed a commit that referenced this pull request May 22, 2025
**Motivation**

In #2677 an example of a TDX-based prover was made. This uses the
example code to add a prover.

**Description**

TDX is added as another prover, and made to use the same API
mpaulucci added a commit that referenced this pull request May 23, 2025
**Motivation**

In #2677 an example of a TDX-based prover was made. This uses the
example code to add a prover.

**Description**

TDX is added as another prover, and made to use the same API
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.

3 participants