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
Copy file name to clipboardExpand all lines: README.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -440,6 +440,26 @@ match result {
440
440
441
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
442
443
+
### Verifying an Event's Signature
444
+
445
+
To verify the authenticity of an event, call the `verify_signature` function on the event instance. This requires the public key that matches the private key used for signing on the server.
446
+
447
+
The function first verifies the event's hash, and then checks the signature. If any verification step fails, it returns an error:
The `signing_key` can be used when configuring the container to sign outgoing events. The `verification_key` can be passed to `verify_signature` when verifying events read from the database.
510
+
473
511
#### Configuring the Client Manually
474
512
475
513
In case you need to set up the client yourself, use the following functions to get details on the container:
0 commit comments