Bitcoin Forum
April 30, 2024, 01:07:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 [62] 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 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 ... 461 »
1221  Bitcoin / Electrum / Re: Extended seed phrase safe for future updates? on: June 03, 2021, 11:39:33 AM
I have my bitcoins in cold storage but I am using a read-only wallet with Electrum. Is that safe from hackers?
Depends. How did you generate the wallet? Did you properly segregate your cold wallet from any internet connection? Did you validate your Electrum instance?
My other question is:
I have an extended seed phrase, more than 12 words. Is it safe for future updates in the bitcoin network? Or is it possible that this feature will be disabled in the future so I can’t access my wallet anymore?
Your seed phrase is used to generate the private key, you will always be able to generate the private keys for the corresponding addresses. There is no way to disable this feature; the seeds generated by Electrum is only supported by Electrum but since the method of generating the BIP32 seed (and subsequently the addresses) is known, there is no risk of you not having access to your coins. Of course, barring any sudden network changes that prohibits the address standard you're using which probably won't happen.
1222  Bitcoin / Development & Technical Discussion / Re: Broadcasting the raw transaction encrypted? on: June 03, 2021, 11:25:13 AM
Using Diffie-Hellman handshake. In fact, that's how TLS certificates for web are exchanged on unencrypted connections.
Without authentication, it would still be vulnerable to MITM attacks. As long as you persist your MITM throughout, it won't be detectable without the parties authenticating. I don't think it is possible to authenticate effectively between Bitcoin nodes, especially since there is no way to validate each others identity.

You're right about the centralized part but as far as price is concerned they could just self-sign one. I would opt not to use a CA since they can make all certificates expire at the same time which would be harmful to the bitcoin network.
Self-signing certificate is as good as not having a certificate at all. The purpose of a CA is to provide assurance that the certificate given is valid. If it is self signed, there is simply no way for them to validate the certificate. Even if you do have a CA, the reason why ISPs would be spying on you probably involves your government as well. CAs can be compromised and issue rogue certificates as well.

But yeah, if you want your raw transactions to be encrypted then just run your node behind Tor, since each hop will encrypt the rest of your traffic anyway. I doubt that distributing certificates to everybody for cleartext encryption is feasible.
I agree. If you are afraid of your ISP eavesdropping, then you should be running Tor or some VPN in the first place.

Which status is withdrawn, so i doubt it'll be implemented anytime soon.
There is another proposal under another BIP. I don't think it is officially merged into the BIP repo.
1223  Bitcoin / Development & Technical Discussion / Re: Beginner's question on consensus. on: June 03, 2021, 08:15:03 AM
Bit away from my original question. When you say "When a node receives a transaction, it'll get validated", this is to check if this transaction was not in anywhere of the block chain at that stage, I suppose. I am learning about SPV and learned that with merkle tree data structure and only block headers, it is easy to check if the transaction is contained in previous blocks.(https://learning.edx.org/course/course-v1:BerkeleyX+CS198.1x+3T2019/block-v1:BerkeleyX+CS198.1x+3T2019+type@sequential+block@f37bbffc45a84deabf346911b8d83178/block-v1:BerkeleyX+CS198.1x+3T2019+type@vertical+block@4fe65dfbf03e4cb48ef588b85af9e107) I believe each node validates in this way, am I right? Current block height is less than 700000, I guess this validation is computationally light.
The reference client (Bitcoin Core) will validate the transaction to check whether it violates any of its policy, validity of signature, fees, UTXO existence etc. Reference client builds their own chainstate which contains the UTXO and they don't need to use merkle proof to verify if the UTXOs being spent are in the chain.

I get this. Thank you. Just out of curiosity, if the longest chain gets hacked by 51% attack, what happened to the block rewards of miners who did the longest chain? I suppose it becomes zero, perhaps there is a code which executes at this event. And, I guess all transactions which were in the longest chain get put back to memory pool?
If a chain gets reorganized by a rogue chain, then the block rewards of those in the replaced chain would disappear, it would be as if they've never existed. They have been replaced by the rogue chain.

Yes, transactions are returned to the mempool provided that they stay valid, none of the UTXOs were spent in another transaction in the rogue chain. Reorgs are not that uncommon, stale blocks occur once in a while.

Thank you, it is clear now. Again out of curiosity, little different topic, I know there is an upper bound in the size of blocks, hence, one can contain finitely many transactions. Is there any lower bound like you have to include at least k transactions from some k? I suppose, for hashing, it does not get better having less transactions. I heard also that miners get transaction fees besides of block rewards, so it is natural to put as much as transactions if the number of inputs transactions does not matter in the hashing race, which I think is the case.
You need to include at least one transaction, the coinbase transaction. That can contain your block rewards, witness commitment, etc.

But yes, the number of transactions doesn't affect your hashing speed.
1224  Bitcoin / Electrum / Re: Electrum Notify on: June 03, 2021, 06:31:30 AM
No. The hash given by notify is structured with respect to the block height the transaction is in, hash doesn't vary with confirmation increment.

You'd have to use the RPC to find out how many confirmations a transaction has.
1225  Bitcoin / Development & Technical Discussion / Re: Beginner's question on consensus. on: June 03, 2021, 03:52:58 AM
Q1)So firstly, I wonder whether this action is even practical in usual circumstances, like having a hot wallet. When Jon sends 10 bitcoin to Mike, it should deduct 10 bitcoin from his hot wallet immediately. So, how could Jon even try to double spend? No bitcoin…(Now, if Jon is trying to go to a public ledger, and redo the block by adding or deleting particular transactions, I get it this type of activity leads to the double spending. For the longest chain, I understand 51% hash power is necessary to do so.)

