project screenshot 1
project screenshot 2
project screenshot 3

none

Capture an image in a React Native app, sign it with MetaMask, encrypt its hash using Lit Protocol, and store both the encrypted data and the image on Pinata. Users can later verify the image owner by decrypting the hash, ensuring secure and verifiable image ownership.

none

Created At

StarkHack

Project Description

This project involves a React Native application that captures images using the device's camera and then ensures their security and verifiability through a series of steps. First, images are captured using the react-native-camera library. Once an image is taken, its data is hashed and signed using MetaMask, providing a digital signature that confirms the image's authenticity and ownership. The hash of the image is then encrypted using Lit Protocol, which offers decentralized encryption to secure the data. Both the encrypted hash and the image are stored on Pinata, leveraging IPFS for decentralized and immutable storage. This setup ensures that the image data is tamper-proof and permanently accessible. To verify ownership, users can retrieve the encrypted hash from Pinata and decrypt it with Lit Protocol, allowing them to compare the decrypted hash with the hash of the image in question. This process provides a robust solution for secure and verifiable digital image management.

How it's Made

This project was built using a combination of cutting-edge technologies to ensure secure and verifiable digital image management. The React Native framework was used to develop the mobile application, with the react-native-camera library enabling image capture directly from the device's camera. Once an image is captured, its data is hashed using the SHA-256 algorithm and then signed using MetaMask, which integrates the Ethereum blockchain to provide a digital signature that authenticates the image. The Lit Protocol was employed to encrypt the image hash, offering decentralized encryption that ensures only authorized users can decrypt and access the hash. Both the encrypted hash and the image are stored on Pinata, which utilizes the IPFS (InterPlanetary File System) for decentralized and immutable storage, ensuring the data remains tamper-proof and permanently accessible. The verification process allows users to fetch the encrypted hash from Pinata, decrypt it using Lit Protocol, and compare it with the hash of the provided image to verify ownership. This seamless integration of React Native, MetaMask, Lit Protocol, and Pinata results in a robust solution for managing and verifying digital images securely.

background image mobile

Join the mailing list

Get the latest news and updates