You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To verify the integrity of an event, call the `verify_hash` 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:
432
+
433
+
```rust
434
+
letresult=event.verify_hash();
435
+
matchresult {
436
+
Ok(()) =>// ...
437
+
Err(err) =>// ...
438
+
}
439
+
```
440
+
441
+
*Note that this only verifies the hash. If you also want to verify the signature, you can skip this step and call `verify_signature` directly, which performs a hash verification internally.*
442
+
429
443
### Using Testcontainers
430
444
431
445
Call the `Container::start_default()` function, get a client, and run your test code:
0 commit comments