Bitcoin Forum
June 20, 2024, 11:20:13 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 [138] 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 ... 514 »
2741  Other / Beginners & Help / Re: What is the minimum fee for a transaction? on: May 08, 2020, 11:57:39 PM
What will be the minimum required fee for a transaction in bitcoin?
Technically, the minimum fee is actually zero. It is still a "valid" transaction with a fee of zero and can be included in a block.

However, there is also the "minrelaytxfee" that most nodes use, to determine whether they will propagate the transaction across the network. It defaults (in Bitcoin Core) to 1 sat/byte (technically 0.00001000 btc/kbyte)... but each node is free to pick their own rate...



So... while you can create a transaction with a fee of "0", don't expect your transaction to propagate well... or at all. You'd most likely need to send it directly to a friendly miner (that hates money) to include it in their mempool directly. Tongue
2742  Bitcoin / Development & Technical Discussion / Re: To Create a Segwit (P2SH) Manually on: May 08, 2020, 11:12:58 PM
Have you had a read of the SegWit Wallet Development Guide? https://bitcoincore.org/en/segwit_wallet_dev/

It lists all of the steps required for the creation of each type of address... the section on "Complex Script Support" mentions MultiSig: https://bitcoincore.org/en/segwit_wallet_dev/#complex-script-support
2743  Bitcoin / Electrum / Re: Electrum Ubuntu totally noob on: May 08, 2020, 11:02:50 PM
Almost same question but I'm using Lubuntu and it doesn't have the executable tick box. Any suggestions other than not using Lubuntu Smiley ? Thx
What version of Lubuntu are you using? You must have 18.04 or earlier, as I just fired up a 20.04 VM and it has this:



However, in 18.04 I see that this option is missing:



Just change the "execute" value to "Owner and Group":



Then you should be able to double-click on it and it will prompt you to execute it:



or you can upgrade to 20.04 Wink Tongue
2744  Bitcoin / Bitcoin Discussion / Re: 0.50 BTC reward for a valid password. on: May 08, 2020, 10:36:09 PM
As I suspected, it was a "SHIFT" typo with the "5" and "%" symbol... typing the "5" too quickly after holding "SHIFT" to type the "#" just before it Wink




Congratulations on recovering your password.
2745  Bitcoin / Bitcoin Technical Support / Re: Looking for a code to Create, Sign & Broadcast Transaction solely using PHP. on: May 08, 2020, 10:06:48 PM
Yes, I'm a newbie but I'm a bitcoin expert Smiley
Solid effort. But I suspect that the reason the OP specified that his sendTX() function takes a private key is that he doesn't have access to a Bitcoin Core node to be able to make use of RPC. I believe this is also why he mentioned using APIs at blockcypher/sochain etc to retrieve UTXOs.

And one small piece of advice... next time, when posting code, please use [ code ][ /code ] formatting tags (without the spaces)... it makes code a LOT easier to read when it is indented properly in monospaced font, and it also prevents your posts from getting excessively long Wink


Code:
require("jsonRPCClient.php");
$bitcoin = new jsonRPCClient('http://username:password@127.0.0.1:port');

$addresses = array (

"address1" => "address", //fill in address you want to spend from
"address2 => "address"  //fill in address you want to spend from

);


$unspentTransactions = $bitcoin->listunspent(0, 99999, $addresses);



 $collectedTransactions = [];

    foreach ($unspentTransactions as $unspentTransaction) {

        if ($collectedAmount < $amountToSend) {
            $collectedTransactions[] = [
                'txid'  => $unspentTransaction['txid'],
                'vout'  => $unspentTransaction['vout'],
               
            ];

           $collectedAmount += $unspentTransaction['amount']; //this shows all balance collected from addesses you wish to spend from
        } else {

            break;
        }
    }


$recipient = "address";  //this where you want to send payment to
$amount = 0.000000; //amount you wish to send in BTC value
$change_address = "your_change_Address";
$change_amount = number_format($collectedAmount-$fee-$amount, 8);

$output =
    array(


"".$recipient."" =>"".$amount."",

//this is where the change money will go back to... set your address

"".$change_addr."" =>"".$change_amount-$fee."",

);


// Now let's create the transaction

 $rawTransaction = $bitcoin->createrawtransaction($collectedTransactions, $output);

// now lets sign the transaction using bitcoin core signwithwallet function

$sign_raw_txn = $bitcoin->signrawtransactionwithwallet($rawTransaction);
$shex = $sign_raw_txn['hex']; // this is the signed hex you can do anything you want with it... if you want to send payment follow the next step.


echo $bitcoin->sendrawtransaction($shex); // this will return txn id and you're all done.


//I haven't tested this code so if you want me to code it for you I can do in my spare time, I hope this helps.

