eventsourcingdb 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -430,7 +430,7 @@ eventType = await client.readEventType("io.eventsourcingdb.library.book-acquired
|
|
|
430
430
|
To verify the integrity of an event, call the `verifyHash` function on the event instance. This recomputes the event's hash locally and compares it to the hash stored in the event. If the hashes differ, the function returns an error:
|
|
431
431
|
|
|
432
432
|
```typescript
|
|
433
|
-
event.
|
|
433
|
+
event.verifyHash();
|
|
434
434
|
```
|
|
435
435
|
|
|
436
436
|
*Note that this only verifies the hash. If you also want to verify the signature, you can skip this step and call `verifySignature` directly, which performs a hash verification internally.*
|