Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Sunny King on April 04, 2013, 09:46:58 PM



Title: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Sunny King on April 04, 2013, 09:46:58 PM
Following is a summary of the Terracoin vulnerability I communicated to Gavin and Terracoin developer. It is now fixed in the latest Terracoin release.

Summary: Possible manipulation of difficulty by a miner collusion, or a direct 51% attack, to collapse the difficulty and block generation interval to almost 0.

Impact Level: Critical.

Description: because terracoin employed a very short adjustment interval of 30 blocks, while the target spacing is 2-minute, below is what I come up with as an experimental attack scenario (not tested yet but just for illustration purposes for now). The way the attack works is that a miner collusion attempts to artificially inflates the time span of each retarget section. When the collusion gains momentum theoretically for terracoin I think the difficulty will collapse and block spacing drops close to 0. This is because terracoin 1) didn't fix the time travel vulnerability 2) used a too short retarget interval.


diff --git a/src/main.cpp b/src/main.cpp
index 87b8abf..f28ea0b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1238,6 +1238,15 @@ void CBlock::UpdateTime(const CBlockIndex* pindexPrev)
 {
     nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime());

+    // If the time-travel vulnerability is present  (nActualTimeSpan is
+    // computed between the first and last block of the retarget section)
+    // the following patch can gradually attract miners to join a 'collusion':
+    // inflate nActualTimeSpan on both ends of the retarget section
+    if ((pindexPrev->nHeight+1) % nInterval == 0)
+        nTime = max(GetBlockTime(), GetAdjustedTime()) + 105 * 60;
+    else if ((pindexPrev->nHeight+1) % nInterval == 1)
+        nTime = pindexPrev->GetMedianTimePast()+1;
+
     // Updating time can change work required on testnet:
     if (fTestNet)
         nBits = GetNextWorkRequired(pindexPrev, this);


Acknowledgement: this class of attack was first disclosed by ArtForz in 2011 I think. It's well known among bitcoin developers and old-time altcoin developers.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: tacotime on April 04, 2013, 09:50:41 PM
Edit: nm, same as time travel with original solidcoin I think.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: crazy_rabbit on April 04, 2013, 09:52:58 PM
Thank you SunnyKing for pointing this out to the TRC dev's!


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Sunny King on April 04, 2013, 09:53:07 PM
Is this the same exploit (https://bitcointalk.org/index.php?topic=146855.0) I published on a while ago that was seen recently (https://bitcointalk.org/index.php?topic=157449.0)?

No. Yours is a limited oscillation. This one would collapse it to 0.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: tacotime on April 04, 2013, 09:54:34 PM
No. Yours is a limited oscillation. This one would collapse it to 0.

Yeah, I realized it now, I haven't heard about that vulnerability for a while.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Sunny King on April 04, 2013, 09:59:49 PM
Thank you SunnyKing for pointing this out to the TRC dev's!

Best way to thank me is for the terracoin fans to stop trashtalking ppcoin just because we are in competition. I advocate competing fairly with positive spirit.

Thanks,


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: crazy_rabbit on April 04, 2013, 10:01:13 PM
Thank you SunnyKing for pointing this out to the TRC dev's!

Best way to thank me is for the terracoin fans to stop trashtalking ppcoin just because we are in competition. I advocate competing fairly with positive spirit.

Thanks,

Deal.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: d4rkbreaker on April 04, 2013, 10:49:06 PM
I just started wallet (newest stable build, it worked earlier today) and got this error message. Is it related to bug?

https://i.imgur.com/zqrBFp5.png

Uninstall, reinstall previous stable build and check for this error message. If it turns out that the previous builds work, then someone screwed up the source files and compiled.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: d4rkbreaker on April 05, 2013, 01:11:05 AM
But it is the same wallet version I have been using for weeks now. I had it up and running before, while and after difficulty calculation change went live
and it is working now without problems.

I just installed the new stable release. Why is it re-downloading all the transactions that I had already?


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: flound1129 on April 05, 2013, 02:27:43 AM
nevermind.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: jar on April 05, 2013, 02:31:32 AM
That's not a patch to fix anything.  Do not apply that.  It was a potential exploit that has already patched (again, not that code).  It's my understanding that that code won't get you anywhere with exploiting anything in the current branch.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Walter Rothbard on April 05, 2013, 02:39:48 AM
Thank you SunnyKing for pointing this out to the TRC dev's!

Best way to thank me is for the terracoin fans to stop trashtalking ppcoin just because we are in competition. I advocate competing fairly with positive spirit.

Thanks,

Earnest agreement!  Thank you for your contribution, and I wish you and your coin's users the best.

(And even though I have coin preferences, I hope nobody ever reads what I say as trashing other coins or their users.)


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Tomatocage on April 05, 2013, 04:09:28 AM
Terracoin has an active dev?


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: jubalix on April 05, 2013, 06:14:15 AM
SK you are the Best

I purchased PPC and TRC both are great!!!!




Following is a summary of the Terracoin vulnerability I communicated to Gavin and Terracoin developer. It is now fixed in the latest Terracoin release.

Summary: Possible manipulation of difficulty by a miner collusion, or a direct 51% attack, to collapse the difficulty and block generation interval to almost 0.

Impact Level: Critical.

Description: because terracoin employed a very short adjustment interval of 30 blocks, while the target spacing is 2-minute, below is what I come up with as an experimental attack scenario (not tested yet but just for illustration purposes for now). The way the attack works is that a miner collusion attempts to artificially inflates the time span of each retarget section. When the collusion gains momentum theoretically for terracoin I think the difficulty will collapse and block spacing drops close to 0. This is because terracoin 1) didn't fix the time travel vulnerability 2) used a too short retarget interval.