ps. There is also a missing " in your "address2 => "address" line... Wink
2746  Bitcoin / Bitcoin Discussion / Re: 0.50 BTC reward for a valid password. on: May 08, 2020, 01:33:06 PM
On both PCs, the error is the same, here from the old disk on which the original wallet lies. http://icecream.me/ff575568b385d668fd97e9b2b69b6d06

hashcat requires OpenCL. It seems you do not have it installed.

If you don't have a graphics card (GPU) like AMD or Nvidia, you can try installing the "OpenCL Runtime for Intel Processors" from here: https://software.intel.com/content/www/us/en/develop/articles/opencl-drivers.html#latest_CPU_runtime

It will most likely run a lot slower than it would with a GPU, but at least it will run.
2747  Economy / Games and rounds / Re: Predict the Bitcoin halving price = WIN 0.020 BTC on: May 08, 2020, 12:42:02 PM
I'm always terrible at competitions like this... but it's pretty much just random dumb luck... so I'll throw in a stupid optimistic guess Tongue

My Guess: €11825.30
Bitcasino.io Account: hcp123
2748  Bitcoin / Bitcoin Technical Support / Re: Export list of private keys from BitcoinCore on: May 08, 2020, 12:28:32 PM
So seeds and master private keys are the same, but represented in a different way? (mnemonic phrase // private key format)
No. They're not the same (other than the fact that they're generally really big numbers).

There seems to be some confusion here surrounding terminology...

A "seed" is just a really big, random number. It's the "starting point" for deriving everything in an HD wallet.
A "seed mnemonic" is a way to store this really big random number as a series of plain (usually english) words (aka BIP39)
A "Master Private Key" is a another really big number derived from the seed. (aka BIP32)



FUN fact... have a look in your dumpwallet output for the "hdseed=1" record. The 'WIF' record you see there is the 'seed' for your wallet. It can be used with the createwallet (need to set argument 'blank'=true) and sethdseed commands to set the seed in a Bitcoin Core wallet to recreate a wallet. This is NOT a recommended backup system.
2749  Bitcoin / Bitcoin Technical Support / Re: Export list of private keys from BitcoinCore on: May 08, 2020, 11:57:13 AM
I have a HD wallet from BitcoinCore, and I suspect that there are some ways of tapping my wallet. I don't want to sign transactions with BitcoinCore. So I would like to import private keys into Armory and sign transactions offline.
I'm not quite sure I understand what your issue is... you're concerned that there might be some sort of "spyware" in Bitcoin Core? Huh


Quote
Or, if I can sign transactions offline and see the FULL content of each transaction before it is pushed to nodes, that would work as well. I don't care if it's Electrum, Armory, BitcoinCore or any other tool, as long as I get to see the full content of what goes out to other nodes.
You realise if you use the Bitcoin Core console (or bitcoin-cli) you can manually create and sign transactions without broadcasting them... you'll be able to decode and view the full contents before you send it...

1. createrawtransaction
2. signrawtransactionwithkey or signrawtransactionwithwallet (useful if spending from multiple addresses)
3. decoderawtransaction

Once you're satisfied... you can use:

4. sendrawtransaction

2750  Bitcoin / Bitcoin Technical Support / Re: Ridiculous tray icon bug on: May 08, 2020, 11:49:01 AM
Have you checked your bitcoin.conf file? Huh You can set some of the User Interface Options in there, like minimizetotray... and if it's set there as minimizetotray=0, it might set the ones in the GUI to be greyed out so that it can't be changed.

But I'm kinda grasping at straws on this one tbh. A very strange issue indeed! Undecided Huh
2751  Bitcoin / Bitcoin Discussion / Re: 0.50 BTC reward for a valid password. on: May 08, 2020, 11:26:53 AM
I want to unlock them myself, but I have problems running hashcat.


Thank you, I am noting all your advice.
Are you still having issues running Hashcat? If so, what errors are you getting when you attempt to run it? What output do you get? Huh
2752  Bitcoin / Bitcoin Discussion / Re: 0.50 BTC reward for a valid password. on: May 07, 2020, 09:12:21 PM
Provenance of the wallet.dat file notwithstanding...

Given the supplied password... the following "mask file" will try checking for basic typo's on each character first (including SHIFT not held properly when typing UPPERCASE/symbol, or SHIFT accidentally held when trying to type lowercase/number). Then it will test each position, one at a time, and try ANY possible character in that position.

NOTE: if there is more than one character incorrect, this will NOT work.

