Skip to content

ZeroCopy handling of JSON collaterals, and various refactoring of Solana PCCS and DCAP Programs #42

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

Open
wants to merge 16 commits into
base: solana/dev
Choose a base branch
from

Conversation

preston4896
Copy link
Collaborator

Goals:

  • Both TcbInfo and EnclaveIdentity are stored onchain with C serialization using bytemuck, which allows casting / deserializing its raw data to its corresponding ZeroCopy structs without getting "Out of Memory" error.
  • Collateral validity checks in both Onchain PCCS and DCAP programs.
  • Program refactoring: VerifiedOutput and QuoteBuffer accounts can be deleted to re-claim rent, given that the users delete both of them simultaneously.
  • VerifiedOutput account structure update.
  • Re-organized SDK code to become more modular.
  • Full test suite can now be run directly with anchor test. (I don't recommend using Anchor's built-in test framework, we might need to consider using solana-program-test instead.)

See README for more details.

@preston4896 preston4896 requested a review from udsamani May 22, 2025 09:14
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.

1 participant