diff --git a/src/main.cpp b/src/main.cpp
index 87b8abf..f28ea0b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1238,6 +1238,15 @@ void CBlock::UpdateTime(const CBlockIndex* pindexPrev)
 {
     nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime());

+    // If the time-travel vulnerability is present  (nActualTimeSpan is
+    // computed between the first and last block of the retarget section)
+    // the following patch can gradually attract miners to join a 'collusion':
+    // inflate nActualTimeSpan on both ends of the retarget section
+    if ((pindexPrev->nHeight+1) % nInterval == 0)
+        nTime = max(GetBlockTime(), GetAdjustedTime()) + 105 * 60;
+    else if ((pindexPrev->nHeight+1) % nInterval == 1)
+        nTime = pindexPrev->GetMedianTimePast()+1;
+
     // Updating time can change work required on testnet:
     if (fTestNet)
         nBits = GetNextWorkRequired(pindexPrev, this);


Acknowledgement: this class of attack was first disclosed by ArtForz in 2011 I think. It's well known among bitcoin developers and old-time altcoin developers.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: crazy_rabbit on April 05, 2013, 06:33:30 AM
Terracoin has an active dev?


Yes it does. He will answer questions at the sourceforge page or the github page and lurks in the forums.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: luffy on April 05, 2013, 06:35:50 AM
i don't consider any coin as competition to each other. every coin is different and every coin can be useful in its way.
btw, SK you are great!


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Syke on April 11, 2013, 06:20:23 PM
Some is time-travel exploiting the new difficulty calculation right now. The generated coins are going to:

http://cryptocoinexplorer.com:3750/address/111exFkjLXP5mXmEfVqGd2r7bXQhVhux3


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 11, 2013, 06:30:07 PM
Some is time-travel exploiting the new difficulty calculation right now. The generated coins are going to:

http://cryptocoinexplorer.com:3750/address/111exFkjLXP5mXmEfVqGd2r7bXQhVhux3


i guess he can do that because there are not enough miners on TRC, looking atblocks, i see he is able to mine multiple consecutive blocks at a diff between 2k and 14k

If he was unable to mine multiple consecutive blocks, i'm pretty sure the averaging thing would more or less ignore those


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Syke on April 11, 2013, 06:34:27 PM
Watch the time stamps. He's generating the blocks ahead of time and then dropping them all on the network at once.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 11, 2013, 06:38:51 PM
Watch the time stamps. He's generating the blocks ahead of time and then dropping them all on the network at once.

yes, saw that.

If there was enough miners ... he should not be able to mine so many consecutive blocks, that's what i was saying.

