How can one simulate and analyze attacks on the Bitcoin network?

2

0

Are there any other platforms or tools beside TestNet where I can simulate and analyze various attacks like double spending (finney/block withholding attacks etc.)?

Sadia Khalil

Posted 2015-02-16T06:28:30.683

Reputation: 61

Do you know about regtest mode?Nate Eldredge 2015-02-16T06:43:10.997

Yes, i know about regtest . It is somewhat similar to testnet except that it allows faster generation of blocks. What i am looking for is a tool that can help me model various attacks like >50% , selfish mining and so on.Sadia Khalil 2015-02-16T07:04:58.160

Answers

2

The regtest operational mode of bitcoind is not as similar to testnet as you might think. The regtest mode offers you a totally local Bitcoin blockchain which is easily controlled by your local bitcoind with low difficulty. According to this post, it is furthermore possible to build a network out of multiple local bitcoind instances, such that you have a local Bitcoin network of your own.

You can control this network freely, but you can only simulate behavior that bitcoind allows you to assume. I am not aware of whether or not this is sufficient for your cases. If not, you could maybe try to fork bitcoind and somehow add the behavior you want to achieve...

Rmn

Posted 2015-02-16T06:28:30.683

Reputation: 161

Not sure if a regression testing mode (regtest) should be used, see https://en.bitcoin.it/wiki/Running_Bitcoin. Rolling out a private Bitcoin network "isolated from the Internet" could be used to provide an environment for stimulating and monitoring attacks.

skaht 2015-02-16T17:08:51.827

1So will it be possible to simulate attacks like 51% on regtest mode ?Sadia Khalil 2015-02-17T05:04:00.007