Position: Home page » Blockchain » Blockchain API

Blockchain API

Publish: 2021-03-27 15:19:33
1.

blockchain is a digital account book that can be jointly bookkept, and will record all transactions that have occurred and have been unanimously recognized by the system it's the same as the whole family. You're bookkeeping, and your father and mother are also bookkeeping. They can see the general ledger, but the saved information can't be tampered with any more

In 2008, Nakamoto first proposed the concept of blockchain subsequently, blockchain has become the core component of electronic currency bitcoin, which serves as the public account book for all transactions. By using peer-to-peer network and distributed timestamp server, the blockchain database can be managed independently

extended data:

type of blockchain

1, public blockchain

any indivial or group in the world can send transactions, and transactions can be effectively confirmed by the blockchain, and anyone can participate in its consensus process. Public blockchain is the earliest and the most widely used blockchain. The virtual digital currencies of bitcoin series are all based on public blockchain. There is only one blockchain corresponding to this currency in the world

2, Alliance (instry) blockchain

instry blockchain: multiple preselected nodes are designated as bookkeepers within a group, and the generation of each block is jointly determined by all preselected nodes (preselected nodes participate in the consensus process), and other access nodes can participate in the transaction, However, regardless of the bookkeeping process (in essence, it is still managed bookkeeping, only distributed bookkeeping, how many preselected nodes, and how to determine the bookkeeper of each block to become the main risk point of the blockchain), anyone else can conct limited query through the open API of the blockchain

3, private blockchain

only uses the general ledger technology of blockchain for bookkeeping. It can be a company or an indivial, and enjoys the write permission of the blockchain. This blockchain is not very different from other distributed storage schemes

2. Blockchain mainly solves the trust and security problems of transactions, so it proposes four technological innovations to solve this problem:
(1) distributed ledger, that is, transaction bookkeeping is completed by multiple nodes distributed in different places, and each node records complete accounts, so they can participate in monitoring the legitimacy of transactions, At the same time, they can testify together
different from traditional distributed storage, the uniqueness of distributed storage of blockchain is mainly reflected in two aspects: one is that each node of blockchain stores complete data according to block chain structure, while traditional distributed storage generally stores data in multiple copies according to certain rules. Second, the storage of each node in the blockchain is independent and has the same status, which relies on the consensus mechanism to ensure the consistency of storage, while the traditional distributed storage generally synchronizes data from the central node to other backup nodes[ 8]
no single node can record the account data separately, so as to avoid the possibility that a single bookkeeper is controlled or bribed to record false accounts. In theory, unless all the nodes are destroyed, the accounts will not be lost, so as to ensure the security of the account data
(2) asymmetric encryption and authorization technology, the transaction information stored on the blockchain is public, but the account identity information is highly encrypted, which can only be accessed under the authorization of the data owner, thus ensuring the data security and personal privacy
(3) consensus mechanism is how to reach a consensus among all accounting nodes to determine the validity of a record, which is not only a means of identification, but also a means of preventing tampering. Blockchain proposes four different consensus mechanisms, which are suitable for different application scenarios and achieve a balance between efficiency and security
the consensus mechanism of blockchain has the characteristics of "the minority is subordinate to the majority" and "everyone is equal", in which "the minority is subordinate to the majority" does not completely refer to the number of nodes, but also can be the computing power, the number of shares or other characteristics that can be compared by computers“ "Everyone is equal" means that when the nodes meet the conditions, all nodes have the right to put forward the consensus results first, and then directly recognized by other nodes, and finally may become the final consensus results. Taking bitcoin as an example, the workload proof is adopted. Only when more than 51% of the accounting nodes in the whole network are controlled can a nonexistent record be forged. When there are enough nodes in the blockchain, this is basically impossible, thus eliminating the possibility of fraud.
(4) smart contract, which is based on these trusted and tamperable data, can automatically execute some pre-defined rules and terms. Take insurance as an example. If everyone's information (including medical information and risk occurrence information) is true and reliable, it is easy to carry out automatic claim settlement in some standardized insurance procts
3.

Take a blockchain API tool that I am currently using as an example

previously, I occasionally found bctools , which can quickly and conveniently test and verify BTC and EOS blockchain API. At the same time, these API interface test network and main network can be verified on bctools ; If you are interested, you can go http://bctools.io Use it

at present, Apis on bctools seem to have the following types:

4. Go language + blockchain training course:
from the characteristics of the language itself, go is a very efficient language, which highly supports concurrency. Go language itself pays more attention to distributed systems, and concurrency processing is relatively good, such as advertising and search, which are high concurrency servers
go language advantages:
excellent performance, can be directly compiled into machine code, does not rely on other libraries, go is extremely fast. Its performance is similar to Java or C + +
concurrency is supported at the language level, which is the biggest feature of go. It is born to support concurrency, and go is the concurrency supported in gene, which can make full use of multi-core and make it easy to use concurrency
the built-in runtime supports garbage collection, which is one of the features of dynamic language. Although GC is not perfect at present, it is enough to cope with most of the situations we can encounter, especially GC after go1.1
it's easy to learn. The authors of go language all have the gene of C, so go naturally has the gene of C. There are 25 go keywords, but the expressive ability is very strong. It almost supports most of the features you've seen in other languages: inheritance, overloading, object, etc
rich standard libraries, go has built a large number of libraries, especially the network library, which is also my favorite part< As like as two peas, br / > built-in powerful tools, Go language is built with many tools chain, the best should be gofmt tools, automatic formatting code, make team review become so simple, code format is exactly the same, it is very difficult to think differently.
cross platform compilation and fast compilation. Compared with the sluggish compilation speed of Java and C + +, the fast compilation time of go is a major efficiency advantage
disadvantages of go language:
package management: package management of go language is absolutely not perfect. By default, it has no way to make a specific version of the dependency library, nor can it create replicable builds. In contrast, python, node and Ruby all have better package management systems. However, with the right tools, the package management of go language can also perform well
lack of development framework: go language does not have a major framework, such as Ruby's rails framework, Python's Django framework or PHP's laravel. This is a heated discussion in the go language community, because many people think that we should not start with using frameworks. This is true in many cases, but if you just want to build a simple crud API, it's much easier to use Django / djrf, rails laravel, or Phoenix
exception handling: go language can help developers deal with compilation errors by simply returning errors (or call stack) through functions and expected calling codes. Although this method is effective, it is easy to lose the scope of the error, so it is difficult to provide meaningful error information to users. Error package can solve this problem by allowing us to add context and stack trace to return error
another problem is that we may forget to handle errors. Static analysis tools such as errcheck and megacheck can avoid these errors. Although these solutions are very effective, they may not be the right way.
5. Coin news
6. No, these three are not compatible with each other and each has its own purpose
choose your own direction
the cost of developing an interface is not so high. Except for EOS, there is not much data to be chained, which is basically completed locally. As a top blockchain technology developer in China, weisanyun is still a good technology developer.
7.

Help to confirm the rights of digital assets and stimulate innovation vitality

In the era of digital economy, data resources are becoming more and more important. In 2019, China has officially regarded data as one of the seven proction factors as important as labor, capital, land, knowledge, technology and management, and promoted the establishment of data factor market system. However, e to the difficulty of data right confirmation, data traceability and interest sharing, data can not be effectively allocated and circulated in an orderly way, which seriously restricts the development of digital economy

extended information:

precautions:

the trading volume is large, there is an undertaking in the plate, and the seal is strong. The winning rate is relatively higher as a seal. Tomorrow itself is a process of emotional weakness but secondary confirmation. Even if the market recognized seal is not the strongest turnover dragon, the possibility of premium the next day is also higher

the price performance ratio of tomorrow's sale. To put it most simply, if you wait to buy four stocks tomorrow, you only need to catch one that can change hands. Then at least we won't lose money

cognition of short-term players. For short-term trading, the biggest driving force is hot spot, which brings incremental funds. Even in the emotional game, the role played by the short runners is to blow up the bubbles so that they can be profitable. p>

8. I think it's a good interface in China
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