Bitcoin Forum
May 07, 2024, 06:48:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Forking scenario - when border connections are closed  (Read 1487 times)
Super T (OP)
Full Member
***
Offline Offline

Activity: 124
Merit: 100


View Profile
March 29, 2013, 10:26:00 PM
 #1

Scenario:  Bitcoin has been widely and globally adopted as the primary trade currency.  But it didn't solve everything, and somewhere a country in the midst of some tumultuous situation is either voluntarily or forcibly severed from the wider internet (easier said than done, but let's assume it is possible).

Does this result in a forked blockchain within which all coins can effectively be spent twice (once in each zone)?

Assuming forks could eventually be re-merged with the larger overriding the smaller, am I correct that double-spent coins on the smaller fork would be invalidated, with recipients incurring the losses as received coins disappear?

How would/will such a scenario be managed?  

I'm sure this scenario will have already been raised so apologies if duplicating.
1715107683
Hero Member
*
Offline Offline

Posts: 1715107683

View Profile Personal Message (Offline)

Ignore
1715107683
Reply with quote  #2

1715107683
Report to moderator
1715107683
Hero Member
*
Offline Offline

Posts: 1715107683

View Profile Personal Message (Offline)

Ignore
1715107683
Reply with quote  #2

1715107683
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715107683
Hero Member
*
Offline Offline

Posts: 1715107683

View Profile Personal Message (Offline)

Ignore
1715107683
Reply with quote  #2

1715107683
Report to moderator
1715107683
Hero Member
*
Offline Offline

Posts: 1715107683

View Profile Personal Message (Offline)

Ignore
1715107683
Reply with quote  #2

1715107683
Report to moderator
1715107683
Hero Member
*
Offline Offline

Posts: 1715107683

View Profile Personal Message (Offline)

Ignore
1715107683
Reply with quote  #2

1715107683
Report to moderator
Qoheleth
Legendary
*
Offline Offline

Activity: 960
Merit: 1028


Spurn wild goose chases. Seek that which endures.


View Profile WWW
March 29, 2013, 10:47:08 PM
 #2

Hmm.

Let's say the Bitcoin network splits along national borders. You're either inside Country X, and you're on Country X's network + blockchain, or you're outside Country X, and you're on the world network + blockchain.

If you're inside Country X, you can't spend money on the world blockchain because you can't access the world network.

If you're outside Country X, you can't spend money on the Country X blockchain because you can't access the Country X network.

When the two networks merge again, the Country X blockchain will be invalidated by the world blockchain, but the transactions on the Country X blockchain will still be valid (because the people trapped in Country X could not contact the world blockchain to double-spend them there) and will, theoretically, be sooner or later processed and recorded by the world blockchain regardless.

Here are the problems that I can't figure out how to deal with:
  • As long as Country X is cut off from the world, anyone in Country X who mines is a fool, because their mining rewards will vanish when the reorg hits.
  • The ones perpetrating the blockade (e.g. the Country X government) has access to both networks and is free to double-spend at will.

If there is something that will make Bitcoin succeed, it is growth of utility - greater quantity and variety of goods and services offered for BTC. If there is something that will make Bitcoin fail, it is the prevalence of users convinced that BTC is a magic box that will turn them into millionaires, and of the con-artists who have followed them here to devour them.
Tea, Towels, Vogons etc.
Newbie
*
Offline Offline

Activity: 20
Merit: 0



View Profile
March 29, 2013, 11:00:45 PM
 #3

Stop! Angry You're scaring the children!

I think cutting off a country's connection to the outside world is quite difficult to do--they can cut cables, shut down DNS servers etc., but as we saw in the recent Egypt uprising (1.0 against Mubarak) citizens still managed to connect via satellite, packet radio, creating their own ad-hoc DNS etc.
Super T (OP)
Full Member
***
Offline Offline

Activity: 124
Merit: 100


View Profile
March 30, 2013, 12:29:41 AM
 #4

I think in reality, whilst internet connections may be down, there will inevitably be exploitation of the double-spend opportunity.

As soon as an isolation event is discovered, people will rush to take advantage of the opportunity, wallet codes will cross borders and double spending will occur, both accidentally and deliberately.  There needs to be a solution to this potential problem.

Tea - are you saying the scenario below would not have caused a fork within the bitcoin network?

alexkravets
Full Member
***
Offline Offline

Activity: 209
Merit: 100



View Profile WWW
March 30, 2013, 10:10:37 AM
 #5

This problem is real, but its solution lies not with Bitcoin, all internet protocols are vulnerable.

