/verify?t=....| AWS / Chain | What it does on Verify |
|---|---|
| API Gateway | Receives the request at /verify?t=... and forwards it to Lambda. |
| AWS Lambda | Decodes the token → validates timestamp → verifies signature → loads certId from DynamoDB → recomputes keccak256(canonicalString) and compares to certHash → returns status & public fields. |
| Issuer Registry (Ethereum) | Verifies the EIP‑712 signature and checks that the recovered signer is authorized on‑chain (registry.isAuthorized(address)). |
| Amazon DynamoDB | Holds certificate records keyed by certId (fields: status, issuerLab, standard, officialLink, canonicalString). |
/verify?t=....| Service | Rôle pendant la vérification |
|---|---|
| API Gateway | Reçoit la requête /verify?t=... et la transmet à Lambda. |
| AWS Lambda | Décode le jeton → valide la fenêtre temporelle → vérifie la signature → charge le certId depuis DynamoDB → recalcule keccak256(canonicalString) et compare à certHash → renvoie l’état & les champs publics. |
| Issuer Registry (Ethereum) | Vérifie la signature EIP‑712 et contrôle que le signataire récupéré est autorisé on‑chain (registry.isAuthorized(address)). |
| Amazon DynamoDB | Stocke les certificats indexés par certId (champs : status, issuerLab, standard, officialLink, canonicalString). |