Skip to content

Chorus Mobility - Solidity Smart Contract Collection

Notifications You must be signed in to change notification settings

chorusmobility/Ethereum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Smart Contracts

Proof-of-Yield

Solidity smart contract for the road space negotiation using Vickrey auctions. The contract is triggered in case two vehicles conduct a road-space negotiation auction that results either in a change of positions or is aborted. The contracts implements a prototype of a standard protocol for autonomous vehicle communication and processing of P2P micro payments within Vehicular Ad-Hoc Networks (VANETs).

Vickrey Auction

A further important core concept of the Chorus V2X system is to support the exchange and provision of goods on services between entities. When trading goods and services, the buying and the selling party usually have contrary goals in terms of pricing. The seller's goal is to maximize his/her profits while the buyer tries to minimize the costs. Auctions are a common approach to reach a consensus on a certain price between buyer and seller. We designed two auction algorithms based on the concept of so called Vickrey Auction. An algorithm for the scenario with exactly one buyer and one seller, as well as an algorithm that can be used in scenarios with multiple buyers and multiple sellers. During a Vickrey auction, participants exchange sealed bids. Each bidder submits a written and signed bid without having any knowledge of the bids of the other participants. After submitting all bids, the sealed bids are opened and the highest bidder wins. But instead of paying the price of this highest offer, the price paid is the second-highest bid.

An example of a Vickrey auction with multiple buyers and sellers is illustrated below. We assume a scenario where buyer one is willing to pay a price of $1.80, buyer two offers a price of $3.20 and buyer three offering $3.50. The seller is not selling for less than $2.0. Again, we only conduct a single auction round and the buyers as well as the seller all submit their bid in an encrypted and signed envelope that is distributed and send to all registered participants. As soon as all participants received the bids, the encryption keys are exchanged as well and the sealed bids are decrypted. Buyer three wins the auction and pays the seller the price of buyer two that offered $3.20.

X-X Vickrey Auction Algorithm

In case we have multiple sellers, the sequence diagram is almost identical and the bidding process follows the same procedure. Except in the end, the highest bidder is paying the second highest price to the seller with the highest minimum price, and so on - as long as the paid price is higher than the matched seller's minimum price.

Token

The ERC20 Token Standard Interface

License

All Rights Reserved. Proof-of-Stake Inc.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •