Skip to main content

Module conversions

Module conversions 

Source
Expand description

Helper functions for converting events between different formats.

This module provides utilities for:

  • Building event JSON values
  • Serializing event references
  • Extracting signatures from canonical JSON
  • Converting between PDU formats

This module is package-private; Things marked as pub are not actually public, unless re-exported elsewhere.

Functionsยง

build_unsigned
Build the unsigned section for client events.
extract_signatures
Extract signature maps from a canonical event object.
raw_json
Serialize a JSON value into a raw JSON box.
serialize_hashed_event_ref
Serialize a hashed event reference to JSON.