Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to quickly make counterfeit coins based on TurtleCoin

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to quickly make counterfeit coins based on TurtleCoin". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. Choose a fashionable name

If you don't have a fashionable name, how can it be a good copycat coin? I spent a lot of time trying different options, and finally I decided to use "Athena" at the risk of duplicating my name. Now let's set up an organization of the same name on Github to appear more formal and official:

2. Clone TurtleCoin repository

Now go back to the TurtleCoin main warehouse and use the fork button in the upper right corner to assign the forked warehouse to the athena-network mechanism we just created.

When fork first came down to the warehouse, the name was still TurtleCoin, so we need to rename it to "athena" in the setting. Now our warehouse has been built: athena github.

3. Economic consideration and issuing logic

The next part is the core, and we will define how the blockchain network works.

3.1 Blockout period

TurtleCoin will create a block every 30 seconds, regardless of whether there is a deal or not. For Athena, we want to move out larger blocks at a slower speed so that they can be used as settlement channels for other block chains. So we can set it to one piece per hour:

Find this line:

Const uint64_t DIFFICULTY_TARGET = 30; / / seconds

The modifications are as follows:

Const uint64_t DIFFICULTY_TARGET = 3600; / / seconds3.2 wallet address prefix

There is only one requirement on this point, and it is very lenient. Basically, if you want people to take your currency seriously, just don't choose prefixes similar to other networks.

Prefixes can only be CN Base58 characters, so only certain combinations are available, and some letters are not allowed, such as l and I, or o and 0. In this example you can see that I have generated a wallet prefix for the athena coin so that the resulting address will be more than 100 characters long.

Find this line:

Const uint64_t CRYPTONOTE_PUBLIC_ADDRESS_BASE58_PREFIX = 3914525

Modified to:

Const uint64_t CRYPTONOTE_PUBLIC_ADDRESS_BASE58_PREFIX = 0x18845 CFCA 3.3 Total supply

We initially decided to issue 1 trillion Athena coins, two places after the decimal point, which is very small compared with the top 10 networks, but people will complain that there are so many coins anyway. Let's try to issue 21 million coins this time.

Let's use the upper limit of 32-bit integers 2, 147, 483, 647, so we end up with 21474836.47 Athena tokens.

Find this line:

Const uint64_t MONEY_SUPPLY = UINT64_C (100000000000000)

Modified to:

Const uint64_t MONEY_SUPPLY = UINT64_C (2147483647); 3.4 Mining difficulty

Without much consideration for this parameter, we directly use the parameter recommended by zpamtree, using Zawy Algo 1 for block 0 and enabling the LWMA-2 switch for block 1.

Find these two lines:

Const uint32_t ZAWY_DIFFICULTY_BLOCK_INDEX = 187000th Const uint64_t LWMA_2_DIFFICULTY_BLOCK_INDEX = 620000

Modified to:

Const uint32_t ZAWY_DIFFICULTY_BLOCK_INDEX = 0bot Const uint64_t LWMA_2_DIFFICULTY_BLOCK_INDEX = 1bot 3.5 release rate factor

The release speed factor is another magic number for counterfeit coins, and the smaller this number is, the faster the currency will be released:

Const unsigned EMISSION_SPEED_FACTOR = 25

This parameter must be greater than 8, or you will be in trouble. So we chose the next fastest number, 9:

Const unsigned EMISSION_SPEED_FACTOR = 2510 3.6 decimal places

I like to set the number of decimal places to 2:

Const size_t CRYPTONOTE_DISPLAY_DECIMAL_POINT = 23.7% handling fee

Service charge is the existence of contradiction in the network. You want the fee to be higher so that people don't create junk transactions, but you want the fee to be as low as possible so that people who really need it won't be bothered by the high cost of transferring money.

All things considered, we set it to 10000 atomic units.

Find this line:

Const uint64_t MINIMUM_FEE = UINT64_C (10)

Modified to:

Const uint64_t MINIMUM_FEE = UINT64_C (10000); 3.8 mixed

Mixing is a means by which TurtleCoin protects the privatisation of transactions. We use minimization measures to keep the block simple while providing some security.

Find these lines:

Const uint64_t MINIMUM_MIXIN_V1 = 0There Const uint64_t MAXIMUM_MIXIN_V1 = 100th Const uint64_t MINIMUM_MIXIN_V2 = 7There Const uint64_t MAXIMUM_MIXIN_V2 = 7There Const uint32_t MIXIN_LIMITS_V1_HEIGHT = 440000 Const uint32_t MIXIN_LIMITS_V2_HEIGHT = 620000

Replace with the following values:

Const uint64_t MINIMUM_MIXIN_V1 = 0th Const uint64_t MAXIMUM_MIXIN_V1 = 3There is Const uint64_t MINIMUM_MIXIN_V2 = 3There is Const uint64_t MAXIMUM_MIXIN_V2 = 3There is Const uint32_t MIXIN_LIMITS_V1_HEIGHT = 0 Const uint32_t MIXIN_LIMITS_V2_HEIGHT = 1 + 3.9 dust threshold

We simply leave this value at 0.

3.10 bifurcation height

If we give one piece per hour, then in six months, it will be about $24018 = 4392. We plan to bifurcate every 6 months to upgrade the software, so the predefined bifurcation height is roughly as follows:

Const uint64_t FORK_HEIGHTS [] = {4392, 8684, 13176, 17568}

It looks very complicated, but it is actually very simple, which is to set up the upgrade cycle.

Find this line:

Const uint8_t CURRENT_FORK_INDEX = FORK_HEIGHTS_SIZE = = 0? 0: 3

Modified to:

Const uint8_t CURRENT_FORK_INDEX = FORK_HEIGHTS_SIZE = = 0? 0: 0 TX 3.11 change the name

We are nearing the end of the modification work, and we are now modifying the name of the program to be generated.

Find this line:

Const char CRYPTONOTE_NAME [] = "TurtleCoin"

Modified to:

Const char CRYPTONOTE_NAME [] = "Athena"; "how to quickly make counterfeit coins based on TurtleCoin" is introduced here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report