Position: Home page » Blockchain » Specific process of smart contract under blockchain
Specific process of smart contract under blockchain
Publish: 2021-04-22 03:29:27
1. Smart contract can be simply understood as a piece of code written on the blockchain, which is event driven, has dynamic state, obtains multi-party recognition, and can automatically process the information on the chain according to the preset conditions. Once an event triggers the terms in the contract, the code will be executed automatically. The biggest advantage of smart contract is to use program algorithm to replace human arbitration and contract execution
smart contract is a contract that uses computer language instead of legal language to record terms. Once it is written, it can be trusted by users. The terms of the contract cannot be changed, so the contract cannot be changed. If the procere meets the conditions, it will be carried out, and there is no human interference to ensure absolute fairness
three technical features of smart contract
● data transparency
all data on the blockchain are open and transparent, so the data processing of smart contract is also open and transparent, and any party can view its code and data at runtime
● can't tamper
all data of the blockchain itself can't be tampered, so the code of the smart contract deployed on the blockchain and the data generated by the operation can't be tampered, and the node running the smart contract doesn't have to worry about malicious modification of the code and data by other nodes
● permanent operation
the number of nodes supporting the blockchain network often reaches hundreds or even thousands. The failure of some nodes will not lead to the stop of the smart contract, and its reliability is close to permanent operation in theory, which ensures that the smart contract can be as effective as the paper contract at all times.
smart contract is a contract that uses computer language instead of legal language to record terms. Once it is written, it can be trusted by users. The terms of the contract cannot be changed, so the contract cannot be changed. If the procere meets the conditions, it will be carried out, and there is no human interference to ensure absolute fairness
three technical features of smart contract
● data transparency
all data on the blockchain are open and transparent, so the data processing of smart contract is also open and transparent, and any party can view its code and data at runtime
● can't tamper
all data of the blockchain itself can't be tampered, so the code of the smart contract deployed on the blockchain and the data generated by the operation can't be tampered, and the node running the smart contract doesn't have to worry about malicious modification of the code and data by other nodes
● permanent operation
the number of nodes supporting the blockchain network often reaches hundreds or even thousands. The failure of some nodes will not lead to the stop of the smart contract, and its reliability is close to permanent operation in theory, which ensures that the smart contract can be as effective as the paper contract at all times.
2. With the breakthrough of blockchain technology, the smart contract has a chance of rebirth. The smart contract based on blockchain technology can not only give play to the advantages of smart contract in cost efficiency, but also avoid the interference of malicious behavior on the normal execution of the contract. The smart contract is written into the blockchain in digital form, and the characteristics of blockchain technology ensure that the whole process of storage, reading and execution is transparent, traceable and unchangeable; At the same time, the strong security consensus mechanism does not need the intervention of three parties: a set of state machine system is constructed by the consensus algorithm of the blockchain, so that the intelligent contract can run efficiently.
3. Jinwowo analysis: simple value transmission enables digital assets to circulate freely on the blockchain.
4. Chongqing jinwowo analyzes the role of smart contract in blockchain technology as follows:
three characteristics of smart contract in blockchain can be summed up:
1) decentralization. It doesn't rely on the centralized server and runs automatically through the network nodes
2) good trust mechanism. The crisis of trust is greatly reced, and it is not necessary to consider whether the participation is trustworthy
3) high degree of autonomy. Once the condition is triggered, the contract will be executed automatically without interference
three characteristics of smart contract in blockchain can be summed up:
1) decentralization. It doesn't rely on the centralized server and runs automatically through the network nodes
2) good trust mechanism. The crisis of trust is greatly reced, and it is not necessary to consider whether the participation is trustworthy
3) high degree of autonomy. Once the condition is triggered, the contract will be executed automatically without interference
5. Chongqing jinwowo analyzes the principle of smart contract under blockchain technology as follows:
the principle of smart contract is the link between points, which exists in the physical and digital space, in the real world and the virtual world. It may exist in a certain space, or in two different spaces, which have natural links and are distributed, There is no centralization
the principle of smart contract is the link between points, which exists in the physical and digital space, in the real world and the virtual world. It may exist in a certain space, or in two different spaces, which have natural links and are distributed, There is no centralization
6. In a word, the blockchain technology has realized the smart contract. Specifically, you can go to the app of lianpai community to learn about it. The lecturer in the app said that the blockchain related content is very simple, easy to understand and professional
7. It's a state transition code
for example, my account a has 100 yuan. After running contract B, it became 80 yuan. The contract is to change the status of 100 to 80. The contract itself is also an account, and external time (transaction, event) can trigger state transition.
for example, my account a has 100 yuan. After running contract B, it became 80 yuan. The contract is to change the status of 100 to 80. The contract itself is also an account, and external time (transaction, event) can trigger state transition.
8. The transaction type is nuccerh,
please ask the customer service of the bank for details
run, brother,
good luck.
please ask the customer service of the bank for details
run, brother,
good luck.
9. The process of "automatic execution of smart contract built by blockchain" includes the following steps:
(1) smart contract will check the state of automata regularly and traverse the state machine, transaction and trigger condition contained in each contract one by one; The transactions that meet the conditions are pushed to the queue to be verified, waiting for consensus; Transactions that do not meet the trigger conditions will continue to be stored on the blockchain
(2) the transactions entering the latest round of verification will spread to each verification node. Like ordinary blockchain transactions or transactions, the verification node first performs signature verification to ensure the validity of the transaction; The transactions that pass the verification will enter the set to be agreed. After most verification nodes reach a consensus, the transaction will be successfully executed and the user will be notified
(3) after the transaction is successfully executed, the state opportunity of the smart contract determines the state of the contract. When all the transactions included in the contract are executed in sequence, the state opportunity marks the state of the contract as complete and removes the contract from the latest block; On the contrary, it will be marked as in progress and continue to save in the latest block until the next round of processing is completed; The whole transaction and state processing is automatically completed by the built-in intelligent contract system at the bottom of the blockchain, which is transparent and unchangeable.
(1) smart contract will check the state of automata regularly and traverse the state machine, transaction and trigger condition contained in each contract one by one; The transactions that meet the conditions are pushed to the queue to be verified, waiting for consensus; Transactions that do not meet the trigger conditions will continue to be stored on the blockchain
(2) the transactions entering the latest round of verification will spread to each verification node. Like ordinary blockchain transactions or transactions, the verification node first performs signature verification to ensure the validity of the transaction; The transactions that pass the verification will enter the set to be agreed. After most verification nodes reach a consensus, the transaction will be successfully executed and the user will be notified
(3) after the transaction is successfully executed, the state opportunity of the smart contract determines the state of the contract. When all the transactions included in the contract are executed in sequence, the state opportunity marks the state of the contract as complete and removes the contract from the latest block; On the contrary, it will be marked as in progress and continue to save in the latest block until the next round of processing is completed; The whole transaction and state processing is automatically completed by the built-in intelligent contract system at the bottom of the blockchain, which is transparent and unchangeable.
Hot content