kandi has reviewed bitcoinbook and discovered the below as its top functions. This is intended to give you an instant insight into bitcoinbook implemented functionality, and help decide if they suit your requirements.
Mastering Bitcoin 2nd Edition - Programming the Open Blockchain
How dose the bitcoin locking/unlocking script work?
$ python Python 2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import binascii, hashlib >>> sha256 = hashlib.new('sha256') >>> ripemd160 = hashlib.new('ripemd160') >>> sha256.update(binascii.unhexlify('0484ecc0d46f1918b30928fa0e4ed99f16a0fb4fde0735e7ade8416ab9fe423cc5412336376789d172787ec3457eee41c04f4938de5cc17b4a10fa336a8d752adf')) >>> ripemd160.update(sha256.digest()) >>> ripemd160.hexdigest() '7f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a8'
How do install a python moduleAsked 2018-Jun-07 at 18:30
I am a C# developer and have decided to jump into Bitcoin programming using Python in Ubuntu, so I don't know much about python at the moment.
I downloaded some example code and at the top it says
It seems I need to somehow setup pybitcointools as a bitcoin module to use with Python based on the book Mastering Bitcoin 2nd Edition.
However, I can't seem to figure out how to install pybitcointools. I know it's not installed because my first example code gives the error:
oshirowanen@oshirowanen:~/Desktop$ python3 ./key-to-address-ecc-example.py Traceback (most recent call last): File "./key-to-address-ecc-example.py", line 2, in <module> import bitcoin ImportError: No module named 'bitcoin'
What have I already tried?
sudo aptitude install python-pip
sudo pip install pybitcointools
and I get a message saying that it has installed successfully.
ANSWERAnswered 2018-Jun-07 at 18:30
The package you're looking for has an empty description on PyPI and installs nothing when you install it.
If you click on the Homepage link, it's a GitHub repo containing nothing but a README file saying:
I really don't have time to maintain this library further. If you want to fork it or use it despite lack of maintenance, feel free to clone locally and revert one commit.
So, whatever this package used to provide before December 2017, it no longer does.
Just accept that the book is obsolete and therefore useless. Even if it's only a year old. (Somewhere I still have a book that's mostly about guesses about what's going to be in Java 1.1… nowadays, I don't usually buy books unless they're about ancient-enough-to-be-stable technology.)
If you really want to, you can do what that README suggests. But honestly, if you don't know enough about Git to fork the repo and revert the blanking commit, enough about
pip to install from a Git repo, and enough about Python to update and maintain the code, that's not going to do you any good.
You could try searching for other forks of the library on Github, but trying to figure out if one of them is being maintained by someone who knows what they're doing just by looking over the repos is pretty much impossible if you don't know enough about what they're doing.
You could try to find some Python Bitcoin programming community mailing list, IRC channel, forum, chat site, whatever and ask people there what they're doing. Stack Overflow is definitely not the right place to ask that. The lists and channels on Python's Community site might at least be able to point you in the right direction. Or maybe the Software Recommendations Stack Exchange, but be sure to read their help first and see if it's on topic.
No vulnerabilities reported