Coder Social home page Coder Social logo

markblundeberg / coinsplitter Goto Github PK

View Code? Open in Web Editor NEW
18.0 7.0 12.0 27.69 MB

Bitcoin Cash / Bitcoin Satoshi Vision coin splitter.

License: MIT License

Kotlin 2.86% Java 0.83% Python 81.34% Shell 1.05% NSIS 0.24% Makefile 0.03% GLSL 0.01% Objective-C 13.60% Dockerfile 0.04%
bitcoin-cash

coinsplitter's Introduction

Note

This project is out of date, but I'm keeping it up for posterity. The best way to split your coins nowadays is to get some already-split dust and use the official Electron Cash (on BCH) and/or ElectrumSV (on BSV). New users should avoid using this version due to phishing vulnerabilities in Electron Cash that have appeared in the last few months. Cheers! -Mark

CHECKDATASIG/MUL Coin splitter

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

This is a special release of Electron Cash augmented with a coin-splitting tool for the November 2018 Bitcoin Cash hard fork. The tool can be started via:

  • Tools menu | Coin splitter, or,
  • Addresses tab: right-click on an address | Split coins.

By using this tool, you can create transactions built on a history involving the new OP_CHECKDATASIGVERIFY. Such transactions are impossible to replay on other nodes / chains that do not support this opcode. In a secondary mode, you can also create OP_MUL-based splitting, though with some limitations.

A detailed usage guide can be found here: doc/coinsplitter_user_guide.md (中文版请访问这个链接:doc/CoinSplitterUserGuide_CN.md)

Since Electron Cash 3.3.3, the mainline client has been checkpointed so as to only connect to BCH servers. In contrast, this release is being maintained up-to-date but with the checkpointing reverted, and with a healthy list of BSV servers included, so you can connect to both BCH and BSV. Enjoy!

For the technically inclined / curious, the primary code additions appear in this file and this file.

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/.

coinsplitter's People

Contributors

akshayaurora avatar asfin 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 lzsaver avatar m0mchil avatar marceloneil avatar markblundeberg avatar mhsmith avatar mkramlich avatar neocogent avatar ovidiusoft avatar rofl0r avatar romanz avatar rt121212121 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  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

coinsplitter's Issues

Issues with claiming BCH SV from Ledger Nano S

I had 2 Ledgers, the first splitting went fine.
With my second ledger, it didn't read all my transaction in the history. I had sent BCH on Nov 14 2018, 1 day prior to the split, I see the transaction ID on the blockchain but the Electrum Cash tool is not reading this transaction making my life hard to recuperate these coins.
It seems that is reading and old public key that has been emptied but not the new public key where the last batch of BCH where sent to.
Anyone had a similar issue? Appreciate any help I can get.
Tks

Bitcoin Cash SV

Hi!

I followed the steps in this tutorial to claim my Bitcoin Cash SV: https://support.ledgerwallet.com/hc/en-us/articles/360012270054?input_string=bitcoin+cash+sv

I didnt finish the step 7 because i didnt want to spend my BSV. But now I don't know if that step is obligatory to successfully claim my BSV.

I am sending a print from my screen to help me explain. So my question is: this amount that I have in my wallet is BSV already? Or should I follow some additional step to conclude my claim?

Thanks for your help, bye!

bsv

OP_MUL Splitting option in 3.3.2CS

i m performing two-way split and i had done the OP_CHECKDATASIGVERIFY split, but i din saw any option for OP_MUL Splitting.

1.) may i know how to use the OP_MUL Splitting?
2.) how to double check both split is successful and my coin are replay protected on both side

How to install under Fedora 29

# uninstall old electron-cash if necessary
rm -fv .local/bin/electron-cash
rm -frv .local/lib/python3.6/
rm -frv .local/lib/python3.7/
# install dependencies if necessary
sudo dnf install python3-setuptools python3-PyQt5 python3-pip
# now install modified electron-cash
wget https://github.com/markblundeberg/coinsplitter_checkdatasig/releases/download/3.3.2CS/Electron_Cash-3.3.2CS.tar.gz -O Electron_Cash-3.3.2CS.tar.gz
pip3 install --user Electron_Cash-3.3.2CS.tar.gz
# will be installed to ~/.local/bin/electron-cash
# important, otherwise you get message -> No module named 'PyQt5.sip'
pip3 uninstall pyqt5
# now electron-cash will start with
electron-cash

