Title: ecctools - a small collection of tools written in C Post by: albert0bsd on September 22, 2021, 08:29:19 AM I made a new repository in github ecctools (https://github.com/albertobsd/ecctools)
This is a small collection of tools that i've made in the past months, most of those tools only do one or two things, those task are or were useful for me in some moments. Tool lists: List of tools in this repository
I will be updating this list when i add some new codes I start this topic just to seek ideas, improvements, bug reports, requests. Regards! Title: Re: ecctools - a small collection of tools written in C Post by: examplens on September 22, 2021, 09:43:39 AM add in the title something like (for Linux users only) ;)
Title: Re: ecctools - a small collection of tools written in C Post by: WanderingPhilospher on September 23, 2021, 12:37:29 AM I will help, but we need to figure out how Windows users can easily compile or at least have a .exe file to run on Windows.
I will try to compile on Windows - Mingw64 using make command. Will post update. No good with Mingw64 and make command. Same errors as keysubtracter. Code: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: gmpecc.o:gmpecc.c:(.bss+0x2020): multiple definition of `EC'; C:\msys64\tmp\ccf7PnVf.o:rehashaddress.:(.bss+0x2040): first defined here But for Keyhunt, I can create/compile using Mingw64 and using make command. Title: Re: ecctools - a small collection of tools written in C Post by: WanderingPhilospher on September 23, 2021, 02:10:02 AM I was able to compile under Windows using Mingw64!! 8)
Title: Re: ecctools - a small collection of tools written in C Post by: WanderingPhilospher on September 23, 2021, 02:51:24 AM Here is the Windows version:
https://github.com/WanderingPhilosopher/Windows-ECC-Tools (https://github.com/WanderingPhilosopher/Windows-ECC-Tools) albert0bsd, You may want to add the link in your main post so people who use Windows know they can use your program as well. WP Edit: If Windows users wish to compile on their own, I followed this guide https://www.msys2.org/ (https://www.msys2.org/) to download, install, setup the mingw-w64 GCC. Follow the instructions. Once complete, you can go to the above github page that has my Windows release and download the files and unzip. Open up MSYS MinGW 64-bit, do a cd (change directory) to the folder containing the files. Once there, simply type in make. Enjoy. Title: Re: ecctools - a small collection of tools written in C Post by: albert0bsd on September 23, 2021, 05:08:09 AM add in the title something like (for Linux users only) ;) Well, yes i usually develop for linux, but the code can be running on windows through the ubuntu shell. Also with Mingw64. I was able to compile under Windows using Mingw64!! 8) That is what i'm talking about :) Thanks! 1. For rehashaddress, what hash algorithm do you use? for now only sha256, but i will add some extra options. 2. Looking at README.md, looks like this tool only support legacy address (address with prefix 1), is it true? Yes that is true for now, i will plan to add some extra kind of address but i'm still learning and testing it. 3. You might want to mention version of C (and other dependency/utility), so other people (and yourself in the future) could save some time. Excellent yes, i will add it in the readme, some times I forget that most users doesn't know linux, also i forget that most user never read the readme LOL Here is the Windows version: https://github.com/WanderingPhilosopher/Windows-ECC-Tools (https://github.com/WanderingPhilosopher/Windows-ECC-Tools) You may want to add the link in your main post so people who use Windows know they can use your program as well. I will add it, also to the readme in github. Thanks! Title: Re: ecctools - a small collection of tools written in C Post by: albert0bsd on September 24, 2021, 07:39:36 AM I know this is hobby project, but you might want to check https://keybase.io/warp (https://keybase.io/warp) as reference if you plan to improve it's security. Interesting i saw that it use scrypt and pbkdf2. Code: s1 = scrypt(key=(passphrase||0x1), salt=(salt||0x1), N=218, r=8, p=1, dkLen=32) I will implement that, one to generate those address and another to forcebrute them. Title: Re: ecctools - a small collection of tools written in C Post by: PrivatePerson on April 06, 2022, 02:58:00 PM Code: ~/ecctools$ ./addr2rmd Code: ~/ecctools$ make Title: Re: ecctools - a small collection of tools written in C Post by: seoincorporation on April 06, 2022, 04:40:10 PM Great tool mate thanks for sharing it. I would like to request a feature if it's possible.
It would be nice if you add the passphrase (BrainWallet) option, that way people we can recover or create addresses from words or phrases. A good example of this is: https://brainwalletx.github.io/ On that site we can input the phrase 'bitcointalk', and get the address: 15Ds7MtbSx8hxC73dojDzMj2WE6jTJHR67 That is why I think this would be a great tool for your collection. If you need some help I have a script on bash and python for passphrase and I could share them with you for the C code translation. Title: Re: ecctools - a small collection of tools written in C Post by: albert0bsd on April 06, 2022, 09:04:11 PM Code: ~/ecctools$ ./addr2rmd Sorry for that I just forget to add the compilation line in the Makefile. I already update that repository. It would be nice if you add the passphrase (BrainWallet) option, that way people we can recover or create addresses from words or phrases. A good example of this is: I already have a tool for that in the repossitory it is rehashaddress this tool can generate a Endless addresses from a passphrase check the readme for more details. Basic example: Code: $ ./rehashaddress -p bitcointalk -n 1 -m 0 Title: Re: ecctools - a small collection of tools written in C Post by: seoincorporation on April 07, 2022, 02:06:27 PM ... I already have a tool for that in the repossitory it is rehashaddress this tool can generate a Endless addresses from a passphrase check the readme for more details. Basic example: Code: $ ./rehashaddress -p bitcointalk -n 1 -m 0 I see mate, you are right, there is the tool but I get confused with the name, but it's what I was looking for. Now, what you have as Privatekey output is the Secret Exponent, and I don't see the privatekey in the output: For that same example: Secret Exponent: 75959c5b70c912201868c26256115fd330ef389dcf93468d33a13a0716ca55e7 Privatekey: 5Ji57mxMqPCo5jKuaQxTv9HYnkjVMYrh2ZieRhMyesiJQeVz2Du And I think this is important because if we want to import the address to any wallet the right format is the one starting with 5J... Title: Re: ecctools - a small collection of tools written in C Post by: albert0bsd on April 07, 2022, 02:27:21 PM O right the privatekey in WIF format, I will add it later
Title: Re: ecctools - a small collection of tools written in C Post by: fxsniper on April 17, 2022, 10:34:00 AM I have a problem with compiled all tools on WSL2 ubuntu
can compile success only one is rehashaddress other code is error Did this tools have a python code version that can be used keydivision keymath modmath Title: Re: ecctools - a small collection of tools written in C Post by: fxsniper on April 17, 2022, 11:04:57 AM still have some errors when compiling (make)
Code: keygen.c: In function ‘main’: some I try to fix problems not found file and require file "gmp.h" and file "openssl/rand.h just random fix sudo apt-get install libgmp3-dev sudo apt install libgcrypt sudo apt install libgcrypt20-dev sudo apt install openssl sudo apt-get install libssl-dev Title: Re: ecctools - a small collection of tools written in C Post by: albert0bsd on December 12, 2022, 06:14:17 PM I just add verifymsg to the reposity
This is a tool to help to vefiry the signatature of a bitcoin message : Code: ./verifymsg -m 1E9YwDtYf9R29ekNAfbV7MvB4LNv7v3fGa -a 1NChfewU45oy7Dgn51HwkBFSixaTnyakfj -s "HCsBcgB+Wcm8kOGMH8IpNeg0H4gjCrlqwDf/GlSXphZGBYxm0QkKEPhh9DTJRp2IDNUhVr0FhP9qCqo2W0recNM=" Also it have some VERBOSE mode -v it give you the calculated publickey of the address, also the values RSZ for this signature. Code: ./verifymsg -m 1E9YwDtYf9R29ekNAfbV7MvB4LNv7v3fGa -a 1NChfewU45oy7Dgn51HwkBFSixaTnyakfj -s "HCsBcgB+Wcm8kOGMH8IpNeg0H4gjCrlqwDf/GlSXphZGBYxm0QkKEPhh9DTJRp2IDNUhVr0FhP9qCqo2W0recNM=" -v Title: Re: ecctools - a small collection of tools written in C Post by: GR Sasa on July 09, 2023, 11:30:41 AM Hi WanderingPhilospher,
I just noticed that you only compiled 2 tools out of 9 tools that Alberto developed in his ecctools Could you please help us compile others tools for us windows users? Thank you, and Goodluck hunting for #130! Title: Re: ecctools - a small collection of tools written in C Post by: WanderingPhilospher on July 14, 2023, 01:15:28 AM Hi WanderingPhilospher, I could not get them all to compile.I just noticed that you only compiled 2 tools out of 9 tools that Alberto developed in his ecctools Could you please help us compile others tools for us windows users? Thank you, and Goodluck hunting for #130! https://github.com/WanderingPhilosopher/Windows-ECC-Tools/releases/tag/v2.0 (https://github.com/WanderingPhilosopher/Windows-ECC-Tools/releases/tag/v2.0) Title: Re: ecctools - a small collection of tools written in C Post by: digaran on July 31, 2023, 06:47:35 PM Is there any example command to use modmath, keydivision etc for windows? Appreciate a reply.
Title: Re: ecctools - a small collection of tools written in C Post by: GR Sasa on July 31, 2023, 07:00:23 PM Many examples are written in the repository ecctools.
Alberto already provided couple of examples for each program ;) Title: Re: ecctools - a small collection of tools written in C Post by: digaran on July 31, 2023, 09:24:46 PM Many examples are written in the repository ecctools. I just read WP's page, there was only 1 example, since Alberto and WP share the same topic, I had to ask it here, you could have said that when I asked you via PM. Thanks though, let the never ending division begin! 😉Alberto already provided couple of examples for each program ;) |