Giter Site home page Giter Site logo

sitedata / mercury Goto Github PK

View Code? Open in Web Editor NEW

This project forked from commerceblock/mercury

0.0 2.0 0.0 5.32 MB

An implementation of statechains

License: GNU General Public License v3.0

Rust 99.32% Shell 0.05% JavaScript 0.17% Dockerfile 0.46%

mercury's Introduction

Mercury

Mercury is a statechain client/server implementation modified to be compatible with current Bitcoin network technology.

Ownership of deposited Bitcoin (or Elements based) UTXOs can be transferred between parties without performing on-chain transactions. This allows for near instant payments, increased privacy and novation of DLCs/Lightning Channels.

Swaps are a method of performing many off-chain transfers atomically. The number of participants in a swap is unlimited. If n participants take part in a swap with one distinct UTXO each they receive back ownership of any one of the n UTXOs of the same value.

This repository contains the Server and Client implementation for the protocol. For more information on the components of Mercury see their respective crates.

You can read the whitepaper here.

Running / Building

Run steps: To run the software, use Docker image from DockerHub.

  1. Download and start: docker run --rm -it -p 8000:8000 commerceblock/mercury server
  2. Test: curl -vk localhost:8000/ping

Build steps: To build the software use Dockerfile provided.

  1. Clone repo
  2. Build: cd mercury && docker build -t commerceblock/mercury:my_build .
  3. Run: docker run --rm -it -p 8000:8000 commerceblock/mercury:my_build server
  4. Test: curl -vk localhost:8000/ping

Tests

To run the tests:

  1. cargo test

To run integration tests with a real database - database and mainstay environment variables should be set. See server/README.

  1. (cd integration-tests && cargo test --no-default-features -- --test-threads=1)

Issue Tracker

License

Mercury Wallet is released under the terms of the GNU General Public License. See for more information https://opensource.org/licenses/GPL-3.0

mercury's People

Contributors

86667 avatar lawlawlaw avatar ldeacon avatar nicosey avatar rk16449 avatar stakauskas avatar tomt1664 avatar

Watchers

 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.