Skip to main content

Module power_sort

Module power_sort 

Source

Functionsยง

add_event_auth_chain ๐Ÿ”’
Add the event with the given event ID and all the events in its auth chain that are in the full conflicted set to the graph.
is_power_event_id ๐Ÿ”’
Whether the given event ID belongs to a power event.
power_level_for_sender ๐Ÿ”’
Find the power level for the sender of the event of the given event ID or return a default value of zero.
power_sort ๐Ÿ”’
Enlarge the given list of conflicted power events by adding the events in their auth chain that are in the full conflicted set, and sort it using reverse topological power ordering.