Position: Home page » Blockchain » Blockchain 94 document of MIIT
Blockchain 94 document of MIIT
Publish: 2021-05-08 16:34:56
1. 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 />}
}
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 />}
}
2. 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
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
3. China's local policies have been introced, which series of related policies? This is not very clear. Is this a national document?
4. Blockchain 94 refers to that on September 4, 2017, the central bank, together with seven ministries and commissions, stopped the ICO event in the blockchain and defined ICO as illegal fund-raising. At the beginning, fire coin, coin an, Bitai, OK, Bitai and so on moved abroad
5. Generally speaking, mainstream institutions have opened channels for legal money. But the good and the bad are intermingled, and the most important thing is to choose a reliable and safe Institute. As a leading digital currency Institute in the instry, Xingke has arranged OTC legal currency business for a long time, providing legal currency purchase BTC / BT / eth / usdt business for the majority of digital currency investors. Based on the bank level security system, users can rest assured to use RMB in Xingke, and the huge group of legal currency users can ensure that users can quickly find objects.
6. You are content with it, so good units also dislike this dislike that, you know how many people live less than you. This is the leader's idea. It's useless for you to apply to anyone, and it's not good for you. You should see the right time to speak, and don't come out on your own.
7. Looking forward to 2021, the top-level design of China's blockchain will be further improved, the application standards of various instries will be graally established, and the development direction will be from technology leading to market penetration; The application of blockchain convergence in finance, supply chain, government affairs and other fields begins to land, and the instrial scale will show rapid growth. However, many problems in the development of China's blockchain still need to be focused and solved or alleviated in 2021. For example, the independent innovation ability of core technology still needs to be further strengthened, the security problem and talent gap need to be improved, and the integration application scenarios still need to be further explored. Therefore, CCID Research Institute proposes to accelerate the construction of the blockchain ecosystem, improve the standards and regulations, improve the regulatory system, strengthen the independent innovation ability of core technology, promote the coordinated development of blockchain and other new technologies, and vigorously cultivate professional talents, so as to realize the healthy development of the blockchain instry
since 2014, easy security has been committed to independent innovation in the research and development and application of blockchain. It is a mature blockchain electronic data storage and preservation institution that uses blockchain technology to solidify electronic data and is recognized by the judicial authorities. By creating the mode of "blockchain + justice + application", taking blockchain technology as the underlying technology and electronic data preservation as the basis, three application layer brands of intellectual property protection (micro right), electronic contract signing (Junzi sign) and Internet notarization system (zhongzhengbao) were launched
the joint Notary Office of easy preservation, Arbitration Commission, right protection center and Ca organization jointly launched the "preservation chain" open platform. At the same time, Guangzhou Internet court and more than 30 courts led by the supreme law participated in the judicial chain. By constantly improving the "blockchain + justice" ecosystem, easy preservation can provide different groups with one-stop blockchain preservation services such as evidence collection, certificate storage and certificate issuance
at present, it has obtained 15 independent invention patents, 27 rights, ISO 27001 Information security system certification, three-level certification of Ministry of public security, national double high enterprises, instrial Internet pilot demonstration project of Ministry of instry and information technology of the people's Republic of China in 2018 (the only selected project of blockchain), and national & 12153in 2019; Information Office; Batch of domestic blockchain information service record enterprises.
since 2014, easy security has been committed to independent innovation in the research and development and application of blockchain. It is a mature blockchain electronic data storage and preservation institution that uses blockchain technology to solidify electronic data and is recognized by the judicial authorities. By creating the mode of "blockchain + justice + application", taking blockchain technology as the underlying technology and electronic data preservation as the basis, three application layer brands of intellectual property protection (micro right), electronic contract signing (Junzi sign) and Internet notarization system (zhongzhengbao) were launched
the joint Notary Office of easy preservation, Arbitration Commission, right protection center and Ca organization jointly launched the "preservation chain" open platform. At the same time, Guangzhou Internet court and more than 30 courts led by the supreme law participated in the judicial chain. By constantly improving the "blockchain + justice" ecosystem, easy preservation can provide different groups with one-stop blockchain preservation services such as evidence collection, certificate storage and certificate issuance
at present, it has obtained 15 independent invention patents, 27 rights, ISO 27001 Information security system certification, three-level certification of Ministry of public security, national double high enterprises, instrial Internet pilot demonstration project of Ministry of instry and information technology of the people's Republic of China in 2018 (the only selected project of blockchain), and national & 12153in 2019; Information Office; Batch of domestic blockchain information service record enterprises.
Hot content
