Blockchain technology from the perspective of Technology
blockchain refers to the technical solution of collective maintenance of a reliable database through centralization and distrust in the past, and it is a technical way for the whole people to participate in bookkeeping. Previous bookkeeping methods were all centralized and needed centralized intermediary, whether it was traditional government, financial institutions, notarization institutions or emerging e-commerce platform and online payment platform
in economic hypothesis, information is sufficient. In fact, it is precisely because of insufficient information that there are very large intermediaries. The existence of intermediaries increases the transaction cost and raises the transaction threshold. In essence, blockchain technology is a large-scale collaboration tool. It makes direct value transfer possible by using pure technology for the first time, and continues the trend of Internet decentralization and disintermediation. Disintermediated blockchain technology will greatly subvert the information intermediary instry
blockchain technology is the basic technology for building bitcoin data structure and encrypted transmission of transaction information, which realizes the issue and transaction of bitcoin. The core of blockchain technology is that all the current participating nodes jointly maintain the transaction and database, so that the transaction is based on the principle of cryptography rather than trust, so that any agreed parties can directly carry out payment transactions without the participation of a third party
technically, a block is a data structure for recording transactions, reflecting the capital flow of a transaction. In the system, the transaction blocks are connected to form a main chain, and all the nodes participating in the calculation record the main chain or part of the main chain
a block contains the following three parts: transaction information, hash formed by the previous block and random number. Transaction information is the task data carried by the block, including the private keys of both parties, the number of transactions, the digital signature of electronic currency, etc; The hash hash formed by the previous block is used to connect the blocks and realize the sequence of past transactions; Random number is the core of the transaction. All nodes compete to calculate the answer of the random number. The node that gets the answer the fastest generates a new block and broadcasts it to all nodes for updating, so as to complete a transaction.
From the perspective of technology and architecture, I will tell you my understanding of blockchain in common language
what is blockchain? In a word, blockchain is a storage system. To be more specific, blockchain is a distributed storage system without an administrator and each node has all the data
What are the common storage systems like
first, how to ensure high availability
the common storage system usually uses "rendancy" to solve the problem of high availability. As shown in the figure above, if the data can be copied into several copies and rendant to multiple places, high availability can be guaranteed. The data in one place is hung, and there is data in other places. For example, the master-slave cluster of MySQL is the same principle, and the raid of disk is also the same principle
two points need to be emphasized in this place are: data rendancy often leads to consistency problems
1. For example, in the master-slave cluster of MySQL, there is actually a delay in reading and writing, which means there is a inconsistency in reading and writing in a short period of time. This is a side effect of data rendancy
The second point is that data rendancy often reces the efficiency of writing, because data synchronization also consumes resources. If you add two slave libraries, the write efficiency will be affected. The common storage system is to use rendancy to ensure the high availability of dataso the second question, ordinary storage system, can write more
the answer is yes, for example, take this graph as an example:
in fact, MySQL can do a master-slave synchronization of al masters, master-slave synchronization of al masters, two nodes can be written at the same time. If you want to do a multi room multi live data center, in fact, multi room multi live data synchronization. What we should emphasize here is that multi-point writing often leads to the consistency problem of writing conflicts. Take MySQL as an example, suppose that the attribute of a table is self incrementing ID, then the data in the database is 1234 now. If one of the nodes writes and inserts a piece of data, it may become 5, and then these 5 pieces of data are synchronized to another master node, Before synchronization, if another write node inserts a piece of data, a piece of data with self incrementing ID of 5 will be generated. Then, after the generation, synchronize to another node, and the synchronized data will conflict with the two local 5's after it arrives, which will lead to synchronization failure and write consistency conflict. This problem will occur in the case of multi-point writing
how to ensure consistency in multi-point writing
the reform "Swan class" gives you more technical work
1. Blockchain is a distributed database (system) placed in a non secure environment
2. The blockchain uses cryptography to ensure that the existing data cannot be tampered with
3, the blockchain uses consensus algorithm to reach consensus on new data
the system with the above three properties is blockchain.
you can't pay back the money you owe
first, there are several steps in the process of court prosecution for non repayment of arrears
there are five steps in the process of court prosecution for non repayment of arrears. The ordinary procere shall be concluded within six months. According to the provisions of the civil procere law, if a creditor requests the debtor to pay money or securities, he may apply to the basic court with jurisdiction for a payment order if the following conditions are met: there is no other debt dispute between the creditor and the debtor; The payment order can be served on the debtor< The general procere of prosecution is as follows:
1
2. Bring evidence and indictment to the court and pay litigation costs
3. The court will hold a trial after examining and confirming the acceptance
4
5<
the trial time of civil cases: the summary procere shall be concluded within three months< Second, how to sue if you don't owe money
according to the provisions of the civil procere law, if the creditor requests the debtor to pay money or securities, he can apply to the basic court with jurisdiction for a payment order if the following conditions are met: there is no other debt dispute between the creditor and the debtor; The payment order can be served on the debtor
if the debtor fails to pay off the debt or raise a written objection to the court within 15 days after receiving the payment order issued by the court, the creditor can apply to the court for compulsory execution< (3) can you call the police if you still owe money
the case of non repayment of money in arrears is a civil dispute, which is not under the jurisdiction of the public security organ and can not be reported to the police for handling. However, the parties can settle the debt dispute through negotiation. If the negotiation fails, they can bring a lawsuit to the court and settle the dispute through the court< Article 3 the provisions of this Law shall apply to the court's acceptance of civil lawsuits brought by citizens, legal persons, other organizations and between them e to property relations and personal relations< Article 21 a civil action against a citizen shall be under the jurisdiction of the court in the place where the defendant has his domicile; If the defendant's domicile is different from his habitual residence, the court of habitual residence shall have jurisdiction over it
a civil action against a legal person or other organization shall be under the jurisdiction of the court in the place where the defendant has his domicile
if several defendants in the same lawsuit have their domicile or habitual residence in more than two courts, each court shall have jurisdiction.