There's a glimmer of hope on the horizon (probably in the similar stage that Bitcoin was itself in early 2009), it's called Project Meshnet https://projectmeshnet.org/

It's a completely p2p low level encrypted routing protocol that's designed to operate without "internet providers" and therefore to actually be resistant to censorship, also provides privacy to all traffic, etc.

Cheers ...

Alex Kravets         http://twitter.com/alexkravets
Super T (OP)
Full Member
***
Offline Offline

Activity: 124
Merit: 100


View Profile
July 16, 2013, 10:14:55 PM
Last edit: July 16, 2013, 10:34:09 PM by Super T
 #6

originally posted this a while back, bumping as i am still puzzled as to whether this vulnerability really is as large as it seems...?
Deafboy
Hero Member
*****
Offline Offline

Activity: 482
Merit: 502



View Profile WWW
July 16, 2013, 10:32:03 PM
 #7

Not every connection can be successfully cut-off. Even one node connected via satellite & local network can act as a bridge for everyone else. Miners should probably stop working (to eliminate double-spend risks) until such bridge is available. More of a concern is the bootstrapping process. I'm not sure how DNS seed method is actually implemented now, and I don't think we should rely on such centralized system.

You can analyse recent BarkleyDB nodes vs LevelDB nodes forking incident to see what are the risks of such event. I had really hard time to fully understand why there were some transactions reversed.
d'aniel
Sr. Member
****
Offline Offline

Activity: 461
Merit: 251


View Profile
July 17, 2013, 02:56:35 AM
 #8

People in these dire circumstances have found ways to maintain some connectivity to the outside world, just at low bandwidth.

Running in SPV mode (block headers only) is pretty low bandwidth, so keeping this service up might be possible.  There are also improvements that can be made to the SPV trust model that would allow an SPV node to reject invalid blocks upon receiving a short fraud proof, so the loss of access in a few countries to most of the transaction data wouldn't pose much of a risk to the people there, or the network as a whole.

Pooled mining is also low bandwidth, so miners might still be able to contribute by connecting to a pool in another country.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8411



View Profile WWW
July 17, 2013, 03:49:58 AM
 #9

Pooled mining is also low bandwidth, so miners might still be able to contribute by connecting to a pool in another country.
Thats not really contributing... I mean, they aren't validating anything. Presumably the same party isolating them could be redirecting their hashpower selfishly or maliciously.

In general SPV in isolation seems a bit odd except as a short term measure, it means you have to trust people who your communication with is restricted... they may even be the ones restricting you.
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1097


View Profile
July 17, 2013, 04:16:00 AM
 #10

Pooled mining is also low bandwidth, so miners might still be able to contribute by connecting to a pool in another country.
Thats not really contributing... I mean, they aren't validating anything. Presumably the same party isolating them could be redirecting their hashpower selfishly or maliciously.


I have discussed the solution for this problem at: https://bitcointalk.org/index.php?topic=248297.msg2634208#msg2634208

Here are the relevant parts:

1. Partial validating node with web-of-trust. Currently, there are 3 major types of bitcoin clients: full clients (e.g. bitcoind), SPV clients (e.g. bitcoinj), server-trusting clients (e.g. electrum). We can implement the 4th type: partial validating clients (PVC).

User may assign certain amount of system resources (CPU power / bandwidth / storage space) to bitcoind. If the node is unable to verify a block before the next block arrives, it will automatically turn into a PVC. Instead of verifying every blocks, a PVC will skip some of them. When a block is verified, a PVC will publish a signature for the block. Through a web-of-trust, people will be reasonably confident that the longest chain is a valid chain.

This could even be extended to mobile device. For example, a smartphone, which is normally running as SPV, may turn into a PVC when it is connected to AC power and wifi. Even only one block is verified per day, the network is strengthened as a whole.

2. Mining pools and full nodes on trusted platform. As some people are advocating centralized "bitcoin bank" running on trusted platform (TP), I think mining pool and public full nodes can also use TP. A full node on TP will accept new blocks and new transactions through encrypted channel, so that the network administrator won't be able to censor any block/transaction. They will also answer queries like normal full nodes but also in an encrypted way. With remote-attestation and fidelity bond (https://bitcointalk.org/index.php?topic=134827.0), it is very unlikely that the operator may cheat.

Based on TP full nodes, we can further establish TP mining pools. It's like a normal getblocktemplate mining pool so miners are free to construct their blocks, without doing any transaction validation themselves, assuming that the pool is trustworthy. Again, the integrity of the pool is secured by remote-attestation and fidelity bond. Therefore, mining will be decentralized even with huge block size. Mining over TOR is also possible.

