Comments (4)
Not sure if you ever figured this out, but I'm also seeing inconsistencies. Trying all kinds of things but can't ever seem to get it to match addresses from https://iancoleman.io/bip39/ or the pycoin library I thought about swapping this out with.
Tried some things like
print('btc child 1')
print(w.get_child(0).get_child(0).get_child(0).to_address())
print('btc child 1v2')
print(w.get_child_for_path("m/44'/0'/0'/0").to_address())
but not matching up at all.
from pywallet.
Same here
from pywallet.
Could this be releated too:
Bug Notice
Versions of bitmerchant prior to 0.1.8 contained a caching bug that may have resulted in calls to bip32.Wallet.get_child to return incorrect results. All affected versions were removed from pypi, and no users are known to have been affected by this bug.
The steps to reproduce the bug are unlikely and do not match the typical usage patterns of bitmerchant.
At this time, no users are known to have been affected by this bug.
If you have been affected by this bug and need help recovering any lost or misplaced coins, please contact me directly at [email protected].
The affected versions of bitmerchant have been removed from pypi. They have not been untagged in git.
The two possible failure scenarios are: misplaced coins and stolen coins
https://github.com/sbuss/bitmerchant/blob/master/BUG_NOTICE.rst
from pywallet.
It seems that the chain codes used for calculating the child keys are completely wrong - it does HMAC on the mnemonic words themselves instead of the 128-bit seed entropy of the mnemonic.
See Wallet.from_master_key
for reference. By contrast, HDPrivateKey.from_master_mnemonic
method derives correct child keys.
Just put this code at the beginning of from_master_key to fix the bug:
# bip32.py, at the beginning of the file
from mnemonic.mnemonic import mnemonic
from .utils import ensure_bytes
# ...
# in Wallet.from_master_key
m = Mnemonic(language='english')
seed = ensure_bytes(m.to_seed(seed))
from pywallet.
Related Issues (20)
- btg and dash network is error
- Segwit
- how to spent my usdt i have the wif
- why the omni address start with 3? HOT 1
- How to Sign BTC Offline
- eos,trx,xrp support?
- Issue in consistency
- search address and response address is different
- Support for ERC-20 tokens
- Remove two1 dependency HOT 3
- Address generation
- protobuf error, Can't find required file: ../src/google/protobuf/descriptor.proto HOT 2
- Monero and Zcash support
- ERROR USDT wallet HOT 1
- Any way to get this to work with generating testnet addresses?
- USDT & DAI HOT 1
- Support for USDC
- Fails under Python 3.10: AttributeError: module 'collections' has no attribute 'MutableMapping' HOT 1
- error during installation HOT 2
- error “'pywallet' has no attribute 'wallet'” HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywallet.