From 21ff01fd35abc2aacd6d80d578eb5edd663a81d1 Mon Sep 17 00:00:00 2001 From: Dimitris Mouris Date: Wed, 10 Dec 2025 15:52:39 -0500 Subject: [PATCH] feat: Add toggle to allow choosing between Intel and AMD --- frontend/components/verification-form.tsx | 28 ++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/frontend/components/verification-form.tsx b/frontend/components/verification-form.tsx index 126bcb9..48ac6c1 100644 --- a/frontend/components/verification-form.tsx +++ b/frontend/components/verification-form.tsx @@ -18,6 +18,7 @@ export function VerificationFormWithLabel() { uploadedAt?: string; error?: string; } | null>(null); + const [attestationType, setAttestationType] = useState<'intel' | 'amd'>('intel'); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); @@ -57,7 +58,7 @@ export function VerificationFormWithLabel() { headers: { "Content-Type": "application/json", }, - body: JSON.stringify({ hex: quoteHex }), + body: JSON.stringify({ hex: quoteHex, type: attestationType }), }); const verifyData = await verifyResponse.json(); @@ -281,6 +282,31 @@ export function VerificationFormWithLabel() { {/* Form */}
+
+ Platform + + +