Giter Site home page Giter Site logo

accumulator-demo's Introduction

accumulator-demo

A proof-of-concept for stateless Bitcoin nodes, based on the accumulator crate. Provided totally as-is and probably will not be maintained, though the authors of this simulation are more than happy to answer your questions.

Setup

See the accumulator repo for general setup instructions.

Usage

Just cargo run.

Docs

The concept for this simulation is adapted from Batching Techniques for Accumulators with Applications to IOPs and Stateless Blockchains (Boneh, Bünz, and Fisch 2018) [Link].

We envision three kinds of actors in a stateless Bitcoin ecosystem (some familiarity with Bitcoin and accumulators is assumed):

  • Miners aggregate transactions into blocks, establish consensus on each new block, and store the current chain state in an accumulator (a constant-size aggregation of the UTXO set). Miners publish updates to this accumulator value.
  • Users issue transactions from the UTXOs in their possession. When a user presents a UTXO to be spent, they must also present the accumulator witness for that UTXO (proving that the UTXO is unspent with respect to the current accumulator value). In common terminology, users can be understood as light clients.
  • Bridges manage witnesses for a number of users, offering these users a liveness guarantee so they don't miss accumulator updates. There are efficient procedures to update a batched set of witnesses, and users can query their individual witnesses on-demand.

In our simulation, each user issues a single transaction per block, and miners cut blocks every t milliseconds. There are n users assigned to each of m bridge nodes, for a total of n * m users in the system. Although we include r different miners in the simulation, one of them is always elected leader to establish consensus.

For more details, please review our code.

accumulator-demo's People

Contributors

eddiew avatar whaatt 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.