bitcoinbook | Mastering Bitcoin 2nd Edition | Blockchain library

 by   bitcoinbook Python Version: second_edition_print3_rc1 License: Non-SPDX

kandi X-RAY | bitcoinbook Summary

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

            kandi-Quality Quality

              bitcoinbook has 0 bugs and 0 code smells.

            kandi-Security Security

              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.

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

            kandi-Reuse Reuse

              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 .
            Get all kandi verified functions for this library.

            bitcoinbook Key Features

            No Key Features are available at this moment for bitcoinbook.

            bitcoinbook Examples and Code Snippets

            No Code Snippets are available at this moment for bitcoinbook.

            Community Discussions


            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:



            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.



            How dose the bitcoin locking/unlocking script work?
            Asked 2018-Apr-07 at 14:18

            When I read the book Mastering Bitcoin chapter 6

            I try to follow the steps mentioned in this book, but I found out the result is not correct, where am I wrong?

            The transaction is here:

            Input Scripts:



            Answered 2018-Apr-07 at 14:18

            You have the right idea, but I think you are hashing the hex string, not the binary data. If I calculate ripemd160(sha256(pubk)) using Python's hashlib library I get the correct result:


            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:
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone bitcoinbook/bitcoinbook

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link