Bitcoin Forum
April 30, 2024, 09:29:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 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 ... 461 »
1021  Bitcoin / Development & Technical Discussion / Re: Bitcoin address SHA-2(string+n) on: July 05, 2021, 02:56:21 PM
No you misunderstood what I was saying, do not use /dev/urandom for cryptographic random number generation because when it runs out of hardware entropy it will use a PNRG to give you the rest of the bits. I recommend using /dev/random instead which will stall when hardware entropy runs out until more is made available.

FWIW: https://www.2uo.de/myths-about-urandom/.

There seems to be quite a bit of a misconception about /dev/urandom and /dev/random. Bitcoin Core and many other wallets all uses /dev/urandom. There is absolutely nothing wrong with using SHA256, btw. The only important part is for the input to have sufficient randomness.
1022  Bitcoin / Electrum / Re: do i need create a new wallet for my old version electrum created wallet? on: July 05, 2021, 11:01:38 AM
Electrum 3.0.4 and below had an unprotected RPC. If you were to access any webpage and the webpage sends a CORS preflight request, then your seeds will get compromised.

Out of an abundance of caution, I would probably create a new wallet if you used your wallet before 3.0.5. After that, the vulnerability was the phishing through the rich text. If you didn't click on any links and download any files through Electrum, you're okay.
1023  Bitcoin / Bitcoin Discussion / Re: Will Bitcoin Mining Cause Global Warming? on: July 05, 2021, 04:38:56 AM
If we draw a Venn diagram of all the people who are willing to buy Tesla cars (that cause more global warming than anything else to be charged), and all the people who own bitcoin and all the people who are willing to spend a large amount of bitcoin we can see that the intersection of the 3 circles is a handful of people who may not even bother buying such an expensive car.
This has to tell us a lot about one of the main reasons why Tesla stopped accepting bitcoin payments!

Also when you look at Musk's tweets and how he was desperately investing in Doge coin and were trying to pump and dump it you get the other main reason why Tesla stopped accepting bitcoin payments!
Actually doesn't really make sense. Tesla declared more than a billion dollars that they've invested in Bitcoin. Suddenly withdrawing support and pulling out from it was a dumb move. Prices tanked and so did their stocks, it was bound to make a few heads turn. Why didn't they do their own due diligence before investing in it? Was the entire point from the start to buy Bitcoins and lose money on it?

The market manipulation is quite obvious. Elon Musk was certainly not trying to profit from it though, it wouldn't have been worth his time.

1024  Bitcoin / Bitcoin Discussion / Re: Is Bitcoin decentralized? on: July 05, 2021, 03:30:05 AM
Where x the difficulty (which is fixed) and y the array of the distribution. The num variable can be passed through the function as y. I just wrote the above javascript code, it may not be mathematically proper. I'd really want someone to correct me.

Given an array num of the Bitcoin distribution and a difficulty of 14363025673660, we get centralization = 668.18.
If instead of 4 pools owning the 14.95%, 11.74%, 11.39%, 11.03%, 10.32%, we had one owning the 14.95% + 11.74% + 11.39% + 11.03% + 10.32% = 59.43% of the total computational power offered, we'd get centralization = 65971206.1.

Generally, centralization increases explosively if a pool approaches 0.5.
You cannot accurate measure the decentralization of Bitcoin or it's pool by taking the distribution of the hashrate at face value. There are a lot of factors to take into account when we're measuring the true decentralization of it. The top few pools are all located within the jurisdiction of PRC, which is known for their iron grip on the companies. Is Bitcoin decentralized if those pools owns a majority of the network's hashrate?  While pools matters less for the miners, as they can switch out to another pool whenever they want, there lies the problem with the fact that miners are often concentrated in certain areas, which coincidentally, is China (though it's starting to change). There is also a lack of perfect information; taking the proportion of the pools isn't a good idea. Anyone can own a few large farms and split them across the pools. While it seems to make it seem more decentralized on the surface, an individual still owns a good proportion of it. Measuring how decentralized a network is by purely looking at the numbers will thus often be misleading.

