Giter Club home page Giter Club logo

swiftlancer-code's Introduction

swiftlancer-code

One deployed instance at Ropsten network (over the even subgroup of Zp*)

https://ropsten.etherscan.io/address/0xb33aabd8301244f68346f8845f05935e77cb9c2f

Worker 0 (0xbeef1bed3677fe070591074de013cd371b121027): 7.52 M gas

Worker 1 (0xec1f5acd361e439ad1db6d1d7708341460b9439d): 7.49 M gas

Worker 2 (0x516d5bb41339db0fc24c47dc5bcca8c38b21775d): 7.49 M gas

Worker 3 (0xeb00e4c95368d1f7f440d304a0084de5904f17e1): 7.49 M gas

Requester (optimistic case): 3.58 M gas for the whole protocol

Requester (worst case): average 3*(1.3+1.9)/2 M gas to reject per each submission

The other deploy instance at Ropsten network (over the G1 subgroup of alt_bn 128 ec)

https://ropsten.etherscan.io/address/0xb8eeb62d9d77a06aac25581bb78563cbc3916780

Worker 0 (0xbeef1bed3677fe070591074de013cd371b121027): 3.49 M gas

Worker 1 (0xec1f5acd361e439ad1db6d1d7708341460b9439d): 3.48 M gas

Worker 2 (0x516d5bb41339db0fc24c47dc5bcca8c38b21775d): 3.48 M gas

Worker 3 (0xeb00e4c95368d1f7f440d304a0084de5904f17e1): 3.48 M gas

Requester (optimistic case): 2.0 M gas for the whole protocol

Requester (worst case): average (0.141+0.184+0.199) = 0.524 M gas to reject per each submission

An incorrect implementation also deployed at Ropsten network in the earlier

https://ropsten.etherscan.io/address/0xac570542f9837c3f413280cc75c2adae9ce09e2b

The errors of the earlier implementation include but not limit to:

  1. The public key algorithms are implemented over the group of Zp*, where DDH assumption does not hold;

  2. The answer of each worker is broken into 106 transactions;

  3. There is no user authentication procedures to protect against Sybil attackers.

Here we highlight that this repository resovles all the above issues by doing significant efforts. Not only the security issues are fixed, but also the overall on-chain cost is reduced to only half of the earlier incorrect implementation.

swiftlancer-code's People

Watchers

James Cloos avatar Hridam Basu avatar

Forkers

yylluu marsella

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.