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

question regarding TDX #1

Open
dayeol opened this issue Nov 12, 2024 · 3 comments
Open

question regarding TDX #1

dayeol opened this issue Nov 12, 2024 · 3 comments

Comments

@dayeol
Copy link

dayeol commented Nov 12, 2024

Hello!

I have a quick question!

Where can I find the TDX zkVM guest code for risc0? It seems that the zkVM guest only implements the SGX.
https://github.com/automata-network/tdx-attestation-sdk/blob/main/zk/risc0/methods/guest/src/main.rs

Thanks in advance!

@dayeol
Copy link
Author

dayeol commented Nov 12, 2024

I figured that verify_quote_dcapv4 implements the TDX. I got confused by these lines.

journal_output.extend_from_slice(&sgx_intel_root_ca_cert_hash);
journal_output.extend_from_slice(&sgx_tcb_signing_cert_hash);
journal_output.extend_from_slice(&sgx_intel_root_ca_crl_hash);
journal_output.extend_from_slice(&sgx_pck_crl_hash);

@smilenow
Copy link
Collaborator

Hello!

I have a quick question!

Where can I find the TDX zkVM guest code for risc0? It seems that the zkVM guest only implements the SGX. https://github.com/automata-network/tdx-attestation-sdk/blob/main/zk/risc0/methods/guest/src/main.rs

Thanks in advance!

Currently Intel SGX v3 / v4 and Intel TDX v4 Quote Verification are located in dcap-rs. And in Risc0 and SP1 guest program use this for the verification.

@smilenow
Copy link
Collaborator

I figured that verify_quote_dcapv4 implements the TDX. I got confused by these lines.

journal_output.extend_from_slice(&sgx_intel_root_ca_cert_hash);
journal_output.extend_from_slice(&sgx_tcb_signing_cert_hash);
journal_output.extend_from_slice(&sgx_intel_root_ca_crl_hash);
journal_output.extend_from_slice(&sgx_pck_crl_hash);

These wordings are coming from the official Intel SGX DCAP docs and SGXDataCenterAttestationPrimitives repo.

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

No branches or pull requests

2 participants