GithubHelp home page GithubHelp logo

cleancoindev / xclaim-sol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crossclaim/xclaim-sol

0.0 0.0 0.0 590 KB

XCLAIM(BTC,ETH): Solidity implementation for Bitcoin backed tokens on Ethereum

Home Page: https://xclaim.io/

License: GNU General Public License v3.0

JavaScript 99.27% Shell 0.73%

xclaim-sol's Introduction

XCLAIM(BTC,ETH)

Gitter chat

Disclaimer: this project is still under development and not safe to use!

Overview

XCLAIM is a framework for achieving trustless and efficient cross-chain exchanges using cryptocurrency-backed assets (CbAs). XCLAIM allows to create assets which are 1:1 backed by existing cryptocurrencies, without requiring trust in a central operator. While this approach is applicable to a wide range of cryptocurrencies, we currently focus on implementing Bitcoin-backed tokens on Ethereum, i.e. XCLAIM(BTC,ETH).

XCLAIM introduces three main protocols to achieve decentralized, transparent, consistent, atomic, and censorship resistant blockchain interoperability for cryptocurrencies:

  • Issue: Create Bitcoin-backed tokens on Ethereum.
  • Swap: Swap Bitcoin-backed tokens on Ethereum with Ether.
  • Redeem: Burn Bitcoin-backed tokens on Ethereum and receive Bitcoins in return,

The current XCLAIM prototype is compliant with the ERC20 standard. An overview of the protocols is presented below:

overview of XCLAIM issue, swap and redeem protocols

XCLAIM guarantees that Bitcoin-backed tokens can be redeemed for the corresponding amount of Bitcoin, or the equivalent economic value in Ethereum. Thereby, XCLAIM overcomes the limitations of centralized approaches through three primary techniques:

  • Secure audit logs: Logs are constructed to record actions of all users both on Bitcoin and Ethereum.
  • Transaction inclusion proofs: Chain relays are used to prove correct behavior on Bitcoin to the smart contract on Ethereum.
  • Over-collateralization: Incentivize honest behavior following a proof-or-punishment approach. All involved parties must actively prove correct behaviour to the smart contract, e.g. by providing inclusion proofs for Bitcoin transactions.

Paper

Read more about XCLAIM in our paper (currently under submission).

Protocol Summary and Components

A concise overview is coming soon. For now, please refer to the paper.

API

Coming soon. For now, please refer to the paper.

Installation

Make sure ganache-cli and truffle are installed as global packages. Then, install the required packages with:

npm install

Testing

Start ganache:

ganache-cli

Migrate contracts:

truffle migrate

Run tests:

truffle test

This will also re-run migration scripts.

xclaim-sol's People

Contributors

alexeizamyatin avatar nud3l avatar panispani 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.