Background
Our TEE verification flow currently parses the full tcb_info.json (and also tcb_info_dev.json) inside the contract for every attestation that is verified. This significantly increases gas usage and contributes to verify_tee costing ~270 TGas per call (for 2 users). The relevant values from tcb_info.json.
improvements:
- Only 5 fields of the json file are really needed.
- all the values are known in compile time, and should not require parsing a json that could fail.
- Move them to a more efficient (storage/gas) storage location /stract
open:
How do we handle leftover data from the existing json files?
User Story
As MPC user, I'd like my contract to be efficient as possible. allowing many MPC nodes participants.
Acceptance Criteria
New solution implemented.
- Need to test upgrade flow.
- test regular (existing) attestation verification follow
- if possible - measure gas costs
Resources & Additional Notes
No response