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