If people want to protect their coins ... mining is the only option
(supposing he's not the guy behind your favorite pool of course :p )


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Syke on April 11, 2013, 06:41:12 PM
Yes, he does have some mining power, but he's leveraging the time-travel exploit to multiply his hashing power by 10x or more.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: phrozenspite on April 11, 2013, 06:42:50 PM
It doesn't help the coin any that the difficulty jumping basically broke pooled mining and coinotron isn't doing it as far as higher constant hashrates go


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 11, 2013, 06:46:22 PM
Yes, he does have some mining power, but he's leveraging the time-travel exploit to multiply his hashing power by 10x or more.

actually no : enable the in-place logging of averaged data and you'll see the block with future ntime/timestamp has no real effect, the problem is that he can mine consecutive blocks, finally leading to the averaging taking those into account...


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Syke on April 11, 2013, 06:47:16 PM
Last block was at 18:31:35 at difficulty 27431. At 18:51:35 difficulty drops to 2743. He has been mining that block and the ones after it for the last 15 minutes. When 18:51 comes he'll drop a chain of blocks already pre-generated at the lower difficulty. Watch for it.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 11, 2013, 06:48:27 PM
It doesn't help the coin any that the difficulty jumping basically broke pooled mining and coinotron isn't doing it as far as higher constant hashrates go

BTE currently experiences a similar problem : some big mining resources were pointed to their chain, long enough to make diff skyrocket, then the miner simple left.. someone really wants a few coins to disappear :(



Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Syke on April 11, 2013, 06:56:13 PM
And there they are. Blocks 103018 at 18:52 through 103036 at 19:11. Actual clock is only 18:57. He's generating blocks ahead of time, and into the future.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 11, 2013, 07:00:18 PM
And there they are. Blocks 103018 at 18:52 through 103036 at 19:11. Actual clock is only 18:57. He's generating blocks ahead of time, and into the future.

this is supported by the protocol, but indeed, the averaging function should proceed those in another way i guess.
I reported the first block with a future ntime to devs, asking how would this affect the diff (magically he first used +15 mins, that's how i saw hit while looking at how frequent blocks were mined).

The real problem here i guess, is that that guy is able to mine multiple blocks one after the other, obviously this finally alters the averaged data and triggers the diff increase.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 11, 2013, 07:09:27 PM
Looks like (according to P2Pool) -- the blocks seem to all be coming from:
216.69.248.251,9323



Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Nolo on April 11, 2013, 07:10:13 PM
Looks like (according to P2Pool) -- the blocks seem to all be coming from:
216.69.248.251,9323



Sorry wmikrut.  I was wrong in the other thread. 


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 11, 2013, 07:12:15 PM
Looks like (according to P2Pool) -- the blocks seem to all be coming from:
216.69.248.251,9323



if blocks were generated with p2pool we would see two distinct things:

- p2pool author pubkey / transaction in outputs

- multiple outputs, to addresses belonging to share owners

i doubt he uses p2pool (how would he alter remote existing p2pool installations by the way)


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 11, 2013, 07:12:25 PM
Looks like (according to P2Pool) -- the blocks seem to all be coming from:
216.69.248.251,9323



Sorry wmikrut.  I was wrong in the other thread. 

No need to apologize!
I appreciate the response.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 11, 2013, 07:14:46 PM
what's kinda funny, is that those attacks could come from a pool where miners willing to help point theirs rigs :)


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 11, 2013, 07:14:54 PM
Looks like (according to P2Pool) -- the blocks seem to all be coming from:
216.69.248.251,9323



if blocks were generated with p2pool we would see two distinct things:

- p2pool author pubkey / transaction in outputs

- multiple outputs, to addresses belonging to share owners

i doubt he uses p2pool (how would he alter remote existing p2pool installations by the way)

Sorry -- I didn't mean to imply they are using P2Pool.
I meant when I use explorer in P2Pool on these blocks -- they all appear to be coming from the same address.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Milan77 on April 11, 2013, 11:26:45 PM
I am mining for few hours no blocks found, with 20Ghash t should be.. at least some... dunno if something is wrong or just bad luck.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 12, 2013, 12:13:34 AM
I really don't know at this point... I see the guy churning out blocks so fast -- it seems impossible to keep up.
The difficulty drops to 565... then in seconds shoots back up to 32,000+

In the mean time -- he's turning out blocks in the difficulty range of < 35 at the rate of 1 every couple minutes.
TBH... I am surprised the exchanges haven't suspended TRC trading yet.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: fcmatt on April 12, 2013, 12:24:35 AM
so at this point in time trc is terribly broken and i would never mine it because someone is ripping me off?
that about sums it up?


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: seleme on April 12, 2013, 12:32:56 AM
Dev said on Github that he won't play cat and mouse game with the guy who's exploiting terracoin and if people don't mine the attacker will win.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 12, 2013, 12:36:11 AM
So how much hash power are we talking here?
I will gladly put my 7Gh into solo mining if that will help... but what's the bigger picture needed to stop this guy?


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: fcmatt on April 12, 2013, 12:40:21 AM
Dev said on Github that he won't play cat and mouse game with the guy who's exploiting terracoin and if people don't mine the attacker will win.

i guess this is how an alt coin dies then.
seems like there is two too many right now anyway.

it takes 30 of me to equal one avalon. if the guy has 3. we are talking 100 of me just to out do him by a tiny bit.
i doubt that is going to happen.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: CoinHoarder on April 12, 2013, 12:40:33 AM
Dev said on Github that he won't play cat and mouse game with the guy who's exploiting terracoin and if people don't mine the attacker will win.

That's reassuring...


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 12, 2013, 01:00:19 AM
Ok... I redirected my ~7Gh into TRC P2Pool:
http://www.wmikrut.com:9322/static/

That's all I have.



Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Remember remember the 5th of November on April 12, 2013, 01:12:20 AM
I read the description of OP at least 50 times, but I dun' get it.

Quote
The way the attack works is that a miner collusion
I assume you mean that you need more than one node for this?

Quote
attempts to artificially inflates the time span of each retarget section
And this "group" of miners does this how? Inflation means to increase, increase means it will take longer than 2 minutes to create a block. Not sure how you'd do it. It's possible due to less nodes?

Quote
When the collusion gains momentum theoretically for terracoin I think the difficulty will collapse and block spacing drops close to 0
And again, how do you prevent people from finding blocks? Bear with me, I am thinking as I type, so basically miners will increase the difficulty, then stop till the retarget code decides it needs to go down? And when it goes down it gets exploited by the miners with the most hashpower again?


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Nolo on April 12, 2013, 02:02:22 AM
I've moved 6GH/s to TRC.  We need an "Altcoin Rapid Response Team"  (ARRT) to fight off jackasses like this.   


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 12, 2013, 02:07:17 AM
i personally moved my miners away from p2pool for now, it really looks broken, nearly every found block gets orphaned and stale rate is incredible, i gave a try to multipool.

I'd suggest you check your own p2pool stats (& graphs) page and maybe logs, it can still be coming from my setup.

i'll check my stats tomorrow and then decide if i try solomining or not.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Nolo on April 12, 2013, 02:26:34 AM
i personally moved my miners away from p2pool for now, it really looks broken, nearly every found block gets orphaned and stale rate is incredible, i gave a try to multipool.

I'd suggest you check your own p2pool stats (& graphs) page and maybe logs, it can still be coming from my setup.

i'll check my stats tomorrow and then decide if i try solomining or not.

I'm having a good bit of success solo mining.  Sure I'm getting some orphans, but that's to be expected. 


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 12, 2013, 02:31:05 AM
Yeah, things look a little messed up in P2Pool --- and tbh I don't know if I am contributing to a problem by using it.
I just wanted visibility that I was throwing what I had at it.

I'll switch out to straight solo mining.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Syke on April 12, 2013, 02:36:28 AM
Bear with me, I am thinking as I type, so basically miners will increase the difficulty, then stop till the retarget code decides it needs to go down? And when it goes down it gets exploited by the miners with the most hashpower again?

The main problem is the code allows the difficulty to drop by 90%. This is highly exploitable. This isn't the first time an alt-coin made the mistake of asymmetric difficulty adjustment problems.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Nolo on April 12, 2013, 02:41:38 AM
Bear with me, I am thinking as I type, so basically miners will increase the difficulty, then stop till the retarget code decides it needs to go down? And when it goes down it gets exploited by the miners with the most hashpower again?

The main problem is the code allows the difficulty to drop by 90%. This is highly exploitable. This isn't the first time an alt-coin made the mistake of asymmetric difficulty adjustment problems.

For now the temporary solution is for those of us who support this coin, to keep mining it regardless of difficulty or profitability.  Let the dev's work on a more permanent fix, but in the meantime we can protect it by consistently pushing high hash power onto it, to minimize ASIC jackassery. 


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: pyra-proxy on April 12, 2013, 04:02:28 AM
The way it seems, their solution is working very well given you don't have a stalled network like some other chains being borked with right now... with that said I only see a couple solutions to this kind of attack off the top of my head...

1) Implement merge mining and coordinate with a larger merge mine pool or two to pick you up right away to get a much higher base hash rate making this attack less profitable thus less desirable (but still not impossible and potentially not worth it given other attack vectors scummy players have taken by abusing the merge mining capability)

2) Change some mining parameter around so that ASICS are completely broken on this chain, I would think something even as simple as changing the hash algo to use SHA512 instead of 256 should do it no?  There are also the next gen hash algo's that could be looked at and there is a "fall back" to try scrypt or a scrypt merge mine.... asics are not very friendly to change given their nature so the change to break them would be easy.  Collude with any exchanges to halt trading and you could even 51% them back by breaking them and mining at a point before they started jacking with the chain and overwrite their blocks with newly fairly generated blocks.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Nolo on April 12, 2013, 04:46:04 AM
The way it seems, their solution is working very well given you don't have a stalled network like some other chains being borked with right now... with that said I only see a couple solutions to this kind of attack off the top of my head...

1) Implement merge mining and coordinate with a larger merge mine pool or two to pick you up right away to get a much higher base hash rate making this attack less profitable thus less desirable (but still not impossible and potentially not worth it given other attack vectors scummy players have taken by abusing the merge mining capability)

