
Hiraishin
DePIN Find Pets Network. Bringing Lost Pets Home with Blockchain and AirTag Technology.
Demo
About
| Slogan: "Helping Your Furry Friends Find Their Way Home" Imagine a world where losing your beloved dog doesn't mean losing hope. Our innovative project leverages the principles of Apple’s AirTag technology combined with the security of blockchain to create a community-driven network for locating lost pets. ### Problem Statement: - High Incidence of Lost Pets: Losing a pet is a common and distressing experience for many pet owners. The current methods for finding lost pets, such as posting flyers or relying on social media, are often inefficient and ineffective. - Lack of Real-Time Tracking: Traditional methods lack real-time tracking capabilities, making it difficult to pinpoint the exact location of a lost pet. This delay can significantly reduce the chances of finding the pet quickly and safely. - Limited Community Involvement: Without a structured system to incentivize community involvement, there is often a lack of motivation for people to actively participate in searching for lost pets. This limits the potential for a coordinated and effective search effort. ### Solution: - Blockchain-Enabled Tracking Network: Our solution utilizes a blockchain-based network to securely and accurately track lost pets. By leveraging Apple’s AirTag technology and combining it with blockchain, we provide a robust and tamper-proof system for real-time location tracking. - Real-Time Updates and Encryption: The system uses homomorphic encryption to ensure that location data is securely transmitted and stored on the Inco blockchain. Users can report sightings and update the pet's location in real-time, significantly improving the chances of a swift reunion. - Incentivized Community Participation: To foster active community involvement, we implement a rewards system within the app. Users earn rewards for contributing to the search efforts, creating a motivated and engaged network of pet lovers dedicated to bringing lost pets home.
How it's made
### How It Works: - Public Key Generation and Data Storage: Utilizing private keys stored in iCloud Keychain, the system generates public keys for the next 48 hours. Apple use P224 and counter to generate a public and lookup key. These public keys are securely stored in the Data Available Layer (DA), ensuring they are unique and leak-proof. - Homomorphic Encryption and Location Updates: Final location data is encrypted using homomorphic encryption and uploaded to the INCO blockchain. If a match is found in the DA, the latest location can also be updated and uploaded by other users. ### Meet Problem Some user cannot generate gena, but can use v_Data to extract the private key, follow my gist to solve this problem https://gist.github.com/kidneyweakx/bc994984c77654986eb978ca489a443c ### How to use this package | hiraishin is a monorepo managed using `turbo`. You can find the source code for each package in the [`apps`](./apps/) and [`packages`](./packages/) directory. - `apps` + findmydog: a python lib to find ur dog + location-da: DA part to send data to avail + web: frontend to make user to update location or get reward ### Step By Step 1. findmydog ``` cd apps/findmydog chmod +x ./extract_key.swift ./extract_key.swift ### Copy ur devices to plist cp xxxx.plist ./decrypted.plist ``` Python part ``` poetry install # Need to jump to step 2 to run an avail server poetry run python publickey_gen.py ``` 2. avail server ``` cd apps/location-da pnpm run avail npx ts-node ./src/app.ts ``` 3. contract ``` npx hardhat deploy:enc --network inco ```