# null Source: https://inflection.mintlify.app/architecture ## High-Level Architecture The **Inflection DID architecture** is a layered system balancing **security, scalability, and privacy**. It processes **stablecoin transactions** to build a **reputation graph**, generates **AI-driven economic profiles as VCs**, and enables **private sharing via ZKPs**. * **On-chain components** ensure immutability. * **Off-chain components** handle computation and storage for efficiency. ### Layers * **Identity Layer:** Creates and anchors DIDs to user wallets. * **Data Layer:** Monitors transactions and builds reputation graphs. * **Profile Layer:** Generates VCs from AI-inferred profiles. * **Sharing Layer:** Facilitates private, interoperable sharing via ZKPs and an SDK. *** ## Diagram The following Mermaid diagram illustrates the architecture, showing data flows from wallet authentication to profile sharing. *(Render this in a tool like [Mermaid Live Editor](https://mermaid.live))* ```mermaid graph TD A["User Wallet"] -->|Authenticates| B["DID Creation"] B -->|Anchors| C["Identity Registry (On-Chain)"] D["Stablecoin Transactions"] -->|Monitored| E["Transaction Listener"] E -->|Feeds Data| F["Reputation Graph Engine"] F -->|Computes Metrics| G["AI Profile Generator"] G -->|Outputs| H["Verifiable Credential (VC)"] H -->|Stores Hash| C H -->|Stores Data| I["Decentralized Storage (IPFS)"] J["External Protocol (e.g., Lending dApp)"] -->|Requests Proof| K["ZKP System"] K -->|Generates/Verifies| L["Inflection SDK"] L -->|Queries| C L -->|Fetches| I M["Privacy & Interoperability"] -.-> K M -.-> L ``` # null Source: https://inflection.mintlify.app/components/ai-profile-generator The AI Profile Generator theoretically processes reputation graph data to create economic profiles, such as credit scores, formatted as Verifiable Credentials (VCs). Using machine learning models, it infers user attributes from transaction patterns, enabling dynamic and accurate profile generation for financial applications. ## Theoretical Role * **Data Aggregation**: Collects metrics (e.g., transaction volume, frequency) from the graph. * **AI Inference**: Applies models to predict economic attributes (e.g., creditworthiness). * **VC Output**: Formats profiles as W3C-compliant VCs for sharing. ```mermaid flowchart LR A[Reputation Graph Data] -->|Volume, Frequency| B[AI Model] B -->|Inference| C[Profile Score] C -->|Formats| D[Verifiable Credential] ``` ## Explanation * **Input to Output**: Graph metrics are transformed into VC claims. * **AI Role**: Inference ensures accurate, dynamic profiles. # null Source: https://inflection.mintlify.app/components/decentralized-storage Decentralized Storage ensures Verifiable Credentials (VCs) and profile data are stored in a tamper-resistant, globally accessible manner, using protocols like IPFS. By storing data off-chain and anchoring hashes on-chain, this component supports scalability while maintaining verifiability. ## Theoretical Role * **Data Distribution**: Stores VCs across a decentralized network. * **Content Addressing**: Generates unique hashes for data retrieval. * **On-Chain Linkage**: Anchors hashes in the IdentityRegistry for trust. ```mermaid graph LR A[VC Data] -->|Upload| B[Decentralized Network IPFS] B -->|Generates| C[IPFS Hash] C -->|Anchors| D[Identity Registry] E[External Protocol] -->|Fetches via Hash| B ``` ## Explanation * **Storage**: VCs are stored off-chain for scalability. * **Verification**: Hashes link to on-chain registry for trust. # null Source: https://inflection.mintlify.app/components/identity-registry The **IdentityRegistry** is a blockchain-based smart contract that serves as the **immutable foundation** for the Inflection DID system. It anchors **Decentralized Identifiers (DIDs)** to user wallet addresses, stores **Verifiable Credential (VC) hashes**, and tracks **reputation scores** derived from stablecoin transactions. By residing on a blockchain (e.g., **Ethereum** or **Sepolia** for testing), it ensures that identities are **tamper-proof** and **verifiable** by any protocol, supporting the system’s goal of a **decentralized economic identity layer**. *** ## Theoretical Role * **DID Anchoring:** Registers unique DIDs to prevent duplication and enable global lookup. * **VC Integration:** Stores hashes of VCs, linking off-chain data to on-chain proof. * **Reputation Tracking:** Maintains dynamic reputation scores, updated by transaction-driven processes. * **Verification Support:** Allows external protocols to confirm identity authenticity and profile validity. *** ```mermaid graph LR A[User Wallet] -->|Registers| B[IdentityRegistry] B -->|Stores| C[DID] B -->|Stores| D[VC Hash] B -->|Updates| E[Reputation Score] F[External Protocol] -->|Queries| B B -->|Returns| G[Verified Identity Data] ``` # null Source: https://inflection.mintlify.app/components/index The **Inflection DID system** comprises the following theoretical components, each focused on enabling **DIDs, VCs, and ZKPs** for a decentralized economic identity layer: *** ## IdentityRegistry Smart Contract * Anchors **DIDs** and **VC hashes** on-chain. * Ensures **immutability** and **verifiability**. *** ## Transaction Listener * Monitors **stablecoin transactions**. * Feeds **reputation data** into the system. *** ## Reputation Graph Engine * Models **user interactions** as a graph. * Computes **reputation metrics** for economic profiling. *** ## AI Profile Generator * Processes **graph data** using AI. * Produces **economic profiles** expressed as **Verifiable Credentials (VCs)**. *** ## Decentralized Storage * Stores **VCs off-chain** for **scalability and accessibility**. * Example: **IPFS** or similar systems. *** ## Zero-Knowledge Proof System * Enables **privacy-preserving proofs** of profile attributes. * Allows claims (e.g., *“Reputation > 200”*) without exposing underlying data. *** ## Inflection SDK * Provides **developer tools** to integrate external protocols. * Enables **verification** and **profile queries** across ecosystems. *** Each component is detailed in its **respective page**, including **theoretical roles** and **supporting diagrams**. # null Source: https://inflection.mintlify.app/components/inflection-sdk The Inflection SDK is a theoretical interface for external protocols (e.g., lending dApps) to verify DIDs, VCs, and ZKPs. It abstracts complex blockchain and cryptographic operations, enabling seamless integration with Inflection's identity layer while preserving user privacy. ## Theoretical Role * **VC Verification**: Validates VCs against on-chain hashes and signatures. * **ZKP Validation**: Verifies proof correctness without data exposure. * **Multi-Chain Support**: Queries identities across compatible blockchains. ```mermaid graph TD A[External dApp] -->|Calls| B[Inflection SDK] B -->|Queries| C[IdentityRegistry] B -->|Fetches| D[Decentralized Storage] B -->|Verifies| E[ZKP System] B -->|Returns| F[Verified Profile Claim] ``` # null Source: https://inflection.mintlify.app/components/reputation-graph-engine The Reputation Graph Engine models user interactions as a graph, where nodes represent DIDs or wallet addresses, and edges denote stablecoin transactions. It computes reputation metrics, such as transaction volume or frequency, to inform economic profiles. This component is theoretically designed to handle large-scale interaction data, supporting scalable reputation calculations. ## Theoretical Role * **Graph Construction**: Builds a network of nodes (users) and edges (transactions). * **Metric Computation**: Applies algorithms (e.g., weighted PageRank) to derive reputation scores. * **Data Querying**: Provides queryable outputs for AI-driven profile generation. ```mermaid graph TD A[User DID A] -- Tx Volume: 100 --> B[User DID B] B -- Tx Volume: 50 --> C[User DID C] A -- Tx Volume: 200 --> C D[Graph Engine] -->|Computes| E[Reputation Metrics] E -->|Outputs| F[Score Data] ``` # null Source: https://inflection.mintlify.app/components/transaction-listener The **Transaction Listener** is a theoretical component that monitors **stablecoin transactions** (e.g., **USDC transfers**) on the Inflection blockchain. It captures **real-time transaction data**—such as **sender, receiver, and amount**—to feed into the **reputation graph**, enabling **dynamic updates** to user profiles. This component bridges **on-chain activity** with **off-chain processing**, ensuring **responsiveness without centralized control**. ## Theoretical Role * **Event Monitoring**: Listens for blockchain events (e.g., ERC20 `Transfer` events). * **Data Extraction**: Parses transaction details (e.g., `from`, `to`, `value`) for reputation metrics. * **Integration Trigger**: Initiates updates to the reputation graph and smart contract. ## Diagram The following Mermaid sequence diagram shows the transaction monitoring flow. *(Render this in [Mermaid Live Editor](https://mermaid.live))* ```mermaid sequenceDiagram participant BC as Blockchain participant TL as Transaction Listener participant RGE as Reputation Graph Engine participant IR as IdentityRegistry BC->>TL: Emit Transfer Event TL->>RGE: Send Parsed Data RGE->>IR: Update Reputation Score IR->>BC: Store Updated Score ``` # null Source: https://inflection.mintlify.app/components/zero-knowledge-proof-system The Zero-Knowledge Proof (ZKP) System enables users to prove specific profile attributes (e.g., "reputation score > 200") without revealing the underlying data. Using cryptographic circuits and succinct proofs (e.g., SNARKs), it ensures privacy while maintaining verifiability across protocols. ## Theoretical Role * **Circuit Design**: Defines proofs for attributes (e.g., inequality checks). * **Proof Generation**: Computes proofs off-chain for efficiency. * **Verification**: Supports on-chain or off-chain validation for interoperability. ## Diagram The following Mermaid sequence diagram illustrates the ZKP flow. Render it in Mermaid Live Editor. ```mermaid sequenceDiagram User->>ZKP System: Generate Proof (score > 200) ZKP System->>External Protocol: Send Proof + Public Signals External Protocol->>Inflection SDK: Validate Proof Inflection SDK->>External Protocol: Valid/Invalid ``` ## Explanation * **Privacy**: Proofs reveal only necessary claims. * **Verification**: SDK validates proofs for trust. # null Source: https://inflection.mintlify.app/introduction ## Overview The **Inflection DID system** is a decentralized identity framework designed to empower users with portable, AI-enhanced economic profiles derived from stablecoin transactions. It establishes a **Global Economic Identity Layer**—a decentralized reputation graph that facilitates trustless financial interactions, such as credit assessment and lending, across blockchains. This theoretical documentation outlines the conceptual foundations of the system, focusing on: * **Decentralized Identifiers (DIDs)** * **Verifiable Credentials (VCs)** * **Zero-Knowledge Proofs (ZKPs)** These ensure **privacy, interoperability, and user sovereignty**. By leveraging **blockchain immutability** and **off-chain scalability**, Inflection DID enables users to control their financial reputation and share it selectively with external protocols without centralized intermediaries. The system aligns with **W3C DID** and **VC standards**, ensuring compatibility with diverse blockchain ecosystems. *** ## Key Concepts * **Decentralized Identifiers (DIDs):**\ Unique, user-controlled identifiers tied to cryptographic keys, enabling self-sovereign identity. * **Verifiable Credentials (VCs):**\ Cryptographically signed digital proofs of attributes (e.g., reputation scores), verifiable by third parties. * **Zero-Knowledge Proofs (ZKPs):**\ Cryptographic techniques to prove claims (e.g., *"reputation > 200"*) without revealing underlying data. * **Reputation Graph:**\ A network model of user interactions, where nodes are users and edges represent stablecoin transactions, used to compute economic profiles. *** ## Benefits * **Privacy:** Selective disclosure via ZKPs protects sensitive data. * **Interoperability:** DIDs and VCs work across blockchains (e.g., Ethereum, Polygon). * **Scalability:** Off-chain processing for computation-intensive tasks. * **Decentralization:** Eliminates reliance on central authorities. *** ## Target Audience This documentation targets **stakeholders, architects, and developers** seeking a theoretical understanding of **Inflection DID** for planning and evaluation.