Skip to main content

auth_difference

Function auth_difference 

Source
pub(super) fn auth_difference<'a, AuthSets, Id>(
    auth_sets: AuthSets,
) -> impl Stream<Item = Id>
where AuthSets: Stream<Item = AuthSet<Id>>, Id: Borrow<EventId> + Clone + Eq + Hash + Send + 'a,
Expand description

Returns auth events absent from at least one input chain.

The difference is the union of the chains minus their intersection. Repeated event IDs count once per input chain, and output order is arbitrary.