Giter VIP home page Giter VIP logo

secretsexchange's Introduction

Secrets Exchange Contracts for SecretsMkt

Ethereum Smart Contracts supported by IPFS, Keep and 3Box Off-Chain solutions

Secrets Exchange Logo

To get started, git clone this url.

cd SecretsExchange

truffle compile

If using Ganache or other test/prod environment, truffle migrate to deploy and test

Overview

/contracts/SecretsExchange.sol contains getter and setter functions for setting and retrieving secrets.

The main characters here are authors of secrets, validators of secrets, appraisers of secrets and a DAO ownership group.

The validators, who are approved by the ownership DAO after applying via the smart contract, use 3Box confidential thread off-chain to validate the contents of the secret match the claim submitted by the submitting author/sharer.

The appraisers, who are approved by the ownership DAO after applying via the smart contract, use 3Box confidential thread to appraise the value above the minimum value of the submitting party's secret (if it meets the criteria)

All secrets descriptions are public and get be found directly via the smart contract.

Once a secret is appraised and validated, it can be purchased for higher than the appraisal price by anyone. 15% of funds are awarded to the validator, 15% awarded to the appraiser, 5% to the governance DAO (owner), and 65% to the sharer of the secret.

Secrets are split into 3 parts so that three validators can see portions but not all of the secret when validating its contents.

Validators ensure secrets aren't resold based on public descriptions of the secrets.

Keep callback contracts are included for Keep integration

Ideally the owner of the contract is transferred to an Aragon DAO so onlyOwner modifier specifies a group rather than one address for decentralized governance if that is desired by deployer.

TODO

  • auction system (maybe?)
  • Validator staking mechanism with slashing
  • tests

secretsexchange's People

Contributors

mikedeshazer avatar ryoungblom avatar sajz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sajz ryoungblom

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.