- Frontend
- Program
- Oracles
- Putting it all together

- Generate a 32-byte nonce, send it to the TEE RPC, and validate the returned TDX quote via PCCS collateral. We rely on
verifyTeeRpcIntegrityfrom the@magicblock-labs/ephemeral-rollups-sdk; if the quote fails verification, the UI halts. - With integrity confirmed, the wallet asks the RPC for a challenge that is scoped to its public key, signs it, and exchanges the signature for a short-lived authorization token using
getAuthToken. - The token is appended as a query string when opening the Solana connection so every request is tied to the attested session.
PER Lifetime and Anonymity Window
MagicBlock PER is a parallel execution layer that settles back to Solana; it is not one rollup instance per user.For privacy, two windows matter:- Session window: your PER auth token is short-lived (
getAuthTokenreturnsexpiresAt). When it expires, the client must re-authenticate. - Delegation window: your private account access on PER starts when accounts are delegated and ends when they are undelegated/committed back to Solana.




