Marmot-TS
    Preparing search index...

    Type Alias AppDataUpdateCallback

    AppDataUpdateCallback: (
        componentId: number,
        currentData: Uint8Array | undefined,
        updates: Uint8Array[],
    ) => Uint8Array | undefined

    The application logic that interprets the update payloads of app_data_update proposals for a component (draft-ietf-mls-extensions-09 Section 4.7).

    Receives the componentId, the current data stored for the component (or undefined if no entry exists) and the update payloads for the component in commit order. Returns the new data to store for the component, or undefined if the application considers the updates invalid, which invalidates the whole proposal list.

    Type Declaration

      • (
            componentId: number,
            currentData: Uint8Array | undefined,
            updates: Uint8Array[],
        ): Uint8Array | undefined
      • Parameters

        • componentId: number
        • currentData: Uint8Array | undefined
        • updates: Uint8Array[]

        Returns Uint8Array | undefined