为广大币圈朋友提供币圈基础入门专业知识!
当前位置首页 > 比特币基础> 正文

比特币区块链源代码是什么,比特币区块链源代码是多少

发布时间:2023-12-17-10:35:00 来源:网络 比特币基础 区块   源代码

比特币区块链源代码是什么,比特币区块链源代码是多少


请查看相关英文文档

① You have to know the operating principles and development of blockchain!


1. Why is there innovation in blockchain?
The starting point of the first generation of the Internet is the TCP/IP protocol, which implements a unified format for peer-to-peer transmission of information by all nodes on the network. Open code. However, the impact of such an uncomplicated innovation on mankind is epoch-making. It has programmed, agreed, and enforced the basic values ​​required by a unified global market: "freedom, equality, and fraternity." Then the STMP email protocol, HTTP domain name protocol, etc. were derived, achieving low-cost and high-efficiency global information transmission in a decentralized manner. As Alibaba Vice President Gao Hongbing said:
"The Internet is to eliminate the (information) supply chain that has very low value and high cost - it is open, interconnected, peer-to-peer, globalized, and decentralized."
We know: The essence of the market is also decentralized. It automatically executes the decentralized agreement of "equivalent exchange". Just as Nobel Prize winner Ronald Coase summed up: "The market economy is based on two On the basis of deep cognition: admitting ignorance and tolerating uncertainty." Adam Smith also described the market as: "the invisible hand"! Therefore, the market must require the low-cost flow of information decentralization, and the Internet has adapted to the global Under the general climate formed by the unified market, it turned out to be.
However, the first generation of Internet decentralized solved the problem of low-cost and efficient transmission of information, but it did not solve the problem of credit of information. Therefore, what the second-generation Internet must break through is: how to establish global credit in a decentralized manner so that value transfer can be carried out at low cost and with high efficiency.
So what are the problems with the original centralized credit system? As we all know: centralized credit, such as the legal currencies of various countries, has different credit values, and the clearing systems are also incompatible, which adds a lot of cost to global trade. The current global credit system centered on the US dollar has a "Triffin Paradox" in its mechanism (the essence is that a country's legal currency cannot simultaneously resolve the conflict between its own economic interests and global economic needs). Therefore, in 2009, the Governor of the Central Bank of China, Zhou Ogawa called for the creation of a super-sovereign storage currency. In the same year, Satoshi Nakamoto disclosed the first-generation blockchain source code-"Bitcoin" online.
2. How does the blockchain system operate?
First of all, Satoshi Nakamoto knew very well that establishing a credit system for payment must solve the problem of preventing "duplicate payments", that is, no counterfeit currency can be created. The centralized credit system relies on state machinery to prevent counterfeit currency. What about "Bitcoin"? Satoshi Nakamoto's great innovation is to "timestamp" every transaction. There is a block (block: equivalent to a network account book) every ten minutes, and all network transactions for these ten minutes are correctly timestamped. The question is who will cover it? Satoshi Nakamoto did not assume that everyone on the Internet is Lei Feng. He agreed with Adam Smith: people in the market are greedy. He asked the so-called "miners" to compete for the accounting rights of each block for ten minutes. The rules of competition are correct.While keeping accounts, you have to solve the SHA256 problem. Whoever can prove that his computer has the fastest computing power (the so-called PROOF OF WORK mechanism) can compete for the legal accounting rights of these ten-minute blocks and get twenty-five Bitcoin rewards. This is the so-called "mining" process. It is actually a decentralized credit process that establishes a network-wide ledger - the blockchain. Therefore, the more essential function of miners is "bookkeepers"!
Satoshi Nakamoto is here In its Bitcoin white paper, the process of establishing this credit system is described in detail:
Step 1: In order for the entire network to recognize it as valid, each transaction must be broadcast to each node (node: that is, the miner);
The second step: Each miner node must correctly timestamp each transaction in these ten minutes and record it in that block;
The third step: Each miner node must Compete for the legal accounting rights of this ten-minute block by solving the SHA256 puzzle, and strive to get a reward of twenty-five bitcoins (fifty bitcoins every ten minutes for the first four years, decreasing by half every four years);< br>Step 4: If a miner node solves the SHA256 puzzle of these ten minutes, it will publish all the timestamped transactions recorded in its ten-minute blocks to the entire network, and they will be checked by other miner nodes in the entire network;< br>Step 5: Other miner nodes in the entire network check the correctness of the block accounting (because they are also stamping the accounting at the same time, but they have not competed for the legal block accounting rights, so there is no reward), there is no error Finally, they will compete for the next block after the legal block, thus forming a single chain of legal accounting blocks, which is the general ledger of the Bitcoin payment system - the blockchain.
Generally speaking, each transaction must undergo six block confirmations, that is, six ten-minute accounting, before it can finally be recognized as a legal transaction on the blockchain. The following is the accounting format of Bitcoin:
So the so-called "Bitcoin" is such a billing system: it includes the owner electronically signing with the private key and paying to the next owner, and then the entire network's "miners" "Time stamp the account and form a blockchain.
3. What are the innovations in Bitcoin’s blockchain finance?
Similar to gold, trying to establish decentralized credit on the global Internet may allow value to flow across the entire network at high speed and at low rates (currently each transfer The transfer rate is one ten thousandth);
The total amount of currency is agreed upon by the cryptographic protocol;
Compared to gold, digital currency is infinitely divisible;
The value of currency can be based on a large number of P2P transactions ;
Full transparency in financial management (every transaction can be traced on the blockchain).
Bitcoin’s blockchain-wide accounting system has established a market value of US$10 billion, the highest on the global Internet. Therefore, Wu Xiaoling, dean of Tsinghua PBC School of Finance, pointed out: The blockchain experiment established distributed credit, which is an upgraded version of Internet TCP/IP, upgrading from information transmission to value transmission;
4. Bitcoin’s blocks What are the inherent flaws of chain systems?
The Bitcoin blockchain system has been successful since it was open sourced on the Internet in 2009, but it also shows some inherent flaws that are difficult to overcome:
The total amount cannot change with the market situation and will inevitably rise and fall;
Mining is high-carbon. Only less than 1% of miners can compete for the accounting rights of less than ten minutes of blocks. More than 99% of other miners participating in the competition waste their computing power;
About 10% every year. Inflation has greatly increased the cost of the Bitcoin financial ecosystem and even threatened her survival;
As a decentralized self-organizing DAC system, the operating costs of the accounting and issuance functions are too high.
As a global payment system, its efficiency is far from meeting the actual requirements of global trade. The Bitcoin network currently confirms a maximum of 7 transactions per second. In comparison, Visa's network system can process 10,000 transactions per second at the fastest, and Alipay's record is 80,000 transactions per second on Singles' Day in 2014!
5. Block The development of chain technology 2.0:
As the 2.0 upgrade and development of blockchain, it first focuses on solving the high-carbon mining of Bitcoin accounting:
When we discuss how to overcome the high carbon of Bitcoin mining and accounting Professor Liu Taoxiong from the Tsinghua Institute of Economics pointed out that mining competition relies on computing power. In the end, only one company competes for the legal accounting rights, and the other 99% of the miner nodes are mined for nothing, which is a waste of resources. It is obviously unreasonable. If The whole network transparently knows the legal accounting rights of the next block, and it is randomly generated in the entire network, which eliminates the high carbon cost of competitive accounting! After hearing this, we all praised Professor Liu for his brilliant idea, because the second generation is now more successful. Coin NXT has this mechanism. Their white paper is called "Transparent Forging". However, the probability of the accounting rights going to someone is directly proportional to the NXT token holdings in each miner node wallet. This is called the proof of equity mechanism ( PROOF OF STOCK). Of course, this also triggered a debate about the unfairness of NXT’s distribution of tokens to early investment developers!
RIPPLE is a semi-decentralized blockchain solution that uses “trusted gateways” to conduct block operations. The credibility of chain accounting is based on the consensus ledger protocol that these gateways will not do evil at the same time.
The most ambitious attempt is Ethereum, which combines blockchain technology with Turing completeness, hoping to develop a basic platform that can support the construction of various blockchain systems in the future. The development of various credit currencies, digital assets, smart protocols and even financial derivatives. The system design is to unify blockchain accounting on the ETHERUM platform and be used by all developers. Maybe their official version will be released in the near future.
6. Possible applications of blockchain innovation in other fields:
Now, blockchain’s attempts to establish decentralized credit are no longer limited to the financial world, but have attracted attention from all fields of society, especially in At present, some of China’s central credits, such as the “Red Cross Society”, are in a state of “collapse”.Blockchain can provide a new way of thinking and technical options for social management. Here are some new developments and related discussions we have learned about:
The combination of blockchain and the Internet of Things unifies digital assets and atomic assets. Eradicate the difference between consumer assets and cash assets, expand public credit, and accelerate value circulation; (IBM-Samsung)
Establish an intellectual property protection system on the blockchain, keep accounts of the use of intellectual property across the entire network, and establish global advertising Market;
Whether blockchain can provide technical support for the issuance of protocol-based cryptographic currencies in emerging economies along the Belt and Road Initiative;
Blockchain + cloud computing can develop into decentralized self-media and community systems;< br>Blockchain can build a decentralized equity crowdfunding system, allowing innovative projects to enter the circulation field in advance;
Blockchain can develop a fully transparent financial management system;
Blockchain supports the establishment of a global Centralized corporate organization.
In short, in this era when credit has become a scarce resource, the technological innovation of blockchain, as a distributed credit model, can provide new solutions for finance, social management, talent evaluation and decentralized organization construction in the global market. All provide a broad development prospect.

② What is the open source code of digital currency?

In recent years, blockchain digital assets represented by Bitcoin have become popular around the world. Domestic and foreign financial institutions, technology companies, Investment companies and other participants invest a large amount of human, material, technical and other resources to conduct research, development, design, testing and promotion of blockchain digital assets. To realize the main characteristics of blockchain digital assets, the core technology system of digital assets can be built by relying on 11 technologies in three aspects: security technology, transaction technology, and trustworthy assurance technology. First of all, security technology is used to ensure the circulation, storability, controllable anonymity, non-forgery, non-repeatable transactions and non-repudiation of blockchain digital assets. Digital currency security technology mainly includes three levels: basic security technology, data security technology, and transaction security technology. Basic security technology includes encryption and decryption technology and security chip technology. Encryption and decryption technology is mainly used in the currency value generation, confidential transmission, identity verification, etc. of digital assets. The establishment of a complete encryption and decryption algorithm system is the core and foundation of the digital asset system and needs to be customized and designed by the national cryptography management agency. Security chip technology is mainly divided into terminal security module technology and smart card chip technology. Digital assets can be traded in the form of mobile terminals based on the terminal security module. As a carrier of secure storage and encryption and decryption operations, the terminal security module can provide effective security for digital assets. Basic security protection. Digital asset system trading platform blockchain technology research and development data security technology includes data secure transmission technology and secure storage technology. Data security transmission technology transmits digital asset information through ciphertext + MAC/ciphertext + HASH to ensure the confidentiality, security, and non-tamperability of data information; data security storage technology uses encrypted storage, access control, security monitoring, etc. Store digital currency information to ensure data integrityThe integrity, confidentiality and controllability of information.
Transaction security technology includes anonymous technology, identity authentication technology, anti-repeat transaction technology and anti-counterfeiting technology. Anonymous technology achieves controllable anonymity of digital assets through blind signatures (including blind parameter signatures, weak blind signatures, strong blind signatures, etc.), zero-knowledge proofs, etc.; identity authentication technology verifies user identities through certification centers to ensure digital assets The validity of the trader’s identity; anti-repeated transaction technology ensures that digital assets are not reused through digital signatures, serial numbers, timestamps, etc.; anti-counterfeiting technology ensures the authenticity and transaction of digital assets through encryption and decryption, digital signatures, identity authentication, etc. Authenticity. Secondly, use trading technology to realize online trading and offline trading functions of digital assets. Digital asset trading technology mainly includes two aspects: online trading technology and offline trading technology. As a currency with legal status, digital assets cannot be rejected by any unit or individual, and digital assets can be traded online or offline. Online trading technology realizes the online trading business of digital assets through online device interaction technology, online data transmission technology and online transaction processing; offline trading technology realizes digital assets through offline device interaction technology, offline data transmission technology and offline transaction processing. offline trading business. Finally, trustworthy assurance technology is used to provide a safe and credible application environment for the issuance, circulation, and trading of blockchain digital assets. Digital asset trust assurance technology mainly refers to trusted service management technology. Based on the Trusted Service Management Platform (TSM), it ensures the security and trustworthiness of digital asset security modules and application data, and provides security chips (SE) and application life to digital asset participants. Cycle management function. Trusted service management technology can provide various services such as application registration, application download, security certification, identification management, security assessment, and trusted loading for digital assets, and can effectively ensure the security and credibility of the digital asset system.
What is blockchain? Blockchain technology, referred to as BT (Blockchain technology), also known as distributed ledger technology, is an Internet database technology that is characterized by decentralization, openness and transparency, allowing everyone to participate in database records. Blockchain Technology Development Blockchain Technology Development What is a blockchain system? The blockchain system is a database system with integrity. Data written into the system will be automatically copied to the nodes of the blockchain. It can realize transactional data storage, support the management and development of databases in various industries, and combine various needs. to make. 294.497 billion US dollars, an increase of 2.60%. A total of 5 new projects entered the TOP100 this week, namely FST, ZB, WIX, WAX, and MXM. On August 11, the price of Bitcoin was US$11,523.58, an increase of 3.20% from last week, and the price of Ethereum was US$216.09, a decrease of 3.86% from last week. This week's 24-hour transaction volume increased by 2.63% compared with the same period last week; among the TOP100 projects, the total market value and average market value of currency projects increased the largest,The classification composition of the top 100 global blockchain assets projects is stable.

③ Bitcoin Principle

Bitcoin is actually a special solution generated by a large number of complex algorithms. A special solution refers to a group of infinite solutions obtained by a system of equations. In common parlance, it is equivalent to the serial number of RMB. As long as you know this serial number, you own this RMB.

The mining process is to continuously seek the special solution of this system of equations through a huge amount of calculation. This system of equations is designed to have only 21 million special solutions, so the upper limit of Bitcoin is 21 million.

The current mainstream algorithms are BTC and LTC.

The BTC algorithm is a pure digital operation, so you only need to customize a computing chip to implement mining operations.

The LTC algorithm requires a certain amount of memory. When the machine is working, in addition to customizing a computing chip, it also needs to configure a certain number of memory devices. Currently, the prices of mining machines in the world vary from high to low, which determines the efficiency of the mining machines in mining.

————

④ What currency is yfi? What currency is yfi? It costs 200,000 per piece

1.yfi is Bitcoin .

2. Bitcoin is a virtual cryptocurrency based on decentralization, using peer-to-peer network and consensus initiative, open source code, and using blockchain as the underlying technology. It is led by Nakamoto Cong proposed it in 2008 and was born in 2009.

3. Bitcoin does not have a centralized issuer. It is generated by the calculation of network nodes, can be bought and sold on any computer connected to the Internet, and has extremely strong scarcity.

4. Purchase method: Users can buy Bitcoins, and they can also use computers to perform a large number of operations according to algorithms to "mine" Bitcoins.

5. When users "mine" Bitcoin, they only need to use a computer to search for 64-bit numbers, and then compete with other gold diggers by repeatedly solving puzzles to provide the Bitcoin network with the required Numbers, if the user's computer successfully creates a set of numbers, 25 Bitcoins will be awarded.

6. Due to the decentralized programming of the Bitcoin system, only 25 Bitcoins can be obtained every 10 minutes, and by 2140, the upper limit of circulating Bitcoins will reach 21 million.

7. In other words, the Bitcoin system is self-sufficient, coded to resist inflation and prevent others from destroying the code.

⑤ What do the three currencies BTC, ETH, and USDT on Bit Blue Whale mean?

BTC is Bitcoin, ETH is Ethereum currency, and USDT is a currency issued by the American Tether company.A token issued with the same value as the US dollar

⑥ Comprehensive interpretation of blockchain and Bitcoin, teach you to understand the relationship between the two

01 Blockchain is Bitcoin The underlying technology

The blockchain is a distributed account. In short, it is a decentralized ledger that can be viewed and joined by many people. For example, each block is equivalent to each knot on the rope. When each new transaction enters the blockchain, it is equivalent to an event. To mark the occurrence of an event, a symbolic knot is made and the details are recorded on the specific knot

Bitcoin uses blockchain for value storage and transactions. In addition, the technical difficulty of the blockchain itself is not the greatest, but its application scenarios and regulatory issues include three types of blockchain: public blockchain, private blockchain and joint blockchain; the other classification is permissionless and permissions

Therefore, cryptocurrency uses blockchain technology, but blockchain technology does not entirely belong to cryptocurrency

02 When the financial crisis comes, blockchain technology It can prevent counterfeiting, trace the source, and simplify transactions in the financial industry. Some investors choose to invest in cryptocurrency to avoid corresponding asset risks and benefit from the mechanism of blockchain to solve trust problems. This technology has been applied to financial management and transactions. The main performance is that blockchain can track various types of transactions and can also play an anti-counterfeiting and traceability role in various scenarios. Copyright, trademark, academic fraud and other issues have been exposed one after another

In addition, blockchain technology can also simplify transactions, make the entire transaction process open and transparent, track the links of each transaction event, and ensure that both parties have certain rights. Degree of trust

03 The concept of Bitcoin is different from that of blockchain

During the "mining" process, the open source blockchain network can ensure trust and cannot be tampered with. When networked computers run through a precise algorithm and give the correct answer, the "absentees" will be rewarded for mining and have access to servers around the world, but the whole process is still very energy-consuming

Currency Chart B Coin: A comprehensive explanation of blockchain and Bitcoin will teach you to understand the relationship between them. Bitcoin is an open source version of blockchain technology, that is, a network developed for everyone, and it is popular for its decentralized advantages. However, as a public blockchain, Bitcoin consumes a lot of computing power due to mining, which leads to severe power consumption in many countries

Therefore, for an emerging technology, it is best not to be blind Trust or invest and recognize its true purpose in order to see everything objectively and be prepared.

#BTC[超话]# #digital currency# #OUYiOKEx#

⑦ Where can I find the source code of Bitcoin?

Here: https://github.com/bitcoin/bitcoin

⑧ Introduction to blockchain technology, which programming languages ​​are involved

Go language

Go language (Golang) is a language launched by Google in 2009 A new programming language that reduces code complexity without sacrificing application performance. Rob Pike, chief software engineer at Google, said: "We developed Go because the difficulty of software development over the past 10 years or so has been frustrating."

In addition to Bitcoin being developed in C, At present, the clients of most mainstream workshops are developed with Go language, which is enough to show the status of Go language in the entire blockchain industry.

C

C further expands and improves the C language and is an object-oriented programming language. C runs on a variety of platforms, such as Windows, MAC operating systems, and various versions of UNIX. C is a very widely used computer programming language. It is a general programming language that supports multiple programming patterns, such as procedural programming, data abstraction, object-oriented programming, generic programming, and design patterns.

Most blockchain companies choose to use C to write the bottom layer of the blockchain. The most famous ones are Bitcoin, Ripple, etc., which mainly reflect strong computation.

Java

Java is different from general compiled languages ​​or interpreted languages. It first compiles the source code into bytecode, and then relies on virtual machines on various platforms to interpret and execute the bytecode, thereby achieving the cross-platform feature of "write once, run anywhere". The development of blockchain projects has obvious dependence on Java.

Others include Python, system architecture, Ethereum, Linux, hyperledger, JavaScript, etc. will be covered.

⑨ On the open source and decentralization of blockchain code

This is determined by the genes of the blockchain, and it is also inherent in the birth of Bitcoin. If Bitcoin is not open source, There would be no cryptocurrency world today, and long before Bitcoin or blockchain code was open source, there was already talk of open source code in the Internet world. To put it bluntly, there are some people who are willing to show their special skills or secrets to the world. For example, scientist Nikola Tesla invented alternating current but did not apply for a patent, so there is no electricity used in the world. Pay taxes or pay royalties to Nikola Tesla.

Another example is the Tesla electric car. Musk made the Tesla electric car patent public, which means he told the world how Tesla made it. Since then, there have suddenly been a lot of electric cars around the world. The reason is that the technology is in place and Musk has disclosed the secret. Musk also said in previous interview videos that he does not rely on patents to make money but on the speed of innovation. He is not afraid of others plagiarizing, andOnly if everyone participates together can electric vehicles be made better. This is very much in line with the spirit of blockchain.

Originally, the spirit of Bitcoin or blockchain was to be decentralized, allowing people with consensus to participate and grow. We can only open our arms and allow more technical staff to contribute and make good suggestions for continuous improvement. Therefore, after the founder of Bitcoin disappeared, Bitcoin can still survive to this day because of the open source of Bitcoin and the geeks who maintain it for free after it is open source. And open source also means to allow more people to develop on your underlying technology. If you don't open source or open the API interface, others will not be able to develop and improve it freely. The many slip-proposals we have seen, such as 32, 39, 44, etc. for Bitcoin, were all proposed by users and then decided by the community. This is the spirit of open source and decentralized consensus.

博客主人唯心底涂
男,单身,无聊上班族,闲着没事喜欢研究股票,无时无刻分享股票入门基础知识,资深技术宅。
  • 39002 文章总数
  • 3637411访问次数
  • 3089建站天数