Inspiration

Mobility is an integral part of everyone's life. According to statistics, there is one death in four minutes due to a road accident in India. This situation worsens during winters. More number of people died due to road accidents in South Asia in 2013-23, than all of our wars put together. One big reason is that there is very little driver accountability.

There is one death every four minutes due to a road accident in India. 1,214 road crashes occur every day in India.

Also, most of the mobility users use wallets as their primary gateway to enter Web3 for transactions. But, the major limitation of the chrome-based plugins hinders the interactions with other Mobile and Desktop based Dapps. In addition, every existing Crypto wallet out there interacts with a single Blockchain network that hinders the usability and interoperability. The developers are currently limited to writing their codebase for a single Blockchain and not able to support other Blockchains for which they have to rewrite the entire code again! In the current day world, there is a huge process that involves creating a zero-knowledge application and generation of proof that inspired us to build a redefined platform that improves the overall usability and makes the process simpler. There's a lack of Zero-knowledge based applications in the market that solves the Identity-related problems.

What it does

Transport Monitor offers an Artificial Intelligence-based object detection system that utilizes Rootstock, Anduro, Bitcoin Lightning Network, Rootstock, Internet Computer Blockchain and developer tooling for data analytics, organization and visualization, ZKP and scrypt aided Transport bitcoin wallet, decentralized storage for sorting information obtained from a variety of cameras. With just a cell phone, users are offered a serverless solution that can detect objects in real time and more object types for better accuracy.

Our technical solution enables driver monitoring, incident management and collision avoidance: Incident-based reporting & Collision detection (even when a vehicle is parked) and video footage associated with it. Video footage for abnormal driver behaviour (complete view of the car with 2 cameras – front and back and open source video streaming), real-time alert and live streaming using Bitcoin Lightning Network, Rootstock, Internet Computer blockchain, open source solutions and ASDI OpenAQ dataset along with Gateway RPC end points, ZKP and scrypt aided solution. We are also utilizing ZKP and scrypt aided ICP and b3 wallet solution, blockchain to receive road incident feedback reports by citizens, store feedback details from both users and government officials on the incident reports so that they can prevent incidents.

Rootstock smart contract deployment:

https://explorer.testnet.rootstock.io/address/0xa8979a7102dc8688c458dec7b868816b0b8fe142 https://explorer.testnet.rootstock.io/address/0x3e7ed59e5aa6783a04ef8795fc31b92577f4e359

We have also developed an Transport Wallet built using Rootstock & Anduro, Bitcoin Lightning Network, Rootstock, ICP, b3 wallet and Zokrates: please visit
https://drive.google.com/drive/u/4/folders/1YfcPOcya4uuT6rUm7bcWdx8JZys3RqtK (demo video) A decentralized, multi-chain wallet with unique support for Bitcoin using Internet Computer’s threshold ECDSA. Also, direct swap for ckBTC/BTC and ICRC standard token, Manage multiple signers and account securely.

Transport wallet supports operations like the signing of the transaction and other cryptographic operations across multiple platforms and blockchains that improve the overall usability and interoperability. We used Bitcoin Lightning Network, Rootstock, ICP, b3 wallet and Zokrates for building the ZK based ICP Transport Wallet. We are using b3 wallet platform as a payment solution build on ICP between vehicle service providers and vehicle owners. Also, as a payment solution between vehicle insurance providers and vehicle owners. Further, we have developed a DeFi dashboard for the riders and the insurance providers. Source code of b3 wallet widget integration with ICP Wallet: https://shorturl.at/mvACK

Our solution will benefit: Police Force - 360 degrees access of the incidents to the action/ administration team. They can manage the complete lifecycle of incident reporting, overall status, traffic monitoring, managing police teams. Using machine learning they can also predict the incident occurrence at any area. This will help in taking necessary actions in advance to control the traffic. They can also use the solution for effective utilization of staff members and provide road safety counselling.

Ministry of Road and Transportation: Endeavor to change the car accident scenario by use of car technology to make driving safer and monitored for drivers, authorities, as well as other 3rd parties. With a mix of hardware and software, we will provide intelligent feedback about drive quality and help analyze past incidents, as well as predict future incidents.

Citizens and Cab aggregators: Reduction in the number of road accidents.

Insurance Companies: Aggregated/ anonymized driving data and incident data will be helpful to car insurance companies.

OEMs and Dealerships: Vehicle diagnostics and in-car service consumption will be helpful for OEMs and Dealerships.

Smart Cities Policy Makers/ Government: Real time traffic flow, incident alert and parking data will be enable safer roads.

Advertisers: Customers/driver demographics will be available.

Fleet customers: fleet performance, compare against competition.

Website: https://sites.google.com/view/zkpaspiringroadsafety/home

