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.
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 AuctionInvitation
s 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
.
daml build
daml test
daml start