Skip to content

Commit

Permalink
book: add (id) TypeScript examples
Browse files Browse the repository at this point in the history
- Added `verifyId()` method
  • Loading branch information
RydalWater authored Jan 3, 2025
1 parent a7b4620 commit 3a3dce0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion book/snippets/js/src/event/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ export function eventID() {
let event = EventBuilder.textNote("This is a note").signWithKeys(keys);
console.log(` - Event ID: ${event.id.toBech32()}`);
console.log(` - Verify the ID & Signature: ${event.verify()}`);
console.log(` - Verify the ID Only: ${event.verifyId()}`);
// ANCHOR_END: access-verify
}
}

0 comments on commit 3a3dce0

Please sign in to comment.