The nature of PoW encourages centralization. Having loads of resources or reducing your costs will maximize your profits. Either of them will encourage some sort of centralization.
1025  Bitcoin / Bitcoin Discussion / Re: What Happens to the People Wanting to Run a Node in 20+ Years? on: July 05, 2021, 03:18:41 AM
Note:This figure only considers blocks data. If we include chainstate and txindex, it might have crossed 400GB right now.
Most users don't require a txindex. Chainstate is about 7-8GB right now(?), certainly less than 10GB. Block data grows way faster than chainstate, the UTXO set is constantly having entries added and removed but the block data grows linearly.
1026  Bitcoin / Bitcoin Discussion / Re: Will Bitcoin Mining Cause Global Warming? on: July 04, 2021, 10:38:15 PM
Which also means no concrete evidence that Bitcoin miners are using mostly fossil fuels and other power generation means that can result to releasing of green house gases into the environment, what I knew recently is that China is already moving towards the use of wind, nuclear, solar and properly constructed hydrogen electric power plants.
Then isn't it a bit strange to be giving a random figure without any concrete data? I think the Bitcoin mining council said they're using 56%, not a high number considering they're probably one of the few in the spotlight.

Climate change or environmental damage isn't only caused by the electrical usage of Bitcoin. Ewaste and the production of the ASICs contribute immensely as well. Actually, not all renewable generation are particularly carbon neutral at all. It's quite a common fallacy to assume that just because you're using renewable energy, you're being green.

That is rarely the case. Building the facilities and using it often comes in a fairly huge expense of the environment.

Who says Bitcoin does not contribute to global warming, human activities generally contribute to global warming, but people will only exaggerate this while there are many companies and other human activities that contributes to global warming, and deforestation also resulting to global warming. Did you know how many gases the automobiles, non Bitcoin mining industries and other companies are releasing to the atmosphere alone which are potent green house cases that can lead to global warming? If miners are able to mine and pay electricity bill, I think it is also important as a means to generate more energy while government should focus on ways to generate green energy, green energy can be used to mine Bitcoin.
Unfortunately, most of the arguments appears to be centered on exactly that. I think I addressed the point about the lack of utility of Bitcoin and why it isn't a fair point to be comparing it to driving your cars. If you consider the issue of environmental degradation to be only about the direct electrical consumption, you're barking up the wrong tree. If the government really cared about the environment, we wouldn't be facing the whole issue of climate change today. Historically, government hasn't been as concerned with the environment as long as there is economic growth. Miners didn't care whether they're using 'green' energy or not as long as they're generating the most profits.
1027  Bitcoin / Bitcoin Discussion / Re: Will Bitcoin Mining Cause Global Warming? on: July 04, 2021, 04:39:46 PM
Manipulating the market, bitcoin at the time uses 75% green energy.
No concrete data, AFAIK. 75% sounds quite unrealistic.

Bitcoin contributes to global warming, simple as that. Manufacturing ASIC requires huge amount of energy, from mining the silicon, producing the wafer, etc. The entire process consumes a significant amount of energy as well. Sure, okay you compare Bitcoin to banking systems, different payment systems. That is hardly a fair comparison, the userbase of those are far greater than Bitcoin's with the transactions arguably far more useful, for their volume and utility. Use of Bitcoin in the real world remains fairly scarce as of now, and that isn't looking to be changed anytime soon.

It's quite stupid to assert that Bitcoin doesn't contribute to global warming. Fact is, as much as you like to deny it, it does. Simple as that, your car, AC all contributes to global warming by producing demand for electricity and/or production of the said products. Do you think it'll be more reasonable to compare something that is far more useful to Bitcoin?

