From f92b7a6ac6e1b2ca216c3aa7eb8d17b5f0d10430 Mon Sep 17 00:00:00 2001 From: Andrew Twyman Date: Fri, 8 Nov 2024 17:12:43 +0700 Subject: [PATCH] Updates while writing POD docs --- examples/pod-gpc-example/src/podExample.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/pod-gpc-example/src/podExample.ts b/examples/pod-gpc-example/src/podExample.ts index 788524d4ae..e69811814c 100644 --- a/examples/pod-gpc-example/src/podExample.ts +++ b/examples/pod-gpc-example/src/podExample.ts @@ -182,6 +182,9 @@ export async function podDemo(): Promise { // recreate it without signing again. const loadedPOD = POD.load(sampleEntries, signature, signerPublicKey); console.log("Loaded POD content ID", loadedPOD.contentID); + if (!loadedPOD.verifySignature()) { + throw new Error("Bad POD!"); + } ////////////////////////////////////////////////////////////////////////////// // POD contents can be serialized to/from a JSON-compatible format, which can