Again, people will verify the integrity of TP full nodes with the partial validating nodes I described.

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
J.R. BOB DOBBS
Member
**
Offline Offline

Activity: 65
Merit: 10


GOT SLACK ?


View Profile WWW
July 17, 2013, 04:44:15 AM
 #11

+Xists run satellites and microwaves that eliminate this risk plus BOB laughs at peeps who don't recognize TOR/bitcoin relationship to slackdom ! (=

d'aniel
Sr. Member
****
Offline Offline

Activity: 461
Merit: 251


View Profile
July 17, 2013, 05:10:48 AM
 #12

Pooled mining is also low bandwidth, so miners might still be able to contribute by connecting to a pool in another country.
Thats not really contributing... I mean, they aren't validating anything. Presumably the same party isolating them could be redirecting their hashpower selfishly or maliciously.
To the extent that a pooled miner is actively checking forums etc. to listen for claims that their pool is misbehaving, and switching pools in such an event, then I think they are contributing somewhat.  Re: redirecting hashpower, of course a state level actor can always come in guns blazing and take your mining rig if it knows you have it.  Certainly no way around that Smiley

Quote
In general SPV in isolation seems a bit odd except as a short term measure, it means you have to trust people who your communication with is restricted... they may even be the ones restricting you.
Oh for sure.  Just arguing that a country here or there isolated from full validation mode isn't the end of the world.  Of course Bitcoin needs enough "free" countries acting as the backbone.  I mentioned the improved SPV mode as it would reduce the trust required of the backbone.
Peter Todd
Legendary
*
expert
Offline Offline

Activity: 1120
Merit: 1150


View Profile
July 17, 2013, 05:55:08 AM
 #13

To the extent that a pooled miner is actively checking forums etc. to listen for claims that their pool is misbehaving, and switching pools in such an event, then I think they are contributing somewhat.

How is the miner checking forums if the internet doesn't work?

On the other hand, if forums aren't blocked, bitcoin is sufficiently low traffic that you can stegonographically hide the blockchain data in what parts of the internet aren't being blocked and thus there isn't a problem.

d'aniel
Sr. Member
****
Offline Offline

Activity: 461
Merit: 251


View Profile
July 17, 2013, 06:21:58 AM
 #14

To the extent that a pooled miner is actively checking forums etc. to listen for claims that their pool is misbehaving, and switching pools in such an event, then I think they are contributing somewhat.

How is the miner checking forums if the internet doesn't work?
Well text is a lot easier than streaming video, for example, and I did assume there was enough bandwidth available for SPV to work.  There's also word of mouth, telephone, etc.  Just a matter of not being lazy about it.  Of course this is less than ideal, though.
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1097


View Profile
July 17, 2013, 06:23:36 AM
 #15

To the extent that a pooled miner is actively checking forums etc. to listen for claims that their pool is misbehaving, and switching pools in such an event, then I think they are contributing somewhat.

How is the miner checking forums if the internet doesn't work?


This question is self-contradicting. How could one mine (in the normal sense) without any internet access?

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8411



View Profile WWW
July 17, 2013, 07:39:02 AM
 #16

This question is self-contradicting. How could one mine (in the normal sense) without any internet access?
You only need to be able to reach one other node to mine, not some specific website in another country. The situation proposed here is a nation-scale partitioning, not a power outage. Smiley
TierNolan
Legendary
*
Offline Offline

Activity: 1232
Merit: 1083


View Profile
July 17, 2013, 08:56:03 AM
 #17

originally posted this a while back, bumping as i am still puzzled as to whether this vulnerability really is as large as it seems...?

The blockchain would fit on a single USB memory stick.

All that is needed is a node that can read the data.  However, loss of external internet access would cause lots of problems with getting new clients.

Inside the country, the chain would tend to jump.  New transactions could be smuggled out too.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
July 17, 2013, 10:47:11 PM
 #18

It would only take one person smuggling a blockchain copy on a USB flash disk across the border to catch everybody up in censor-stan. Spending money (smuggling out transactions) would be a bit harder though; you'd have to get out a hibernated laptop with cached transactions or such.

The mining power of an isolated area would be much less than the rest of Bitcoin, they would only need to know to not trust payments in any locally mined blocks if they happen during isolation.

Deepceleron's razor #17: If something is worth saying to a noob, deepceleron has probably already said it.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!