# vatshayan/fake-product-identification-using-blockchain architecture

> Architecture diagram of the GitHub repository vatshayan/fake-product-identification-using-blockchain, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vatshayan/fake-product-identification-using-blockchain
- Repository: https://github.com/vatshayan/fake-product-identification-using-blockchain

## Overview

The README describes a QR-code and blockchain-based product-authentication project intended to identify original goods and detect counterfeits. The only source file is code.sol, but no source excerpt is available, so its specific responsibilities and runtime calls cannot be verified. The graph therefore shows only the documented high-level workflow; it does not assume registration, storage, or scanning details.

Main entry points: [`code.sol`](https://github.com/vatshayan/fake-product-identification-using-blockchain/blob/main/code.sol) (Blockchain identification)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authentication["Product authentication"]
  node_qr["QR identification"]
  node_blockchain["Blockchain identification<br/>[code.sol]"]
  node_outcome["Authenticity outcome"]
end

node_consumer(("Consumer"))

node_consumer -->|"scans product"| node_qr
node_qr -->|"identifies product"| node_blockchain
node_blockchain -->|"identifies original or duplicate"| node_outcome

click node_blockchain "https://github.com/vatshayan/fake-product-identification-using-blockchain/blob/main/code.sol"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_qr,node_blockchain,node_outcome toneBlue
class node_consumer toneIndigo
```

## Components

### Product authentication

- **QR identification**
- [Blockchain identification](https://github.com/vatshayan/fake-product-identification-using-blockchain/blob/main/code.sol): `code.sol`
- **Authenticity outcome**

### Other components

- **Consumer**

## Connections

- Consumer → QR identification: scans product (evidence: `README.md`)
- QR identification → Blockchain identification: identifies product (evidence: `README.md`)
- Blockchain identification → Authenticity outcome: identifies original or duplicate (evidence: `README.md`)
