{"slug":"coord-taifoon-dev-v1-x402-class-tee-typed-compile-3156cc","title":"Rules compiled into typed questions inside Taifoon's Intel TDX enclave (Phala Cl","host":"coord.taifoon.dev","method":"POST","resource":"https://coord.taifoon.dev/v1/x402/class/tee.typed.compile","category":"code","description":"Rules compiled into typed questions inside Taifoon's Intel TDX enclave (Phala Cloud). The answer carries two TDX quotes, both verified by Phala's verifier before you are charged: one binds the result and the enclave key, one binds that key to sha256 of your nonce. The compose-hash in RTMR3 proves wh","price_listed":0.001,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:143","eip155:42161","eip155:4663","eip155:5042","eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"nonce":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","rules":"Rate the urgency of the ticket from 1 to 5. Say whether a refund is needed."},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"nonce":{"description":"optional: your challenge (e.g. the sha256 of your payload); the challenge quote binds the enclave key to sha256 of it","pattern":"^[0-9a-fA-F]{8,128}$","type":"string"},"rules":{"description":"the rules in words, one clause per rule; compiled into typed questions inside the enclave","maxLength":1000,"minLength":4,"type":"string"}},"required":["rules"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"headers":{"additionalProperties":{"type":"string"},"type":"object"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"queryParams":{"additionalProperties":{"type":"string"},"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"challenge":{"description":"nonce, report_data = address ‖ sha256(nonce) ‖ 0^12, quote (TDX v4, hex)","type":"object"},"class":{"const":"tee.typed.compile","type":"string"},"enclave":{"description":"mode tdx, address (the enclave key), app_id, mrtd, report_data = sha256(JSON(result)) ‖ address ‖ 0^12, quote (TDX v4, hex)","type":"object"},"result":{"description":"class, rules, ready, questions[]: the compile","type":"object"},"verification":{"description":"verifier answers on both quotes, same_td, compose (RTMR3 replay, compose-hash, catalogue), checks","type":"object"}},"required":["class","result","enclave","challenge","verification"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Rules compiled into typed questions inside Taifoon's Intel TDX enclave (Phala Cloud). The answer carries two TDX quotes, both verified by Phala's verifier before you are charged: one binds the result and the enclave key, one binds that key to sha256 of your nonce. The compose-hash in RTMR3 proves which code runs. 0.001 USDC a request. Send { rules, nonce? }.","last_updated":"2026-10-12T07:16:55.126Z","schemes":["exact"]}