eventcertificate Client Website Verification Kit (D-16)
========================================================

This archive lets any university, training provider, ministry or corporate client host the
eventcertificate verification page on its own website (for example https://training.client.co.id/verify/).
Visitors scan the QR code on a certificate, badge, lanyard ID or tent card and the page runs the
Verification Seal / Digital Signature Check in their browser. No database is needed.

Contents
--------
- verify/index.html         Verification page (English, Bahasa Indonesia, Japanese; light and dark theme)
- verify/verify.css         Page styles
- verify/seal-check.js      Verification Seal / Digital Signature Check (ECDSA P-256 / SHA-256)
- verify/verify.js          Page text and layout
- verify/verify-config.js   The PUBLIC key(s) this page trusts. It never holds a private key.
- verify/certificates.json  Optional certificate registry, used to look certificates up by number

Which certificates this page accepts
------------------------------------
A certificate shows "Official Verified Credential" only when its seal was made with a key listed in
verify/verify-config.js.
- A kit downloaded from your eventcertificate Task Pane already lists your organization's public key.
- The kit published on the Gravita website lists only the public demonstration key. Certificates
  sealed with it are shown as "Verified Sample Credential" and are not official certificates.
To trust another issuer, add its { kid, jwk } entry to publicKeys in verify-config.js.

How to put it on your website
-----------------------------
1. Upload the "verify/" folder to your web server or static hosting (Nginx, Caddy, Apache, IIS, S3,
   a WordPress subfolder). Serve it over https:// so the Digital Signature Check can run.
2. In the eventcertificate Task Pane, set "Verification Page URL" to that folder, ending in /verify/
   (for example https://training.client.co.id/verify/), before generating your batch.
3. Every QR code then points to your page, for example
   https://training.client.co.id/verify/?v=es256.<certificate details>.<seal>

Certificate number lookup
-------------------------
If a QR code cannot hold the full sealed link, it carries https://.../verify/?c=<certificate number>
instead. The page then finds that number in verify/certificates.json and checks the seal stored there.
Export certificates.json from the Task Pane for every batch you want to be found this way.

Keep your key safe
------------------
Your private key stays on the computer that issues certificates (Task Pane, Export/Import Key Backup).
Never upload the key backup file and never put it in the verify/ folder.

Opening the page from a folder
------------------------------
index.html also works when opened straight from this folder: paste a verification link to check it.
Certificate number lookup needs the page to be served by a web server.
