Open dr-orlovsky opened 4 years ago
i can't from bitcoin.bech32 import *
too. ImportError: No module named 'bitcoin.bech32'
➜ pip3 show python-bitcoinlib
Name: python-bitcoinlib
Version: 0.10.2
Summary: The Swiss Army Knife of the Bitcoin protocol.
Home-page: https://github.com/petertodd/python-bitcoinlib
Author: None
Author-email: None
License: UNKNOWN
Location: /Users/tobi/.pyenv/versions/3.5.0/lib/python3.5/site-packages
Requires:
Required-by:
➜ ls -l
-rw-r--r-- 1 tobi staff 3012 Jan 8 14:18 __init__.py
drwxr-xr-x 11 tobi staff 352 Jan 8 14:18 __pycache__
-rw-r--r-- 1 tobi staff 4154 Jan 8 14:18 base58.py
-rw-r--r-- 1 tobi staff 6275 Jan 8 14:18 bloom.py
drwxr-xr-x 9 tobi staff 288 Jan 8 14:18 core
-rw-r--r-- 1 tobi staff 15310 Jan 8 14:18 messages.py
-rw-r--r-- 1 tobi staff 6739 Jan 8 14:18 net.py
-rw-r--r-- 1 tobi staff 27163 Jan 8 14:18 rpc.py
-rw-r--r-- 1 tobi staff 1637 Jan 8 14:18 signature.py
-rw-r--r-- 1 tobi staff 2088 Jan 8 14:18 signmessage.py
drwxr-xr-x 21 tobi staff 672 Jan 8 14:18 tests
-rw-r--r-- 1 tobi staff 9767 Jan 8 14:18 wallet.py
bech32.py
file not found
It seem belongs to 0.11.dev
Doe to some strange reason the release 0.10.2 does not include segwit_address which was merged before the release and is present in the master branch. So, there is no release with Bech32 address support so far (while the code is already there).
You can see segwit_address.py file absent here: https://github.com/petertodd/python-bitcoinlib/tree/python-bitcoinlib-v0.10.2/bitcoin