Pitch Deck Video: https://www.youtube.com/watch?v=Jh_AFWc_kKI

Demos and Pitch Deck: https://drive.google.com/drive/u/4/folders/1-OlvVv6Ov4KgRgWLOIDFZWpR3Rq1EM6G

Any abnormal behavior/activity can be displayed on the smart dashboard in the vehicle.

Built-in GPS technology useful in fleet management and tracking. Black box car tracking to be able to pre-empt and diagnose breakdowns more quickly. Recognition area built in the central control to pick up your body movements, GAIT analysis Vehicles become IoT devices which can connect to smartphones, take voice commands, change the user interface.

The decentralized Cloud-Connected Car Drives IoT Monetization. Real-time access to car availability and mobile connectivity enables better decisions making systems.

Transport DAO Workflow:

Vehicle DAOs create a RFP for providing service or maintenance on the dapp. Vehicle drivers can join a RFP by minting an NFT of that RFP. Vehicle drivers that have a certain RFP's NFT are eligible to create proposals and vote on them. Voting is gasless and the vote is stored with the most recent vote linking to one before.

How we built it

We have built Transport Monitor using Anduro and Rootstock, Bitcoin Lightning Network, Rootstock, a mix of programming languages, frameworks and technologies, as follows:

By integrating with Anduro and Rootstock, the Transport-Monitor project can enhance its functionality, security, and user experience, leveraging the strengths of both platforms to provide a robust and scalable solution for transport monitoring and management.

Rootstock smart contracts deployment link: https://explorer.testnet.rootstock.io/address/0xa8979a7102dc8688c458dec7b868816b0b8fe142 https://explorer.testnet.rootstock.io/address/0x3e7ed59e5aa6783a04ef8795fc31b92577f4e359

Rootstock (RSK) Integration with Transport-Monitor:

  1. Smart Contract Integration:

    • RSK Smart Contracts: Develop smart contracts on RSK to handle transactions, data validation, and automation within the Transport-Monitor platform.
    • Cross-Chain Interoperability: Utilize RSK’s interoperability features to interact with other blockchains and services, enhancing the functionality of the Transport-Monitor project.
  2. Payment Solutions:

    • Bitcoin Payments: Enable payments and micropayments using Bitcoin through RSK’s integration, providing a secure and widely accepted payment method.
    • Stablecoins: Support stablecoin transactions (e.g., RIF Dollar) to reduce volatility for users and merchants.
  3. Security Enhancements:

    • Merge-Mining Security: Benefit from Bitcoin’s security through RSK’s merge-mining, ensuring robust protection against attacks.
    • Decentralized Oracle Services: Use decentralized oracles on RSK to fetch and validate external data, improving the reliability of transport monitoring data.
  4. Development Tools:

    • Developer-Friendly Environment: Leverage RSK’s compatibility with Ethereum tools and libraries (e.g., Solidity, Truffle) to simplify the development process.
    • Integration with Existing dApps: Integrate Transport-Monitor with existing RSK-based dApps and services to expand functionality and user reach.

Anduro Integration with Transport-Monitor:

  1. Data Integrity:

    • Immutable Logs: Use Anduro’s blockchain to record transport data, ensuring data integrity and immutability.
    • Auditable Records: Store logs of transport activity that can be audited for compliance and verification purposes.
  2. Smart Contracts:

    • Automated Payments: Implement smart contracts to automate payments for data access and usage-based fees.
    • Subscription Management: Manage subscription services for users through smart contracts, ensuring automated renewals and cancellations.
  3. Decentralized Data Sharing:

    • Secure Data Exchange: Facilitate secure and decentralized sharing of transport data between stakeholders (e.g., transport companies, authorities) using Anduro.
  4. User Authentication:

    • Decentralized Identity: Utilize Anduro’s decentralized identity solutions to authenticate users, ensuring secure access to the platform.

Enhancing User Experience

  1. Streamlined Payments:

    • Fast and Low-Cost Transactions: Utilize Anduro and RSK for quick, low-fee transactions, enhancing the payment experience for users.
    • User Wallet Integration: Integrate user wallets that support Anduro and RSK, enabling seamless transactions and fund management.
  2. Data Security and Transparency:

    • Trustworthy Data: Provide users with transparent and tamper-proof data, increasing trust in the platform.
    • Privacy Controls: Offer privacy options for users to control who can access their data, ensuring compliance with data protection regulations.
  3. Scalable Solutions:

    • Scalability: Both Anduro and RSK are designed to handle high transaction volumes, ensuring the platform remains responsive and efficient as it grows.
    • Flexibility: Adapt to user needs by leveraging the flexible smart contract capabilities of Anduro and RSK.

