Position: Home page » Blockchain » Is the database of blockchain on the ledger

Is the database of blockchain on the ledger

Publish: 2021-04-02 06:24:41
1.

blockchain is a new application mode of distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and other computer technologies. Blockchain is an important concept of bitcoin,

in essence, it is a decentralized database. At the same time, as the underlying technology of bitcoin, it is a series of data blocks generated by using cryptographic methods. Each data block contains a batch of information of bitcoin network transactions, Used to verify the validity of its information (anti-counterfeiting) and generate the next block

extended data

most blockchain public chains are limited by scalability. The biggest feature of blockchain technology is decentralization, which requires that all accounts in the network need to deal with the accounting process. Distributed accounting has high security, low misoperation rate, political neutrality and correctness

however, blockchain technology embraces these features at the same time, sacrificing scalability, unable to meet the personalized supervision, and slightly insufficient in protecting data privacy. Moreover, with the increase of the number of ledger, the interaction delay will increase exponentially, that is to say, the more ledger in the blockchain network, the higher the delay

2. Nengdi
blockchain technology refers to a way for the whole people to participate in bookkeeping. There is a database behind all the systems. You can think of the database as a big ledger. At present, they keep their own accounts.
3. const SHA256 = require(crypto-js/SHA256);< br />class Block{
constructor(index,timestamp,data,previousHash='&# 39;)< br />{
this.index=index;< br />this.timestamp=timestamp;< br />this.data=data;< br />this.previousHash=previousHash;< br />$this.hash=this.calculateHash();< br />}

calculateHash(){
return SHA256(this,index+this.previousHash+this.timestamp+JSON.stringify(this.data)).tostring();< br />}
}
class Blockchain{
constructor(){
this.chain=[this.createGenesisBlock()];<
}
/ / create a generated information block
creategenesis block() {
return new block (0, & quot; 01/01/2019",& quot; Genesis block", 0);
/ / the date is the user's data. In fact, it is the hash value obtained by adding several values together. Here, the information is encrypted and the picture is encrypted. Then the data is still stored in the database, but all the data are hash values. To get this data, you must know the hash value of the previous data block. Then, if the hacker needs to crack all the nodes, the hash value is decrypted, Then all the blocks from the first node to the last node can be decrypted to get the real data. So the security of data stored in the blockchain depends on whether the data is encrypted. If the plaintext is not encrypted, then it is not a blockchain
}
/ / get the last block
getlatesblock() {
return this.chain [this.chain. Length-1]
}
/ / create block
addblock (newblock) {
newblock. Previoushash = this. Getlatesblock(). Hash< br />newBlock.hash=newBlock.calculateHash();< br />this.chain.push(newBlock);< br />}
}
4. It depends on the project. Take bitcoin as an example. Now the account book that records all the information of bitcoin network may reach 220g.
5. Encryption code. Every few minutes, a new block is generated, which stores different information and consists of different passwords (double keys).
6. No

bitcoin trading platform has many running platforms, such as mtgox in Japan, bitcoin in China and so on
therefore, investors need to choose a reliable bitcoin trading platform. The reference factors are: 1. The longer the running time, the better; 2. The bigger the instry reputation, the better; 3. The larger the team size, the better; 4. Being able to visit<

it is suggested that China choose "fire coin net", which is cooperated by Wukou School of finance of Tsinghua University. Sequoia Capital has invested 10 million US dollars; The choice of coinbase in foreign countries is an important choice for Silicon Valley banks to invest.
7.

Characteristics of blockchain

one of the four characteristics of blockchain: tamper proof

the most easily understood characteristic of blockchain is tamper proof

tamper proof is based on the unique account book of "block + Chain": the blocks with transactions are added to the end of the chain in time order. To modify the data in a block, you need to regenerate all blocks after it
one of the important roles of consensus mechanism is to make it almost impossible to modify a large number of blocks at high cost. Take the blockchain network (such as bitcoin and Ethereum) with workload proof as an example, only with 51% of computing power can all blocks be regenerated to tamper with data. However, the destruction of data is not in line with the self-interest of players with large computing power. This practical design enhances the reliability of data on the blockchain
generally, the transaction data in the blockchain ledger can not be "modified", it can only be "modified" through the new transactions that are approved. The process of correction will leave traces, which is why the blockchain can not be tampered with. Tampering refers to changing or misinterpreting by means of forgery
in today's common files and relational data, unless a special design is adopted, the system itself does not record modification traces. Blockchain ledger adopts a design different from that of files and databases. It draws on the design of ledger in reality, that is, to retain the traces of records. Therefore, we can not "modify" the account book without leaving traces, but can only "modify" the account book (see Figure 2)


Figure 6: bitcoin is centralized in the organization and logically centralized


when we imagine the future organization, the ideal prototype in our mind is often bitcoin organization: completely decentralized autonomous organization. But in practice, for the sake of efficiency and advancement, we will move closer to the centralized organization and finally find a suitable balance point

nowadays, in the blockchain projects that are created and issued through the smart contract of Ethereum and run in a community or ecological way, the ideal state of many projects is similar to the bitcoin organization, but the actual situation is between the completely decentralized organization and the traditional company

when we discuss the fourth feature of blockchain, which is decentralized self-organization, we are actually going out of the code world, involving human organization and collaboration. Now, various discussions and practical explorations have also revealed the significance of blockchain beyond technology: it may serve as an infrastructure to support human proction organization and collaborative change. This is another example of the complete isomorphism between blockchain and Internet. Internet is not only a technology, it has changed people's organization and collaboration

in general, Ethereum has brought blockchain into a new stage. When discussing Ethereum, if we want to summarize two key words, they are smart contract and token; If I can only say one, I will choose "Tong Zheng". I would rather look for its meaning from the history of the Internet and repeat the previous analogy: as a token of value, its role is similar to HTML. With HTML, what kind of website to build depends entirely on our imagination

8. Blockchain distributed database,
can be applied in enterprise accounting information system
blockchain distributed database is like a public ledger,

naturally, it should be able to record enterprise accounting information
any information that needs to be saved can be written to the blockchain,
can also be read from it,
so it is a database
a shared and distributed database technology,
an intelligent peer-to-peer network that can identify, disseminate and record information through distributed database.
9. Blockchain distributed database,
can be applied in enterprise accounting information system
blockchain distributed database is like a public ledger,
naturally, it should be able to record enterprise accounting information
any information that needs to be saved can be written to the blockchain,
can also be read from it,
so it is a database.
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