Skip to main content

Module verify

Module verify 

Source
Expand description

Event-ID derivation and federation signature verification.

Verification resolves required signing keys through the server-key service and applies room-version signature rules. The local-keys validator returns an event in the form this server stores it, redacted when its content hash does not match.

Re-exportsΒ§

use ruma::CanonicalJsonObject; πŸ”’
use ruma::CanonicalJsonValue; πŸ”’
use ruma::EventId; πŸ”’
use ruma::OwnedEventId; πŸ”’
use ruma::RoomVersionId; πŸ”’
use ruma::canonical_json::redact; πŸ”’
use ruma::room_version_rules::RoomVersionRules; πŸ”’
use ruma::signatures::Verified; πŸ”’
use ruma::signatures::verify_event; πŸ”’
use serde_json::value::RawValue as RawJsonValue; πŸ”’
use tuwunel_core::Err; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::err; πŸ”’
use tuwunel_core::implement; πŸ”’
use tuwunel_matrix::event::gen_event_id_canonical_json; πŸ”’
use tuwunel_matrix::room_version; πŸ”’

FunctionsΒ§

stored_form πŸ”’
Builds the stored form of a verified event from the received one.

Type AliasesΒ§

Validated πŸ”’
An event’s derived ID, its stored form, and how it verified.