Skip to content

Visualization Tool: MPIR Operator Lineage and Security Logic #133

@rivertalk

Description

@rivertalk

Feature: Visual tool for MPIR operator lineage and security logic

Objective

Develop a visualization tool to clearly display the lineage of operators in MPIR (Multi-Party Intermediate Representation), including which party performed each computation step, how data is transferred between parties, and how security logic is enforced to prevent privacy leaks.

Main requirements

  1. Lineage tracking: Graphically show each operator, data source, destination, and workflow.
  2. Security logic display: Each node should indicate security attributes, such as TEE (Trusted Execution Environment) execution, key distribution/verification, encrypted transmission, etc.
  3. Risk indication: If lineage/logic poses potential privacy risks, highlight those steps.
  4. Multi-party support: Distinguish roles such as Driver, data providers, TEE, etc., to reflect real MPC workflows.
  5. Auditability: Support visualization and auditing of MPIR security validation processes, including signatures, hashes, session nonces, etc.

Additional requirements

  • Should be implemented as a single-page HTML/JS tool, placed at ./mplang/tools/visualizer, and able to load compiler/runtime dump results for one-click visualization.
  • Support local file loading and URL parameter loading; no backend required, suitable for local and CI/audit environments.
  • Output format should be JSON, including operators, data nodes, edges, roles, execution environments, security states, risk flags, timeline, etc.
  • Visualization framework is not limited to Mermaid; recommend Cytoscape.js + elkjs (or G6, React Flow, D3), with Mermaid for static export/documentation.
  • Graph view should support multiple security attributes (e.g., encrypted state, TEE state, risk highlighting, edge types), extensible for filtering, replay, audit diff, etc.
  • Support one-click export: PNG/SVG/JSON/Mermaid subgraph; future extensions for risk rules, diff, timeline replay.
  • Implementation details/tech stack can be adjusted flexibly, prioritizing clear lineage and security logic, and visible risk indication.

Expected benefits

  • Lower MPC usage barrier, helping developers and auditors discover logical errors and privacy risks.
  • Facilitates security compliance audit and improves system trustworthiness.

Relevant code and documentation references


If you need further details or want to specify implementation approaches, please comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions