-
Notifications
You must be signed in to change notification settings - Fork 119
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
--batch: command not found #55
Comments
I don't have a Windows machine to check, but this may help: Ubuntuenter:
If it compiles successfully, then you can run CygwinDownload and install Cygwin from https://cygwin.com/install.html On the "Select Packages" step, select "view" as "full"
Click "Next" to install packages. Run the "Cygwin Terminal" shortcut on the desktop. enter:
If it compiles successfully, then you can run |
Can you try running as |
exe also no success, look please for it when I add make how many errors Diana@HOME-PC ~/bitcoin-tool Diana@HOME-PC ~/bitcoin-tool Diana@HOME-PC ~/bitcoin-tool Diana@HOME-PC ~/bitcoin-tool |
ubuntu now : Looking like works but |
The user ID you're using in Ubuntu may be different than that which you're using in Windows - perhaps |
do maybe wrong folder I use? How I can know exactly path to folder with script? |
I generated new keys by command keys=99999 ; openssl rand $[32*keys] | xxd -p -c32 > hexkeys4 |
With that command - remember not to use any of those addresses, because the random keys it uses are not saved anywhere. It sounds like you're using WSL so the path you had in the first comment ( Also - please also run |
I finished successfully with keys generated by bitcoin tools and I see this folder with ready addresses, added new file with my own keys: |
can I generate keys start from and end, not random? for example begin from 0000000000000000000000000000000000000000000000000000000100000000 and end 00000000000000000000000000000000000000000000000000000001ffffffff by this command keys=99999 ; openssl rand $[32*keys] | xxd -p -c32 > hexkeys.txt what to change? can I do it ?? |
what does You can generate input like that with :
and use with bitcoin-tool like:
|
Note: please do not actually send any bitcoin to addresses generated like that, it is extremely insecure. |
this what I see |
Not really sure if WSL is different - but |
Its works after command sudo chmod u+rw hexkeys3.txt !!! |
I try your command |
bitcoin-tool can't convert to two different compression types in one step, but you could use some shell features to do it:
output:
|
I added few zeros to input |
Bash integer variables are only 64-bit, that's a 68-bit range, too large for bash numbers to express. |
OMG )) Thanks by anyway for everything, |
Dear matja i want generate random keys and as I understand I cant generate more than 67 000 000, maybe you have one new command to generate as I want? I use this command keys=67000000 ; openssl rand $[32*keys] | xxd -p -c32 > key1.txt success, but more cant rand: Value "3168000000" outside integer range, no any solution?? help pls... |
It's a limitation in openssl, try |
thank u, it work, success!! |
Dear matja ! Can I convert compressed wif private key to uncompressed wif? and any wif to hex format?? Which command is right? |
Yes, you'd need two commands, you can store the output or run them as a shell command substitution. Create example compressed WIF private key from a hex key (
Put the key in a shell variable Convert WIF key to a hex key, then convert hex key to uncompressed WIF key:
Check the output is correct by converting the uncompressed WIF key back to hex:
|
how I can mass convert? ok from wif to hex only, and after easy. I try now too many variations, doesnt work. example ./bitcoin-tool --input $( ./bitcoin-tool --input-file 1.txt --input-type private-key-wif --input-format base58check --batch --output-type private-key --output-format hex) > wifsss.txt --input-type private-key --input-format hex --output-type private-key-wif --output-format base58check --batch --input-file wifsss.txt --network bitcoin --public-key-compression uncompressed > keyss.txt . what I did here i smile. please hepl me only one command, I have file with wifs, i want convert it to hex all in one time |
./bitcoin-tool --input $( ./bitcoin-tool --input-file 1.txt --input-type private-key-wif --input-format base58check --output-type private-key --output-format hex ) --input-type private-key --input-format hex --output-type private-key-wif --output-format base58check --network bitcoin --public-key-compression uncompressed --batch > wwf.txt I try by one key it work good but cant convert mass by this command |
didi@HOME-PC:
|
dear, Matja! I want generate some keys by command for ((i=0x01;i<0xffffff;i++));do printf "%064x\n" $i;done > keys.txt , everything good but how I can generate without zeros? if I have keys like this 00000000000000000000000000000000000000000000000000000000000fffff and I want be like fffff only? please give me command for it if possible and amount of keys for example i want only 1000000 from this range? . thank you |
You can just use
Or use another program like sed with a regex to remove the leading 0's, which might be useful if you want to change it in other ways:
But that example has an odd number of hex digits, which is not padded to whole number of bytes, which might confuse some tools:
= two bytes of ...so you can just remove all the leading 00's which represent whole bytes:
|
Dear dearest author, I need your help and I cant resolve it alone, I was try cygwin and followed all instruction, used command
bitcoin-tool --batch --input-file 1mix.txt --input-format hex --input-type private-key --network bitcoin --public-key-compression auto --output-type address --output-format base58check --output-file r.txt
also
./bitcoin-tool --batch --input-file 1mix.txt --input-format hex --input-type private-key --network bitcoin --public-key-compression auto --output-type address --output-format base58check --output-file r.txt
-bash: ./bitcoin-tool: No such file or directory, but directory exits. I removed ./bitcoin-tool or bitcoin-tool and used command
--batch --input-file 1mix.txt --input-format hex --input-type private-key --network bitcoin --public-key-compression auto --output-type address --output-format base58check --output-file r.txt
I see --batch: command not found
I removed --batch and I see --input-file: command not found
and no results. What I do wrong?? I removed cygwin and installed ubuntu on win10 and same result. Command keys=99999 ; openssl rand $[32*keys] | xxd -p -c32 > hexkeys working good without any one mistake. which command I have to add on terminal to convert these hex keys to addresses??
Cygwin path to folder cd /cygdrive/c/bitcoin-tool/
Ubuntu path C:\Users\Diana\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\rootfs\home\didi\bitcoin-tool if I am right? it is a right path? how I can add new file to folder to convert ,maybe wrong path?
I am girl but not stupid but here I feel I miss some small word in command, please help , I stay 1 week like this.
The text was updated successfully, but these errors were encountered: