Giter Site home page Giter Site logo

eos-mpc's Introduction

Eos-MPC

The goal for this repo is to find a way to encode a secret in the blockchain that can be read publically after a condition is met.

Motivation

Let's say I want to sent someone a private message over the blockchain, and ensure it too be delivered, even if I die, but the receiver should only be able to read it after some conditions are met. Is there a way to do this in a decentralised manner?

Proposal

Suppose Bob wants to send a secret to Alice, which she can only see after a timestamp has passed.

  1. Some secret keepers publish a public encryption key to the contract, along with some tokens as a "deposit" to ensure they will cooperate
  2. Alice publishes her public encryption key as well, no deposit.
  3. Bob encrypts his secret with Alice's key
  4. Bob divides the encrypted secret into n chunks.
  5. Bob re-encrypts each chunk with a public key of a secret keeper
  6. Bob publishes the encryped chunks, a hash of the original chunk, the timestamp, and some tokens as incentive for the keepers
  7. The keepers accept this offer (they could reject it if the incentive is too small or if the hash is wrong)
  8. The keepers publish their decrypted chunks once the timestamp is reached (if they publish it too soon, too late, or not matching the hash, the deposit is taken away)
  9. Alice reveals the secret by combining the chunks and decrypting them

Replication could be used to decrease the chance of a party failing to decrypt the data.

Attack vectors

Cooperation

Cooperation between secret keepers and secret receiver

The secret receiver can pay the secret keepers off-chain to reveil their information. Though this cooperation is not trivial, there is incentive to do it (and the keepers will still receive their deposit back).

eos-mpc's People

Contributors

toonsevrin avatar

Watchers

James Cloos 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.