2) Change some mining parameter around so that ASICS are completely broken on this chain, I would think something even as simple as changing the hash algo to use SHA512 instead of 256 should do it no?  There are also the next gen hash algo's that could be looked at and there is a "fall back" to try scrypt or a scrypt merge mine.... asics are not very friendly to change given their nature so the change to break them would be easy.  Collude with any exchanges to halt trading and you could even 51% them back by breaking them and mining at a point before they started jacking with the chain and overwrite their blocks with newly fairly generated blocks.

Can the hash algorithm be changed without jacking up the current blockchain though?  Would that require a hard fork? 


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: dreamwatcher on April 12, 2013, 05:37:04 AM
The way it seems, their solution is working very well given you don't have a stalled network like some other chains being borked with right now... with that said I only see a couple solutions to this kind of attack off the top of my head...

1) Implement merge mining and coordinate with a larger merge mine pool or two to pick you up right away to get a much higher base hash rate making this attack less profitable thus less desirable (but still not impossible and potentially not worth it given other attack vectors scummy players have taken by abusing the merge mining capability)

2) Change some mining parameter around so that ASICS are completely broken on this chain, I would think something even as simple as changing the hash algo to use SHA512 instead of 256 should do it no?  There are also the next gen hash algo's that could be looked at and there is a "fall back" to try scrypt or a scrypt merge mine.... asics are not very friendly to change given their nature so the change to break them would be easy.  Collude with any exchanges to halt trading and you could even 51% them back by breaking them and mining at a point before they started jacking with the chain and overwrite their blocks with newly fairly generated blocks.

Can the hash algorithm be changed without jacking up the current blockchain though?  Would that require a hard fork?  

Any change that would be meaningful would most likely require a hard fork, that is a bit more difficult with TRC. TRC is now on a major exchange and if the TRC developers decide to hard fork, there will need to be some communication between the developers and the exchange, to lessen the chance of the exchange dropping TRC.

I have been thinking about this particular problem with ASIC manipulating Alt-coins. I have been trying to think of a tweak of some sort short of the complete scrypt parameter difficulty I have already proposed.

How about this:

Keep difficulty adjustment the same or relativity the same, and run the SHA-256 block hash through scrypt a limited number of times. LTC/NVC use a scrypt 1024:1:1 tuning, roughly this means that the data is run through the scrypt algo 1024x.

What if any of the SHA-256 coins, put a completed SHA 256 hash through a scrypt algo 2x, 10x, or 100x , whatever it takes to cripple the ASICs' efficiency. With the final result, of course, having to meet the difficulty requirement to solve the block. This is subject to the reality of how many times it would take before the coin becomes another LTC like coin. We still want the coin to be GPU friendly, just ASIC hostile.

Downside: mining software developers would have to get involved, or a community patch to a miner to run the SHA-256 hash through the scrypt algo.

Just throwing the idea out there...good or bad  ;D







Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: pyra-proxy on April 12, 2013, 12:08:11 PM
Basics are very very specialized so the change required to break them could be very simple.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 12, 2013, 12:35:20 PM
Wouldn't that break FPGA's too?


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: celkaris on April 12, 2013, 12:38:06 PM
Wouldn't that break FPGA's too?


