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

Windows incompatible with fastecdsa #323

Open
Be-yourself-09 opened this issue Jul 30, 2024 · 7 comments
Open

Windows incompatible with fastecdsa #323

Be-yourself-09 opened this issue Jul 30, 2024 · 7 comments

Comments

@Be-yourself-09
Copy link

Be-yourself-09 commented Jul 30, 2024

Is there a possibility of you to upload a version that works on windows? I tried operating the code and it didn't work, so I went through it and saw that you only use fastecdsa, which doesn't work on Windows. Could you please make and upload a version using starkbank-ecdsa, so that us window users can enjoy it too?

@marssystems
Copy link

Works fine for me on Windows 11.
Installed fastecdsa in Python 3.11 with no issues.

@Be-yourself-09
Copy link
Author

Mine doesn't get installed. I always get the message:
ERROR: Failed building wheel for fastecdsa
Failed to build fastecdsa
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (fastecdsa)

@johnlockejrr
Copy link

johnlockejrr commented Jul 31, 2024 via email

@Be-yourself-09
Copy link
Author

I have tried everything possible, but still can't get it to work. If you have figured it out, please share your solution.

@marssystems
Copy link

1.Download https://github.com/ChillMagic/MPIR-Binary
2.Download https://github.com/AntonKueltz/fastecdsa
3.rename mpir.h to gmp.h from MPIR-Binary-master\include and rename mpir.lib to gmp.lib from MPIR-Binary-master\lib\MD\x64\Release
4.Copy and paste gmp.lib C:\Program Files (x86)\Microsoft Visual Studio\20XX\BuildTools\VC\Tools\MSVC\XX.XX.XXXX\lib\x64
5.Copy and paste gmp.h C:\Phyton3\include or C:\Users\XXXXXXXX\AppData\Local\Programs\Python\include
6.Open CMD and cd to where you put your fastecdsa E:\Download\fastecdsa-master
7.when your cmd is in the directory type: python setup.py build
8.after installation type again: python setup.py install

@Be-yourself-09
Copy link
Author

Thanks a lot! I did this and got one step further, but still get an error message:
Traceback (most recent call last):
File "C:\Users\xrhst\Downloads\plutus\plutus.py", line 5, in
from fastecdsa import keys, curve
File "C:\Users\xrhst\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastecdsa\keys.py", line 7, in
from .ecdsa import verify
File "C:\Users\xrhst\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fastecdsa\ecdsa.py", line 5, in
from fastecdsa import _ecdsa
ImportError: DLL load failed while importing _ecdsa: Δεν ήταν δυνατό να εντοπιστεί η καθορισμένη λειτ. μονάδα.
What do you think could be causing this and how will I manage to correct it?

@Spedify
Copy link

Spedify commented Dec 23, 2024

it doesnt work for windows from what ive heard or seen

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