Code: (test.hcmask)
?s?d,?1#5cltEkfy/5z
?s?d,~?15cltEkfy/5z
?d?s,~#?1cltEkfy/5z
?l?u,~#5?1ltEkfy/5z
?l?u,~#5c?1tEkfy/5z
?l?u,~#5cl?1Ekfy/5z
?l?u,~#5clt?1kfy/5z
?l?u,~#5cltE?1fy/5z
?l?u,~#5cltEk?1y/5z
?l?u,~#5cltEkf?1/5z
?s?d,~#5cltEkfy?15z
?d?s,~#5cltEkfy/?1z
?l?u,~#5cltEkfy/5?1
?a#5cltEkfy/5z
~?a5cltEkfy/5z
~#?acltEkfy/5z
~#5?altEkfy/5z
~#5c?atEkfy/5z
~#5cl?aEkfy/5z
~#5clt?akfy/5z
~#5cltE?afy/5z
~#5cltEk?ay/5z
~#5cltEkf?a/5z
~#5cltEkfy?a5z
~#5cltEkfy/?az
~#5cltEkfy/5?a

Create a new file where hashcat.exe is... call it "test.hcmask"... copy/paste the above masks into it and save it.

The hashcat commandline should be:
Code:
hashcat.exe -m 11300 -a 3 $bitcoin$96$**** test.hcmask
NOTE: replace $bitcoin$96$**** with your actual wallet.dat hash extracted using bitcoin2john.py


Hashcat will then run through all the 1 character possibilities. If it doesn't work then, as noted above, there is more than one character that is incorrect... Undecided
2753  Bitcoin / Bitcoin Discussion / Re: 0.50 BTC reward for a valid password. on: May 07, 2020, 08:36:37 AM
Tell me, is it possible to ask one character to perform a search and include the others that were found to check each of them in turn? Give me the right command to do this.
...
I want to insert my password from a text file and try one character at a time for an error, this may work.
Not sure exactly what you mean by try one character at a time. You have to test complete passwords... but do you mean you just want to check each character for error?

If so, then I believe the following might help. For instance, if you think your password was "ha$hc4t", but you think there might be a typo with the first character... you could try:

?aa$hc4t

This will try EVERY character (?a) at position 1... followed by "a$hc4t":

aa$hc4t
ba$hc4t
ca$hc4t
da$hc4t
ea$hc4t
fa$hc4t
...
etc etc

You could try that, and if not successful, you could try the 2nd char:

h?a$hc4t <--- "h" (test every character at position 2 with ?a) followed by "shcat":

ha$hc4t
hb$hc4t
hc$hc4t
hd$hc4t
he$hc4t
hf$hc4t
...
etc etc

And then try position 3, then position4 etc...


You can also create a ".hcmask" file, that includes all the masks you wanted to try...

Code: (example.hcmask)
?aa$hc4t
h?a$hc4t
ha?ahc4t
ha$?ac4t
ha$h?a4t
ha$hc?at
ha$hc4?a

Would try each of those masks, one after the other, exhausting all possible permutations before moving onto the next mask... you just use the file name in place of the mask in the commandline:
Code:
hashcat.exe -m 11300 -a 3 $bitcoin$96$**** example.hcmask
2754  Bitcoin / Electrum / Re: Just paid 6$ to move $230. Is that acceptable to you ? on: May 07, 2020, 12:20:48 AM
Have you checked the current state of the network? Have a look at: https://jochen-hoenicke.de/queue/#0,24h

It's been very busy and there was a sharp uptick in fee rates.

It looks like you went with whatever fee the wallet proposed... or used the "slider"? If you goto "Tools -> Preferences - > Fees" and select the "Edit Fees Manually" option, you'll be able to set it to whatever you want.

The trade-off (of course there is a trade-off! Tongue) is that your transaction could take a long time to get confirmed, if you set the lowest fee rate (ie. 1 sat/byte) and the network is very busy with lots of high fee rate transactions sitting in the mempool.

But with your transaction size of 454 bytes, you would only have paid 454 sats at 1 sat/byte... instead of paying 45004 sats at 93 sats/byte! Shocked Shocked
2755  Bitcoin / Wallet software / Re: Wallet with lowest fees (Online and/or iOS) on: May 07, 2020, 12:13:30 AM
Do you know of a more balanced wallet for transactions ?
Can you write your transaction fees at the very moment you answer?
Just find a wallet that lets you specify the fee rate to be used.

If you want an iOS one, I'd also recommend "BRD" wallet.


Note that there can be a natural variance of the total fee paid depending on the the data size of the transaction you are sending... it's not dependent on the BTC value being sent, but the number of inputs and outputs being generated.

It is entirely possible to send 2 transactions, both of which send the same amount of BTC... to have wildly different total fees... even if you set both to use a fee rate of 1 sat/byte.

Example:
- TransactionA, has 1 (legacy) input and generates 2 outputs... it'll be around 226 bytes in size... and at 1 sat/byte, would have a fee of 226 sats.
- TransactionB, has 100 (legacy) inputs and generates 2 outputs... it'll be around 15000 bytes in size... and even at 1 sat/byte, would have a fee of ~15000 sats.