people holding ASICs probably still have GPU-based farms, maybe not reaching 60+Gh/s but currently, 20Gh/s may just be enough to disrupt the chain ; those type of rigs aren't that rare :(

This is probably what some of them decided to use their non-ASIC rigs for ; messing around with altcoins (benefiting from market?)


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: pyra-proxy on April 12, 2013, 01:40:48 PM
Wouldn't that break FPGA's too?


Yes but if the change is not too extensive and only dealing with things FPGA's can adjust for (as they are less specialized) then they may be fine, possibly just needing a firmware update.  And remember FPGA difference of power vs. GPU is considerably less of an impact than ASICs who are many fold more powerful.  So if this style of solution is used consider that....


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: gambit on April 12, 2013, 02:03:32 PM
I updated my terracoin wallet to 0.1.3 version. Is everything ok now? Can I trade my coins safely?  :P


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Milan77 on April 12, 2013, 02:14:21 PM
I do solo 16Ghash from last night, only orphans!
Yes, I have up-to-date wallet. This is bullshit. I will give up TRC and giveaway all of 10K TRC coins...


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: wmikrut on April 12, 2013, 02:16:03 PM
Wouldn't that break FPGA's too?


Yes but if the change is not too extensive and only dealing with things FPGA's can adjust for (as they are less specialized) then they may be fine, possibly just needing a firmware update.  And remember FPGA difference of power vs. GPU is considerably less of an impact than ASICs who are many fold more powerful.  So if this style of solution is used consider that....

I would hate to lose the use of my FPGAs on the chain... but if it would secure the coin, so be it.
I still have plenty of GPUs  ;D


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: Milan77 on April 12, 2013, 05:40:06 PM
Regular vs orphan ratio is 1:10 currently for me.

Please, if you think to keep ppl on TRC do something in Gods sake.


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: aysyr on April 12, 2013, 06:12:52 PM
I do solo 16Ghash from last night, only orphans!
Yes, I have up-to-date wallet. This is bullshit. I will give up TRC and giveaway all of 10K TRC coins...

I'll take some! Haha, I'm supporting TRC all the way so I would welcome it :) Now only if I could finally get my BFL ASIC I would keep that on the chain to increase our permanent network hashrate, but who knows if I'll even ever get it -.- But yea, even getting rid of ASIC miners would work for me since I have decent GPU power, and ASIC just lets those with more get more.

16daYGpJeUnvC9NDSEUPtj5P5SoafPJ2ri


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: FuzzyBear on April 12, 2013, 07:31:31 PM
I do solo 16Ghash from last night, only orphans!
Yes, I have up-to-date wallet. This is bullshit. I will give up TRC and giveaway all of 10K TRC coins...

Yeah i'm still mining and supporting so please if you giving away TRC then i'll have some please!!

addy in my signature

or this one here:   1FzdruHpffAeW2ZBctDLwR8P4APVpATu2j 

many thanks and lets keep TRC alive


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: bigtimespaghetti on April 14, 2013, 02:01:47 PM
If your looking to unload some TRC I will happily take them off your hands! And thanks :)

1Pk6LUrEYqi7b27MKzSqky6NaLww3W1oj4


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: com911 on April 14, 2013, 04:38:31 PM
I do solo 16Ghash from last night, only orphans!
Yes, I have up-to-date wallet. This is bullshit. I will give up TRC and giveaway all of 10K TRC coins...
Well, if you don't need them anymore, maybe I could play with them a little... ::)

18wPyaoYAAktDsnwhNjnMS19LueL2qHLKt


Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: erk on April 18, 2013, 09:22:01 PM
I do solo 16Ghash from last night, only orphans!
Yes, I have up-to-date wallet. This is bullshit. I will give up TRC and giveaway all of 10K TRC coins...

Don't give away your TRC, just move them over to one of the TRC exchanges and convert them into something you like.



Title: Re: [TRC] [DISCLOSURE] Terracoin Difficulty Collapse Exploit
Post by: nemospool on July 19, 2015, 06:43:50 AM
NEW TERRACOIN TRC POOL:  i made primarily for my ANTMINER rigs but can be used with any sha256-asic  or gpu/cpu if your oldschool

www.nemospool.com

email:   nemospool@hotmail.com

Regards
NEMO