Obviously, when Bitcoin becomes more useful than it is now, people would stop saying that it is a waste of electricity. Just like how people don't refer to those industries which produces more pollutant than Bitcoin as frivolous and wasteful use of electricity. They're mostly attacked by hardcore environmentalist rather than the general public which are often far more rational.
1028  Bitcoin / Development & Technical Discussion / Re: Are those non-btc uses of UTXOS still exist?& Also Dust ratio on: July 04, 2021, 04:06:04 PM
I've never looked into that part of the mailing list, can't say anything about that. OP_return are the only outputs that aren't included in the UTXO set.

It's stated some where in the paper that Bitcoin core defines dust value limit ( the curve marked "dust" in their figs), but does this means it's not stored from the beginning?Huh
The dust limit serves as a threshold for the transaction to be considered non-standard, and thus invalid to be relayed. You can of course still create those outputs, they just won't get relayed. You can spend them with no problems but as the paper references, it costs more to consolidate and spend them as the extra input occupies extra space.
-Because I remember in one of my questions to the Utreexo team they said the Bitcoin core does not store Unspendable TXOS, at that time I thought they meant whatever appears in OP_Return, now I wonder r those mentioned above included too?Huh
.
They aren't. Core doesn't exclude dust outputs from the UTXO set.

-One more question, does this means any user can mark an UTXO as Unspendable to save some memory? or just in Samourai wallets?
They cannot, and should not. Excluding any valid UTXO from your client's UTXO set will result in your client not accepting a block if the UTXO happens to be spent in that block. The missing UTXO will make Bitcoin Core invalidate the entire block. You don't mark UTXOs as unspendable, you "freeze" them to ensure they're left alone and never spent in the transactions that you're making. If it were to be spent in the transaction, the linkage will compromise your privacy. They are a cheap way to exploit the privacy.
If I understand correctly, the dust limit is 546 satoshis so transactions lower than that won't even get relayed across nodes let alone stored.
Depends on the type of script it is locked to. Differs between Segwit and Legacy.
1029  Bitcoin / Electrum / Re: Electrum-4.1.4 Installation from Python sources doesn't work on: July 04, 2021, 03:22:28 PM
I run the command the exact way it was in Electrum`s instructions, python3 -m pip install
So basically these both commands python3 -m pip install --user & sudo pip3 do the same thing?
 python3 and pip3 are the same, they both are installing Electrum-4.1.4.tar.gz, just one does it for all users, the other for only one user? did i get it right?
If so then why the fist command from Electrum`s website doesnt work form me? even if it installs for other users how come i dont have acccess to it? I am the only one user on my laptop.
As i mentioned i am very new to Linux, can do things only if i have detailed instructions,
Oh, I think I got what's going on.

