CN112016924A - Data evidence storage method, device and equipment based on block chain - Google Patents
Data evidence storage method, device and equipment based on block chain Download PDFInfo
- Publication number
- CN112016924A CN112016924A CN202011129427.3A CN202011129427A CN112016924A CN 112016924 A CN112016924 A CN 112016924A CN 202011129427 A CN202011129427 A CN 202011129427A CN 112016924 A CN112016924 A CN 112016924A
- Authority
- CN
- China
- Prior art keywords
- data
- stored
- storing
- tee
- certificate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000012795 verification Methods 0.000 claims abstract description 55
- 230000008569 process Effects 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 10
- 238000010200 validation analysis Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 11
- 230000006872 improvement Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 238000013500 data storage Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000013524 data verification Methods 0.000 description 3
- 238000013175 transesophageal echocardiography Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The embodiment of the specification discloses a data evidence storing method, a data evidence storing device and data evidence storing equipment based on a block chain. The scheme comprises the following steps: determining an intelligent contract deployed within a TEE of a blockchain system; after receiving the data to be stored, verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract; and after the verification is passed, storing the certificate of the data to be stored on the block chain to obtain the certificate storing data.
Description
Technical Field
The present disclosure relates to the field of block chain technologies, and in particular, to a data evidence storing method, device and apparatus based on a block chain.
Background
The block chain system is constructed on a point-to-point network, a chain data structure is used for storing data, a distributed node consensus algorithm is used for generating and updating the data, and the characteristics of decentralization and non-tampering are favored in many service fields.
The block chain system is commonly used for storing data to achieve the purposes of tamper resistance, traceability and trustable data source, and the stored data can be in various file forms such as characters, pictures, videos, audios and the like. At present, when a blockchain system is used for transaction data storage, after an initiator initiates a transaction and the consensus passes, the blockchain system directly blocks the transaction data to complete storage, and in practical application, transaction scenes are more and more complex, and user requirements are more and more.
Based on this, a block chaining verification scheme with better applicability is needed.
Disclosure of Invention
One or more embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for data storage based on a block chain, so as to solve the following technical problems: a block chaining verification scheme with better applicability is needed.
To solve the above technical problem, one or more embodiments of the present specification are implemented as follows:
one or more embodiments of the present specification provide a data evidence storage method based on a blockchain, including:
determining a smart contract deployed within a Trusted Execution Environment (TEE) of a blockchain system;
after receiving data to be stored, verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract;
and after the verification is passed, storing the data to be stored with the certificate on the block chain to obtain the data to be stored with the certificate.
One or more embodiments of the present specification provide a data evidence storage device based on a blockchain, including:
a determination module to determine an intelligent contract deployed within a TEE of the blockchain system;
the verification module is used for verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract after receiving the data to be stored;
and the evidence storage module is used for storing the data to be stored with the evidence on the block chain after the verification is passed, so as to obtain the evidence storage data.
One or more embodiments of the present specification provide a data evidence storage device based on a blockchain, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
determining an intelligent contract deployed within a TEE of a blockchain system;
after receiving data to be stored, verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract;
and after the verification is passed, storing the data to be stored with the certificate on the block chain to obtain the data to be stored with the certificate.
One or more embodiments of the present specification provide a non-transitory computer storage medium storing computer-executable instructions configured to:
determining an intelligent contract deployed within a TEE of a blockchain system;
after receiving data to be stored, verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract;
and after the verification is passed, storing the data to be stored with the certificate on the block chain to obtain the data to be stored with the certificate.
At least one technical scheme adopted by one or more embodiments of the specification can achieve the following beneficial effects: privacy protection is provided through the TEE arranged in the block chain system, and data security and the trust sense between related parties are improved; the required verification logic can be flexibly customized in the intelligent contract in advance according to the transaction scene, and then the transaction data can be automatically verified by operating the intelligent contract so as to determine whether to store the certificate or not; therefore, the method is beneficial to supporting more practical application scenes, and the applicability of the evidence storage scheme is improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic flowchart of a data verification method based on a blockchain according to one or more embodiments of the present disclosure;
fig. 2 is a detailed flowchart of the method of fig. 1 in an application scenario provided in one or more embodiments of the present disclosure;
fig. 3 is a schematic flowchart of accessing the credential data corresponding to fig. 2 in an application scenario provided by one or more embodiments of the present disclosure;
fig. 4 is a schematic structural diagram of a data evidence storage device based on a blockchain according to one or more embodiments of the present disclosure;
fig. 5 is a schematic structural diagram of a data certification device based on a blockchain according to one or more embodiments of the present disclosure.
Detailed Description
The embodiment of the specification provides a data evidence storing method, a data evidence storing device, data evidence storing equipment and a storage medium based on a block chain.
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments of the present disclosure, shall fall within the scope of protection of the present application.
In one or more embodiments of the specification, the verification of the data to be certified is realized through the intelligent contract, a user can flexibly and conveniently define the verification logic according to the requirement of the user, and the certified data can also be safely and conveniently authorized to access through the intelligent contract; furthermore, a blockchain system including a TEE is provided, an intelligent contract runs in the TEE, security is improved, and user privacy can be protected.
The following is a detailed description based on such a concept.
Fig. 1 is a flowchart illustrating a data verification method based on a blockchain according to one or more embodiments of the present disclosure. The execution main body of the method is a computing device in a block chain system, a service object of the method comprises a business system with data evidence storage requirements in a plurality of fields, and the fields comprise: the internet financial business field, the electric business field, the instant messaging business field, the game business field, the official business field and the like.
The process in fig. 1 may include the following steps:
s102: an intelligent contract deployed within a TEE of a blockchain system is determined.
In one or more embodiments of the present description, TEEs are included in a blockchain system, such as with hardware TEEs that can provide strong privacy and high performance on-chain data privacy protection services.
And encapsulating part of functional modules in the block chain system in the TEE, wherein the functional modules encapsulated in the TEE comprise an intelligent contract engine and a cryptography component, so that the running process and the cryptographic operation process of the intelligent contract are executed more safely in the TEE. If there is an actual requirement, the function modules of the account book management, the consensus module and the like can be encapsulated in the TEE.
In one or more embodiments of the present description, the intelligent contracts include validation logic, and the validation logic is predefined according to the requirements of the business system. The service system has a requirement for storing the data of the service system, and the verification logic reflects some specific conditions set for the storage scene of the service data so as to indicate that the storage process is executed more reasonably and correctly.
S104: after receiving the data to be stored, the intelligent contract is operated, and the data to be stored is verified in the TEE according to predefined verification logic contained in the intelligent contract.
In one or more embodiments of the present description, the service system sends the data to be stored to the blockchain system through the designated blockchain node. Taking the resource management service system as an example, the data to be stored is service data such as deposit detail, collection detail and the like, the data is concerned with the privacy of the user, and the data is processed in the TEE to protect the privacy.
In an application scenario, a service system provides source data, and in order to improve the convenience or safety of data use, an intermediate system between the service system and the designated block link point or other third-party systems preprocess the source data, and then submit the source data to the designated block link node as data to be verified. The pretreatment includes, for example: format conversion according to a predetermined uplink data format, repackaging with headers for fast indexing, data associated with other traffic systems, etc.
In one or more embodiments of the present specification, whether to verify the data to be certified is optional, and if not, the verification is determined by the service system itself, and in order to make the service system clearer the data destination, a separate interface may be provided for the service system to call, and for the data to be certified that does not need to be verified, another interface is provided for the service system.
In one or more embodiments of the present disclosure, for some blockchain systems, after receiving the data to be uplink, the blockchain node performs some basic checks on the data to be uplink, such as checking a signature and the like, during or before the consensus process, and then, taking the bitcoin system as an example, checks whether the account balance is sufficient for payment and whether the currently paid coin has already been paid, so as to prevent the double-flower problem. Compared with the basic verification, the verification in the scheme of the specification can support the self-definition of a service system, so that the verification is more flexible and supports more complex verification logic; in addition, in actual execution, after the consensus process of the data to be stored is completed, the data to be stored can be verified, and in this case, the verification is specifically executed by the platform side or the accounting node, so that other consensus nodes are not required to execute, and additional burden on most of the blockchain nodes is not brought.
In one or more embodiments of the present specification, the predefined authentication logic is customized by the business system, and then the predefined authentication logic itself is also private data for the business system, and if the predefined authentication logic is applied to a general blockchain system, there is a risk of privacy exposure, and the blockchain system in the solution of the present specification includes a TEE, and the predefined authentication logic is deployed in the TEE for use, which helps to prevent its exposure and illegal use, and protects the privacy of the business system. While the basic check logic described above is defined by, typically public, and run on a blockchain system, there is far less need in terms of privacy protection than the predefined authentication logic, in this respect there is no risk issue above nor is there a need for TEE.
In one or more embodiments of the present specification, the specific content of the verification is various, for example, the data to be stored is verified in the TEE by at least one of the following: whether the evidence storing request party is legal or not, whether the evidence storing request time is legal or not and whether the data to be stored is legal or not.
Taking the data to be stored as the deposit detail of the resource management service system as an example, for example: verifying whether the certificate storing request party is the paying-off manager, and if not, determining that the certificate storing request party is illegal; verifying whether the preset data summarizing time is reached at present (such as the end of the month), and if not, determining that the evidence storing request time is illegal; verifying whether the loan detail lacks some operation credit data of the loan party or whether the calculation mode of the operation credit data is wrong or whether the loan amount in the loan detail exceeds the wind control amount, and if not, determining that the data to be stored is illegal; and so on.
S106: and after the verification is passed, storing the data to be stored with the certificate on the block chain to obtain the data to be stored with the certificate.
In one or more embodiments of the present description, the certification storing data is ciphertext subjected to privacy protection based on the data to be certified, and the data to be certified in plaintext may be obtained by decryption and restoration. Of course, more safely, even the data to be stored can be the ciphertext after privacy protection.
In one or more embodiments of the present specification, if the verification fails, the processing is rejected to continue, and the business system can be notified in time, and the business system can know the possible abnormality, thereby performing risk prevention.
In one or more embodiments of the present specification, the verification failure itself is also an abnormal condition, and the related data of the abnormal condition also has evidence storing value, and based on this, the blockchain system can also store the related data (for example, corresponding evidence storing request, log, abnormal analysis conclusion, etc.) when the verification failure occurs, so that the business system can trace back when needed.
Through the method of fig. 1, privacy protection is provided through the TEE arranged in the blockchain system, and data security and the sense of trust between related parties are improved; the required verification logic can be flexibly customized in the intelligent contract in advance according to the transaction scene, and then the transaction data can be automatically verified by operating the intelligent contract so as to determine whether to store the certificate or not; therefore, the method is beneficial to supporting more practical application scenes, and the applicability of the evidence storage scheme is improved.
Based on the process of fig. 1, some specific embodiments and embodiments of the process are also provided in the present specification, and the description is continued below.
In one or more embodiments of the present specification, after receiving the data to be certified, the cryptology component included in the TEE performs privacy protection on the data to be certified.
If the data to be stored is the ciphertext data, the data is decrypted in the TEE for use, and the data is encrypted and then output when the TEE is required to output the subsequent data, so that privacy is protected. Of course, if the ciphertext data is encrypted by using a special means such as homomorphic encryption, the ciphertext data may be directly used without decryption in the TEE, for example, a homomorphic operation is executed, and the TEE itself is already an environment that is helpful for protecting privacy.
In addition, no matter the data to be stored is ciphertext data or plaintext data, the data can be further encrypted when entering the TEE and then used for the processing process in the TEE.
Taking homomorphic encryption as an example, homomorphic encryption is a privacy protection means that may be used in a TEE, for example, homomorphic encryption is performed on data to be certified or decrypted data to be certified in the TEE. Homomorphic computation is a computation of the ciphertext domain that allows a particular form of algebraic computation on the ciphertext to result in what remains encrypted, and decryption to result in the same result as the same computation on the plaintext. The characteristic can support verification by directly utilizing a ciphertext obtained after privacy protection without directly participating in verification of the data to be verified, so that the privacy of the business system is prevented from being exposed to the block chain system, the business system can confidently define more complex and stronger verification logic which is more closely related to the specific business, and based on the verification logic, the business system can be effectively assisted, the burden of the business system is reduced, and the reliability of the business system is improved.
In one or more embodiments of the present description, a blockchain includes ledgers, as well as a set of state data for intelligent contracts. Taking an ethernet workshop as an example, in some evidence storage schemes, an intelligent contract is used for state evidence storage, and a subsequent intelligent contract provides an evidence storage data query interface, in this case, data needs to be stored in duplicate on a block chain, one is stored in an account book, and the other is stored in a state data set (specifically, a predefined large array is represented in the ethernet workshop, and the storage space is determined) of the intelligent contract, which causes resource waste. Based on this, when the data to be stored with evidence is stored with evidence, the data to be stored with evidence can be stored in the account book but not in the state data set, and the identifier associated with the data to be stored with evidence can be stored in the state data set for positioning the data to be stored with evidence, thereby avoiding wasting the storage space of the state data set. Such a scheme is also applicable to blockchain systems with similar features to etherhouses.
In one or more embodiments of the present specification, after the data to be stored is stored in the blockchain, an identifier associated with the stored data is determined, and the identifier is returned to the service system. The identifier is, for example, a certificate hash (digest of the data to be certified or the corresponding certificate data) or index information for similar purposes. In some transaction scenarios, the authentication hash is, for example, a transaction hash (TxHash), specifically, a transaction number.
In one or more embodiments of the present specification, an access interface for the credentialing information is provided, and further, access right control for the credentialing information is provided based on the intelligent contract, so as to improve the security and privacy of the credentialing data.
The method comprises the steps that a business system or an authorized visitor sends an access request to a blockchain system through an access interface according to an obtained certificate-storing Hash, the blockchain system responds to the access request, judges the authority (the authority is written into a blockchain in advance) of an access party according to the access request by running an intelligent contract, if the access party is judged to have the corresponding authority, the certificate-storing data is decrypted and then returned to the access party, and the decryption process can be carried out on one side of the access party so as to prevent privacy from being leaked in the transmission process.
In light of the above description, one or more embodiments of the present disclosure further provide a detailed flowchart of the method of fig. 1 in an application scenario, as shown in fig. 2, where the application scenario is a transaction scenario.
The interaction flow in fig. 2 involves both business systems, tile chain systems based on TEE privacy protection, assuming that the intelligent contract of a tile chain system is exemplarily named DepositContract, in an object-oriented programming environment, DepositContract may be a class, which provides a verification evidence interface, exemplarily named depositcrevify.
Assuming that the original data to be stored is marked as data, the flow in fig. 2 includes the following steps:
the service system defines a check logic according to the service requirement of the service system, and deploys the DepositContract on the block chain system in advance according to the check logic;
the business system calls the trading parameters of the DepositContract contract, and correspondingly fills the data content to construct a trading load, so that trading data suitable for depositVerify is assembled;
the business system calls a depositVerify according to the transaction data to request for verifying and storing the transaction data;
triggering a verification process to start execution after the depositVerify receives the transaction data, verifying whether the content data of the transaction data meets the evidence storage requirement by running an intelligent contract in the TEE, and generating a TxHash of the associated data;
and after the successful storage of the certificate, the block chain system returns a corresponding result and the TxHash to the service system.
Further, one or more embodiments of the present specification further provide a flowchart corresponding to fig. 2 for accessing the credential data in an application scenario, as shown in fig. 3.
The flow in fig. 3 includes the following steps:
the service system calls a certificate storing data access interface provided by the block chain system according to the TxHash received during the previous certificate storing, and requests to inquire and decrypt the certificate storing data;
calling a permission management interface of the DepositContract inside the access interface of the block chain system, carrying out permission logic judgment, and returning to a successful or unsuccessful state;
and the block chain system decides whether to agree to decrypt the evidence-storing data or not according to the returned state, and if so, the decrypted evidence-storing data is returned to the service system.
Based on the same idea, one or more embodiments of the present specification further provide apparatuses and devices corresponding to the above-described method, as shown in fig. 4 and 5.
Fig. 4 is a schematic structural diagram of a data verification apparatus based on a blockchain according to one or more embodiments of the present disclosure, where a dashed box in the diagram indicates an optional module, and the apparatus includes:
a determination module 402 that determines intelligent contracts deployed within TEEs of a blockchain system;
a verification module 404, configured to verify, in the TEE, the data to be stored and certified by running the intelligent contract according to predefined verification logic included in the intelligent contract after receiving the data to be stored and certified;
and the evidence storing module 406 is used for storing the data to be stored with evidence on the block chain after the verification is passed, so as to obtain the evidence storing data.
Optionally, the apparatus further comprises:
the privacy protection module 408 performs privacy protection on the data to be stored after the verification module 404 receives the data to be stored, through a cryptography component included in the TEE.
Optionally, the apparatus further comprises:
a consensus module 410, configured to complete a consensus process for the to-be-stored data before the verification module 404 verifies the to-be-stored data in the TEE.
Optionally, the blockchain includes an ledger, and a set of state data for the intelligent contract;
the evidence storage module 406 stores the data to be stored in the ledger, but not in the state data set.
Optionally, the apparatus further comprises:
the hash processing module 412 determines and returns the certificate-storing hash related to the certificate-storing data after the certificate-storing module 406 stores the to-be-stored data on the blockchain.
Optionally, the apparatus further comprises:
the access control module 414, after the certification storing module 406 performs certification storage on the data to be certified on the blockchain, receives an access request for the certified data sent according to the certified hash;
judging the authority of the access party according to the access request by operating an intelligent contract;
and if the access party is judged to have the corresponding authority, the certificate storing data is decrypted and then returned to the access party.
Optionally, the verifying module 404 is configured to verify, in the TEE, the data to be certified by at least one of:
whether the evidence storing request party is legal or not, whether the evidence storing request time is legal or not and whether the data to be stored is legal or not.
Fig. 5 is a schematic structural diagram of a data storage device based on a blockchain according to one or more embodiments of the present specification, where the data storage device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
determining an intelligent contract deployed within a TEE of a blockchain system;
after receiving data to be stored, verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract;
and after the verification is passed, storing the data to be stored with the certificate on the block chain to obtain the data to be stored with the certificate.
The processor and the memory may communicate via a bus, and the device may further include an input/output interface for communicating with other devices.
Based on the same idea, one or more embodiments of the present specification further provide a non-volatile computer storage medium corresponding to the above method, and storing computer-executable instructions configured to:
determining an intelligent contract deployed within a TEE of a blockchain system;
after receiving data to be stored, verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract;
and after the verification is passed, storing the data to be stored with the certificate on the block chain to obtain the data to be stored with the certificate.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, the present specification embodiments may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the device, and the nonvolatile computer storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and for the relevant points, reference may be made to the partial description of the embodiments of the method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above description is merely one or more embodiments of the present disclosure and is not intended to limit the present disclosure. Various modifications and alterations to one or more embodiments of the present description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of the claims of the present specification.
Claims (15)
1. A data evidence storing method based on a block chain comprises the following steps:
determining an intelligent contract deployed within a Trusted Execution Environment (TEE) of a blockchain system;
after receiving data to be stored, verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract;
and after the verification is passed, storing the data to be stored with the certificate on the block chain to obtain the data to be stored with the certificate.
2. The method of claim 1, after receiving the data to be credited, the method further comprising:
and privacy protection is carried out on the data to be stored with evidence through a cryptography component contained in the TEE.
3. The method of claim 1, prior to validating the data to be credited in the TEE, the method further comprising:
and finishing a consensus process aiming at the data to be stored.
4. The method of claim 1, the blockchain comprising an ledger, and a set of state data for the intelligent contracts;
storing the data to be stored with the certificate on the block chain specifically comprises:
storing the data to be credited in the ledger, but not in the state data set.
5. The method of claim 1, after the crediting the data to be credited on a blockchain, the method further comprising:
and determining and returning the certificate-storing hash related to the certificate-storing data.
6. The method of claim 5, after the crediting the data to be credited on a blockchain, the method further comprising:
receiving an access request for the certificate storing data sent according to the certificate storing hash;
judging the authority of the access party according to the access request by operating an intelligent contract;
and if the access party is judged to have the corresponding authority, the certificate storing data is decrypted and then returned to the access party.
7. The method according to any one of claims 1 to 6, wherein the verifying the data to be certified in the TEE comprises:
performing at least one of the following verifications of the data to be certified in the TEE:
whether the evidence storing request party is legal or not, whether the evidence storing request time is legal or not and whether the data to be stored is legal or not.
8. A data evidence storage device based on a block chain comprises:
the determining module is used for determining an intelligent contract deployed in a Trusted Execution Environment (TEE) of the blockchain system;
the verification module is used for verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract after receiving the data to be stored;
and the evidence storage module is used for storing the data to be stored with the evidence on the block chain after the verification is passed, so as to obtain the evidence storage data.
9. The apparatus of claim 8, further comprising:
and the privacy protection module is used for protecting the privacy of the data to be stored after the verification module receives the data to be stored, through the cryptography component contained in the TEE.
10. The apparatus of claim 8, further comprising:
and the consensus module is used for finishing a consensus process aiming at the data to be stored before the verification module verifies the data to be stored in the TEE.
11. The apparatus of claim 8, the blockchain comprising a ledger, and a set of state data for the intelligent contracts;
the evidence storage module stores the data to be stored in the ledger but not in the state data set.
12. The apparatus of claim 8, further comprising:
and the Hash processing module is used for determining and returning the certificate storage Hash related to the certificate storage data after the certificate storage module stores the data to be certified on the block chain.
13. The apparatus of claim 12, further comprising:
the access control module receives an access request for the evidence storing data sent according to the evidence storing hash after the evidence storing module stores the evidence of the data to be stored on the block chain;
judging the authority of the access party according to the access request by operating an intelligent contract;
and if the access party is judged to have the corresponding authority, the certificate storing data is decrypted and then returned to the access party.
14. The apparatus of any of claims 8 to 13, the validation module to validate the data to be credited in the TEE by at least one of:
whether the evidence storing request party is legal or not, whether the evidence storing request time is legal or not and whether the data to be stored is legal or not.
15. A data evidence storage device based on a blockchain comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
determining an intelligent contract deployed within a Trusted Execution Environment (TEE) of a blockchain system;
after receiving data to be stored, verifying the data to be stored in the TEE according to predefined verification logic contained in the intelligent contract by operating the intelligent contract;
and after the verification is passed, storing the data to be stored with the certificate on the block chain to obtain the data to be stored with the certificate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011129427.3A CN112016924A (en) | 2020-10-21 | 2020-10-21 | Data evidence storage method, device and equipment based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011129427.3A CN112016924A (en) | 2020-10-21 | 2020-10-21 | Data evidence storage method, device and equipment based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112016924A true CN112016924A (en) | 2020-12-01 |
Family
ID=73528149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011129427.3A Pending CN112016924A (en) | 2020-10-21 | 2020-10-21 | Data evidence storage method, device and equipment based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112016924A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112613063A (en) * | 2021-03-05 | 2021-04-06 | 支付宝(杭州)信息技术有限公司 | Data verification system construction method and device |
CN113095828A (en) * | 2021-04-27 | 2021-07-09 | 支付宝(杭州)信息技术有限公司 | Data evidence storage method and device based on block chain |
CN113114476A (en) * | 2021-06-15 | 2021-07-13 | 支付宝(杭州)信息技术有限公司 | Privacy evidence storing method and device based on contract |
CN113221167A (en) * | 2021-05-11 | 2021-08-06 | 支付宝(杭州)信息技术有限公司 | Data processing method, device, equipment and storage medium based on block chain storage certificate |
CN113221191A (en) * | 2021-05-10 | 2021-08-06 | 支付宝(杭州)信息技术有限公司 | Block chain-based data evidence storage method, device, equipment and storage medium |
CN113536342A (en) * | 2021-07-06 | 2021-10-22 | 招商银行股份有限公司 | Block chain-based evidence storage management method, system, program product and storage medium |
CN113656842A (en) * | 2021-08-10 | 2021-11-16 | 支付宝(杭州)信息技术有限公司 | Data verification method, device and equipment |
CN113709216A (en) * | 2021-08-06 | 2021-11-26 | 支付宝(杭州)信息技术有限公司 | Method and device for pushing information to business system |
CN114358934A (en) * | 2021-12-29 | 2022-04-15 | 中国农业银行股份有限公司 | Verification method of intelligent contract and related equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737921A (en) * | 2019-11-05 | 2020-01-31 | 太原蓝知科技有限公司 | Block chain-based government affair data sharing method, system, device and medium |
CN111460525A (en) * | 2020-03-31 | 2020-07-28 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain and storage medium |
CN111597562A (en) * | 2020-04-08 | 2020-08-28 | 平安科技(深圳)有限公司 | Block chain-based on-chain data verification method, device, equipment and storage medium |
-
2020
- 2020-10-21 CN CN202011129427.3A patent/CN112016924A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737921A (en) * | 2019-11-05 | 2020-01-31 | 太原蓝知科技有限公司 | Block chain-based government affair data sharing method, system, device and medium |
CN111460525A (en) * | 2020-03-31 | 2020-07-28 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain and storage medium |
CN111597562A (en) * | 2020-04-08 | 2020-08-28 | 平安科技(深圳)有限公司 | Block chain-based on-chain data verification method, device, equipment and storage medium |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112613063A (en) * | 2021-03-05 | 2021-04-06 | 支付宝(杭州)信息技术有限公司 | Data verification system construction method and device |
CN112613063B (en) * | 2021-03-05 | 2022-02-18 | 支付宝(杭州)信息技术有限公司 | Data verification system construction method and device |
CN113095828A (en) * | 2021-04-27 | 2021-07-09 | 支付宝(杭州)信息技术有限公司 | Data evidence storage method and device based on block chain |
CN113095828B (en) * | 2021-04-27 | 2023-09-01 | 支付宝(杭州)信息技术有限公司 | Data storage method and device based on blockchain |
CN113221191A (en) * | 2021-05-10 | 2021-08-06 | 支付宝(杭州)信息技术有限公司 | Block chain-based data evidence storage method, device, equipment and storage medium |
CN113221191B (en) * | 2021-05-10 | 2022-05-31 | 支付宝(杭州)信息技术有限公司 | Block chain-based data evidence storage method, device, equipment and storage medium |
CN113221167A (en) * | 2021-05-11 | 2021-08-06 | 支付宝(杭州)信息技术有限公司 | Data processing method, device, equipment and storage medium based on block chain storage certificate |
CN113221167B (en) * | 2021-05-11 | 2022-10-11 | 支付宝(杭州)信息技术有限公司 | Data processing method, device, equipment and storage medium based on block chain storage certificate |
CN114172667A (en) * | 2021-06-15 | 2022-03-11 | 支付宝(杭州)信息技术有限公司 | Privacy evidence storing method and device based on contract |
CN113114476A (en) * | 2021-06-15 | 2021-07-13 | 支付宝(杭州)信息技术有限公司 | Privacy evidence storing method and device based on contract |
CN113536342A (en) * | 2021-07-06 | 2021-10-22 | 招商银行股份有限公司 | Block chain-based evidence storage management method, system, program product and storage medium |
CN113536342B (en) * | 2021-07-06 | 2024-03-26 | 招商银行股份有限公司 | Block chain-based certificate management method, system, program product and storage medium |
CN113709216A (en) * | 2021-08-06 | 2021-11-26 | 支付宝(杭州)信息技术有限公司 | Method and device for pushing information to business system |
CN113656842A (en) * | 2021-08-10 | 2021-11-16 | 支付宝(杭州)信息技术有限公司 | Data verification method, device and equipment |
CN113656842B (en) * | 2021-08-10 | 2024-02-02 | 支付宝(杭州)信息技术有限公司 | Data verification method, device and equipment |
CN114358934A (en) * | 2021-12-29 | 2022-04-15 | 中国农业银行股份有限公司 | Verification method of intelligent contract and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112016924A (en) | Data evidence storage method, device and equipment based on block chain | |
CN111401902B (en) | Service processing method, device and equipment based on block chain | |
CN111475849B (en) | Private data query method and device based on blockchain account | |
CA3057331C (en) | Method and apparatus for processing transaction requests | |
CN109697204B (en) | Data auditing method and device | |
CN110795501A (en) | Method, device, equipment and system for creating verifiable statement based on block chain | |
CN111814198A (en) | Block chain-based user privacy data providing method and device | |
CN110263544B (en) | Receipt storage method and node combining transaction type and judgment condition | |
CN110245947B (en) | Receipt storage method and node combining conditional restrictions of transaction and user types | |
CN110035052B (en) | Method and device for checking historical transaction information and electronic equipment | |
CN111475850B (en) | Intelligent contract-based privacy data query method and device | |
CN111680305A (en) | Data processing method, device and equipment based on block chain | |
CN100383694C (en) | Maintaining privacy for transactions performable by a user device having a security module | |
CN111814172A (en) | Method, device and equipment for acquiring data authorization information | |
CN111737686B (en) | Processing method, device and equipment of block chain data | |
CN109560933B (en) | Authentication method and system based on digital certificate, storage medium and electronic equipment | |
CN110263089B (en) | Receipt storage method and node combining conditional restrictions of transaction and event types | |
CN111770112A (en) | Information sharing method, device and equipment | |
CN112256800A (en) | Vector commitment-based alliance link data processing method, device and equipment | |
CN113704826A (en) | Privacy protection-based business risk detection method, device and equipment | |
CN111600882A (en) | Block chain-based account password management method and device and electronic equipment | |
CN113761496B (en) | Identity verification method and device based on blockchain and electronic equipment | |
US20240113898A1 (en) | Secure Module and Method for App-to-App Mutual Trust Through App-Based Identity | |
CN111818094B (en) | Identity registration method, device and equipment | |
CN115603943A (en) | Method and device for off-line identity authentication, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201201 |