Position: Home page » Blockchain » Block chain ledger storage synchronization

Block chain ledger storage synchronization

Publish: 2021-03-22 17:34:48
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 essentially a decentralized database
for example, if you are a woman, every time your boyfriend says something disgusting to you or promises to buy something for you, you immediately record it and send it to you and all his friends, classmates, colleagues, as well as various groups and circles of friends, so that he can no longer resist. This is called blockchain
the core advantage of blockchain technology is decentralization, which can realize point-to-point transaction, coordination and cooperation based on decentralized credit in a distributed system without mutual trust by means of data encryption, time stamp, distributed consensus and economic incentive, so as to solve the high cost and low cost of centralized institutions Low efficiency and data storage insecurity provide solutions
the application fields of blockchain include digital currency, token, finance, anti-counterfeiting traceability, privacy protection, supply chain, entertainment, etc. with the popularity of blockchain and bitcoin, many related top domain names have been registered, which has a great impact on the domain name instry.
2. 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 />}
}
3. The information of each block in the blockchain is different, and the generation time and recorded data of each block are different. You can regard the blockchain as a bookkeeping book. Every once in a while, someone will write all the transaction information on the blockchain network to one page of the ledger, page by page, and record all the transactions on the blockchain network in turn according to the time
on the other hand, all nodes (computers in short) participating in the network will store one account book, which is updated in real time. Even if one node fails, the blockchain will not be affected.
4. Blockchain itself is a distributed ledger storage technology, so it does not release information, only transmits information; The information is encrypted and transmitted through point-to-point, which is completely decentralized
blockchain technology is just a kind of underlying technology, which is applied between nodes that need security and privacy. As long as there is a demand, corresponding development can be done;
5. Yes, but the hardware is constantly updated, so basically don't worry. A transaction only takes about 100 bytes, or 100 kb.
6. The registered digital assets are stored in the blockchain. In essence, the blockchain is a decentralized distributed ledger database, which is a series of data blocks generated by the use of cryptography, and its characteristics are unchangeable and unforgeable. Similar to the digital asset registration business done by gold owners, it uses blockchain to store digital assets. In this way, every registration record of the platform can be traced, forged and tampered with. It is precisely because of this characteristic that when users have ownership disputes, such data can have credibility and can be provided to administrative departments as the basis for law enforcement.
7. How to store information on the blockchain: call the API provided by the blockchain platform

generally, the blockchain platform will provide corresponding interfaces, such as RPC, json-rpc, HTTP, etc. of course, the platforms are not the same, and the degree of friendliness is different

some companies specializing in API, such as blockcypher, can provide friendly calling interfaces, and it is not very convenient to write answers on the mobile phone, Search below

as for the storage content, add a point: in addition to the conventional cloud storage, file entities on the file hash record chain also have blockchain based storage schemes, such as IPFs, storej and so on
8. 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.
9. Of course, this is OK
first of all, blockchain is actually a centralized database or a decentralized database, and all technical units are for better maintenance of the public database. Each node keeps a of data independently. Consensus algorithm is used to achieve the data consistency of the node's account book, and cryptographic algorithm is used to ensure the data can not be tampered, and the data can not be tampered and the security of data sending and receiving; Through the script system, the expression scope of account data is expanded
secondly, financial sharing center involves a large amount of financial data. We can combine the technical characteristics of blockchain with Financial Sharing Center. Next, I will combine the technical characteristics of blockchain with Financial Sharing Center
① distributed storage is a distributed database of the blockchain, and each node keeps a of the data independently. If this is combined with the Financial Sharing Center, The users who can join the "financial data on the chain" in the financial sharing chain are equivalent to the "nodes" in the blockchain network, and each user can keep a of the financial data separately, so as to achieve the purpose of sharing
② tampering is not allowed. A very important feature of blockchain technology is that the data cannot be tampered, To ensure the security of a data in the Financial Sharing Center, we need to consider the security as long as the financial data is involved.
of course, before doing the Financial Sharing Center, you must determine your specific needs, if necessary, first write a framework of the whole project, and then find a formal blockchain development team according to the needs, To help you develop this "Financial Sharing Center", we must pay attention to that before formal cooperation is reached, don't disclose the information of your project casually, in order to prevent the same kind from being copied.
10. Blockchain technology will not affect efficiency and waste computing power. The key is to see how to innovate in a mode and how to use blockchain technology efficiently to achieve the effect of the mode
blockchain is essentially an encryption algorithm, which is based on the principle of hash 256 bit algorithm to achieve information security; The application of modern information will become more and more global and universal. Besides the basic requirements of anti tampering, anti repudiation and trustworthiness, the protection of privacy needs to be strengthened. The blockchain technology is proced because of the development of modern cryptography. The cryptography used today is the result of cryptography 20 years ago, Therefore, in order to apply the blockchain technology to more participation scenarios, especially in the Internet economy, more verification is needed to verify whether the existing encryption technology can meet the demand, and more in-depth integration of cryptographic frontier technology and continuous innovation are needed
as long as we use blockchain to make innovations in accounting methods based on our own mode, it will not affect efficiency and waste computing power, but will shorten the time and improve efficiency.
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