Skip to content

Commit

Permalink
Deploying to gh-pages from @ 82d4f61 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Dec 8, 2024
1 parent ca5aabb commit 172f495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import (
"encoding/base64"
"syscall/js"

"github.com/tinfoilanalytics/verifier/pkg/nitro"
"github.com/blocky/nitrite"

"github.com/tinfoilanalytics/verifier/pkg/models"
"github.com/tinfoilanalytics/verifier/pkg/sigstore"
)

Expand Down Expand Up @@ -44,12 +46,11 @@ func verifyNitro() js.Func {
panic(err)
}

nitroMeasurements, err := nitro.VerifyAttestation(attDocBytes)
att, err := nitrite.Verify(attDocBytes, nitrite.VerifyOptions{})
if err != nil {
panic(err)
}

return nitroMeasurements.String()
return models.MeasurementFromDoc(att.Document).String()
})
}

Expand Down
Binary file modified tinfoil-verifier.wasm
Binary file not shown.

0 comments on commit 172f495

Please sign in to comment.