Coder Social home page Coder Social logo

markblundeberg / openswap Goto Github PK

View Code? Open in Web Editor NEW
17.0 7.0 7.0 26.47 MB

OpenSwap - an atomic swap wallet based on Electron Cash

License: MIT License

Shell 0.99% Python 82.29% NSIS 0.23% Makefile 0.03% GLSL 0.01% Java 0.79% Objective-C 12.93% Dockerfile 0.04% Kotlin 2.70%

openswap's Introduction

OpenSwap

Licence: MIT Licence
Author: Mark B. Lundeberg
Language: Python

Telegram group here: https://t.me/open_swap

Demo video here: https://www.youtube.com/watch?v=Va2m6ePNVqM

This is a fork Electron Cash augmented with:

  • an atomic swap platform,
  • on-chain private messaging (BCHMessage), and
  • BTC wallet support.

To get started: Open up the Addresses tab, and right click on one of your BCH addresses; click on OpenSwap. This allows you to view the private messages you have sent and received to other addresses. From here you can make offers, send messages, and also initiate atomic swaps (by right clicking on ACCEPT messages).

Due to various incompatibilities (from supporting multiple wallets), configuration files will be saved in a separate directory from your normal Electron Cash installation. ~/.openswap (unix) or OpenSwap (win).

Standard instructions for Electron Cash (the base software) follow:

Electron Cash - Lightweight Bitcoin Cash client

Licence: MIT Licence
Author: Jonald Fyookball
Language: Python
Homepage: https://electroncash.org/
Help translate Electron Cash online

Getting started

Electron Cash is a pure python application forked from Electrum. If you want to use the Qt interface, install the Qt dependencies:

sudo apt-get install python3-pyqt5

If you downloaded the official package (tar.gz), you can run Electron Cash from its root directory (called Electrum), without installing it on your system; all the python dependencies are included in the 'packages' directory. To run Electron Cash from its root directory, just do:

./electron-cash

You can also install Electron Cash on your system, by running this command:

sudo apt-get install python3-setuptools
python3 setup.py install

This will download and install the Python dependencies used by Electron Cash, instead of using the 'packages' directory.

If you cloned the git repository, you need to compile extra files before you can run Electron Cash. Read the next section, "Development Version".

Development version

Check out the code from Github:

git clone https://github.com/Electron-Cash/Electron-Cash
cd Electron-Cash

Run install (this should install dependencies):

python3 setup.py install

Compile the icons file for Qt:

sudo apt-get install pyqt5-dev-tools
pyrcc5 icons.qrc -o gui/qt/icons_rc.py

Compile the protobuf description file:

sudo apt-get install protobuf-compiler
protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto

Create translations (optional):

sudo apt-get install python-requests gettext
./contrib/make_locale

For plugin development, see the plugin documentation.

Running unit tests:

pip install tox
tox

Tox will take care of building a faux installation environment, and ensure that the mapped import paths work correctly.

Creating Binaries

To create binaries, create the 'packages/' directory:

./contrib/make_packages

This directory contains the python dependencies used by Electron Cash.

The make_packages command may fail with some Ubuntu-packaged versions of pip ("can't combine user with prefix."). To solve this, it is necessary to upgrade your pip to the official version:

pip install pip --user

Linux (source with packages)

Run the following to create the release tarball under dist/:

./setup.py sdist

Mac OS X / macOS

See contrib/osx/.

Windows

See contrib/build-wine/.

Android

See gui/kivy/Readme.txt file.

iOS

See ios/.

openswap's People

Contributors

akshayaurora avatar bauerj avatar blinkystitt avatar cculianu avatar chrisglass avatar dabura667 avatar danconnolly avatar darrindaigle avatar ecdsa avatar fluffypony avatar fyookball avatar genjix avatar jhoenicke avatar jimboman77 avatar jonathancross avatar m0mchil avatar marceloneil avatar markblundeberg avatar mhsmith avatar mkramlich avatar neocogent avatar ovidiusoft avatar rofl0r avatar romanz avatar rt121212121 avatar ser avatar shsmith avatar sombernight avatar stefaang avatar wozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

openswap's Issues

Mark's TODO list

  • modify offer_info dialog to display counterparty info
  • add agreed-amounts to Swapper dialog
  • automatic help with funding / redeeming addresses
  • automated progression through swap phases
  • restore BCH network.py and blockchain.py to original names so they can stay synced with EC upstream.

wishlist:

  • add identicons

swap parameters needs backup + load feature

If 'Accept' transaction is lost (due to double spend / malleation) then parties will lose access to the trade parameters and any funds on the swap contracts will be lost.

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.