├── README.md └── code.sol /README.md: -------------------------------------------------------------------------------- 1 | # Fake-Product-Identification-Using-Blockchain 2 | Fake Product Identification by QR Code Using Blockchain Project with Source Code, Documents and Youtube Video Implementation 3 | 4 | ## Youtube Video : https://youtu.be/8nVStd41gxE 5 | 6 | Screenshot 2023-05-05 at 9 34 46 AM 7 | 8 | 9 | ### Abstract : 10 | 11 | Abstract : The manufacturing as well as marketing of counterfeit or duplicate products and goods leads to consequential financial, health and safety threat to end users. It also has adverse effect on the economic growth of original manufacturers and businesses through revenue loss, product defamation, downtime, replacement expenses, forcing many brands to spend money on fighting counterfeits, trust among business partners can also be at risk, stealing sales etc. To overcome and stop these crucial effects of counterfeiting, a blockchain based system is used in identification of original products and also detects duplicate products to ensure the identification of original goods. This approach to cut down counterfeit as fake ensures that consumers won't completely rely on merchants to determine if products are original or forged. 12 | 13 | ### Base Research Paper : https://www.itm-conferences.org/articles/itmconf/pdf/2022/04/itmconf_icacc2022_03015.pdf 14 | 15 | ### Hi there 👋 16 | 17 | You Can use this Beautiful Project for your college Project and get good marks too. 18 | 19 | Email me Now **vatshayan007@gmail.com** to get this Full Project Code, PPT, Report, Synopsis, Video Presentation and Research paper of this Project. 20 | 21 | ### Need Code, Documents & Explanation video ? 22 | 23 | ## How to Reach me : 24 | 25 | ### Mail : vatshayan007@gmail.com 26 | 27 | ### WhatsApp: **+91 9310631437** (Helping 24*7) **[CHAT](https://wa.me/message/CHWN2AHCPMAZK1)** 28 | 29 | ### Website : https://www.finalproject.in/ 30 | 31 | ### 1000 Computer Science Projects : https://www.computer-science-project.in/ 32 | 33 | ### Youtube Video : https://youtu.be/8nVStd41gxE 34 | 35 | Mail/Message me for Projects Help 🙏🏻 36 | 37 | Getting Errors / problems : Contact me will help you ! 38 | -------------------------------------------------------------------------------- /code.sol: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.8.0; 2 | 3 | contract fakeProdDetector { 4 | mapping(bytes32 => Product) public productList; 5 | 6 | struct Product { 7 | bytes32 product_id; 8 | string product_name; 9 | uint product_price; 10 | bool isFake; 11 | 12 | } 13 | 14 | 15 | // function toBytes(address x) returns (bytes b) { 16 | // b = new bytes(20); 17 | // for (uint i = 0; i < 20; i++) 18 | // b[i] =byte(uint8(uint(x) / (2**(8*(19 - i))))); 19 | 20 | // // return b; 21 | // } 22 | 23 | function uploadProduct(bytes32 id, string memory name, uint price) public { 24 | 25 | require(productList[id].product_id != 0, "Product found and already Exists"); 26 | productList[id] = Product({ 27 | product_id: id, 28 | product_name: name, 29 | product_price: price, 30 | isFake: false 31 | }); 32 | 33 | 34 | } 35 | 36 | function reportFakeProduct(bytes32 productId) public { 37 | require(productList[productId].product_id == 0, "Product not found"); 38 | productList[productId].isFake = true; 39 | } 40 | 41 | function isFakeProduct(bytes32 productId) public view returns (bool) { 42 | return productList[productId].isFake; 43 | } 44 | 45 | } 46 | 47 | 48 | // This is Demo Code 49 | // For full Project Code please reach out to us 50 | // Mail : vatshayan007@gmail.com 51 | --------------------------------------------------------------------------------