Example of blockchain accounting
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.
blockchain is a distributed shared ledger and database, which has the characteristics of decentralization, distributed storage, encryption algorithm, whole process trace, traceability, collective maintenance, openness and transparency
take taking charge of Department funds as an example, the traditional way is to assign a person in the Department to keep accounts and manage the Department funds. This person can directly manipulate the remaining amount or the amount of each use, and make profits from it by taking advantage of his authority. This is the traditional centralized management
and in the blockchain management mode, , everyone in the Department has a fund use book, which is added by relevant personnel, and synchronized to their own book after other personnel check. Each transaction will record the usage time, user, amount and content of funds, and generate corresponding serial number for marking. The serial number of each transaction will be stored together with the usage of the next transaction. Each bookkeeping will be encrypted, and so on. At the same time, the account book of each person in the Department is visible to everyone outside, and anyone can query the use of each fund through the account book
in the management mode of blockchain, multi person synchronous bookkeeping is "decentralized management"
everyone in the department checks and stores it, which is called "consensus mechanism"
everyone records the use of each fund, which is called "distributed storage"
the serial number generated by the detailed usage of each fund is called "hash value"
store the serial number and the usage of the next fund, which is called "whole evidence chain"
everyone's account book is visible to everyone outside, which is called "openness and transparency"
to query the usage of each fund is called "traceability"
if someone wants to tamper with a certain amount of funds, the serial number of the funds will be changed accordingly, and this person needs to tamper with all subsequent account records on the account book and the account book records of all people. However, this can be realized on the premise that it can crack the encryption processing of everyone's every bookkeeping. Moreover, once the system finds that there is an account book different from everyone's, the blockchain will automatically correct the "wrong" account book. This can fully guarantee the originality and non tamperability of blockchain electronic data
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 />}
}
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.
On September 18, 2018, Hangzhou Internet court was officially put on the chain and became the first court in the world to use blockchain for trial
it is understood that prosecutors can submit electronic evidence such as contract, rights protection process and service process details online through online appeal portal, and notarization office, forensic identification center, CA / RA organization, court and other chain nodes can witness and endorse together to provide one-stop service for prosecutors. Hangzhou Internet court of Zhejiang Province made a public judgment on a case of infringement on the right of network dissemination of works' information, and confirmed the legal effect of electronic data with blockchain technology for the first time
2. In the field of logistics
in early 2018, rookie and tmall global jointly announced that blockchain technology has been used to track, upload and verify the logistics full link information of cross-border imported goods
after all nodes of the logistics chain are connected to the blockchain, the goods can be traced from manufacturers to consumers, forming a complete chain; The more links the commodity is missing, the more likely it is to be a fake proct
3. Electronic invoice
on August 10, 2018, Shenzhen International Trade revolving restaurant issued the country's first blockchain electronic invoice. It is understood that this blockchain electronic invoice was led by Shenzhen Taxation Bureau and provided by Tencent with underlying technology and ability
different from traditional e-invoice and simple e-invoice on the chain, this blockchain e-invoice combines "capital flow and invoice flow", combines invoice issuing with online payment, and gets through the whole process of invoice application, invoice issuing, reimbursement and tax declaration
there are still many practical applications of blockchain. You can learn more about relevant information
kuaishang takes the lead in applying blockchain technology to the voting field nationwide, effectively solving the trust problem of voting data, providing the most real and effective data for the participants, protecting the rights and interests of real voting users, and making blockchain technology "people-friendly", so that the general public can quickly perceive and share the information in the field of life services Enjoy the convenience of blockchain technology
Application of blockchain technology in digital asset registration
Jinzhu digital asset service platform takes the lead in using blockchain technology, which is a global distributed ledger technology with the characteristics of traceability, non tampering and non forgery. The digital assets of the platform come from the standard issuers of digital assets, and the asset value is determined by the open market to avoid overestimation or undervaluation
the application of blockchain technology in the financial instry
ant financial's independent and controllable financial grade commercial blockchain platform has been deployed in multiple social and commercial application scenarios by multiple institutions and countries. Ant blockchain platform supports second level confirmation for transactions, and the consensus mechanism uses efficient parallel consensus algorithm to ensure the high performance of the blockchain platform, Ant blockchain has been applied in many proction level applications, applying leading technologies to people's livelihood, commerce, finance and other fields.
now the rapid growth of computer technology, every company needs computer talents, you can go to learn computer professional,
there is still a lot of development space in this field, as long as you study hard, the future prospects are unlimited.