Git Product home page Git Product logo

xmrswap's Introduction

XMR Cross-chain Atomic Swap Demo

Overview

Implementation of the h4sh3d Bitcoin–Monero Cross-chain Atomic Swap protocol. https://github.com/h4sh3d/xmr-btc-atomic-swap/blob/master/whitepaper/xmr-btc.pdf

Use at your own risk.

Run tests without installing module:

export PYTHONPATH=$(pwd)
export BITCOIN_BINDIR=~/tmp/bitcoin-0.19.0.1/bin;
export PARTICL_BINDIR=~/tmp/particl-0.19.1.1/bin;
export XMR_BINDIR=~/tmp/monero-x86_64-linux-gnu-v0.17.0.1;
python setup.py test

Individually:

python setup.py test -s tests.xmrswap.test_run.Test.test_01_swap_successful
python setup.py test -s tests.xmrswap.test_part.Test
python tests/xmrswap/test_other.py
python tests/xmrswap/test_run.py
python tests/xmrswap/test_part.py

Run lint checks:

PYTHONWARNINGS="ignore" flake8 --ignore=E501,F841,W503 --exclude=xmrswap/contrib,.eggs
codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=tests/lint/spelling.ignore-words.txt -S contrib,.git,.eggs,*.pyc

xmrswap's People

Contributors

tecnovert avatar

Stargazers

Mikhail Bacoinin avatar Rasikh Morani avatar

Watchers

 avatar  avatar

xmrswap's Issues

DL EQ proof is unsafe.

The MRL-0010 proof states that by generating the proof, the prover proves they know what the key is. This isn't actually true, and it's possible to create such a proof for an unknown key. In order to verify knowledge and possession, the DL EQ proof must be expanded with two signatures; one for each public key the private key represents.

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.