CN110380860A - Shared resource data processing method and equipment based on block chain intelligence contract - Google Patents

Shared resource data processing method and equipment based on block chain intelligence contract Download PDF

Info

Publication number
CN110380860A
CN110380860A CN201910532000.9A CN201910532000A CN110380860A CN 110380860 A CN110380860 A CN 110380860A CN 201910532000 A CN201910532000 A CN 201910532000A CN 110380860 A CN110380860 A CN 110380860A
Authority
CN
China
Prior art keywords
resource data
common resource
intelligent contract
block chain
digital signature
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.)
Granted
Application number
CN201910532000.9A
Other languages
Chinese (zh)
Other versions
CN110380860B (en
Inventor
赵成龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910532000.9A priority Critical patent/CN110380860B/en
Publication of CN110380860A publication Critical patent/CN110380860A/en
Application granted granted Critical
Publication of CN110380860B publication Critical patent/CN110380860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of shared resource data processing method based on block chain intelligence contract, comprising: receives the change request initiated for the shared resource data being hosted in block chain;The change request is responded, the digital signature of the affiliated party of the shared resource data is obtained;Judge whether the digital signature meets and triggers the prerequisite that intelligent contract executes automatically;If so, executing the intelligent contract automatically to change to the shared resource data.This method can avoid shared resource data and change in the unwitting situation of affiliated party, the right to know of effective guarantee shared resource data association, and the change details of shared resource data is stored and is recorded in block chain, trackability is strong, effectively shared resource data is avoided illegally to be distorted, significantly improves the safety of the storage of shared resource data and processing.

Description

Common resource data processing method and device based on block chain intelligent contract
Technical Field
The invention relates to the technical field of resource processing, in particular to a method and a device for processing shared resource data based on a block chain intelligent contract, a computer readable storage medium and computer equipment.
Background
With the rapid development of social economy, a large number of people share resource data with other people, the shared resource data is resource data shared by at least two parties, and the state or change of the shared resource data is often closely related to the interest of each related party. At present, the processing of the shared resource data is difficult to be reasonably supervised, the shared resource data is easy to be modified and changed under the condition that the related party does not know, the tracing difficulty of the change details of the shared resource data is high, the rights and interests of the related party of the shared resource data are easy to be lost, and the safety of the storage and processing of the shared resource data is too low.
Disclosure of Invention
In order to solve at least one of the above technical defects, the present invention provides a common resource data processing method based on a block chain intelligent contract, and a corresponding apparatus, a computer-readable storage medium, and a computer device.
According to an aspect, an embodiment of the present invention provides a common resource data processing method based on a block chain intelligent contract, including the following steps:
receiving a change request initiated for common resource data hosted in a blockchain;
responding to the change request, and acquiring a digital signature of an associated party of the common resource data;
judging whether the digital signature meets a preset condition for triggering the automatic execution of the intelligent contract;
if yes, automatically executing the intelligent contract to change the common resource data.
In one embodiment, the determining whether the digital signature meets a preset condition for triggering automatic execution of the intelligent contract includes:
and judging whether the number of the relevant parties corresponding to the digital signature reaches a preset threshold value for triggering the automatic execution of the intelligent contract.
In one embodiment, before automatically executing the intelligent contract to make changes to the common resource data, further comprising:
acquiring the first signature time of the digital signature and the last writing time of the intelligent contract from the block chain;
determining that the last write time is earlier than the first signature time.
In one embodiment, before automatically executing the intelligent contract to make changes to the common resource data, further comprising:
acquiring the last write-in time of the intelligent contract from the block chain;
and determining that the time interval between the last writing time and the current time is greater than a preset time length.
In one embodiment, before the determining whether the digital signature meets a preset condition for triggering automatic execution of the intelligent contract, the method further includes:
generating an intelligent contract according to the common resource data;
and writing the intelligent contract into a block chain.
In one embodiment, the generating an intelligent contract based on the common resource data includes:
determining a resource type of the common resource data;
determining the service logic corresponding to the common resource data according to the resource type;
and generating a script instruction list corresponding to the common resource data according to the service logic, and taking the script instruction list as the intelligent contract.
In one embodiment, after automatically executing the intelligent contract to make changes to the common resource data, further comprising:
generating a broadcast message of the common resource data change;
pushing the broadcast message to the associated party.
Furthermore, according to another aspect, an embodiment of the present invention provides a common resource data processing apparatus based on a blockchain intelligent contract, including:
a change request receiving module for receiving a change request initiated for common resource data hosted in a block chain;
a digital signature acquisition module, configured to respond to the change request and acquire a digital signature of an associated party of the common resource data;
the judging module is used for judging whether the digital signature meets the preset condition for triggering the automatic execution of the intelligent contract;
and the changing module is used for automatically executing the intelligent contract to change the common resource data when the digital signature meets a preset condition for triggering the automatic execution of the intelligent contract.
According to yet another aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the above-mentioned common resource data processing method based on blockchain intelligent contracts.
According to yet another aspect, embodiments of the present invention provide a computer device, the computer comprising one or more processors; a memory; one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to: and executing the common resource data processing method based on the intelligent contract of the block chain.
Compared with the prior art, the invention has the following beneficial effects:
according to the method, the device, the computer-readable storage medium and the computer equipment for processing the shared resource data based on the intelligent block chain contract, provided by the invention, the digital signature of the associated party of the shared resource data is obtained, and the intelligent contract is automatically executed to change the shared resource data when the digital signature meets the preset condition, so that the shared resource data is prevented from being changed under the condition that the associated party is unknown, the right of awareness of the associated party of the shared resource data is effectively ensured, the change details of the shared resource data are stored and recorded in the block chain, the traceability is strong, the shared resource data is effectively prevented from being illegally tampered, and the storage and processing safety of the shared resource data is obviously improved.
In addition, the digital signature of the associated party of the shared resource data is acquired based on a multiple signature mechanism, so that the shared resource data can be prevented from being changed under the condition that the associated party does not know, the right of awareness of the associated party of the shared resource data is effectively guaranteed, and the storage and processing safety of the shared resource data is obviously improved.
In addition, whether the intelligent contract is automatically executed or not is further determined according to the first signature time of the digital signature stored in the block chain and the last write-in time of the intelligent contract, so that the effectiveness of the intelligent contract can be effectively guaranteed, and the safety of data storage and processing of common resources is further guaranteed.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a method for processing common resource data based on a block chain intelligent contract according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a common resource data processing apparatus based on a block chain intelligent contract according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The embodiment of the invention provides a common resource data processing method based on a block chain intelligent contract, which comprises the following steps of:
step S110: a change request initiated for common resource data hosted in a blockchain is received.
For the present embodiment, the common resource data is resource data shared by at least two parties, and the common resource data includes but is not limited to: the system comprises virtual account data with public attributes, value security data entrusted by multiple parties, open source code data on a company open platform and permission level data set for partners.
For the present embodiment, the blockchain intelligent contract technology is specifically applied to an application scenario of common resource data hosting.
The blockchain is a distributed account book, and a technical scheme for maintaining a reliable database collectively in a decentralized and trust-removing mode is provided. "distributed" here is to be understood not only as a distributed storage of data, but also as a distributed recording of data, i.e. maintained jointly by system participants. Reference to a "node" is generally made to a computer in a blockchain, including cell phones, mining machines, desktop machines, servers, and the like. Each device can act as a node, each node allowing a complete copy of the database to be obtained. The nodes are based on a set of consensus mechanism, and the whole block chain is maintained together through competition calculation. The person operating a node may be a general wallet user, a miner, and multiple people collaborating. If a blockchain is to participate, a blockchain node is owned.
The intelligent contract is a set of commitments defined in a digital form, and comprises an agreement on which contract participants can execute the commitments, namely the intelligent contract is a set of agreement which can automatically execute certain manual tasks, namely the intelligent contract can be started to automatically execute contract contents when meeting preset conditions for triggering the execution of the intelligent contract.
For the present embodiment, common resource data is hosted in the blockchain in advance. Specifically, the common resource data is packaged into blocks in advance and added into a block chain, and the associated party of the common resource data is accessed into the block chain as a node of the block chain, each associated party node maintains the blocks in which the common resource data is stored together, and the block chain automatically broadcasts notification information related to the common resource data to each associated party node in the block chain. Wherein the associator is an individual or a unit or an organization associated with the common resource data. Encryption technology and decentralization characteristics in the block chain completely conform to the requirements of common resource data hosting on storage safety and transparency, common resource data can be effectively monitored, real-time broadcasting can really ensure the right of knowledge of common resource data correlation parties, the problem of information asymmetry among the correlation parties is eliminated, and potential risks of common resource data hosting are reduced.
For this embodiment, any one of the associated parties of the common resource data may initiate a change request for changing and modifying the common resource data to the blockchain, and accordingly, the blockchain may receive the change request initiated for the common resource data and sent by any one of the associated parties.
Step S120: and responding to the change request, and acquiring the digital signature of the associator of the common resource data.
For this embodiment, when the blockchain receives the change request, a notification message that one party initiates the change of the shared resource data is automatically broadcast to each associated party node in the blockchain, and meanwhile, the change content of the shared resource data is sent to each associated party of the shared resource data in response to the change request, and if the associated party agrees with the change content of the shared resource data, a digital signature is performed, and accordingly, the blockchain can obtain the digital signature of the associated party agreeing with the change content of the shared resource data.
Step S130: and judging whether the digital signature meets a preset condition for triggering the automatic execution of the intelligent contract.
For the embodiment, the intelligent contracts are written in the blockchain in advance, and preset conditions which can trigger the automatic execution of the intelligent contracts are set. When the digital signature meets a preset condition for triggering the intelligent contract to automatically execute, automatically executing the intelligent contract to change the common resource data; and when the digital signature does not meet the preset condition for triggering the automatic execution of the intelligent contract, the intelligent contract is not executed, and anyone can not change the common resource data.
Step S140: if yes, automatically executing the intelligent contract to change the common resource data.
For this embodiment, when the digital signature meets a preset condition that triggers the automatic execution of the intelligent contract, the automatic execution of the intelligent contract is triggered, and the automatic change of the common resource data is realized. Any change and use of the common resource data are automatically executed by the intelligent contract, so that human intervention can be effectively avoided.
For the embodiment, any change of the common resource data is honestly recorded in the blockchain, the changed common resource data is updated in the blockchain, and the blockchain automatically broadcasts the notification information of the change of the common resource data to each associated party node in the blockchain, so that the right to know of the associated parties of the common resource data can be ensured, the problem of information asymmetry between the associated parties is solved, and the potential risk of common resource data hosting is reduced.
According to the method for processing the shared resource data based on the intelligent contract of the block chain, provided by the embodiment of the invention, the digital signature of the associated party of the shared resource data is obtained, and the intelligent contract is automatically executed to change the shared resource data when the digital signature meets the preset condition, so that the shared resource data can be prevented from being changed under the condition that the associated party does not know, the right of knowledge of the associated party of the shared resource data is effectively ensured, the change details of the shared resource data are stored and recorded in the block chain, the traceability is strong, the illegal tampering of the shared resource data is effectively avoided, and the safety of storage and processing of the shared resource data is obviously improved.
In one embodiment, the determining whether the digital signature meets a preset condition for triggering automatic execution of the intelligent contract includes:
and judging whether the number of the relevant parties corresponding to the digital signature reaches a preset threshold value for triggering the automatic execution of the intelligent contract.
For the embodiment, a multiple signature mechanism is used as a prerequisite for automatic execution of the intelligent contract, and after the digital signature of the associated party of the shared resource data is acquired, whether the digital signature meets a preset condition for triggering automatic execution of the intelligent contract is determined, specifically, whether the number of the digital signatures reaches a preset threshold value for triggering automatic execution of the intelligent contract is determined. If the number of the digital signatures reaches a preset threshold value which triggers the intelligent contract to automatically execute, the intelligent contract is automatically executed to change the common resource data; and if the number of the digital signatures does not reach a preset threshold value for triggering the automatic execution of the intelligent contract, the intelligent contract is not executed, and anyone can not change the common resource data.
The number of the obtained digital signatures may be any specific numerical value or a numerical value calculated according to a certain proportion, and a person skilled in the art may determine the specific numerical value of the number according to actual application requirements.
For example, if the common resource data is shared by two parties, the change request of the common resource data initiated by one party needs to obtain signatures of the two parties to trigger the automatic execution of the intelligent contract.
For another example, if the common resource data is shared by a plurality of associated parties, it may be set that the initiated request for changing the common resource data requires at least more than half of the associated parties to obtain the digital signatures of all the associated parties to trigger the automatic execution of the smart contract.
In this embodiment, the digital signature of the associated party of the common resource data is obtained based on a multiple signature mechanism, so that the common resource data can be prevented from being changed under the condition that the associated party does not know, the right of awareness of the associated party of the common resource data is effectively guaranteed, and the safety of storage and processing of the common resource data is remarkably improved.
In one embodiment, the determining whether the digital signature meets a preset condition for triggering automatic execution of the intelligent contract includes:
and judging whether the number of the correlation parties corresponding to the digital signature is consistent with the total number of the correlation parties of the common resource data.
For this embodiment, a multiple signature mechanism is used as a prerequisite for automatic execution of the intelligent contract, and after a digital signature of an associated party of the shared resource data is acquired, it is determined whether the digital signature meets a preset condition for triggering automatic execution of the intelligent contract, specifically, it is determined whether the number of associated parties corresponding to the digital signature is consistent with the total number of associated parties of the shared resource data.
For this embodiment, only when the digital signatures of all the related parties of the common resource data are acquired, the intelligent contract may be automatically executed to change the common resource data, otherwise, the intelligent contract is not executed, and no one can change the common resource data.
In this embodiment, the digital signatures of all the associated parties of the common resource data are obtained based on a multiple signature mechanism, so that the common resource data can be prevented from being changed under the condition that any associated party is unknown, the right of awareness of all the associated parties of the common resource data is effectively guaranteed, and the storage and processing safety of the common resource data is remarkably improved.
In one embodiment, before automatically executing the intelligent contract to make changes to the common resource data, further comprising:
acquiring the first signature time of the digital signature and the last writing time of the intelligent contract from the block chain;
determining that the last write time is earlier than the first signature time.
For this embodiment, in order to prevent the smart contract from being illegally tampered to implement the illegal modification of the common resource data, it is determined that the signature time of all the acquired digital signatures is later than the last write time of the smart contract, and the step of automatically executing the smart contract to modify the common resource data is continued.
For this embodiment, the signature time of each acquired digital signature of each related party is recorded in the blockchain, wherein the signature time of the acquired first digital signature is the first signature time, and the signature time of the first digital signature acquired by the blockchain can be known by acquiring the first signature time of the digital signature from the blockchain. In addition, a time node in an intelligent contract writing chain is recorded in the block chain, and the last writing time of the intelligent contract is obtained from the block chain, so that the last writing time or updating time of the intelligent contract in the block chain can be known.
In an actual application scenario, the intelligent contract is generally written into the blockchain in advance, and the intelligent contract should not be updated after the blockchain starts to acquire the digital signatures of the various associators, that is, the last write time of the intelligent contract should be earlier than the first signature time of the digital signatures.
If the last write time of the smart contract is later than the first signature time of the digital signature, the smart contract is indicated to have a greater risk of being illegally tampered. It is further determined that the last write time is earlier than the first signature time before the intelligent contract is automatically executed to make changes to the common resource data, and the step of automatically executing the intelligent contract to make changes to the common resource data is executed when the last write time is earlier than the first signature time.
In this embodiment, it is further determined whether to automatically execute the intelligent contract according to the first signature time of the digital signature stored in the block chain and the last write time of the intelligent contract, so that the validity of the intelligent contract can be effectively ensured, and the security of storage and processing of common resource data is further ensured.
In one embodiment, before automatically executing the intelligent contract to make changes to the common resource data, further comprising:
acquiring the last write-in time of the intelligent contract from the block chain;
and determining that the time interval between the last writing time and the current time is greater than a preset time length.
For this embodiment, in order to prevent the smart contract from being illegally tampered to implement the illegal modification of the common resource data, the step of automatically executing the smart contract to modify the common resource data needs to be continuously executed when it is determined that the last write time of the smart contract meets the condition.
For this embodiment, a time node in an intelligent contract write chain is recorded in a blockchain, and the last write time of the intelligent contract is obtained from the blockchain, so that the last time when the intelligent contract is written or updated in the blockchain can be known.
In an actual application scenario, an intelligent contract is generally written into a block chain in advance, and the writing time of the intelligent contract generally has a certain time interval with a time node triggering the automatic execution of the intelligent contract. If the time interval between the last writing time of the intelligent contract and the current time of the intelligent contract to be automatically executed is too small, the intelligent contract is indicated to have a greater risk of being illegally tampered. Therefore, before the intelligent contract is automatically executed to change the shared resource data, it is further determined that the time interval between the last writing time and the current time is greater than a preset time duration, and the step of automatically executing the intelligent contract to change the shared resource data is executed when the time interval between the last writing time and the current time is greater than the preset time duration.
For this embodiment, the preset time duration may be a preset time duration such as 5h, 24h, 7 days, and the like, and a person skilled in the art may determine a specific value of the preset time duration according to an actual application requirement, which is not limited in the embodiment of the present invention.
In this embodiment, it is further determined whether to automatically execute the intelligent contract according to the last write time of the intelligent contract stored in the block chain, so that the validity of the intelligent contract can be effectively ensured, and the security of storage and processing of common resource data is further ensured.
In one embodiment, before the determining whether the digital signature meets a preset condition for triggering automatic execution of the intelligent contract, the method further includes:
generating an intelligent contract according to the common resource data;
and writing the intelligent contract into a block chain.
For the embodiment, the intelligent contracts are written in the block chain in advance by utilizing the programmable characteristic of the block chain. The intelligent contracts are used for automatically executing to change the common resource data when meeting conditions, and when processing common resource data of different resource types, the common resource data can be changed only by adopting different intelligent contracts.
For the embodiment, the data type of the common resource data is determined in advance, an intelligent contract corresponding to the common resource data is generated according to the common resource data, and the generated intelligent contract is written into a block chain, so that the intelligent contract corresponding to the common resource data can be automatically triggered when the digital signature meets the condition, and the common resource data is changed.
In one embodiment, the generating an intelligent contract based on the common resource data includes:
determining a resource type of the common resource data;
determining the service logic corresponding to the common resource data according to the resource type;
and generating a script instruction list corresponding to the common resource data according to the service logic, and taking the script instruction list as the intelligent contract.
For the embodiment, by using the characteristic of programmable block chains, an automatically executable script instruction list is written in the block chains in advance, the written automatically executable script instruction list is used as an intelligent contract, and the automatic execution of the script instruction list needs to meet a certain condition, that is, a preset condition for correspondingly triggering the automatic execution of the intelligent contract is met.
For this embodiment, different resource types of the common resource data may correspond to different business logics, and the different business logics may need to generate different script instruction lists. Different scripts are written in the block chain to make different intelligent contracts, so that the difference between different business logics corresponding to different types of shared resource data can be met.
In one embodiment, after automatically executing the intelligent contract to make changes to the common resource data, further comprising:
generating a broadcast message of the common resource data change;
pushing the broadcast message to the associated party.
In this embodiment, the changed common resource data is updated to a block of the blockchain, the blockchain immediately generates the broadcast message of the change of the common resource data, and broadcasts the broadcast message of the change of the common resource data to each associated node of the common resource data, so as to realize pushing the broadcast message to the associated node.
In addition, an embodiment of the present invention provides a common resource data processing apparatus based on a block chain intelligent contract, and as shown in fig. 2, the apparatus includes: a change request receiving module 21, a digital signature acquiring module 22, a judging module 23 and a changing module 24; wherein,
the change request receiving module 21 is configured to receive a change request initiated for common resource data hosted in a block chain;
the digital signature obtaining module 22 is configured to respond to the change request, and obtain a digital signature of an associated party of the common resource data;
the judging module 23 is configured to judge whether the digital signature meets a preset condition for triggering automatic execution of an intelligent contract;
and the changing module 24 is configured to, when the digital signature meets a preset condition that triggers automatic execution of an intelligent contract, automatically execute the intelligent contract to change the common resource data.
In an embodiment, the determining module 23 is specifically configured to:
and judging whether the number of the relevant parties corresponding to the digital signature reaches a preset threshold value for triggering the automatic execution of the intelligent contract.
In one embodiment, before automatically executing the intelligent contract to make changes to the common resource data, further comprising:
acquiring the first signature time of the digital signature and the last writing time of the intelligent contract from the block chain;
determining that the last write time is earlier than the first signature time.
In one embodiment, before automatically executing the intelligent contract to make changes to the common resource data, further comprising:
acquiring the last write-in time of the intelligent contract from the block chain;
and determining that the time interval between the last writing time and the current time is greater than a preset time length.
In one embodiment, before the determining whether the digital signature meets a preset condition for triggering automatic execution of the intelligent contract, the method further includes:
generating an intelligent contract according to the common resource data;
and writing the intelligent contract into a block chain.
In one embodiment, the generating an intelligent contract based on the common resource data includes:
determining a resource type of the common resource data;
determining the service logic corresponding to the common resource data according to the resource type;
and generating a script instruction list corresponding to the common resource data according to the service logic, and taking the script instruction list as the intelligent contract.
In one embodiment, after automatically executing the intelligent contract to make changes to the common resource data, further comprising:
generating a broadcast message of the common resource data change;
pushing the broadcast message to the associated party.
The shared resource data processing device based on the intelligent contract of the block chain can realize that: by acquiring the digital signature of the associated party of the common resource data and automatically executing the intelligent contract to change the common resource data when the digital signature meets the preset condition, the common resource data can be prevented from being changed under the condition that the associated party does not know, the right of knowledge of the associated party of the common resource data is effectively guaranteed, the change details of the common resource data are stored and recorded in the block chain, the traceability is strong, the common resource data are effectively prevented from being illegally tampered, and the safety of storage and processing of the common resource data is remarkably improved. It can also be realized that: the digital signature of the associated party of the shared resource data is acquired based on a multiple signature mechanism, so that the shared resource data can be prevented from being changed under the condition that the associated party does not know, the right of knowledge of the associated party of the shared resource data is effectively guaranteed, and the storage and processing safety of the shared resource data is obviously improved; and further determining whether to automatically execute the intelligent contract according to the first signature time of the digital signature stored in the block chain and the last write-in time of the intelligent contract, so that the effectiveness of the intelligent contract can be effectively ensured, and the safety of the storage and processing of the common resource data is further ensured.
The common resource data processing apparatus based on the intelligent block chain contract provided by the embodiment of the present invention can implement the method embodiment provided above, and for specific function implementation, reference is made to the description in the method embodiment, and details are not repeated here.
Furthermore, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the common resource data processing method based on the blockchain intelligent contracts described in the above embodiment. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The computer-readable storage medium provided by the invention can realize that: by acquiring the digital signature of the associated party of the common resource data and automatically executing the intelligent contract to change the common resource data when the digital signature meets the preset condition, the common resource data can be prevented from being changed under the condition that the associated party does not know, the right of knowledge of the associated party of the common resource data is effectively guaranteed, the change details of the common resource data are stored and recorded in the block chain, the traceability is strong, the common resource data are effectively prevented from being illegally tampered, and the safety of storage and processing of the common resource data is remarkably improved. It can also be realized that: the digital signature of the associated party of the shared resource data is acquired based on a multiple signature mechanism, so that the shared resource data can be prevented from being changed under the condition that the associated party does not know, the right of knowledge of the associated party of the shared resource data is effectively guaranteed, and the storage and processing safety of the shared resource data is obviously improved; and further determining whether to automatically execute the intelligent contract according to the first signature time of the digital signature stored in the block chain and the last write-in time of the intelligent contract, so that the effectiveness of the intelligent contract can be effectively ensured, and the safety of the storage and processing of the common resource data is further ensured.
The computer-readable storage medium provided in the embodiments of the present invention can implement the method embodiments provided above, and for specific function implementation, reference is made to the description in the method embodiments, which is not repeated herein.
In addition, an embodiment of the present invention further provides a computer device, as shown in fig. 3. The computer device described in this embodiment may be a server, a personal computer, a network device, and other devices. The computer apparatus includes a processor 302, a memory 303, an input unit 304, a display unit 305, and the like. Those skilled in the art will appreciate that the device configuration means shown in fig. 3 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 303 may be used to store the computer program 301 and the functional modules, and the processor 302 executes the computer program 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to a user and various menus of the computer apparatus. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory.
As one embodiment, the computer device includes: one or more processors 302, a memory 303, one or more computer programs 301, wherein the one or more computer programs 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, and the one or more computer programs 301 are configured to perform the method for processing shared resource data based on block chain intelligent contracts as described in any of the above embodiments.
The computer equipment provided by the invention can realize that: by acquiring the digital signature of the associated party of the common resource data and automatically executing the intelligent contract to change the common resource data when the digital signature meets the preset condition, the common resource data can be prevented from being changed under the condition that the associated party does not know, the right of knowledge of the associated party of the common resource data is effectively guaranteed, the change details of the common resource data are stored and recorded in the block chain, the traceability is strong, the common resource data are effectively prevented from being illegally tampered, and the safety of storage and processing of the common resource data is remarkably improved. It can also be realized that: the digital signature of the associated party of the shared resource data is acquired based on a multiple signature mechanism, so that the shared resource data can be prevented from being changed under the condition that the associated party does not know, the right of knowledge of the associated party of the shared resource data is effectively guaranteed, and the storage and processing safety of the shared resource data is obviously improved; and further determining whether to automatically execute the intelligent contract according to the first signature time of the digital signature stored in the block chain and the last write-in time of the intelligent contract, so that the effectiveness of the intelligent contract can be effectively ensured, and the safety of the storage and processing of the common resource data is further ensured.
The computer device provided in the embodiment of the present invention may implement the method embodiment provided above, and for specific function implementation, reference is made to the description in the method embodiment, which is not described herein again.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A common resource data processing method based on a block chain intelligent contract is characterized by comprising the following steps:
receiving a change request initiated for common resource data hosted in a blockchain;
responding to the change request, and acquiring a digital signature of an associated party of the common resource data;
judging whether the digital signature meets a preset condition for triggering the automatic execution of the intelligent contract;
if yes, automatically executing the intelligent contract to change the common resource data.
2. The method for processing shared resource data based on block chain intelligent contracts according to claim 1, wherein the judging whether the digital signature meets preset conditions for triggering automatic execution of intelligent contracts comprises:
and judging whether the number of the relevant parties corresponding to the digital signature reaches a preset threshold value for triggering the automatic execution of the intelligent contract.
3. A method for processing common resource data based on block chain intelligent contracts according to claim 1 or 2, wherein before automatically executing the intelligent contracts to make changes to the common resource data, the method further comprises:
acquiring the first signature time of the digital signature and the last writing time of the intelligent contract from the block chain;
determining that the last write time is earlier than the first signature time.
4. A method for processing shared resource data based on blockchain intelligent contracts according to claim 1, wherein before automatically executing the intelligent contracts to make changes to the shared resource data, further comprising:
acquiring the last write-in time of the intelligent contract from the block chain;
and determining that the time interval between the last writing time and the current time is greater than a preset time length.
5. The method for processing shared resource data based on block chain intelligent contracts according to claim 1, wherein before the determining whether the digital signature meets preset conditions for triggering automatic execution of intelligent contracts, the method further comprises:
generating an intelligent contract according to the common resource data;
and writing the intelligent contract into a block chain.
6. The method for processing shared resource data based on intelligent block chain contracts according to claim 5, wherein the generating intelligent contracts according to the shared resource data comprises:
determining a resource type of the common resource data;
determining the service logic corresponding to the common resource data according to the resource type;
and generating a script instruction list corresponding to the common resource data according to the service logic, and taking the script instruction list as the intelligent contract.
7. A method for processing common resource data based on block chain intelligent contracts according to claim 1, wherein after automatically executing the intelligent contracts to make changes to the common resource data, further comprising:
generating a broadcast message of the common resource data change;
pushing the broadcast message to the associated party.
8. A shared resource data processing apparatus based on a blockchain intelligent contract, comprising:
a change request receiving module for receiving a change request initiated for common resource data hosted in a block chain;
a digital signature acquisition module, configured to respond to the change request and acquire a digital signature of an associated party of the common resource data;
the judging module is used for judging whether the digital signature meets the preset condition for triggering the automatic execution of the intelligent contract;
and the changing module is used for automatically executing the intelligent contract to change the common resource data when the digital signature meets a preset condition for triggering the automatic execution of the intelligent contract.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for processing shared resource data based on blockchain intelligent contracts of any one of claims 1 to 7.
10. A computer device, comprising:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to: executing the method for common resource data processing based on blockchain intelligent contracts according to any one of claims 1 to 7.
CN201910532000.9A 2019-06-19 2019-06-19 Common resource data processing method and device based on block chain intelligent contract Active CN110380860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910532000.9A CN110380860B (en) 2019-06-19 2019-06-19 Common resource data processing method and device based on block chain intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910532000.9A CN110380860B (en) 2019-06-19 2019-06-19 Common resource data processing method and device based on block chain intelligent contract

Publications (2)

Publication Number Publication Date
CN110380860A true CN110380860A (en) 2019-10-25
CN110380860B CN110380860B (en) 2023-02-07

Family

ID=68250470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910532000.9A Active CN110380860B (en) 2019-06-19 2019-06-19 Common resource data processing method and device based on block chain intelligent contract

Country Status (1)

Country Link
CN (1) CN110380860B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110889145A (en) * 2019-11-06 2020-03-17 腾讯科技(深圳)有限公司 Block chain resource processing method, platform, system and computer readable storage medium
CN113535855A (en) * 2021-07-28 2021-10-22 卫宁健康科技集团股份有限公司 Block chain-based master data management method, system, computer device, and medium
EP3961453A1 (en) * 2020-08-31 2022-03-02 Alipay (Hangzhou) Information Technology Co., Ltd. Method and apparatus for invoking smart contract, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170154331A1 (en) * 2015-11-30 2017-06-01 ShapeShift Systems and methods for improving security in blockchain-asset exchange
CN108805562A (en) * 2017-04-27 2018-11-13 中思博安科技(北京)有限公司 The execution method and system of intelligent contract
CN109003099A (en) * 2018-06-19 2018-12-14 西安邮电大学 Block chain node data processing method, equipment and storage medium
CN109040029A (en) * 2018-07-13 2018-12-18 上海点融信息科技有限责任公司 The method and apparatus of affairs are executed in block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170154331A1 (en) * 2015-11-30 2017-06-01 ShapeShift Systems and methods for improving security in blockchain-asset exchange
CN108805562A (en) * 2017-04-27 2018-11-13 中思博安科技(北京)有限公司 The execution method and system of intelligent contract
CN109003099A (en) * 2018-06-19 2018-12-14 西安邮电大学 Block chain node data processing method, equipment and storage medium
CN109040029A (en) * 2018-07-13 2018-12-18 上海点融信息科技有限责任公司 The method and apparatus of affairs are executed in block chain

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110889145A (en) * 2019-11-06 2020-03-17 腾讯科技(深圳)有限公司 Block chain resource processing method, platform, system and computer readable storage medium
CN110889145B (en) * 2019-11-06 2024-02-23 腾讯科技(深圳)有限公司 Block chain resource processing method, platform, system and computer readable storage medium
EP3961453A1 (en) * 2020-08-31 2022-03-02 Alipay (Hangzhou) Information Technology Co., Ltd. Method and apparatus for invoking smart contract, electronic device, and storage medium
CN113535855A (en) * 2021-07-28 2021-10-22 卫宁健康科技集团股份有限公司 Block chain-based master data management method, system, computer device, and medium
CN113535855B (en) * 2021-07-28 2024-01-26 卫宁健康科技集团股份有限公司 Main data management method, system, computer equipment and medium based on block chain

Also Published As

Publication number Publication date
CN110380860B (en) 2023-02-07

Similar Documents

Publication Publication Date Title
CN106796524B (en) Method and device for recording application program configuration information and electronic equipment
CN110380860B (en) Common resource data processing method and device based on block chain intelligent contract
CN104272787B (en) Technology for independently reverting to behavior checkpoint
US8549643B1 (en) Using decoys by a data loss prevention system to protect against unscripted activity
CN109257334B (en) Block chain-based data uplink system, method and storage medium
Ntantogian et al. Evaluating the privacy of Android mobile applications under forensic analysis
US11290322B2 (en) Honeypot asset cloning
US11625469B2 (en) Prevention of organizational data leakage across platforms based on device status
CN110912876A (en) Mimicry defense system, method and medium for information system
CN110474870B (en) Block chain-based network active defense method and system and computer readable storage medium
US20170163681A1 (en) Identifying an imposter account in a social network
US9565562B1 (en) Knowledge based authentication using mobile devices
US10630677B1 (en) Systems and methods for protecting users
CN103810426B (en) For detecting the method and system of the virtual machine instance of clone
CN110808839B (en) Processing method, device, equipment and medium for block chain abnormal data
Moreira et al. Goal-driven deception tactics design
Bellizzi et al. Responding to living-off-the-land tactics using just-in-time memory forensics (JIT-MF) for android
US10592662B1 (en) Systems and methods for altering time data
Castiglione et al. Automated production of predetermined digital evidence
Awajan et al. Machine learning techniques for automated policy violation reporting
CN113395234B (en) Method and device for detecting flow hijacking of popularization information
Guerrero-Saade Draw me like one of your french apts—expanding our descriptive palette for cyber threat actors
Rudametkin Improving the Security and Privacy of the Web through Browser Fingerprinting
US20230289457A1 (en) Preventing Illicit Data Transfer and Storage
Chang et al. Digital Forensics Security Analysis on iOS Devices

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
GR01 Patent grant
GR01 Patent grant