Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install script to simplify installing packages #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

if [ -z $BASH_VERSION ] ; then
echo -e "You must run this script using bash." 1>&2
exit 1
fi


# Make sure we are running as superuser
if [[ $EUID -ne 0 ]]; then
echo -e "This script must be run using sudo." 1>&2
exit 1
fi

apt-get update

apt-get install --no-install-recommends python-virtualenv
python -m virtualenv --no-site-packages venv
source venv/bin/activate

pip install ez_setup
apt-get install python-dev libpq-dev
easy_install hashlib
pip install plyvel
pip install base58
easy_install pysqlite

echo -e "Run source venv/bin/activate in your terminal before executing btcposbal2csv commands"

10 changes: 2 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ python 2.7
pip

#### To install:
run pip install -r requirements.txt

or install following packages with pip manualy
* hashlib
* plyvel
* base58
* sqlite3
run sudo ./install.sh

#### Usage
To use you will need copy of chainstate database as created by [bitcoin core](https://bitcoin.org/en/bitcoin-core/)
Expand All @@ -39,7 +33,7 @@ python btcposbal2csv.py /home/USER/.bitcoin/chainstate /home/USER/addresses_with

#### Converting to RIPEMD160
Per request, I'm adding script which is able to convert BTC address to RIPEMD160 representation.
BTC address must be in fist column, RIPEMD160 is added to csv. Output goes to stdout.
BTC address must be in first column, RIPEMD160 is added to csv. Output goes to stdout.

Example:
```
Expand Down