Integrating Transport-Monitor with the Lightning Network

The Transport-Monitor project integrates with the Lightning Network to enable fast, low-cost transactions within its ecosystem. Here’s how the integration can be achieved and the specific use cases it can target:

Integration with the Lightning Network

  1. Payment Infrastructure:

    • Lightning Node Setup: Deploy and maintain a Lightning Network node to handle transactions.
    • API Integration: Integrate the Transport-Monitor platform with the Lightning Network using APIs to facilitate seamless payment processing.
  2. Channel Management:

    • Automated Channel Operations: Automate the opening, closing, and balancing of channels to ensure smooth transactions without user intervention.
    • Liquidity Management: Ensure sufficient liquidity in channels to handle varying transaction volumes.
  3. User Interface:

    • Transaction Dashboard: Implement a dashboard for users to monitor their transactions, view payment statuses, and manage channels.
    • Mobile and Web Integration: Ensure that the platform is accessible via both mobile and web applications for user convenience.

Specific Use Cases Targeted

  1. Micropayments:

    • Real-Time Monitoring Data: Charge users for accessing real-time transport monitoring data on a per-use basis, allowing small, frequent payments.
    • Usage-Based Fees: Implement a pay-as-you-go model where users pay microfees based on the amount of data they consume.
  2. Merchant Solutions:

    • Subscription Services: Offer subscription-based access to advanced features and data analytics. Users can pay their subscriptions through the Lightning Network for instant settlements.
    • Enterprise Solutions: Provide transport companies and logistics firms with tailored monitoring solutions that include automated payment processing via the Lightning Network.
  3. Incentivized Reporting:

    • User Contributions: Reward users who contribute valuable data (e.g., traffic conditions, transport incidents) with micropayments via the Lightning Network.
    • Crowdsourced Data Collection: Encourage community participation in data collection by offering small incentives, enhancing the data quality and coverage.

Enhancing User Experience for Lightning Network Transactions

  1. Seamless Payment Experience:

    • Instant Transactions: Users benefit from instant transaction confirmations, reducing wait times associated with traditional payment methods.
    • Low Fees: Leverage the low transaction fees of the Lightning Network, making microtransactions economically viable.
  2. Security and Privacy:

    • Enhanced Security: Utilize the Lightning Network’s security features, such as multi-signature wallets and watchtowers, to protect user funds.
    • Privacy Features: Implement privacy-preserving technologies like onion routing to ensure user transaction details remain confidential.
  3. User-Friendly Interface:

    • Intuitive Design: Design an intuitive user interface that simplifies payment processes and provides clear insights into transaction history and channel management.
    • Educational Resources: Provide tutorials and support to help users understand and effectively use the Lightning Network for their transactions.
  4. Integration with Existing Systems:

    • POS System Compatibility: Ensure that the platform integrates seamlessly with existing point-of-sale systems used by transport operators and merchants.
    • API Access: Offer APIs for enterprise users to integrate Lightning Network payments into their existing transport management systems.

By integrating with the Lightning Network, Transport-Monitor can enhance its platform’s functionality, offering users a fast, secure, and cost-effective payment method. This integration opens up new use cases, from micropayments for real-time data access to incentivizing user contributions, ultimately improving the overall user experience and driving wider adoption of the platform.

React.js: We used React.js as our choice of frontend framework, to build a reactive user experience. Working with React.js, we were able to easily build out our user interface, and a set up a quick prototype.

Tornado and Flask: We were also required to use a server component in our application when building out the deployment feature since we had to compile and deploy the canisters built using ICP Transport DAO on the server-side. With Tornado and Flask, this was extremely easy and quick.

Kybra: We used Kybra by Demergent Labs to compile and run our Python-based canisters on Internet Computer. Our experience with Kybra was quite pleasant. The library seemed pretty stable and the documentation was really useful for our purpose.

Python: This was our language of choice for the canister code and the server-side program. For the canisters, we had a choice between many different languages, but we chose Python because it was really easy to get started with it and build a proof-of-concept in limited time. For the backend, Python was a no-brainer because our canister was also written in Python, so we just went with it.

JavaScript: This was our language of choice for the frontend. As the language of the web, JavaScript was the obvious choice for implementing our frontend. Moreover, we thought about using JavaScript for our backend, but decided against it, since Python was much easier for us to work with.

We have integrated b3wallet with ICP Transport DAO for enabling automated Workflow for decentralized voting for service providers and DAOs:

Vehicle DAOs create a RFP for providing service or maintenance on the dapp. Vehicle drivers can join a RFP by minting an NFT of that RFP. Vehicle drivers that have a certain RFP's NFT are eligible to create proposals and vote on them. Voting is gasless and the vote is stored with the most recent vote linking to one before.