In short, I understand that Jon can send Mike and Lisa 10 bitcoin each at the very same time to do double spending, but is it even possible in a hot wallet situation (which I think is a usual circumstance for many people).
Your wallet probably won't allow you to make another transaction that spends an input that has already been spent. However, there is nothing stopping you from constructing the transaction and pushing it yourself.

When a node receives a transaction, it'll get validated and the node will remove the UTXO involved from their UTXO set. This means that every other transaction that spends the same UTXO will be invalid to the node as the node has already removed it. However, if you were to broadcast the transaction to two half of the network, then assuming equal propagation, each half will see different transactions. This is known as a race attack, where in a scenario that a merchant sees TX A but infact TX B with the same inputs and sent back to a different address is also propagated on the network. In this case, then whichever transaction that gets included in a block first wins. The premise of 51% attack or any of that sort usually will have the attacker building a chain alongside the honest network.

For example, if the transaction gets included at block height of 2, then the attacker will start mining at a block height of 2 with a rogue transaction until they outpace the network. Afterwhich, they broadcast that chain and they're able to effectively overwrite the other chain as it has a higher PoW.
Q2)In any case, if Jon tries to send bitcoin, other four will check if this transaction is valid or not. Exactly, are they checking if Jon has enough founds by going back to the public ledger, and Jon is not doing the double spending also by going back to the public ledger? I suppose the answer is yes, but here I am starting to get confused because this is the point which PoW is coming in as two of four nodes could be Jon's, and they might lie. In my understanding, PoW plays a role to choose a representative who puts a block. I understand that it is a hashing race to get a certain value where inputs are all transactions to be included in a block, the past information from the previous block, and a nonce which you choose to get an ideal output. Hence, anyone who is participating to this hash race already knows which transactions they should include into the block. So, there should be a consensus before PoW that would check which transactions to be included?
When a transaction gets broadcasted, it stays in a memory pool of nodes before it gets mined into a block. This state is different from each and every node; if you were to push two conflicting transactions equally to two nodes, they would perceive the state differently with them regarding the first transaction received as valid while not accepting the other transaction into their mempool. As a result, there is no consensus here at this stage.

Don't think of Bitcoins as an account but rather each transaction spending a specific UTXO (unspent transaction output) which gets used and created in the transaction. The concept of PoW gives whoever having the larger hashrate the liberty to choose and include either transactions, the number of nodes the attacker hold is irrelevant. As long as Jon is able to create a block that includes the transaction that he desires, then that transaction will be included in the longest chain.

Since no consensus is involved before the transaction is included in a block, then accepting a transaction with zero confirmation is riskier. PoW defeats double spending by achieving a consensus whereby each unique UTXO can only be spent once and once only in the same chain and an agreement by the nodes agreeing on the chain with the longest valid PoW.
1226  Bitcoin / Bitcoin Discussion / Re: This is why centralised services are "bad"™... on: June 03, 2021, 02:29:56 AM
Comes as no surprise, really. PayPal has long been supportive of the government and are otherwise quite complicit with whatever the government wants to do. While it is true that centralized services exposed you to risks like this, especially when their operation hinges on the government regulations, it doesn't mean all are bad.

