kandi background

bitcoinbook | Open Blockchain | Blockchain library

Download this library from

kandi X-RAY | bitcoinbook Summary

bitcoinbook is a Python library typically used in Financial Services, Fintech, Blockchain, Bitcoin applications. bitcoinbook has no bugs, it has no vulnerabilities and it has medium support. However bitcoinbook build file is not available and it has a Non-SPDX License. You can download it from GitHub.
Mastering Bitcoin 2nd Edition - Programming the Open Blockchain

kandi-support Support

  • bitcoinbook has a medium active ecosystem.
  • It has 16943 star(s) with 4574 fork(s). There are 1042 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 35 open issues and 290 have been closed. On average issues are closed in 267 days. There are 14 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of bitcoinbook is second_edition_print3_rc1

quality kandi Quality

  • bitcoinbook has 0 bugs and 0 code smells.


  • bitcoinbook has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • bitcoinbook code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.

license License

  • bitcoinbook has a Non-SPDX License.
  • Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.


  • bitcoinbook releases are available to install and integrate.
  • bitcoinbook has no build file. You will be need to create the build yourself to build the component from source.
Top functions reviewed by kandi - BETA

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.

  • Given a list of unspent unspent outputs return the sum of the unspent outputs .
  • Calculate the proof of the given header .
  • Outputs unspent outputs .
  • Get a valid address .
  • Calculates the max money for the block .
  • Return a random secret number .
  • get public key pubkey
  • Generate the public key for a point .
  • Initialize the transaction .
  • Return the representation of the transaction .

bitcoinbook Key Features

Mastering Bitcoin 2nd Edition - Programming the Open Blockchain

bitcoinbook Examples and Code Snippets

  • How dose the bitcoin locking/unlocking script work?

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()

Community Discussions

Trending Discussions on bitcoinbook
  • How do install a python module
  • How dose the bitcoin locking/unlocking script work?
Trending Discussions on bitcoinbook


How do install a python module

Asked 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

import bitcoin

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.


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


  1. 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.)

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

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

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

Source https://stackoverflow.com/questions/50747653

Community Discussions, Code Snippets contain sources that include Stack Exchange Network


No vulnerabilities reported

Install bitcoinbook

You can download it from GitHub.
You can use bitcoinbook like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.


If you know how to make a pull request to contribute a fix, please write the correction and use a pull request to submit it for consideration against the develop branch. If you are making several changes, please use a separate commit for each to make it easier to cherry-pick or resolve conflicts. Otherwise, please submit an issue, explaining the error or comment. If you would like to contribute extensive changes or new material, please coordinate with the author first; contact information can be found on his website: https://antonopoulos.com/.

Build your Application

Share this kandi XRay Report