The exact numbers are a little different with SegWit and "weight" and virtualBytes etc... but generally, the more inputs you need to use, the larger your transactions data size, and therefore it's total fee, will be.
2756  Bitcoin / Development & Technical Discussion / Re: Private Key Restorer on: May 06, 2020, 11:37:15 PM
guys i have Etherium private key was saved in notepad accidently my kids press some alphabet and first 20 digits missing
20 characters missing!!?! Shocked Shocked Shocked

Your chances of being able to recover that in a 'timely' manner are pretty much zero... that's nearly 1/3 of the 64 hex characters making up a private key... and something ludicrous like 16^20 permutations... 1208925819614629174706176 to be precise. Shocked Shocked Shocked Undecided
2757  Bitcoin / Bitcoin Technical Support / Re: Looking for a code to Create, Sign & Broadcast Transaction solely using PHP. on: May 06, 2020, 10:50:56 PM
So, what you want is for someone to use Bit-Wasp's PHP implementation and to actually write you some code for a function called sendTX()? Huh

All the documentation for creating/signing transactions is available here: https://github.com/Bit-Wasp/bitcoin-php/blob/1.0/doc/documentation/Transaction.md

In fact, their "Pay to pubkey hash" example seems to do pretty much everything that you're asking for. You'd just need to figure out how to retrieve the UTXO data that you're after and pass that into the transaction builder.
2758  Bitcoin / Bitcoin Discussion / Re: 0.50 BTC reward for a valid password. on: May 06, 2020, 08:02:40 AM
your string looks a bit incorrect... it shouldn't have all the spaces in it...

Code:
hashcat.exe -m 11300 -a 3 $bitcoin$96$**** hash?~?#?5?C?L?TEK?F?Y?/?5?r?
But it looks like you're getting the position of the ?'s wrong... and you don't quite get what the ?'s mean.

?l == lowercase letters (ie. abcdefghijklmnopqrstuvwxyz)
?u == uppercase letters (ie. ABCDEFGHIJKLMNOPQRSTUVWXYZ)
?d == numbers 1234567890
?s == symbols !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
?a == All of the above

if you want to use a specific letter... you don't use ? at all... So, I'm not sure exactly what you are trying to use as your mask... but pretty much none of your ?'s make any sense... Huh Huh

So, that command as it is written isn't going to work.
2759  Bitcoin / Development & Technical Discussion / Re: Brain Wallet for BIP39 on: May 05, 2020, 11:44:47 PM
Imo a really long passphrase have to be test at least once a week, and of course in secure offline device.
Not just really long passphrases to be honest... I noted with interest that a Google Authenticator App I have been using (Aegis), will actually prompt you after a certain number of numbers to use your master password rather than the fingerprint to sign in. "It's been a while since you logged in with your password, do you still remember it"... I thought that was a great feature.

But yes, with regards to all this, it really comes down to your own personal level of risk aversion/acceptance. If you're happy with the system you've got, understand any risks involved and take appropriate steps to mitigate those risks, then you should be OK.

It's the folks who don't understand what they're getting into and don't take adequate steps to mitigate the risks that get in trouble.
2760  Bitcoin / Development & Technical Discussion / Re: Brain Wallet for BIP39 on: May 05, 2020, 11:17:46 AM
We know that it is pretty much impossible to find collision in SHA256, so if I use it with my passphrase there is no other way for attacker to guess it, am I wrong?
Yes, you are wrong, as I think you're misunderstanding what a "collision" actually is...

A collision is not someone being able to guess whatever it was you have hashed... a collision is two different values that will generate the same hash result. ie. SHA256(X) == SHA256(Y) would be a collision.



Regardless of whether or not you use SHA256, the strength of your brainwallet lies purely in how long and complicated the passphrase actually is... and generally speaking, it is simply not going to be as random and have as much entropy as a properly (randomly) generated seed/private key.

Given some of the stories that have been floating around (ie: https://www.reddit.com/r/Bitcoin/comments/1ptuf3/brain_wallet_disaster/ and https://www.reddit.com/r/Bitcoin/comments/1zti1p/17956_hacked_brainwallet_passwords/) There have been (and there probably currently are) a lot of people running all sorts of scripts and bots that generate/monitor various Bitcoin addresses that are generated from brainwallets (essentially SHA256(passphrase)).

Therefore, it is not out of the realms of possibility, that some users have also considered using something similar to generate BIP39 seeds the same way... after all, you thought of it!


"At christmas 2002 my oncle Joe came drunk for the dinner. My first girlfriend did not like french fries"
It is interesting to note that the fact that you are using 'proper' English sentence structure and grammar is already reducing the entropy... as there is a relationship and pattern to the words.

Compared with something like: "extra card place track tower violin slim window soul identify tray galaxy" where they are in no way related to each other and there is no defined structure.
Pages: « 1 ... 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 [138] 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 ... 514 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!