There are still services which are far more transparent and are willing to challenge the government for the sake of their user. Anything to do with financial systems will always be under government influence, unfortunately. Except Bitcoin of course Wink, not most exchanges though.
1227  Bitcoin / Development & Technical Discussion / Re: Broadcasting the raw transaction encrypted? on: June 02, 2021, 10:28:02 PM
I haven't looked into the source code by myself, but I doubt if there's an encryption method when I firstly broadcast my transaction to node(s) and then, when they share it with each other. This is exclusively for Bitcoin nodes (full nodes) that run the network and not for electrum servers that are sometimes under a secure socket layer (SSL).
We don't. There was a BIP (BIP 151) which was proposed for end-to-end encryption but even that assumes that the certificate was exchanged in a secure manner. You cannot just trust certificates announced by your peers, you need to ensure a secure connection to obtain them. It'll be better for the user to just run it on VPN or Tor. DH exchange would be useful for situations like this.
I would guess that most electrum servers have self-signed SSL certs, which does little to prove the trustworthiness of the operator, but it does encrypt the data.  That makes sense for electrum because a lot of personal information is transmitted to the server, including master public keys if I'm not mistaken.  The privacy concerns for using an unencrypted electrum server are far more severe than sending a single transaction to a node.
Self-signed is not necessarily less secured than CA issued. There were cases where CAs were helping governments to sign certificate to spy on their own citizen. It is nothing out of the realm of possibility for this to happen if the government wants to do so. Electrum stores the certificate of the servers in their own data directory. I'm not sure how the certificate gets obtained but I guess it comes pre-bundled with the installation. I'll check the codes later and modify this if needed.
1228  Other / Archival / Re: Admins, plz, add search to PM on: June 02, 2021, 12:09:38 PM
I mentioned this quite a while ago and received quite a few interesting responses: https://bitcointalk.org/index.php?topic=5271316.msg55064535#msg55064535.

Sorting by name that is arranged in alphabetical order helps you to bunch the same users together. It is quite a nice way for me to filter out the messages and credits is due to the original answer in that thread.
1229  Bitcoin / Bitcoin Discussion / Re: Tesla Competitor to Launch First Electric Car That Mines Bitcoin and Dogecoin on: June 02, 2021, 11:01:17 AM
Terrible idea. You can implement something like this with existing cars, that should not be a feature which entices people. Think about it, if you have an EV, you're going to want to eliminate any frivolous energy consumption which reduces both the range and the lifespan of your battery. Why would you need to include something like this in a car???

Your energy efficiency is going to be even worse than before. Just buy a miner and a car, you'll be better off that way. Trust me.
1230  Bitcoin / Electrum / Re: Question about bip32 seed on: June 01, 2021, 02:35:47 PM
derivation path in electrum is 141, because is bip32?
BIP141 is the Segwit specification, most wallets actually use 84 as the index for Segwit. Electrum uses the derivation path as stated, though saving the seed should generally be enough. Only Electrum will be able to restore the seeds and given that it has a version byte, the derivation path wouldn't matter all that much.

89 would be if it were bip39?

my seeds are bip 32.. native segwit.
No. BIP39 is the mnemonic standards for some wallets, Electrum doesn't use BIP39.
1231  Bitcoin / Electrum / Re: weird transaction and using old electrum wallet with lightning stuff? on: June 01, 2021, 02:13:40 PM
I have no idea about the stuff what is written there.
All I know is that I am supposed to receive the 0.018 btc.
no ide whats up with the insane amountof 82 btc also wirtten there.
I assume the address that you gave is 37U6mb9bepC5LpW25xCvHAj4wAZCccyLdL. The other address with 82BTC is used as their change, that doesn't concern you.

Since the transaction has 5 confirmations right now, you should be able to see the transaction confirmed in your wallet. Is the bubble at the bottom right green or red?



noiw with fees being downright heavy crime robbery nowadays, one apaarently should sent money viy some second layer thing, named "lightning network".

I have zero idea how this all works, so it would be great if someone could help me there.
I updated my electrum btc wallet to the most current 41.2 version and under view made it display all the possible tabs.

but aside from that, I have no idea what else to do, so I can conveniently sent btc via the cheap lightning network just the way I sent btc via the normal way before.

can someone please quick me a quick idiot proof noob step by step how I can configure the electrum wallet to be able to do that lightning stuff?

