Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.1 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.1 KB

Dutch Auction

Overview

This project demonstrates how embedding DAML contracts can be used to prevent information leakage during multi-party transactions. The alternative is to use the multi-party agreement protocol; however this reveals the identity of parties involved. This example is a simplified version of auctions used for IPOs. You can see a more elaborate example in bond issuance.

Workflow

There is a seller party, and two or more bidders. The seller generates an Auction contract, only visible to her, and then embeds it into AuctionInvitations for each individual participant. Each bidder responds to the invitation with a Bid, visible only to him and the seller. When the auction finishes at Auction.end time, an off-ledger process collects all the bids, calculates the resulting allocations as an AuctionResult.

Building

daml build

Testing

daml test

Running

daml start