fix: verifier fix

This commit is contained in:
Codetrauma
2024-11-08 17:25:26 +07:00
parent ade69d2cc1
commit a30f6890aa

View File

@@ -140,7 +140,8 @@ app.post('/verify-attestation', async (req, res) => {
try {
const notaryUrl = convertNotaryWsToHttp(attestation.meta.notaryUrl);
const notaryPem = await fetchPublicKeyFromNotary(notaryUrl);
const presentation = verify(attestation.data, notaryPem);
console.log(notaryPem)
const presentation = await verify(attestation.data, notaryPem);
const presentationObj = {
sent: presentation.sent,