Also is there someplace where, given an amount of btc to be sent, I can find out how much fee is to be paid when using that lightning network stuff?
Lightning network is only beneficial if your recipient is also using lightning network as well. It is an off-chain settlement and is cheaper as it doesn't take place on the Blockchain itself. There is a more comprehensive topic written by Rath_ and probably the best material to start with; https://bitcointalk.org/index.php?topic=5259973.0.
1232  Bitcoin / Bitcoin Discussion / Re: The new mining pool, Marathon miners censoring Bitcoin transactions; on: June 01, 2021, 10:58:52 AM
Well, good thing they have capitulated, although I doubt very much this is the last we have heard of mining pools censoring transactions or "OFAC compliant" blocks.

It's also quite telling that although they have said they will signal for Taproot, none of the blocks they are mining do so yet. Quite clear that they do not actually want to support Taproot, but felt they had to give in at the last minute now we have ~98% consensus so as to not jeopardize their profits.
No doubt. The next one we'll see will probably be forced by regulating bodies.

They did say that they're updating it only this week in the video. I'd say give them sometime to do so, not like they're in a hurry anyways or anything would change.
1233  Bitcoin / Bitcoin Discussion / Re: What if Bitcoin had 1 minute block time and 1 minute difficulty retarget on: June 01, 2021, 10:42:39 AM
I may be misunderstanding, but doesn't howmanyconfs.com compare the hash rate based on Bitcoin's work? For example, if the difficulty dropped 50% then wouldn't 6 Bitcoin confirmations be equal with 150 Litecoin ones? If it does, then it only exclude the possibility for an outpace attacker to attack the network. It does not exclude the possibility for the pools' decision. On a completely decentralized cryptocurrency like Bitcoin, if one pool gathered the majority of the computational power, it'd be much easier to reverse a transaction 6 blocks deep in contrast with, let's say, Monero, that has a better hashrate distribution.

