Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2b69fc1 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 21, 2024
1 parent bd3809f commit 031ff6e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script src="wasm_exec.js"></script>
<script>
function verify() {
let repo = "tinfoilanalytics/nitro-private-inference-image"
let repo = document.getElementById("repo").value;
let digest = document.getElementById("digest").value;
let domain = document.getElementById("domain").value;
let log = document.getElementById("log");
Expand All @@ -28,7 +28,7 @@
go.run(result.instance);
addLog("WASM verifier loaded");

let bundleURL = "https://api.github.com/repos/"+repo+"/attestations/sha256:" + digest;
let bundleURL = "https://api.github.com/repos/" + repo + "/attestations/sha256:" + digest;
addLog("Fetching attestation bundle from " + bundleURL);
let sigstorePromise = fetch(bundleURL)
.catch(error => {
Expand Down Expand Up @@ -124,23 +124,31 @@ <h1 class="text-2xl font-bold">Tinfoil Verifier</h1>
class="border border-gray-200 p-4 mt-4"
>
<div class="flex flex-row gap-4 w-full mb-5">
<div class="w-[60%]">
<div class="w-[50%]">
<p class="text-gray-600 mb-2">EIF image hash (sha256):</p>
<input
id="digest"
class="border border-gray-200 p-2 w-full"
type="text"
value="c6a7de8bd85b58d958a64ee244453fa49165fa35864c8a5af333ee65b922cc8d">
</div>
<div class="w-[30%]">
<div class="w-[20%]">
<p class="text-gray-600 mb-2">URL:</p>
<input
id="domain"
class="border border-gray-200 p-2 w-full"
type="text"
value="inference-demo.tinfoil.sh">
</div>
<div class="w-[10%] flex items-end">
<div class="w-[30%]">
<p class="text-gray-600 mb-2">Repo:</p>
<input
id="repo"
class="border border-gray-200 p-2 w-full"
type="text"
value="tinfoilanalytics/nitro-private-inference-image">
</div>
<div class="w-[5%] flex items-end">
<button class="bg-emerald-500 text-white px-4 py-2 w-full" onclick="verify()">Verify</button>
</div>
</div>
Expand Down

0 comments on commit 031ff6e

Please sign in to comment.