Team No - 21-2nd Phase Ppt of Vehicle Rental System Using Blockchain

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

ACHARYA INSTITUTE OF TECHNOLOGY


SOLADEVANAHALLI, BANGALORE-560107

Presentation on
“VEHICLE RENTAL SYSTEM USING BLOCKCHAIN”
Presented by: Under the guidance of:
Alice Gupta (1AY17CS009) Mrs. Kavitha M S
Amrit Raj Sharma(1AY17CS013) Assistant Professor
Anwesha Das (1AY17CS017) Department of CSE
Avinash Devraj (1AY17CS020)

1 Department of CSE, Acharya Institute of Technology 07/08/2024


PROBLEM STATEMENT

• To design and develop a highly reliable and efficient blockchain based


vehicle rental system to enable peer-to-peer vehicle renting.
Objectives

• To depict this concept of blockchain , a vehicle rental system model


is proposed. In this model, we are planning to make a decentralized
platform to create a system that will allow vehicle owners to register
their vehicles online for rent.

• To provide a much more secure way to handle transactions which are


cost-efficient as there is no third-party involvement and gas fees will
be very low.

3 Department of CSE, Acharya Institute of Technology 07/08/2024


Functional Recruitments
• Vehicle owner/renter registration
• Login
• Online reservation of vehicle.
• The vehicle owner will approve the renter’s information on registering.
A smart contract will be digitally signed between the parties ,
highlighting all the relevant terms including duration, pick-up, and
payment.
• Once the terms of the smart contract will be met, payments will be
automatically transferred in the form of cryptocurrency or tokens
purchased while registering.

4 Department of CSE, Acharya Institute of Technology 07/08/2024


System Architecture

5 Department of CSE, Acharya Institute of Technology 07/08/2024


6 Department of CSE, Acharya Institute of Technology 07/08/2024
7 Department of CSE, Acharya Institute of Technology 07/08/2024
8 Department of CSE, Acharya Institute of Technology 07/08/2024
9 Department of CSE, Acharya Institute of Technology 07/08/2024
Algorithm:
Algorithm 1: Designing Smart Contract for the basics of the ride:
1: function Contract1(startLoc, endLoc, dist, time, topSpeed)
2: Creating block for transaction
3: Set : Global_Positioning_System
4: Set : Current_Location
5: Set : Distance_travelled
6: Set : Top_speed
7: Set : Trip_Time
8: Set : Price_Finalized
9: Set : Trip_Normal
10: if start of trip then
11: Lock Price_Finalized from user
12: Lock Security_Deposit from user
13: end if
14: if Distance travelled greater than dist then
15: initialize :send location to owner
16: SendLocationOwner()

10 Department of CSE, Acharya Institute of Technology 07/08/2024


17: end if
18: if Top speed greater than topSpeed then
19: initialize :Warning : top speed reached
20: end if
21: if Trip Time greater than time then
22: initialize :Warning : time limit exceeded
23: SendLocationOwner()
24: end if
25: if end of trip and Trip_Normal then
26: Release Price_Finalized to owner
27: Release Security_Deposit to user
28: end if
29: Encrypt block using the public key of both customer and sender. % Block is propagated to all the nodes.
30: end function
31: function SendLocationOwner
32: Set : Owner
33: Set : Global_Positioning_System
34: Set : Current_Location
35: Send Current_Location to Owner
36: end function

11 Department of CSE, Acharya Institute of Technology 07/08/2024


Algorithm 2: Designing Smart Contract for emergencies:
1: function Emergency(startLoc, endLoc, dist, topSpeed)
2: Creating block for transaction
3: Set : Global_Positioning System
4: Set : Current Location
5: Set : speed
6: Set : Road Location
7: Set : Collision Sensor
8: if sudden drop in speed detected then
9: Warning: Sudden drop in speed detected
10: initialize :send location to owner and authorities
11: SendLocation()
12: end if
13: if vehicle goes offroad then
14: initialize :Warning : V ehicle not on road
15: SendLocation()
16: end if
17: if collision detected then
18: initialize :W arning : Collision detected
19: SendLocation()

12 Department of CSE, Acharya Institute of Technology 07/08/2024


20: end if
21: end function
22: function SendLocation
23: Set : Owner
24: Set : Police
25: Set : Ambulance
26: Set : Global_Positioning_System
27: Set : Current_Location
28: Send Current_Location to Owner
29: Send Current_Location to Police
30: Send Current_Location to Ambulance end function
31: end function

13 Department of CSE, Acharya Institute of Technology 07/08/2024


UML Sequence Diagram:

14 Department of CSE, Acharya Institute of Technology 07/08/2024


Data Flow Diagram

15 Department of CSE, Acharya Institute of Technology 07/08/2024


DEVELOPMENTAL PHASES
□ PHASE 1: Make the frontend for lessees to lease a vehicle.

□ PHASE 2: Make the frontend for viewing and editing vehicle details.

□ PHASE 3: Verify the identity of the users.

□ PHASE 4 : Create robust testing scripts for the entire system.

(* Maintaining and updating the trained database)

16 Department of CSE, Acharya Institute of Technology 07/08/2024


DEVELOPMENTAL TIMELINE

17 Department of CSE, Acharya Institute of Technology 07/08/2024


THANK YOU

You might also like