Method for writing data into blockchain based on blockchain smart contract
A smart contract and blockchain technology, applied in the blockchain field, can solve problems such as difficulty in application, slow process, and limited amount of data on the chain
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0018] The present invention will be described in further detail below in conjunction with the accompanying drawings.
[0019] refer to figure 1 , which is a data chaining method based on a blockchain smart contract disclosed by the present invention, comprising the following steps:
[0020] S1, when the data is saved, the smart contract will automatically write the data into the storage area of the blockchain, and call the uuid algorithm to randomly generate a key value and return it;
[0021] S2, when calling the data query, the key value is passed in, at this time the smart contract can query the corresponding data according to the key value and return;
[0022] S3, save the key value in the upper application layer and the block height or block hash included in the smart contract call as the traceability field added to the block, and you can directly call the block chain browser to view the block information.
[0023] Among them, the smart contract includes a data stora...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
