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

breakECDSA.py error #19

Open
tmaljay opened this issue Dec 15, 2023 · 3 comments
Open

breakECDSA.py error #19

tmaljay opened this issue Dec 15, 2023 · 3 comments

Comments

@tmaljay
Copy link

tmaljay commented Dec 15, 2023

Traceback (most recent call last):
File "C:\Users\tmalj_thhn\Downloads\Bitcoin-Wallet-Recovery-main\Bitcoin-Wallet-Recovery-main\Sources\breakECDSA.py", line 11, in
e = txnUtils.getSignableTxn(m)
File "C:\Users\tmalj_thhn\Downloads\Bitcoin-Wallet-Recovery-main\Bitcoin-Wallet-Recovery-main\Sources\txnUtils.py", line 53, in getSignableTxn
inputAddr = base58.b58decode_check(keyUtils.pubKeyToAddr(pub))
File "C:\Users\tmalj_thhn\Downloads\Bitcoin-Wallet-Recovery-main\Bitcoin-Wallet-Recovery-main\Sources\keyUtils.py", line 55, in pubKeyToAddr
ripemd160.update(hashlib.sha256(s.decode('hex')).digest())
AttributeError: 'str' object has no attribute 'decode'

@demining
Copy link
Owner

@tmaljay Thing is that earlier when I did the review it worked on UBUNTU 18.04. Now Google has updated its Google Colab service to version UBUNTU 22.04. I can suggest you install the old version of UBUNTU 18.04 on your PC and run everything through the terminal as shown in the article and in the video .
In addition, the "hashlib" module, which is installed by default, does not work properly, because Some cryptographic algorithms are missing, for example there is no RIPEMD160 algorithm and therefore we cannot reproduce base58.

To check, I ran the code:

import hashlib

for name in hashlib.algorithms_available:
    try:
        hashlib.new(name)
        print('ok', name)
    except ValueError:
        print('error', name)

image

Cryptographic algorithm: RIPEMD160 missing :(

It will be better if you do everything on your PC, install version UBUNTU 18.04

@tmaljay
Copy link
Author

tmaljay commented Dec 17, 2023

Thanks for taking time out to respond. I am currently installing UBUNTU 18.04, I will keep you posted on my progress and hopefully someone else can in the future use this as reference point.

@mzluckylady6969
Copy link

Working through the issues today I'll have them solved by tomorrow afternoon

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