Derives the StateNotifications produced by a single accepted commit
(convergence.md "Applying the selected branch") — a pure before/after diff
between parentState and resultingState, every entry attributed to
commitDigest. Ported from MDK's group_state_changes.rs split: this
function performs no I/O and holds no ledger; it only diffs two states.
Emits in a fixed order so two calls over the same commit produce a
byte-identical result (T-03-31): epochAdvanced, then memberAdded (sorted
ascending by pubkey), then memberRemoved (sorted ascending by pubkey, no
actor — the committer is not visible to this pure diff), then
componentChanged (sorted ascending by component id), then selfRemoved
when the resulting state is the removedFromGroup tombstone and the parent's
was not.
Derives the StateNotifications produced by a single accepted commit (
convergence.md"Applying the selected branch") — a pure before/after diff betweenparentStateandresultingState, every entry attributed tocommitDigest. Ported from MDK'sgroup_state_changes.rssplit: this function performs no I/O and holds no ledger; it only diffs two states.Emits in a fixed order so two calls over the same commit produce a byte-identical result (T-03-31):
epochAdvanced, thenmemberAdded(sorted ascending by pubkey), thenmemberRemoved(sorted ascending by pubkey, noactor— the committer is not visible to this pure diff), thencomponentChanged(sorted ascending by component id), thenselfRemovedwhen the resulting state is theremovedFromGrouptombstone and the parent's was not.