Asset exchange method based on UTXO model block chain intelligent contract
A technology of smart contracts and asset exchange, applied in the field of blockchain, it can solve the problems of single, unpredictable smart contract execution results, and difficulty in realizing smart contracts, and achieve the effect of improving efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] Such as figure 1 As shown, an asset exchange method based on the UTXO model blockchain smart contract includes the following steps:
[0024] 1. Two or more parties in the asset interaction write the negotiated content and rules into the smart contract of the blockchain, and any one of them can act as the initiator of the contract and lock the amount and type of assets that they need to exchange into the contract , to be called by the other party or parties to the transaction. The asset interaction contract will verify the output content of the transaction, so the virtual machine instruction set of its blockchain needs to include state-related instructions such as transaction output verification, asset type, asset quantity, etc. The verification algorithm composed of these instruction sets can Provide security when exchanging between different assets on the chain.
[0025] 2. When the sender locks the specified amount of assets into the contract, the asset transfer to ...
Embodiment 2
[0029] The difference between this embodiment and Embodiment 1 is that both parties to the transaction negotiated in this embodiment can add rule checks to the contract content to improve the security of contract transactions. Rule checks include time ranges and / or security signatures. In the content of the contract, the sender of the transaction must verify the output transaction output of the corresponding asset, but the verification of the output transaction output that the receiver should receive can be determined according to the situation. The overall framework is as follows: figure 1 shown. If the receiver is not verified, the function of a decentralized exchange is realized; if the receiver is verified, the currency exchange of the designated transaction participants is realized, which can exclude irrelevant personnel from participating in the contract transaction.
Embodiment 3
[0031] In this embodiment, in the contract of asset interaction, the transaction output of the contract is verified as a contract, and the content of the contract can be the contract itself, then an asset exchange contract with modifiable pricing can be realized, see figure 2 .
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


