Marmot-TS
    Preparing search index...
    • 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.

      Parameters

      • args: {
            commitDigest: Uint8Array;
            parentState: ClientState;
            resultingState: ClientState;
        }

      Returns StateNotification[]