Shouldn't it compare the distribution too?
Read the asterisk (https://github.com/lukechilds/howmanyconfs.com/blob/master/README.md#how-are-these-values-calculated). The site measures the work done needed for each confirmation which may or may not correspond to the possibility of a majority attack on the network. It does not outright reflect the security of the network as attacks has to be done with its profitability in mind.

Distribution or rather decentralization is not an accurate way of predicting the possibility of a 51% attack. Any adversary would not openly state that they have the majority of the network's hashrate but would attempt to distribute it in such a way that it is not obvious. Either that or they won't openly state the blocks that they mine. It is wrong to assume that attacks would only be carried out with a singular entity. It can also be done with multiple entities colluding as well.
1234  Bitcoin / Development & Technical Discussion / Re: Is it possible to recover private key or mnemonic phrase data? on: June 01, 2021, 10:02:15 AM
Not possible. You need at least a master public key and one of the private key of the addresses.**

The most you can figure out from the addresses is the public key, which requires breaking two one way functions.

** This allows you to derive the master private key of a non hardened derivation.
1235  Bitcoin / Bitcoin Discussion / Re: The new mining pool, Marathon miners censoring Bitcoin transactions; on: June 01, 2021, 06:24:50 AM
Good news for sure, but am I missing something here? Why does Taproot prevent them from filtering transactions like they are currently doing? Taproot doesn't hide which addresses bitcoin is coming from or going to, it doesn't hide if the bitcoin in question has come from a darknet market, it doesn't hide if the bitcoin in question has been coinjoined, and so on. Why can't they continue to filter after Taproot?
It doesn't. The article doesn't state that they are not censoring transactions specifically due to Taproot but that they're upgrading without including any censorship features to filter the transactions. Likely just a decision that they've made and has nothing to do with Taproot.

They've probably realized that openly filtering transactions has gone wrong and lowered their profit margin without any censorship effects. Continuing their own practices this way would get nothing done and just make people unhappy. However, filtering transactions covertly would not.
1236  Alternate cryptocurrencies / Altcoin Discussion / Re: Can I cancel a Litecoin transaction after 3 confirmations? on: June 01, 2021, 06:18:24 AM
I think for alts such as Litecoin, it may be better to wait until three confirmations (still 6 may be too much). In the unlikely scenario of a 51% attack, I don't think that the attacker will be able to revert more than 1-2 blocks. Still theoretically there is a possibility, especially with cryptocurrencies having lower mining hash rate such as LTC. With BTC, I would say that there is virtually zero chance that the transaction may be reverted after 1 confirmation. And if sufficient transaction fee is paid, then I am OK even with 0 confirmations.
In the scenario with any attacker holding 51% attack, the attacker can reorganize as many blocks as desired but that mostly depends on the profitability of doing so. The concept of 6 confirmation just means that the attacker needs to at least be able to outpace the network to be able to reorganize more than 6 blocks.

You need lesser hashrate for lesser confirmations as you're looking to reorg lesser blocks and thus having a better success rate. In the unlikely event of competing blocks, then it is completely possible for a transaction to be double spent, depending on the fork that forms the longest chain. 0conf transactions is less than feasible now... Trying to accept them will put you at a significant risk.

For a small value transaction if the buyer pays enough fee to be accepted within the next block then there it is not so unreasonable to accept payment with zero confirmations. Bitrefill and Fold App have this policy and I believe BitPay allows it for non-rbf transactions. The percent of transactions signalling rbf is less than 20% and the amount of people who know how to use it and want to intentionally scam a merchant is so low that it is an acceptable risk for them to accept 0-conf.
Depends on your risk analysis, fee market tends to fluctuate quite wildly. You likely would be safer with non-RBF and a high fee but that comes at an expense of having your user pay more and potentially get their transaction stuck. Not an issue that I recommend people to be dealing with.
1237  Alternate cryptocurrencies / Altcoin Discussion / Re: Can I cancel a Litecoin transaction after 3 confirmations? on: May 31, 2021, 10:41:18 PM
No you can't. Even a confirmation is difficult. Every confirmation basically means that a block has to be rolled back, or another block has to be mined at that height. This requires either the network to be on two different forks, with one of the fork containing your transaction and eventually accepted (in the case of competing blocks at the same height) or if a miner helps you. 6 confirmation is the amount of confirmations required that makes it improbable for an attacker without 51% of the network hashrate to reverse your transaction. So no, unless you're able to get a miner with significant hashrate to help you and attack the network, it is not possible.
1238  Bitcoin / Wallet software / Re: Not funny problem I opened a wallet that was not mine on: May 31, 2021, 10:36:47 PM
How could I have opened one? Obviously not all the words in red are required, just the ones in white
It is statistically improbable.

The combination of words has to be in the correct permutation for your wallet to be recovered. The complexity of being able to find a set of seed phrases that has been used is roughly the same as finding a used private key as well. Provided that your RNG is random enough. If the length of the seed phrase is at least 12 words long, you're fine.

If you have opened someone else's wallet, then there is a problem with your wallet, probably generating seed phrases insecurely.
1239  Bitcoin / Development & Technical Discussion / Re: Is SHA256 obsolete and is it enough to guarantee security? on: May 31, 2021, 04:01:59 PM
SHA256 is used on almost everything that you use in your daily life that includes your credit card transactions or your bank account's password. The whole world would collapse if SHA256 wasn't safe enough. In the future this might change but for now It is as safe as it gets.
Not really. SHA256 isn't used in everything; for example, passwords usually uses some KDF to provide some resistance against bruteforcing. In comparison, if we figure out P = NP, the cryptography and possibly most things on earth will fail. Not really related to topic but just a nice tidbit.

Anyways, the nature of how Bitcoin uses SHA256 makes the issue not as serious as it seems. The possibility of collision or preimage attack would introduce forks by blocks or TXID with different content but same hash, tricking people into signing unintended transactions, etc. SHA256 is strong as it is currently, the complexity for something like this is still out of reach.
1240  Bitcoin / Electrum / Re: Electrum default coin selection on: May 31, 2021, 12:54:17 PM
Although it's the user's job to learn how to properly send and receive bitcoin, I still think users should be informed that they are about to spend an unnecessary amount of UTXOs for a transaction that can be spent by using only one input that is big enough. Some sort of pop-up or system notification would be nice.  
Electrum does give a warning if the fees is outrageously large when compared to the amount that is supposed to be sent. That should be sufficient.

If the transaction size is too big, and the user ends up paying too much, then the user will notice and adjust either their fees or their inputs accordingly. If it doesn't trigger the warning, then the fees should be within an acceptable amount and since it is a consolidation transaction in a sense, it is still beneficial to the user as it can potentially save more on the fees in the long run. While there is nothing wrong with a dialog or a popup, users tend to be quite myopic and won't see the point behind specific client behavior such as this.
Pages: « 1 ... 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 [62] 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 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 ... 461 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!