How Transport Monitor works:

Camera Management: Add/edit/delete cameras with a front end application with ICP Services, ZKP and scrypt aided solution integration, IPFS for snapshots of road incident, wallet for toll ticketing, data retrieval.

Object Detection using open source AWS solutions, air quality measurements with ASDI OpenAQ ((https://github.com/awslabs/open-data-registry/blob/main/datasets/openaq.yaml) and Pytorch/Tensorflow deep learning library using CNN neural networks.

Video analytics configuration using IPFS, ICP services, ZKP and scrypt aided solution for security and for data retrieval.

Live streaming with Object Detection Video Analytics using open source AWS for streaming, ICP services, ZKP and scrypt aided solution for security and for snapshots.

Alarm storage using IPFS with ZKP and scrypt aided solution, ICP services. Save/delete alarm metadata and image to/from IPFS. Store the hash returned from IPFS to ZKP and scrypt aided solution network, ZKP and scrypt aided solution protocol based solutions for security and for data retrieval. Provide links to alarms and blockchain transaction details.

Alarm Viewer: Add alarms with a single touch. Open the Alarm Settings menu from the home page. Add an alarm, set the wallpaper or choose an alarm tone. You can also delete an existing alarm. We are using Near wallet for NFT marketplace of alarm clock wallpapers and background ringtones purchase and auction. We are also extending and adapting Turtle Music using NFT Experiments for music curators for alarm clock. We are using DAO tooling for coordination with a social focus around community collaboration for road incidents and alarms.

We are also utilizing ZKP and scrypt aided solution, ICP blockchain services to receive road incident feedback reports by citizens, store feedback details from both users, government officials on the incident reports so that they can prevent incidents.

ZKP and scrypt, ICP blockchain aided solution and blockchain's license NFT registration module is to enable users to register their driving licenses as well as their vehicle registration details in a decentralized manner. An individual can be identified by his/her SSN and a vehicle by Vehicle Registry Number both of which for now are integers between 0 and 65535 (16 bit integers). Every SSN or individual is associated to an address of an individual Bitcoin account. We are developing our own NFT smart contract from the ground up following ZKP and scrypt aided solution protocol and the key tutorial shared at the github website. We are also logging the identities of the driving license owners, their vehicle assets using exchange of unique identifiers powered by ZKP and scrypt aided solution.

Challenges we ran into

The insurance providers have to manually upload the incident and vehicle data to create the insurance based NFT. It is not a problem for a small set of vehicles where we can use csv to json conversion using open source libraries like phpexcel in ethercalc but problematic for larger number of vehicles. At this juncture, the insurance providers have to manually connect their wallet, create the insurance claim NFT.

Accomplishments that we're proud of

A greater and more seamless flow of information within a transportation infrastructure, created by electronic incident record management service (E.I.R.M.S), encompasses and leverages digital progress and can transform the way road safety can be delivered and efforts sustained.

E.I.R.M.S helps in improved coordination. E.I.R.M.S helps in making road safety ecosystem proactive and authentic. E.I.R.M.S with the help of computer aided detection will help in early prediction and prevention of incidents.

We are extending a ZKP wallet that works seamlessly across all the Blockchains and across all the platforms to a variety of hardware iot platforms.

What we learned

We can utilize Anduro and Rootstock, Bitcoin Lightning Network, Rootstock, ICP Blockchain and analytics tooling, SocialCalc, Machine Learning Models coupled with ICP services, decentralized ZKP and scrypt aided solution Protocol, IPFS, network tools, ZKP and scrypt aided solution for analysis and prediction of incidents to provide early stage detection and prevention of accidents. We also witnessed the great eco-system available to developers to learn and contribute in the ICP services, ZKP and scrypt aided solution. We are also utilizing ZKP and scrypt aided solution Protocol to receive road incident feedback reports by citizens, store feedback details from both users and government officials on the incident reports so that they do prevent incidents.

And, we tried using Zokrates for building ZK-Box that supports complicated ZK proofs.

What's next for Transport Monitor

The platform is currently powered by Bitcoin Lightning Network, Rootstock, ICP Blockchain and analytics tooling, ICP services, ZKP and scrypt aided solution and SAP Hana platform, p2p services. We still need to focus on key performance indicators like throughput and measure the performance of our smart contracts before moving to mainnet. We plan to utilize OSS tools for measuring and benchmarking our smart contracts and unit tests on a variety of key parameters like throughput, latency. We also wish to test our solution using AWS templates on compliance and security. We need to spend quality time learning analytics, prediction methods and utilizing and developing open source datasets.

We are excited to integrate ZK Transport Wallet with Hardware wallets and support IoT-based applications.

Built With

Share this project:

Updates