Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why doesn't this work on Private Key WIF compressed ? #21

Open
demining opened this issue May 30, 2022 · 2 comments
Open

Why doesn't this work on Private Key WIF compressed ? #21

demining opened this issue May 30, 2022 · 2 comments

Comments

@demining
Copy link

I get an error. What am I doing wrong?

from bitcoinaddress import Wallet

priv = "KwLdv6T2jmhQbswnYrcL9KZHerTpVyjozp1JNjfP5QuD3GchCwCc"

wallet = Wallet(priv)
print(wallet)
@mrx23dot
Copy link

mrx23dot commented Jun 15, 2022

same on
print(Wallet('KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn'))

File "C:\Python37\lib\site-packages\bitcoinaddress\address.py", line 93, in generate
self.key.generate()
AttributeError: 'Key' object has no attribute 'generate

bitcoinaddress==0.1.5

@damascene
Copy link

damascene commented Jun 24, 2023

Getting the same, seems it only accepts non compressed WIF. Maybe it's possible to do the conversion using the library or some of it's dependencies @fortesp ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants