Bitcoin Forum
June 19, 2024, 10:09:50 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 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 ... 1157 »
1881  Bitcoin / Wallet software / Re: SPV (desktop) wallet which lets me verify blocks myself on: June 30, 2023, 06:21:53 AM
The problem with your idea is its practicality otherwise it is pretty trivial to implement.
Normally you don't know when exactly you've received bitcoin and when exactly you've spent those coins. Even knowing a range is not going to help much because you'd have to download roughly 6 blocks per hour or 144 blocks per day which is high enough for a light client.

So the idea is to download (apart from the complete block header list) only the blocks in the periods I'm interested, and search for transactions involving my keys/addresses in them. (The correctness of the blocks depends on the source of my block header list of course, so minimal trust would still be required.)
There is no trust needed, just knowing that you are on the correct chain which is easy to do. You basically have to play around in the net_processing part of bitcoin core:
Step 1:
Initial connection is the same as a full node, fetching a list from seed nodes and building a listening node IP address database for future usages using the getaddr and addr messages.

Step 2:
Exactly as a full node, start by downloading the blockheader list from the hard-coded Genesis block to the tip from multiple different nodes with enough distance that makes it safe. You can also add hard-coded checkpoints to add an additional verification for the "map" of the chain you are downloading.
You can also do full verification on these headers just like a full node does (SPV clients should also do this). The verification includes version verification, PoW verification using the header hash and the shortened target in the header, difficulty verification with the target and finally time verifications.

The network messages involved are: version+verack (handshake), sendheaders, getheaders, and ping pong messages.

Step 3:
Now that you have a "map" of the whole blockchain use the time field in the headers to select the block(s) you want to download then send a getdata message (with the inventory set to block type and the hash(es) of the block(s) you want to download) to any full node from your connection list to download the full block from that node.
Then you can perform a limited verification on the block you received to make sure it is "correct". The important ones are deserializing and merkle root hash. This way you make sure all the transactions in the block you requested are received correctly and are associated with the header you requested. Here we rely on PoW and SHA256 both being secure.

Step 4:
Now that you have a block that you are sure is "correct" with the trust you put in the PoW, you can go through the inputs and outputs of each tx to see which one belongs to you and update your balance accordingly.
1882  Bitcoin / Development & Technical Discussion / Re: Is this pictogram of Bitcoin transaction structure correct? on: June 29, 2023, 07:57:18 AM
So pre-Segwit, in early versions of the network eg. Bip16 p2sh deployment, there was a flag field after the version field but its two bytes were reserved for a future use?

That's the only way I see the transaction format as still being backward-compatible, since they can't just squash a new field or two in between other fields for new deployments.
No, there were no flag+marker bytes before SegWit in the transactions. Immediately after the 4 byte version were the input count. After SegWit these two bytes were introduced.

The way we stay backward compatible is by stripping the transactions of their "new fields" before sending them to old clients.
1883  Bitcoin / Development & Technical Discussion / Re: Is this pictogram of Bitcoin transaction structure correct? on: June 29, 2023, 07:37:33 AM
When you say that, you mean 1 witness per input, all of which are placed before the locktime, and only if the flag bytes indicating presence of witness data are present and set, right?
Yes. 1 witness for each input only if there were at least one SegWit output being spent. The non-SegWit witnesses are going to be empty witness. The order is the same as the input order, all placed before locktime.

Quote
Why are the flag bytes even optional anyway?
Flag byte is mandatory not optional. It must exist if the transaction contains any witness and it must not exist if the transaction doesn't contain any witnesses.
It should not be confused with "stripped transaction" that we sent to old clients that can not interpret SegWit at all. In those cases we strip everything (flag and witnesses).

Quote
What's to prevent an implementation from accidentally reading the n_inputs bytes as part of the flags?
Flag is a fixed size value (2 bytes) that starts with zero. That makes it impossible to interpret it any other way. The interpreter seeing the first 0x00 byte can not interpret it as input count (that would be 0 inputs and the tx will be invalid and rejected). It has to see the next byte and it must be 0x01 hence completing the flag. Then it reads the input count as a variable length integer.

Edit: For compatibility sake the BIP calls the 0x00 a "marker" and the flag to be "0x01" while in my comment I refer to the 2 byte (0x0001) to be the flag since there is no alternative.
https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#specification
1884  Bitcoin / Development & Technical Discussion / Re: Is this pictogram of Bitcoin transaction structure correct? on: June 29, 2023, 05:55:49 AM
Witness is part of the inputs, it should also be the same count as the number of inputs (eg. 3 inputs needs 3 witnesses) or be omitted entirely if the transaction isn't spending any SegWit outputs.
Only its position inside the serialized transaction is before the locktime.
1885  Economy / Economics / Re: Russian Gas ban - A problem for Europe or suicide for Russia? on: June 29, 2023, 04:51:31 AM
Europeans and Americans have been supplying all the latest military hardware to Ukraine (recently they received Storm Shadow, HIMARS and Leopard MBTs).
These equipment you named aren't the "latest military hardware" not to mention that everything else they've sent so far, at least majority of it is old and in some cases outdated hardware close to expiration. For example US forces Greece to purchase newest equipment from US and donate the old and expired arms they had to Ukraine.

And a few weeks ago we saw a video of one such system getting destroyed by a Russian missile.
And the 6 Ukrainian citizens who posted the video were sentenced to 8 years in prison for publishing the video proof of the useless Patriot system being destroyed easily which harms the US arms industry Tongue
1886  Bitcoin / Wallet software / Re: Petition to remove Wasabi from recommendations of bitcoin.org on: June 27, 2023, 08:08:44 AM
I know the approach is not true, but even electrum is not considered to be privacy wallet.
To be fair Electrum was never introduced as a "privacy wallet" whereas Wasabi was and still is.
Electrum is always introduced as SPV client and it is a well known fact that SPV clients are weak when it comes to privacy.

We may argue that removing it is not the best approach but the page should definitely change the privacy from "Good" to "Caution" with a warning that instead of saying "Improved privacy" should say "it cooperates with chain-analysis aka anti-privacy agencies".
1887  Economy / Economics / Re: Russian Gas ban - A problem for Europe or suicide for Russia? on: June 27, 2023, 07:59:26 AM
We should take a moment and appreciate the recent shenanigans involving Wagner group. Keep in mind that it doesn't matter what this group is and what the real story was. What matters and what falls under the topic of discussion here is the reaction of the Western propaganda machines and the brainwashed sheeple that were repeating it mainly in social media. It was both funny and showed the dire situation that the European regimes are in because of the conflict NATO started over a year ago.

There was a certain bafflement with the mouthpieces specially in UK that I was monitoring with rushed propaganda that they were producing every second. It went from changing the terminology they used for Wagner group from "terrorist" to "freedom fighters" to crazy fake news they reported from the usual "unnamed reliable sources" about how Russian government has fallen and Putin has fled the country because Moscow is occupied by the Wagner group!!!

Such a high level of confusion with rushed propaganda where their contents are all over the place and even contradicting each other at times, is very rare in Western Propaganda agencies which are the leaders of brainwashing techniques.
Historically speaking such a situation only happens when they are too desperate and all their previous plans have failed (clear from the increasing number of anti-NATO protests across Europe) so they have to go back to old schemes they've already tried in the past or in other countries.
1888  Bitcoin / Bitcoin Discussion / Re: As a merchant, what percentage do you afford to lose on fees? on: June 27, 2023, 05:38:13 AM
I think this is a burning issue for many merchants at the moment, because the thing with the "Ordinals" are causing congestion on the Blockchain and this is pushing up the on-chain transaction fees.  Angry
This is exactly why I called Ordinals as it is: a malicious attack on bitcoin.
Weirdly enough some users were claiming that this attack "helps bitcoin adoption and future survival" and yet I don't see any of them in this topic responding to OP's concerns!
1889  Bitcoin / Bitcoin Discussion / Re: How does a whale sell its huge amount of bitcoins and change them into fiats? on: June 27, 2023, 05:22:47 AM
It depends a lot on the country and their local regulations involving bitcoin and sometimes the bank that they are using. This is not something global, some countries don't have nasty banks that would just shut down your account if you withdraw even a tiny amount of fiat from a bitcoin exchange, some others do.
1890  Bitcoin / Electrum / Re: Seed from 2010 bitcoin on: June 27, 2023, 04:19:24 AM
BIP39 seed phrase was implemented in 2013. How come your seed phrase was generated in 2010.
FWIW the Electrum project was released on 4 November 2011 and as far as I can tell the seed phrase algorithm was present from first releases (nothing in 2010 though).
Basically the first version seems to be using some sort of "brainwallet" using the password used as seed[1] to generate addresses (double SHA256 of index|pass). Then the mnemonic algorithm was introduced in later versions[2] (2012 I think) where random words were selected out of a 1626 word long word-list and improved in later versions[3] which is what we use today.

[1] https://github.com/spesmilo/electrum/blob/6db1a31e58ee15c448448139e7d3a9e72b14268f/client/electrum#L258
[2] https://github.com/spesmilo/electrum/blob/master/electrum/old_mnemonic.py
[3] https://github.com/spesmilo/electrum/blob/master/electrum/mnemonic.py
1891  Bitcoin / Bitcoin Discussion / Re: Lost coins redistribution on: June 26, 2023, 07:43:33 AM
Burning coins, on the other hand, is a complex issue. It’s like sending a spacecraft into a black hole. Its gone, contributing nothing to the economy.
Not the most accurate comparison because when you burn bitcoins you are actually decreasing the supply by effectively removing a part of the limited circulating supply. Obviously that is a contribution to the rest of bitcoin users as their bitcoins become a little more scarce and valuable.
In comparison there is no limit on the number of spacecrafts you can build. Destroying one means you can still build another. But you can never re-print those coins that were burnt.
1892  Bitcoin / Bitcoin Discussion / Re: Will World Economic Depression Affect Bitcoin? on: June 26, 2023, 07:25:59 AM
The global economical situation will definitely affect bitcoin but the degree and type of effect depends on a lot of things. We can't say it is all negative or all positive. And lets not forget that economy is not exactly "global" while bitcoin is. Even during the economic crisis like the one in 2008, there were countries that were either unaffected or were setting positive growth. Even during the 2022 onward economic crisis the world is split into parts, the Western countries specifically Europe have started seeing increased inflation and decreased economic growth whereas the Eastern bloc started seeing less inflation and higher economic growth.
1893  Bitcoin / Wallet software / Re: Petition to remove Wasabi from recommendations of bitcoin.org on: June 26, 2023, 05:43:59 AM
In this topic, I would like to gather petitions so we can send an email to Cobra (the bitcoin.org administrator) and explain our reasoning.
Bitcoin.org is also open source and the way to suggest changes is like any other open source software, it is by opening a new issue on their github page that can be found here:
https://github.com/bitcoin-dot-org/Bitcoin.org/issues/new/choose

Simply explain why it should be removed in that issue and try to get the discussion rolling there. You can also include a link to this topic.

If you're not using the coin joins you would never even know or care. As a wallet, it works.
I disagree because Wasabi is not a wallet, it is a privacy oriented wallet and the main purpose that it serves (which is also what it is known for and used for) is its CoinJoin feature. A privacy oriented wallet that is cooperating with anti-privacy organizations can not be trusted.
1894  Bitcoin / Development & Technical Discussion / Re: Create a seed from a selection of words on: June 26, 2023, 05:31:53 AM
I did some research on hash collisions today and there are collisions in MD5 that have 2 inputs but the same output. In sha256 or even sha128 you will never have the same output. I am also aware that a seed of 12 words will surely be unbreakable for the next 50 to 100 years. I think I heard that it is possible to access coins in the wallet with different seeds, but probably with subaccounts.
To be clear hash collision (even with weak algorithms) has nothing to do with finding a mnemonic collision.
The hash algorithms that are used under the hood of BIP39/BIP32 are there to give us a deterministic way of deriving child keys from an entropy and the security of this whole setup is determined by the size of that entropy not by the collision strength of the underlying hash algorithm. In other words in a 12-word seed you still have to face 2128 possibilities even if the scheme was using a hash algorithm that is weak against collision attack like SHA1/MD5 (ignoring their small digest size).

I'd say as long as the hash algorithm doesn't produce biased digests, any algorithm can be used but there is no reason to since SHA256/512 are both fast and efficient for the job.
1895  Other / Beginners & Help / Re: Can I Recover my loss of crypto on this platform? on: June 25, 2023, 05:41:29 PM
Making profit from trading (and not losing money) does not depend on the platform you are using, assuming the exchange you use is not a scammy one. Trading is about experience in reading the market correctly and acting wisely at the correct time. For example when you are trading altcoins it is of utmost importance to know when to enter (buy the altcoin) and when to exit (dump the altcoin). In almost all cases where people lost money in altcoin market, they bought the coin but could never decide on when to dump it so they end up bag holding it and losing money in the process.

