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

Use fastecdsa library #118

Closed
Nimrod-Galor opened this issue May 27, 2019 · 17 comments
Closed

Use fastecdsa library #118

Nimrod-Galor opened this issue May 27, 2019 · 17 comments

Comments

@Nimrod-Galor
Copy link

I love this script thanks for sharing.
How about using fastecdsa library?

@imcmurray
Copy link

I asked the very same question to myself a few days ago. Submitted pull request #119

@Nimrod-Galor
Copy link
Author

Cool, thanks for sharing
What os you are using?

@OSoup
Copy link

OSoup commented Jun 4, 2019

On Windows 10 I receive some big error when I try to install fastecdsa

@Nimrod-Galor
Copy link
Author

Installing fastecdsa on windows is a mess.
see:
AntonKueltz/fastecdsa#11
AntonKueltz/fastecdsa#22

@imcmurray
Copy link

Cannot open include file: 'gmp.h': No such file or directory

Yikes - forgot about including information about how fastecdsa needs GMP. Anybody want to tackle installing that on Windows? https://gmplib.org/ It looks a little steep. I'm running Debian based (Ubuntu 18.04) and GMP was a straight forward install.

For RedHat, Debian and MacOS users: http://www.mathemagix.org/www/mmdoc/doc/html/external/gmp.en.html

@OSoup
Copy link

OSoup commented Jun 4, 2019

I succeed to run it on Ubuntu 18.04 LTS. I will check to see if I can run it also on windows.

@Isaacdelly
Copy link
Owner

Thanks @imcmurray

I've tried implementing fastecdsa in previous versions of this program, and I agree that it is faster. But I've also spent countless hours trying to port GMP into a windows compatible library.

I want this program to be platform independent. Because it still is a proof-of-concept, I just want it to be able to run anywhere. So I chose the next best option which is starkbank-ecdsa. Theoretically, it is impossible for this program to be successful, this program is just for fun, I look at it like a fun-pointless side project. So limiting which operating system it can run on takes away from the fun, because not as many people are able to use it.

Like i said, I tried and failed to port GMP to windows a couple months ago when I attempted to implement fastecdsa. If you can find a way to do, then I'll commit your pull request.

Thanks again

@imcmurray
Copy link

You're right @Isaacdelly this is a fun side project, almost like digging for gold with a blindfold!
I totally understand your direction and wishes with this project. Maybe somebody down the road will come up with a solution for the Windows GMP issue - maybe Windows 10 insider edition would be a good target for somebody to take another bite - anybody up for the challenge? LOL

@Finn-Sionnach
Copy link

Finn-Sionnach commented Jun 10, 2019

You're right @Isaacdelly this is a fun side project, almost like digging for gold with a blindfold!
I totally understand your direction and wishes with this project. Maybe somebody down the road will come up with a solution for the Windows GMP issue - maybe Windows 10 insider edition would be a good target for somebody to take another bite - anybody up for the challenge? LOL

Read this, thought.. "hey why not give it a whirl?" and now I regret it. keyboard throwing, snapping at everyone, muttering to myself like someone pushing a grocery cart down an alleyway kinda regret.. and then I went "wtf am I doing?!?!?! this was a lark in the first place!" aaaaand I feel better now having quit trying and telling myself I will never ever ever ever even look at GMP from a windows perspective... okay I'll admit one day I'll get bored and think "Hey why not?" and when that day comes I sure hope I remember this post right here! :)

@imcmurray
Copy link

... I will never ever ever ever even look at GMP from a windows perspective ...

Thanks for brightening my day @Finn-Sionnach with your descriptive expressions, I'm going to be chuckling over your response for a while. GMP on Windows - so much craziness indeed!

You rose to the challenge, accepted it's whims and mythical number crunchiness, but as many before you, got a little too close to the Sun and realize WTF am I doing? LOL
Come - join the rest of us that dared to venture a little too close! You're in good company my friend.

@naphy0
Copy link

naphy0 commented Jun 28, 2019

You're right @Isaacdelly this is a fun side project, almost like digging for gold with a blindfold!
I totally understand your direction and wishes with this project. Maybe somebody down the road will come up with a solution for the Windows GMP issue - maybe Windows 10 insider edition would be a good target for somebody to take another bite - anybody up for the challenge? LOL

Read this, thought.. "hey why not give it a whirl?" and now I regret it. keyboard throwing, snapping at everyone, muttering to myself like someone pushing a grocery cart down an alleyway kinda regret.. and then I went "wtf am I doing?!?!?! this was a lark in the first place!" aaaaand I feel better now having quit trying and telling myself I will never ever ever ever even look at GMP from a windows perspective... okay I'll admit one day I'll get bored and think "Hey why not?" and when that day comes I sure hope I remember this post right here! :)

It is working on windows 10 with FASTECDSA just read in it here: AntonKueltz/fastecdsa#11
Even a beginner and no programming skill like me successfully run the plutus-fastedcsa on windows 10 just a couple of minute ago.

@OSoup
Copy link

OSoup commented Jun 28, 2019

Fuck it. I lost another hour of my life with this fastecdsa on windows shit with no result. @naphy0 if you succeeded please put the exactly steps. What version of python do you use?

@naphy0
Copy link

naphy0 commented Jun 28, 2019

Fuck it. I lost another hour of my life with this fastecdsa on windows shit with no result. @naphy0 if you succeeded please put the exactly steps. What version of python do you use?

Sorry late reply.

You need to have an microsoft visual 2019 and Microsoft c++ in visual studio
to run the fastedcsa. You cannot install it without Microsoft c++. after that follow this instruction.

  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\2019\BuildTools\VC\Tools\MSVC\14.21.27702\lib\x64
  5. Copy and paste gmp.h C:\Phyton3\include
  6. I don't remember if I do this ( just put mpir.dll from MPIR-Binary-master\dll\x64\Release in to the directory of package, C:\Python37\Lib\site-packages\fastecdsa ) Do it last if you have error. if not working try to rename it again to gmp.dll But I guess it's not needed to install fastedcsa.
  7. Open CMD and cd to where you put your fastecdsa E:\Download\fastecdsa-master
  8. when your cmd is in the directory type: python setup.py build
  9. after installation type again: python setup.py install
  10. Good Luck treasure hunting. Give me and the creator some tip you find one 3LkF5XDiEvW9xbVLAcjPHmq4JL9QPEUNYR

If there is an problem, message me here again.!! Happy hunting. I have a problem my PC cannot handle this program it hang. I wonder if I can lower the power to my CPU. I am using laptop i7-3632QM @ 2.20GHz and 8GB RAM.

@naphy0
Copy link

naphy0 commented Jun 28, 2019

I am using Python Latest

@OSoup
Copy link

OSoup commented Jun 29, 2019

From what I see the generated addresses are uncompressed. What we have to change in the code to search compressed addresses? or both? Thanks!

@ilyacherevkov
Copy link

I've just spent 2 days running this on 12 cores + 16 gb, burning electricity and my hardware :)

By the way, is it ok this implementation uses 500 mb RAM per core, and old one was using 2gb if I m not mistaken?

@Isaacdelly
Copy link
Owner

I'm pinning and closing this issue for now. Thanks for @imcmurray for the time he invested.

@Isaacdelly Isaacdelly pinned this issue Jul 17, 2019
Repository owner locked and limited conversation to collaborators Jul 17, 2019
@Isaacdelly Isaacdelly unpinned this issue Sep 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants