bitcoinbook | Mastering Bitcoin 2nd Edition | Blockchain library
kandi X-RAY | bitcoinbook Summary
kandi X-RAY | bitcoinbook Summary
Mastering Bitcoin 2nd Edition - Programming the Open Blockchain
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- 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
bitcoinbook Examples and Code Snippets
Community Discussions
Trending Discussions on bitcoinbook
QUESTION
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:
...ANSWER
Answered 2018-Jun-07 at 18:30The 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.
Options:
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.
QUESTION
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:
...ANSWER
Answered 2018-Apr-07 at 14:18You 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
Vulnerabilities
No vulnerabilities reported
Install bitcoinbook
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.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page