Giter VIP home page Giter VIP logo

trustee's Introduction

Trustee: Full Privacy Preserving Sealed-bid Auction on top of Ethereum

Components

  1. Enclave (C)
  2. EnclaveLink (C++)
  3. ManagedEnclave (C++/CLI)
  4. App (C#)
  5. Auction (Solidity)

Requirements

  1. Visual Studio 2017 (make sure to mark on C/C++, C#, and Windows SDK 8.1)
  2. Truffle Ganache
  3. Solc
  4. Intel SGX-SDK

Build

  1. Open Trustee.sln with Visual Studio 2017
  2. Set App as the startup project
  3. Extract Solc archive into the directory Trustee\Win32
  4. Build the solution

Run

Run Ganache with more than 50 accounts and set port on 8545 Run the App which starts the following scenario

  1. Trustee deploys the smart contract on Ganache
  2. It initializes the enclave, generating new keys and account
  3. The auctioneer account (first account) will send a deposit (5 eth) to the Enclave account
  4. The auctioneer starts the auction specifying the intervals and initial deposit
  5. 50 bidders will randomly generate bids and submit the encrypted bids to the smart contract
  6. The Enclave will retrieve the encrypted bids, determine the winner, and send a transaction
  7. The smart contract verifies the hash on the input submitted by the Enclave for consistency
  8. The winner is set and the losing bidder and the auctioneer start refunding their initial deposit
  9. Another stage (Future work) is set to reclaim the bid value from the winner

trustee's People

Contributors

hsg88 avatar

Stargazers

 avatar Darren Hoo avatar  avatar Jiahao He avatar Hamed Mohammadi avatar Wazen Shbair avatar

Watchers

Wazen Shbair avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.