Thanks for programming bitcoin-splitter ...

Doesn't run on MacOS High Sierra

I am trying to run this on High Sierra, and can't get it to even start. When I click on the icon, I get a bobbing icon in my dock, and then it just quits.

Second send of coins sent did not broadcast, Any help?

Hi Mark,

I sent a small test of coins to Kraken from the ledger nano I had your coinsplitter attached. It worked perfectly once received in the Kranken exchange the coins were split, I felt comfortable to send all and then the BSV coins did not turn up in the 2nd transaction, below is what Kraken and Ledger support both said. I am at loss to know what to do. Could you offer any guidance, please?

Thank you for reaching out again,
Your funds are not lost, they are still on the sending address you can check it yourself on the BSV explorer,
This is the address for your convenience qq0qejgq33n7d38xtjnmyy0wpyp50j5r9sr8dtwu7k.
We split the coins when they are included on the transaction just like the first deposit.
as I said before your wallet either didn't broadcast it to the BSV chain or that the transaction wasn't replay-able. If it is replay-able you will need to find a tool to broadcast the transaction on or alternatively import your keys into a BSV wallet and send the tokens manually.
The BSV funds are still resting on the sending address.

Question regarding OP_MUL and if I did all this right =)

I just want to make sure I did this right.
Using the hardware/offline wallet method I did the following:
For CDS - ensured electron was on CDS network then followed all steps using CDS split method for the 1000 satoshi tx from offline / hardware wallet -> electron contract address -> output back to offline/ hardware wallet address -> created new tx on offline / hardware that spent entire wallets balance including the tiny contract address to a different address in wallet.
Everything confirmed, have over 100 confirmations on the above.

After the above, I then did the same thing with electron pointed at the non CDS network then used the split MUL tool on that network ... everything confirmed.

So, I should have non replayable coins on each chain now correct?

I don't see my second BCH account from Ledger Nano S in Electron Cash

Hi! Thank you for the tool. It worked fine for my first account. But as you probably know, Ledger let's you create multiple accounts with their addresses under the same Master account. So I have 2 accounts with BCH. And I don't see my second BCH account in Electron Cash. I just see there and can work with the coins from the first account only. The second account and its addresses seem to be missing. Do I have to turn it on somehow, or switch to?

problem with trezor

First of all: thanks for this awesome work.

Running into an issue (getting the "sorry! something went wrong popup") with following trace:

Traceback
Traceback (most recent call last):
  File "/home/nick/bitcoin/coinsplitter_checkdatasig/gui/qt/address_list.py", line 179, in <lambda>
    menu.addAction(_("Split coins (MUL)"), lambda: self.parent.start_coinsplit_mul(address=addr))
  File "/home/nick/bitcoin/coinsplitter_checkdatasig/gui/qt/main_window.py", line 1425, in request_password
    return func(self, *args, **kwargs)
  File "/home/nick/bitcoin/coinsplitter_checkdatasig/gui/qt/main_window.py", line 2193, in start_coinsplit_mul
    coinsplitmul.show_dialog(self, address, password)
  File "/home/nick/bitcoin/coinsplitter_checkdatasig/gui/qt/coinsplitmul.py", line 25, in show_dialog
    d = SplitDialog(*args, **kwargs)
  File "/home/nick/bitcoin/coinsplitter_checkdatasig/gui/qt/coinsplitmul.py", line 55, in __init__
    key = self.wallet.keystore.get_private_key(index, password)
AttributeError: 'TrezorKeyStore' object has no attribute 'get_private_key'
 
Additional information
Electron Cash version: 3.3.1CSplus 
Python version: 3.7.1 (default, Oct 22 2018, 10:41:28) [GCC 8.2.1 20180831] 
Operating system: Linux-4.18.16-arch1-1-ARCH-x86_64-with-arch 
Wallet type: standard 
Locale: en_US 

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.