You have to restart your Ubuntu OS after the first pip installation for the path variables to take effect. I reproduced this with 21.04 and found Electrum to be correctly installed in ~/.local/bin but you can't execute it in terminal without first navigating to that. Restarting Ubuntu after the installation fixes this. Weird, I've never had this problem with the older Ubuntu or other Linux distributions.
If so then why the fist command from Electrum`s website doesnt work form me? even if it installs for other users how come i dont have acccess to it? I am the only one user on my laptop.
As i mentioned i am very new to Linux, can do things only if i have detailed instructions,
The reason why you're able to launch Electrum through the link you've followed is that you're directly executing Electrum. The icon that is created directly points to the Electrum that is installed for all users using pip. You could've used Electrum if you were to restart your computer and use terminal to launch electrum (by typing electrum in the terminal). pip doesn't create icons, so you're supposed to be executing through the terminal but in the guide you've linked, you're creating your own shortcut.

1030  Bitcoin / Electrum / Re: Can not edit config file in Electrum, it gets overridden after starting Electrum on: July 04, 2021, 03:04:30 PM
I tried adding values as you said, and i do it one by one, only "oneserver": true, stays, other values get lost after i start electrum.
No matter how many times I've tried, I can't replicate the issue. Electrum reorganizes the sequence of the config during shutdown, could you check if you missed it due to the shuffling? (Sorry it might be a bit obvious but I suspect that might be the case.)
Looks like this values ls important for me as I run prune node. "skipmerklecheck": true,  <-- this is important if your node is pruned
I probably could ignore this value "server": "10.0.0.1:50002:s", <-- replace with your IP since my Electrum desktop icon already have this line --oneserver --server localhost:50002:s which i assume does the same.
I am not sure with other 3 value below, do i need them to run Core+Tor+Electrum+EPS
"auto_connect": false,
"confirmed_only": true,
"use_rbf": false

skipmerklecheck persists if I enter it at the end like this:

Code:
"skip_merkle_check": true

Take care to not break the syntax of the config. Oneserver should disable autoconnect, if I'm not wrong (doesn't hurt to include). As long as you trust the server, you don't have to include confirmed_only either. The use_rbf depends on whether you want your transactions to have opt-in RBF.

Edit: Okay anyways. Since you're explicitly running Electrum with -oneserver and the server you're connecting to, you don't have to include the two config variables for that. For confirmed_only = true, it would prevent you from spending any unconfirmed UTXO. Again, doesn't hurt to add them; your arguments will override the appropriate configs.
1031  Bitcoin / Electrum / Re: Electrum-4.1.4 Installation from Python sources doesn't work on: July 04, 2021, 12:34:19 PM
--user flag installs Electrum for the user that ran the command. Were you using a privileged command line or did you run it with sudo?

Installing it with sudo (and without --user) will install Electrum for all of the users within the system. There isn't really any privacy or security risks, other than the other users will have Electrum installed as well.
1032  Bitcoin / Bitcoin Discussion / Re: What Happens to the People Wanting to Run a Node in 20+ Years? on: July 04, 2021, 12:24:26 PM
Yes, people will have to wait and download the whole blockchain, hopefully the bandwith will increase by that time.
Current bandwidth is more than sufficient to download the entire blockchain within a few hours at max. Problem is that there exist a ton of bottlenecks which can't be eliminated that easily. I don't think there is a particularly huge issue with an increase in the rate of transactions in the future; assuming transactions can take place off-chain and we can sustain an increase in the efficiency of the various components. I think Moore's law isn't that relevant anymore. We're already reaching 7nm nodes.

There are more concerns within the system other than your bandwidth and your HDD.
I would be more concerned about longer perspective, like 100 or 200 years, if our storage and bandwith technology will stagnate, eventually running a node could become a big problem, and the network would be slowly becoming more decentralized. Perhaps a blocksize reduction would be needed at some point in the future to combat this. But this is a problem for future generations.
Reducing block size is counterintuitive. We need bigger block size to support LN, even if we were to scale to our closest payment system competitor. It's quite evident that on-chain capacity isn't ideal right now, outright blocksize increase cannot be the only solution.
1033  Bitcoin / Electrum / Re: Can not edit config file in Electrum, it gets overridden after starting Electrum on: July 04, 2021, 12:14:05 PM
Are you by any chance having any Electrum instances open while you're editing and saving the file? Electrum writes to the config when the user closes the client. Ensure that your Electrum is not running while editing the config.

Scrutinize the settings and don't blindly follow whatever they're telling you. For eg. disabling RBF.
1034  Bitcoin / Bitcoin Discussion / Re: Is Bitcoin decentralized? on: July 04, 2021, 07:04:40 AM
Less than 51% of node failures will still not affect the operation of the Bitcoin system.
There isn't any threshold, or any figures which I know could affect Bitcoin's operations given the failure of the nodes. Full nodes mostly operate independently without trust on each other.
When Satoshi  designed Bitcoin, his initial assumption was that 1 CPU and 1 computing power.

When the computing power of the entire network is increased to a single node or a small number of nodes cannot obtain block rewards in the Bitcoin network, some people are encouraged to develop a method that can combine a small amount of computing power to jointly operate mining, using this method The connected nodes form a mining pool to keep warm.
Actually, he did state that the network would eventually be sustained by specialized server farms with the average users not running a full node to mine at all. Pools helps to eliminate the sporadic payouts that the miners are otherwise subjected to when solomining.

It is checked and balanced by the upgrade voting logic of the Bitcoin program. When there is a bug in the Bitcoin program or new features need to be added, the Bitcoin core development group , will propose a solution.
The node is marked by the block header. Voting is conducted, and only miners (mining pools) are able to mark votes at the block header. From here we can draw four conclusions:

1Bitcoin program fixing bugs or modifying the protocol is determined by the Core development team
The discussion is quite public, specifically any major changes. For certain exploits, they are done in a way to plug the exploit but doesn't otherwise influence the network in any way.
2Whether the Bitcoin program update takes effect is determined by the mining pool.
3You don’t have the right to vote if you own Bitcoin.
4Core development team and miners can jointly modify the program.
The problem with BIP9, as we've experienced before is that the activation is largely dependent on the miners. That isn't the intended effect and which is what resulted in the stalemate for a long time after Segwit begun it's signalling. Afterwhich, there were proposals to enforce UASF, and which wasn't required after all.

We're using BIP9 for Taproot, because there isn't any resistance from the miners. If needed, the community can run a client with LOT=True to force activation.


Going back to the Bitcoin expansion problem, the mining pool and the Core development team battled wits, and a series of expansion plans were not successfully implemented.
The biggest reason here is that the collaboration between the mining pool and the Core development team cannot reach a consensus, and each is considering its own profit.
But the user who suffers is the user who has no right to participate, only the right to use it.(Of course, ordinary users themselves can also compete for computing power with major mines. but...you know ) A large number of transactions are blocked, transactions have not been confirmed for a long time, and transaction fees have increased.

In my opinion, Bitcoin is not completely decentralized. But it is still the most important step in the decentralization process.
Miners aren't the ones who decide which changes to the network gets activated or not. The users ultimately decide which rules they should follow. Miners are a crucial part of the ecosystem and having their support with any schemes will benefit the network as a whole. The community doesn't seem to be very supportive of forced activation from the onstart, which is why I believe TR used LOT=False?
1035  Bitcoin / Bitcoin Discussion / Re: Next countries adopting bitcoin as legal tender have not any coronavirus cases on: July 04, 2021, 02:36:37 AM
No relation whatsoever.

They're all relatively secluded or isolated and infections won't really take place there. If the local authorities don't actively test for it, then they probably wouldn't discover any cases. It can be asymptomatic for all you know.
1036  Bitcoin / Bitcoin Discussion / Re: Are Bitcoin and Crypto Really Like the Early Internet? on: July 04, 2021, 02:33:56 AM
It isn't. Crypto isn't like the early internet.

Crypto doesn't provide any revolutionary way of payment that we already have. Sure, censorship and decentralization are incredibly useful for certain cases but for most people, they appear to be just purely buzzwords which they don't care about. There is no reason, as of now why people wouldn't choose other payment gateways over Bitcoin. It doesn't mean that there wouldn't be a change in the modus operandi in the future as we refine Bitcoin even more or if the geopolitical landscape changes. The way crypto is getting so actively suppressed and goes against the ideas of the government really differentiates it from the internet.

Your internet connection can be censored, cryptos can't.
1037  Bitcoin / Bitcoin Discussion / Re: What Happens to the People Wanting to Run a Node in 20+ Years? on: July 03, 2021, 02:43:17 PM
Ten years ago, processors were.. 3 GHz. And today, processors are.. 3 GHz.
IPC increases.
Wait.

Let me restart.

The necessary storage/transfer will be mostly linear scaling due to the limits on the number of transactions.

So today, a full node takes maybe 300 GB. Ignoring the first few years, we can estimate 300 GB / 5 years. In twenty years, all transactions will be encompassed within < 2TB of storage. Think how fast memory/ROM develops. You have 2 TB of ROM now, easily accessible. And that's the limit within 20 years. That's not really that much.

Yes, it might take a few weeks to download, but bandwidth will increase too.

Also, keep in mind that many people don't use a full bitcoin node to interact with the chain.
Bitcoin at its current form cannot handle transactions on-chain that is sufficient to support mass adoption. We can use second layer but I doubt we won't increase the onchain capacity through some optimization. Currently, the blockchain size growth is roughly ~100GB per year. It's decent but you have to also take into account that most people won't buy an extra HDD for Bitcoin and for the near future, most consumer computers won't include that much storage because there isn't a huge market for it.

It might not seem like a lot but for the average Joe, having something like this hog up their HDD is a far greater problem for them.
1038  Bitcoin / Bitcoin Discussion / Re: What Happens to the People Wanting to Run a Node in 20+ Years? on: July 03, 2021, 02:15:51 PM
What happens to the folks wanting to run a full-node in 20+ years when downloading the entire blockchain takes months and months to complete?
That is assuming bootstrapping the entire blockchain will still be the norm 20 years from now. Who knows, perhaps there is a way to truncate or compress the blockchain in a trustless manner in the future.

Even if there isn't, the current blockchain takes about 8 hours to fully synchronize on my computer. We're still seeing quite significant improvements in both IPCs of CPUs and HDD disk size, don't think it'll be a huge problem even without improvements.

Will pruned nodes be their only option?
Pruned nodes don't solve the problem of having to download and validate the entire blockchain.
1039  Bitcoin / Development & Technical Discussion / Re: Does more seed words equal better security? on: July 03, 2021, 02:05:40 PM
They aren't. franky1's number of 160 bits is incorrect.

Either we are considering the security of your private keys, of your coins, of bitcoin itself, in which case 128 bits is the maximum security unless we change the protocol. Or we consider the security of only your seed phrase as an isolated concept, in which case we might as well generate a seed phrase a million words long. Obviously the latter makes no sense since it does not make your private keys or your coins any more secure if your seed phrase is 12 words or a million words (all else being equal).
I'm not sure if I'm following the discussion correctly since it's getting a bit lengthy but I share the same sentiments as BlackHatCoiner.

The 128bits value is for breaking ECDSA to obtain the private key for secp256k1 curve, as defined here[1] to be 128bits. Unless we're able to get the public keys in the first place, we won't be able to have the 2^128 operations to get to the private keys. If we have no knowledge of the public keys, then we're going to the old school bruteforce for the preimage attack which 160bits of security applies since, 160 due to size of RIPEMD-160.


[1] https://www.secg.org/sec2-v2.pdf
1040  Bitcoin / Electrum / Re: A problem with creating a new wallet on android version of electrum on: July 03, 2021, 01:37:55 PM
The problem is that there is no way to know about these major changes unless you visit the github repo and read the Relase_Notes each time there is a new release and I believe the majority of users don't do/don't like to do that.
Should be a good practice though. Google does enable automatic updates for some reason by default.
I recently updated Electrum on my mobile (with many wallets on it) and wasn't aware of the new feature. Later, I created a new wallet and set a new password for it for testing purposes which I didn't save (since it was a testing wallet). Few days later, I was chocked that I couldn't access any of my main wallets using their original passwords. Luckily, I always buck up my wallets seeds but you can imagine how unpleasant this experience was!
I agree that it is a bit weird, probably would be better to include a changelog screen.

Anyways, that shouldn't be the correct behavior. After updating to 4.1.0 (and above), you have to unlock the wallet to create a new one and the newly created wallet has the same password as the wallet that you've unlocked. However, this shouldn't convert the passwords of any other wallets. If you go to Settings > Password, you should be able to see "Change your password for this wallet". This means that the password change only effects the current wallet.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 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 ... 461 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!