Marmot-TS
    Preparing search index...

    Function validateAppComponentIntegrity

    • Ported from validate_app_component_integrity_for_staged_commit: rejects a commit whose resulting GroupContext strips or rewrites Marmot component state outside the validated AppDataUpdate channel.

      Enforced rules, in order (mirrors the MDK rustdoc numbering):

      1. the app_data_dictionary extension itself may never be dropped if it was present before;
      2. structural nonremovable ids and every id in the RESULTING epoch's required-component-id list may never be dropped;
      3. every dictionary entry that changes relative to the current epoch — added, rewritten, or removed — must match one of this commit's own AppDataUpdate operations.

      Additionally, per account-identity-proof-v2.md "Lifecycle, authorization, and removal" ("It is not GroupContext state and MUST NOT be created, replaced, or removed with AppDataUpdate"), this rejects any commit whose AppDataUpdate ops target the leaf-only account identity proof component (0x8009), or whose resulting GroupContext dictionary carries a 0x8009 entry at all — mirroring MDK's CURRENT_PROFILE_LEAF_ONLY_APP_COMPONENTS.

      Parameters

      Returns CommitIntegrityViolation | undefined

      • refs/mdk/crates/cgka-engine/src/app_components.rs validate_app_component_integrity_for_staged_commit
      • Marmot v2 spec: app-components/README.md "Update Processing", "Unknown Data"