Giter VIP home page Giter VIP logo

vickreyauction's Introduction

Succinct Verifiable Sealed-Bid Auction Smart Contract

This is the accompanying code for the article "Succinct Verifiable Sealed-Bid Auction Smart Contract" to be submitted to "International Workshop on Cryptocurrencies and Blockchain Technology - CBT'18" It consists of:

Setup a Private Blockchain

  1. Install Truffle Framework (http://truffleframework.com/).
  2. Install Ganache (http://truffleframework.com/ganache/)
  3. Clone this repository into your machine.
  4. Open cmd/powershell/terminal and switch to the repository directory
  5. Execute truffle test to test an existing Auction run
  6. Wait a bit of time, and "test passed" should appear.

vickreyauction's People

Stargazers

Ehsan Ghasaei avatar Alex Lam avatar ShimmerPig avatar  avatar  avatar

Watchers

Hisham Galal  avatar

Forkers

dsyman2 ox0sara

vickreyauction's Issues

on chain encryption problem

Hi.As what you has published as auction.sol isn't complete at all based on your "Succinctly Verifiable Sealed-Bid Auction Smart Contract" I have tried to complete it so it will be exactly what you has described in your paper.but to implement the following that I has copied from page 14 of mentioned paper I have problem:
"""When the auctioneer tries to claim that Bob’s ciphertext does
not contain the valid openings of his commitment, then Bob is alerted to submit
the opening values as plaintext to the smart contract. Subsequently, based on
these values, the smart contract recomputes the commitment and the ciphertext,
then it compares them against the commitment and ciphertext which are stored
in the mapping bidders[Bob]. In the case, they are found to be equal, then the
protocol terminates by penalizing the auctioneer and refunding the initial deposit
to all bidders. Otherwise, Bob is penalized and his commitments and ciphertext
are discarded from further processing steps."""
actually my problem is : how can we implement symmetric encryption in solidity to recompute the ciphertext?
I searched a lot and couldn't find any library the supports on chain encryption.
Do U have any idea that can help me?

ImportError: cannot import name 'Var' from 'pysnark.runtime'

I tried to run the project after installing the dependencies, but it still reports an error like this. I don't know if it's the version, but when I look at this file (/usr/local/lib/python3.10/dist-packages/pysnark/runtime.py), it really doesn't have the "Var"

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.