Such experience is only acquired through lots of analysis of the market and figuring out what makes altcoins pump and when they get dumped.
1896  Economy / Economics / Re: Does "our" world here still exist? on: June 25, 2023, 03:50:59 PM
We were labeled as "conspiracy theorists" when we asked questions about uncontrolled mass immigration in Western Europe. It just didn't make sense. Why would you let a continent be flooded with people from all corners of the world without control?
Generally speaking it is because of cheap(er) labor. Immigrants work twice as hard and get paid less, not to mention that they work jobs that a regular "citizen" of that country may not be willing to do specially with its very low pay rate.

Quote
My YouTube channel was censored in October. Any criticism of Corona and the, back then, upcoming vaccines was not tolerated. You were literally kicked out if you went against the mainstream narrative.
That's the problem with centralized platforms, specially anything located in US. They have a very twisted definition of "freedom of speech". You can basically say anything and do anything as long as the US regime likes.
COVID policies they had is nothing compared to their political agenda against certain countries. For example right now you can easily go on any of those platforms (Youtube, Twitter, Instagram, etc.) and spread hate speech, incite violence, post detailed guide for terrorism as long as you do it in for example Russian encouraging Russian citizens to do these things. Do the same thing in English for Americans or French who are protesting for their basic rights and you'll be arrested within minutes!

Quote
Now I'm coming back to look into my "old world." With all the developments like AI, Corona, the almost non-existent privacy, is that old world still there?
Can you still do the same things as before, just as a free individual?
A lot of these things have been going on for a long time like the lack of privacy, so I don't think the "old world" has really changed. We just encounter newer challenges like the shenanigans of AI that some are predicting to be more deadly than invention of nukes...
1897  Bitcoin / Electrum / Re: Old Electrum wallet - 3.0.6 on: June 25, 2023, 02:04:54 PM
Warning: Electrum versions older than 3.3.4 are susceptible to phishing. http://electrum-malware.surge.sh Do not download Electrum from another source than http://electrum.org.
Unfortunately, this warning message has been removed from Electrum website's main page !
There is no reason to keep that message up anymore since this attack practically finished 4 years ago (in early 2019) with the release of 3.3.4, also there shouldn't be any malicious servers left running since there aren't any active users who run such old clients anymore.
1898  Economy / Economics / Re: Russian Gas ban - A problem for Europe or suicide for Russia? on: June 24, 2023, 01:47:44 PM
at the same time that it is conducting secret talks with Iran to renew the nuclear agreement with making more concessions in the enrichment rate proposed in the previous agreement in 2015,
That's a good point about US and its allies running around the world like headless chickens but I gotta say the talks with Iran are only about nuclear program in name but have very little to do with it. For example one of the main topics over the past couple of months is that they have been begging Iran not to sell any missiles to Russia and in return they have been giving Iran a lot of things.
Two main ones that we know of so far are the tens of billions of dollars that they had stolen from Iran over the past decade which is now being returned with interest.
Second one is European anti-terrorism forces cracking down hard on a terrorist cult called MEK (responsible for murdering 317000 Iranians directly and indirectly) that they were forced to give sanctuary to by United States ever since 2014. Two main news involving this are the terrorist's rally in France being prohibited and their leaders being arrested; and the Albanian anti-terrorist forces raiding the main cult's base in Tirana (capital of Albania) and arresting about a hundred of these terrorist while killing or wounding dozens more.
1899  Bitcoin / Bitcoin Discussion / Re: bitcoin ETFs on: June 24, 2023, 01:27:23 PM
I honestly don't think there is a "renewed interest" in ETFs just because it is being mentioned in the media once again. If anything the interest is diminished compared to a couple of years ago when we saw a lot of discussion and "excitement" (unreasonable excitement!) about them.

At the end of the day ETF is centralized and when you put your money there you don't own any bitcoin in reality.
1900  Bitcoin / Bitcoin Discussion / Re: Lost coins redistribution on: June 24, 2023, 05:38:56 AM
Bitcoins get lost all the time, lost private keys.
Actually losing bitcoins is an event with decreasing number of occurrence. In early days price was low and people were less careful so there were more cases of losing keys. As time went up and bitcoin gained more value people also became more careful hence the number of cases where people lose their keys diminished significantly.
So you can't say it gets "lost all the time".

Quote
currently it is thought 3-4 million bitcoins are already lost.
Wrong. Nobody knows how many bitcoins were actually lost. This is just an estimation you posted.

Quote
If an address did not have any activity in let's say the last 100 years
There are two problems with this:
1. Not having any activity is not the same as being lost. For example there are people who have coins from 2009 that they haven't touched but they still own the private key.
2. You can't really talk about what people should do in 100 years from now!
Pages: « 1 ... 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 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 ... 1157 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!