Peer-to-peer V2X Service
(provider == authenticated)
(consumer == authenticated)
(consumer.parking.authorized == true) -> provider.parking.autor = init
Definitions: ProviderConsumer
Alice owns a parking slot in a crowded city with rare parking possibilities and wants to make it available to the public whenever she is not using it. However, she doesn’t want to sign up to an expensive third party subscription to handle parking sessions for her.
Using peaq's functions Alice’s parking slot becomes visible to Bob so that he can select it for reservation. Bob requests to reserve the parking slot for 2h. Bob’s car (Consumer) initiates the reserve request via smart contract for the parking slot (Provider). The smart contract then validates that Bob has sufficient funds and blocks the required amount. The authentication is successful and Bob gets informed that the parking slot is reserved. The parking sensor at the parking slot is informed of the car’s identity (Consumer Public Key) to expect. Bob and his car arrive at the parking slot. Parking gets verified through the parking sensor which triggers a verification check via smart contract to validate the car’s identity. After a successful check Bob’s car is authorized to park and the billing time starts. Once done with his parking session, Bob drives away and the parking sensor initiates the stop of the billing time which triggers the smart contract that checks how much parking time got consumed by Bob’s car and transfers the right amount (Pay-per-use) from the blocked funds to Alice.
Last modified 1mo ago
Copy link