Position: Home page » Virtual » Algorithm of generating virtual currency

Algorithm of generating virtual currency

Publish: 2021-04-23 11:26:22
1. virtual currency needs to be developed by a professional development team, not by itself. The development of virtual currency technology has become mature, there is no difficulty in technology, but the positioning of virtual currency is the biggest problem. In fact, bitcoin, Ruitai coin, Laite coin and doggy coin are not very different in technology. The difference is that they have different names, different algorithms, different numbers and different positioning.
2. In order to understand the technical principle of bitcoin, we need to understand two important cryptographic techniques: hash code: it converts a long string into a fixed length string, and its conversion is irreversible, that is, it is impossible to guess the original string from hash code. Sha256 is mainly used in bitcoin protocol
public key system: corresponds to a public key and a private key, keeps the private key in the application and publishes the public key. When Party A transmits information to Party B, it can use Party A's private key to encrypt the information, and Party B can use Party A's public key to decrypt the information, so as to ensure that the third party cannot impersonate Party A to send the information; At the same time, when Party A transmits information to Party B, it is encrypted with Party B's public key and sent to Party B, and then Party B decrypts it with his own private key, so as to ensure that the third party cannot eavesdrop on the communication between the two people. RSA is the most common public key system, but the lliptic curve digital signature algorithm is used in bitcoin protocol. What's the difference between cash and bank account? Bitcoin is an electronic currency in BTC. In this article, it is also used to refer to the whole bitcoin system. Like opening an account in a bank, the corresponding concept in bitcoin is address. Everyone can have one or more bitcoin addresses, which are used to pay and collect money. Each address is a string that starts with 1. For example, I have two bitcoin accounts, and. A bitcoin account is uniquely determined by a pair of public key and private key. To save the account, you only need to save the private key file. Unlike bank accounts, banks keep all transaction records and maintain the book balance of each account, while bitcoin's transaction records are jointly maintained by the whole P2P network through a pre agreed protocol. How much money is in my account address? Although the current account balance can be seen by bitcoin software, unlike banks, there is no place to maintain the book balance of each address. It can only calculate the account balance in real time through all historical transactions. How do I pay? When I pay from address a to address B of the other party, the payment amount is e. at this time, both parties will announce the transaction information to each network node, telling address a to pay to address B, and the payment amount is e. In order to prevent the third party from forging the transaction information, the transaction information will be encrypted with the private key of address A. at this time, the network node receiving the transaction information can use the public key of address a to verify that the transaction information is indeed sent by address a. Of course, trading software will help us do these things, we just need to input the relevant parameters in the software. What will the network node do after receiving the transaction information? This is the most important part of the bitcoin system, which needs to be elaborated. For the sake of simplicity, only bitcoin protocol has been implemented. In the current version, each network node will save all transaction information synchronously. There are two kinds of transaction information in history, one is & quot; Verified & quot; The transaction information, that is, the verified transaction information, is stored in a series of "blocks". Each & quot; block" Is the previous & quot; bock" The ID of each block is the hash code of the hash code of the block and the new transaction information (see an actual block). The other category refers to those who also & quot; Unverified & quot; The transaction information just paid above belongs to this category. When a network node receives new unverified transaction information (possibly more than one), it can calculate the book balance of each address at that time because the node keeps all the transaction information in history, so it can calculate whether the transaction information is valid, that is, whether there is enough balance in the payment account. After eliminating the invalid transaction information, it first takes out the last & quot; block" Then, the unverified transaction information is combined with the ID, and a verification code is added to form a new "block". It needs a lot of calculation to build a new block, because it needs to calculate the verification code, so that the above combination becomes a block, that is, the first several bits of the hash code of the block are 1. At present, the first 13 bits need to be 1 (generally, the specific method is uncertain), which means that if the block is generated by enumeration method, the average number of enumerations is 16 ^ 13. Using CPU resources to generate a block is called "gold mining", because the proction of the block will get a certain reward, and the reward information has been included in the block. When a network node generates a new block, it will broadcast to other network nodes. However, this network block may not be accepted by the network, because it is possible that other network nodes have proced the block earlier. Only the earliest block or the block with the largest number of subsequent blocks is valid, and the remaining blocks are no longer used as the initial blocks of the next block. How does the other party confirm that the payment is successful? When the payment information is distributed to the network node, the network node begins to calculate whether the transaction is valid (that is, whether the account balance is enough to pay), and attempts to generate blocks containing the transaction information. When six blocks (one direct block and five subsequent blocks) contain the transaction information, the transaction information is considered "verified", so that the transaction is formally confirmed, and the other party can confirm the successful payment. A possible problem is that I will pay the balance of address a to address B, and at the same time pay to address C. If I only verify that the single comparison transaction is valid. At this point, my way of cheating is to generate six blocks including B to B and six blocks including C to C before the truth is revealed. Because I need a very long CPU time to generate a block, compared with the whole network, the probability of my cheating success is very small. What is the motivation of network nodes to proce blocks? As can be seen from the above description, in order to make the transaction information effective, the network node needs to generate 1 and 5 subsequent blocks to contain the transaction information, and such block generation is very CPU intensive. How to let other network nodes help to proce blocks as soon as possible? The answer is very simple. The agreement stipulates that BTC will be rewarded for the address where the block is proced, as well as the Commission promised by both parties. At present, the reward for procing a block is 50btc, which will be halved every four years in the future. For example, the reward will be 25btc from 2013 to 2016. Is the transaction anonymous? Yes, and No. All bitcoin transactions are visible. We can check all transaction records of each account, such as mine. But what's different from the banking monetary system is that everyone's account itself is anonymous, and everyone can open many accounts. In general, anonymity is not as good as it claims. But bitcoin has another advantage in doing black market trading: it can't be frozen. Even if the police trace a bitcoin address, there is nothing they can do unless they trace the computer used by the exchange based on the Internet address. How to ensure that bitcoin does not depreciate? Generally speaking, in the case of equivalent trading activities, the value of money is inversely proportional to the amount of money issued. Unlike the traditional money market, the central bank can determine the amount of money issued. Bitcoin does not have a central issuing institution. Only by procing blocks can we get a certain amount of BTC currency. Therefore, bitcoin's new amount of money depends on: 1. The speed of procing blocks: bitcoin's agreement stipulates that the difficulty of procing blocks is fixed at an average of 2016 every two weeks, about 10 minutes. Moore's law of doubling CPU speed every 18 months will not speed up the proction of block. 2. The number of rewards for block proction: at present, 50 BTC is awarded for each block proced, which is halved every four years. In 2013, 25 BTC is awarded, and in 2017, 12.5 BTC is awarded. Considering the above two factors, bitcoin's currency issuing speed is not controlled by any single node in the network. Its protocol makes the currency stock known in advance, and the maximum stock is only 21 million BTC
3. Every digital currency has its own unique algorithm, so you have to think about your application, and then you can do it according to whether you want to do it yourself. If you do it, you will be the mathematical genius.
4. Five steps to create your own cryptocurrency
when you see how complicated it is to make physical banknotes, it's easy to understand why most people don't try to print new forms of currency every day, but it's also very easy for people with only basic programming level to make new digital currency
programming is not the only step to create a new digital currency. Here are three cryptocurrency manufacturers giving you five steps to follow
1. Using the community to cultivate money
Chris Ellis, an entrepreneur from London and an activist in the feather money community, believes that when you consider making a new digital currency, it's easy to assume that the first step is to start currency programming, which is actually wrong
"the first step is to find a community and build a currency around the community, rather than expecting people to show up after building a currency," Ellis said. "It has to meet the needs of the community and be related to their cultural heritage and background."
Feather coin was created by Peter Bushnell in April 2013. Bushnell resigned as head of it at brechnos college, Oxford, because he wanted to create his own people-centered currency. He made the decision after seeing on bitcoin.org, a well-known cryptocurrency website, that the existing cryptocurrencies (such as bitcoin) lack community participation and inclusiveness
since March last year, Ellis has been actively promoting and teaching people the knowledge of cryptocurrency. Although he had not met Bushnell at that time, he was also aware of the alienation and isolation on the bitcoin forum
"these forums are very technology oriented and are not welcome for newcomers or minorities, and usually smaller teams can better serve these newcomers or minorities," Ellis said“ The forum did not make it easier for people to participate in currency development. A lot of people in these forums come to predict prices rather than actively participate in development. "
Ellis found the cryptocurrency community based on feather coin, and he said that technological development has benefited a lot from the community
"we are a group of feather coin encryption enthusiasts, but some of them may not be so easily integrated into other communities," Ellis said. He said everyone in feather money thought it was important to show that a group of loyal people could build a stable currency. Through cooperation, a dedicated community of encryption enthusiasts can better find and solve vulnerabilities and security threats. For example, the feather coin coding community has successfully resisted 51% of attacks
the establishment of such protective measures and the promotion of currency development can make the currency more legitimate and more easily trusted in the eyes of the public. But if the participants are all passive observers who are only for their own interests, it will be troublesome
2. Programming, for the long-term benefit
surprisingly, every currency developer I talked to said the same thing: "programming cryptocurrency is usually the least time-consuming part of the process. This is because all the cryptocurrencies on the market are based on the open source code of bitcoin or lightcoin provided on GitHub. "
Peter otbach, one of the founders of coino, said: "it doesn't take long to create. It could be only one day, "the company claims to be the fastest cryptocurrency on the market, with a maximum trading time of just 50 seconds“ To start programming, you just need to know C + + to create your own functions in it. "
according to Colin Evans, the developer of quark cryptocurrency, it may take longer than a day“ In terms of programming, the most complex steps may be related to the complexity of the parameters you plan to have in the blockchain, "Evans said“ For example, many currencies just use and the lettercoin code, but quark has a new hash algorithm - that is, it is separate from bitcoin and lettercoin - so if you want to change it, it will be the most difficult one. " In this case, it may take months to program cryptocurrency. However, Evans pointed out that if developers just reuse GitHub's code and change some simple parameters, any competent programmer can do it "in 30 minutes."
but just thinking that anyone with C + + skills can make their own cryptocurrency doesn't mean that one day there will be as many kinds of currencies as IOS applications. "Feather coin is actually a branch of Leyte coin," Ellis said“ It starts with a minimum number of parameter changes, because we think the most important feature of money is viability. "
however, the feather coin team noticed that some of the previous currencies did not last long, because they included a new function, which enables investors to make profits through short-term speculation. However, the team was often unable to manage the project as planned for a long time, resulting in the failure of the project. In other words, those failed currency developers may want to create cryptocurrencies and make profits in the short term, rather than in the long term, which is doomed from the beginning
Ellis said: "you have to be responsible for fixing defects, and you have to make a commitment when you launch the currency, and you have a responsibility to inform people of the risks and protect their property." if you can't, then no one will use your currency all the time
3. Let miners appear on the stage
once you develop currency, you need to spread the information so that people can start to excavate the currency, make people aware of its existence, and hopefully start to get some value in the eyes of miners and users. This is where cryptocurrency manufacturers can't think like programmers, but how humans put trust (and value) in things
Ellis of feather coin explains: "a good start is half done, so it's about building trust, expressing your vision and intentions to miners, who have the hardware they need, and giving them the opportunity to meet future opportunities“ You have to be honest and respect people's expectations and tolerance of risk, which many people value
"overheated money sales can be counterproctive, including new features designed just to try or stand out. Markets can test courage and determination. You need a group of loyal, loyal miners who will deal with the deal even when prices plummet, because they believe in the end result. It depends on good communication and team building
"many cryptocurrencies fail because they underestimate" software ". They think that technology can solve all problems. And then it's not what they think it is. You have to be good at being aware of what needs to be done and be ready to do what others don't want to do. "
4. Know your business
if you've done that. You've conceptualized a good cryptocurrency and brought the right team together to develop and nurture it in your own way. You have spread the news on the cryptocurrency forum, and a large number of miners are actively trying to dig your currency. The next step is to market your currency so that all miners can use it. This is not a small feat. After all, you need to convince indivials and businesses that these currencies created by themselves have value and can be traded like traditional trustworthy currencies
"it's a confidence building process," Ellis said“ It takes good management and time to work out what you really believe and advocate. People will be more willing to buy money based on your motives than your actions, so once you are confident, you have to start discussing your money with friends, businessmen, Internet forums and social media. "
Peter otbach agrees with this view that "to start marketing, you need to find the exact target group," he said, "at first you can start with the cryptocurrency market, because people there know the currency, and you will see their first reaction. It's going to be more difficult after that. You need to convince a lot of people who don't even know what cryptocurrency is, so you have to use money as a payment solution for online stores to attract their attention. "
"I want to add that it's not just about ecating them with facts," Ellis said. "It's about encouraging them to learn and discover their strengths. Money is a classified account. It is a tool that people use to achieve their goals and meet their needs. Knowing this will help you make great progress in marketing. "
Ellis believes that the key to getting merchants to accept money is to understand their different views“ Different stakeholders have the same rules. The difference is that miners are speculative and businessmen are more conservative. " He pointed out that businessmen have three main purposes: to make money, to save money and to raise their awareness“ If we can bring them customers and increase sales while recing the cost of payment, the rest of the job is to persevere and make it as easy as possible for them to start working. "
5. Conclusion
from a professional point of view or a traditional point of view, the last step in the journey of making cryptocurrency is to rule the world with money. But given that no currency has dominated the world for 5000 years, no matter what bitcoin enthusiasts in Silicon Valley say - any cryptocurrency
moreover, cryptocurrency domination "is not necessarily the goal," Ellis said“ Currency can be local. In fact, we think feather currency is a local currency that can serve the global market. "
there may be a real market for emerging cryptocurrencies: local currencies for certain communities, cities, events, venues and people. Build around like-minded consumer groups, so that they can trade quickly and freely, and provide security for the important goods and services in their lives. You don't have to rely on central banks and big markets to tell them that coins and paper money are valuable.
5. Litecoin litecoin (LTC), released on October 7, 2011, is currently the most valuable counterfeit coin, accounting for about 2% of BTC's market value. The current unit price is US $2.31, with a total currency value of US $38 million. It's also a distributed (decentralized) digital currency. Unlike the sha256 mining algorithm used by bitcoin, LTC adopts scrypt algorithm. Scrypt algorithm uses sha256 as its subroutine, and scrypt itself needs a lot of memory. Each hash is used as the seed of the input, and then it needs a lot of memory to store another pseudo-random sequence to generate the pseudo-random points of the sequence and output the hash value. In the mining of BTC (bitcoin), it is not enough to rely on simple graphics card mining (it takes about ten to dozens of days to dig a BTC with general configuration graphics card). The emergence of various expensive mining machines has raised the threshold for ordinary people to get BTC through mining, while LTC has certain advantages in using PC graphics card mining This passage comes from Zhihu.) Compared with BTC, litecoin has made a little improvement in technology. If BTC is gold now, LTC is silver for the time being. The biggest advantage of litecoin is that it can confirm the authenticity faster. The virtual currency is designed and maintained by Charles Lee. Bitcoin transactions need to be verified, and the average verification time is more than 10 minutes. Most transaction websites need 1 hour to verify. The average transaction confirmation time of liteoin is 2.5 minutes. Developers claim that shortening the verification time increases the practicability of virtual currency. The bitcoin mining efficiency of customized machine and amdgpu is the highest, making it almost unprofitable for miners using CPU mining. Litecain's mining excludes GPUs and custom processors, so it doesn't rely too much on a small number of professional miners. Ppcoinppcoin (PPC) was released on August 19, 2012, which has improved the original technology of BTC. Use proof of stack and join the concept of coinage. Ppcoin is a bifurcated project of bitcoin, which aims to achieve energy efficiency and keep the best performance of the original bitcoin as far as possible. The unit price of ppcoin is US $0.22 and the total currency value is US $4 million. Ppcoin does not have a fixed upper limit of money supply, but it does not mean that ppcoin has obvious inflation compared with bitcoin. Bitcoin can be compared to gold. The annual inflation rate of gold is about 1-3%. Although gold has no known upper limit of money supply, we still know that it is a reliable scarce commodity. There are two types of ppcoin casting: work certificate and equity certificate. The coinage rate of working proof is affected by Moore's law, which depends on the doubling of our working proof ability. What we all know is that Moore's law will eventually come to an end. By then, the ppcoin of inflation may be close to the gold level. The annual maximum inflation rate of certificate of equity is 1%. At the same time, ppcoin's transaction costs were destroyed to fight inflation. So on the whole, the coin design of ppcoin is still a very low inflation design in the future, which can be comparable with bitcoin. Ppcoin is awarded in a lottery like way, and the winning probability is determined by the number of ppcoins held by miners, said sunny king, one of the founders. Their design is based on a new concept of long-term energy efficiency. Terracoin terracoin (TRC) was released on October 26, 2012, with a total currency of 42 million. The speed of each block is 2 minutes, slightly faster than LTC. There is not much special in technology, similar to the proction of BTC halved every four years. However, the operation team seems to have a strong business background and may be better than other bitcoin in circulation. The development of virtual currency is getting more and more attention. Now some teams with business background will accelerate the development of virtual currency. Namecoin namecoin is a distributed domain name system based on bitcoin technology. Its principle is the same as bitcoin. This open source software was first released on April 18, 2011. Namecoin is generated from an original block which is different from bitcoin's main trading block. It uses a new blockchain, which is independent of bitcoin's blockchain. Because it is based on bitcoin, the security, distribution, robustness, encryption and migration of domain names are mathematically guaranteed. You can dig bitcoin and namecoin at the same time. This project was discussed and proposed by bitdns, which is mainly dissatisfied with the defects of DNS. The only top-level domain name of namecoin is. Bit. It costs namecoin to register a. Bit domain name.
6. The latest release of Ryle coin is the core algorithm of crypt, which also tends to mine CPU
7. As for the application of blockchain technology, some people think it is not very mature in China, but some enterprises have applied blockchain technology to virtual currency. The virtual currency wallet developed by blockchain is also one of the applications. Because there are many kinds of virtual currency, the virtual currency wallet will be different. For example, the virtual currency wallet developed by Yingtang Zhongchuang application blockchain supports multi currency. One of the main features of multi currency wallet is to save unnecessary programs. As for the development cost, it depends on the functional requirements, such as how many currencies are supported, and the development cost is also different.
8.

Black and white between the good dwarf and the bad dwarf, are you a good dwarf or a bad dwarf? In order to dig a gold mine full of attraction, the good dwarves and the bad dwarves need to cooperate with each other in their respective teams: the goal of the good dwarves is to extend the mining road to the gold mine, while the goal of the bad dwarves is to destroy it; At the same time, for extra rewards, there is also the possibility of breaking the bridge within the team, and there is also the possibility of internal suspicion and struggle between good dwarves
in the fight between dwarves, all kinds of function cards should be used wisely. Some give way to continue, some play obstacles not to let the other party action, or remove obstacles card, and can peek at the destination map card. In the end, all the cards are touched and all the cards are played. If the good man's road is not connected to the destination with gold, the bad man wins

9. In short, there are three ways:
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750