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

Pypy3 issue with hash160 address #16

Open
telekall opened this issue Apr 18, 2022 · 4 comments
Open

Pypy3 issue with hash160 address #16

telekall opened this issue Apr 18, 2022 · 4 comments

Comments

@telekall
Copy link

Hi there:
Quick question.
I am using this library with pypy3 and seems to work fine with compress and uncompress btc address.
But when try something like that:
mykey = int(key,16)
hash160 = ice.privatekey_to_h160(0, True, mykey).hex()
print(hash160)
I just got only 40 zeros = 0000000000000000000000000000000000000000
Can you spot a solution, thanks!

@iceland2k14
Copy link
Owner

Can you tell me what was the key for which it is happening. Or is it a secret ??

@telekall
Copy link
Author

hi,
The key is just a decimal number like :18446744073709551616.
Again, works fine with pure python, but with pypy3 just got a bunch of zeros.

@pianist-coder
Copy link

pianist-coder commented May 18, 2022

pypy and pypy3 doesn't support ctypes and finite fields operations. And pure python with ctypes is faster, than pypy.

If you want use pypy, use this with pure python scripts or with cffi.

@Grayesso
Copy link

Grayesso commented Jul 17, 2022

Hi there: Quick question. I am using this library with pypy3 and seems to work fine with compress and uncompress btc address. But when try something like that: mykey = int(key,16) hash160 = ice.privatekey_to_h160(0, True, mykey).hex() print(hash160) I just got only 40 zeros = 0000000000000000000000000000000000000000 Can you spot a solution, thanks!

pypy no work with DLL !

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

4 participants