You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid parsing tcb_info.json inside contract to reduce TEE verification gas costs #1634
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
Activity