Giter VIP home page Giter VIP logo

blind-auction-solution's Introduction

Sealed-Bid-Auction-CorDapp-Beta3

Sealed Bid Auction Conclave App

The sealed-bid-auction is a Java application designed to demonstrate how to confidentially submit bids to an auction by leveraging Conclave Beta 3.

All bids submitted are delievered as Conclave Mail via HTTP to the Spring Host which is running an Enclave.

Each of these bids are confidentially decrypted by the Enclave to not let the host or anyone else know of the value. Once The enclave has received all five bids, it calculates which of the five is the highest and sends the winning encrypted bid back to host.

This winning bid is saved in host memory so that it can be queired to reveal the winning bid using the reveal_winner GET endpoint.

Creating the Docker Image

  1. Install Docker
  2. docker run --name blind-auction -p 8080:8080 -it -d -v C:\ws\blind-auction\:/sdk -w /sdk ubuntu bash
  3. docker exec -ti blind-auction apt update
  4. docker exec -ti blind-auction apt install -y openjdk-8-jdk

Starting the Spring Server

  1. Clone this project to your local machine.
  2. Open the project in IntelliJ and run the Webserver->Host->Tasks->build->assemble configuration to create the Spring Server jar file.
  3. docker exec -ti blind-auction cp /sdk/Webserver/host/build/libs/host.jar /tmp/
  4. docker exec -ti blind-auction java -jar /tmp/host.jar

Running the Application

Run Client.main()

(If you receive an InvalidEnclaveException, copy the key hash that is "acceptable" and overwrite the existing one on line 37 of Client.java)

blind-auction-solution's People

Contributors

jonathanscialpi avatar

Watchers

 avatar  avatar

Forkers

isabella232

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.