Skip to content

Commit

Permalink
Updates while writing POD docs
Browse files Browse the repository at this point in the history
  • Loading branch information
artwyman committed Dec 10, 2024
1 parent 77f5c78 commit f92b7a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/pod-gpc-example/src/podExample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ export async function podDemo(): Promise<boolean> {
// 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
Expand Down

0 comments on commit f92b7a6

Please sign in to comment.