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
shared resource
resource data
block chain
intelligent contract
change
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

Shared resource data processing method and equipment based on block chain intelligence contract
Technical field
The present invention relates to resource processing technology fields, specifically, the present invention relates to one kind to be based on block chain intelligence contract Shared resource data processing method, device, computer readable storage medium and computer equipment.
Background technique
With the rapid development of social economy, many people enjoy resource data with other people jointly, and shared resource data are extremely The resource data that rare two side enjoys jointly, the state of shared resource data or change are often close with the interest of each affiliated party It is related.Currently, the processing of shared resource data is difficult to reasonably be supervised, shared resource data are easy not knowing in its affiliated party It is changed in the case where feelings by modification, the change details retrospect difficulty of shared resource data is big, is easy the pass to shared resource data The equity of connection side causes damages, and the safety of the storage of shared resource data and processing is too low.
Summary of the invention
It is that at least can solve above-mentioned one of technological deficiency, the present invention provides following technical schemes based on block chain intelligence The shared resource data processing method and corresponding device, computer readable storage medium and computer equipment of energy contract.
The embodiment of the present invention provides a kind of shared resource data based on block chain intelligence contract according on one side Processing method includes the following steps:
Receive 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.
In one embodiment, it is described judge the digital signature whether meet the intelligent contract of triggering execute automatically it is preset Condition, comprising:
Judge whether the corresponding affiliated party's quantity of the digital signature reaches and triggers the preset threshold that intelligent contract executes automatically Value.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Before, further includes:
The signature time at first of the digital signature and being ultimately written for the intelligent contract are obtained from the block chain Time;
Be ultimately written the time described in determination signs the time at first earlier than described.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Before, further includes:
The intelligent contract is obtained from the block chain is ultimately written the time;
The time interval that time and current time are ultimately written described in determination is greater than preset time period.
In one embodiment, it is described judge the digital signature whether meet the intelligent contract of triggering execute automatically it is preset Before condition, further includes:
According to the shared resource data, intelligent contract is generated;
It will be in the intelligent contract write-in block chain.
In one embodiment, described according to the shared resource data, generate intelligent contract, comprising:
Determine the resource type of the shared resource data;
According to the resource type, the service logic of the corresponding shared resource data is determined;
According to the service logic, the directive script list of the corresponding shared resource data is generated, the script is referred to Enable list as the intelligent contract.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Afterwards, further includes:
Generate the broadcast message of the shared resource data change;
The broadcast message is pushed into the affiliated party.
In addition, the embodiment of the present invention is a kind of shared based on block chain intelligence contract according on the other hand, providing Resource data processing unit, comprising:
Request receiving module is changed, is asked for receiving the change that the shared resource data for being directed to and being hosted in block chain are initiated It asks;
Digital signature obtains module, for responding the change request, obtains the affiliated party of the shared resource data Digital signature;
Judgment module, for judging whether the digital signature meets the prerequisite for triggering intelligent contract and executing automatically;
Module is changed, for when the digital signature meets and triggers prerequisite that intelligent contract executes automatically, automatically The intelligent contract is executed to change to the shared resource data.
The embodiment of the present invention provides a kind of computer readable storage medium, the computer according to another aspect Computer program is stored on readable storage medium storing program for executing, the computer program is realized above-mentioned based on block when being executed by processor The shared resource data processing method of chain intelligence contract.
The embodiment of the present invention provides a kind of computer equipment according to another aspect, and the computer includes one Or multiple processors;Memory;One or more computer programs, wherein one or more of computer programs are stored in It in the memory and is configured as being executed by one or more of processors, one or more of computer program configurations For: execute the above-mentioned shared resource data processing method based on block chain intelligence contract.
Compared with the prior art, the present invention has the following beneficial effects:
It is shared resource data processing method provided by the invention based on block chain intelligence contract, device, computer-readable Storage medium and computer equipment, the digital signature of the affiliated party by obtaining the shared resource data, and in the number Intelligent contract is executed when signature meets prerequisite automatically just to change to the shared resource data, can avoid shared money Source data changes in the unwitting situation of affiliated party, the right to know of effective guarantee shared resource data association, and altogether There is the change details of resource data to store to be recorded in block chain, trackability is strong, effectively avoids shared resource data non- Method is distorted, and the safety of the storage of shared resource data and processing is significantly improved.
In addition, obtaining the digital signature of the affiliated party of the shared resource data based on multi-signature mechanism, can avoid altogether There is resource data to change in the unwitting situation of affiliated party, the right to know of effective guarantee shared resource data association, Significantly improve the safety of the storage of shared resource data and processing.
In addition, further being closed according to the time of signature at first for the digital signature being stored in block chain, the intelligence The time that is ultimately written about determines whether to execute the intelligent contract automatically, can effectively ensure that the validity of intelligent contract, in turn Guarantee the safety of the storage of shared resource data and processing.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the method for the shared resource data processing method provided in an embodiment of the present invention based on block chain intelligence contract Flow chart;
Fig. 2 is the structure of the shared resource data processing equipment provided in an embodiment of the present invention based on block chain intelligence contract Schematic diagram;
Fig. 3 is the structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.Wording used herein " and/ Or " it include one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
The embodiment of the invention provides a kind of shared resource data processing method based on block chain intelligence contract, such as Fig. 1 It is shown, this method comprises:
Step S110: the change request initiated for the shared resource data being hosted in block chain is received.
For the present embodiment, the shared resource data are the resource data that at least two parties is enjoyed jointly, the shared money Source data includes but is not limited to: the virtual account data of publicly-owned attribute, the value securities data entrusted in many ways, company are open flat Open Source Code data on platform, the Permission Levels data set to affiliate.
For the present embodiment, block chain intelligence contract technology is applied particularly to the application scenarios of shared resource Data Hosting In.
Wherein, block chain is a distributed account book, it is a kind of decentralization, go to trust by way of collective safeguard one The technical solution in authentic data library.Here " distribution " is not only presented as the distributed storage of data, is also embodied in data Distributed recording is safeguarded jointly by system participant.It is commonly referred " node ", refers to the computer in block chain, including Mobile phone, mine machine, desktop computer and server etc..Each equipment can act as a node, and each node allows acquisition one The complete database copy of part.It is based on a set of common recognition mechanism between node, safeguards entire block chain jointly by competing to calculate.Operation The people of one node can be common cafe user, miner and more personal synergics.If participating in block chain it is necessary to possess one A block chain node.
Wherein, intelligent contract is a set of promise defined in digital form, including contract participant can be executed above These promise to undertake agreement, that is to say, that intelligent contract be it is a set of can execute certain manual agreements that could complete task automatically, When meeting the prerequisite for triggering intelligent contract execution, intelligent contract can be started and execute treaty content automatically.
For the present embodiment, in advance by shared resource Data Hosting in block chain.Specifically, in advance by shared resource number According to being packaged into block and be added in block chain, and the affiliated party of the shared resource data is then used as the node of block chain to access to In block chain, each affiliated party's node jointly safeguards the block for being stored with shared resource data, and block chain can be from trend Each affiliated party's node broadcasts notification information relevant to the shared resource data in block chain.Wherein, the affiliated party For personal or unit associated with the shared resource data or tissue.The spy of encryption technology and decentralization in block chain Property, agree with completely shared resource Data Hosting to storage security and the transparency requirement, can effective monitoring shared resource data, And real-time broadcast can ensure the right to know of shared resource data association conscientiously, eliminate asking for information asymmetry between affiliated party Topic, reduces shared resource Data Hosting potential risks.
For the present embodiment, any one of affiliated party of the shared resource data can be initiated to block chain to altogether There is resource data to change the change request of modification, is sent correspondingly, block chain can receive any one of affiliated party For the shared resource data initiate change request.
Step S120: the response change request obtains the digital signature of the affiliated party of the shared resource data.
It can be from each affiliated party in trend block chain when block chain receives change request for the present embodiment The notification message that node broadcasts have a side to initiate the shared resource data change, meanwhile, respond the change request, Xiang Suoshu Each affiliated party of shared resource data sends the changed content of the shared resource data, if the shared money is agreed to by affiliated party The changed content of source data, then be digitally signed, correspondingly, block chain, which can be got, agrees to the shared resource data change The digital signature of the affiliated party of content.
Step S130: judge whether the digital signature meets and trigger the prerequisite that intelligent contract executes automatically.
For the present embodiment, it is previously written intelligent contract in block chain, and sets triggerable intelligent contract and executes automatically Prerequisite.When the digital signature meets the prerequisite that the triggering intelligent contract executes automatically, institute is executed automatically Intelligent contract is stated to change to the shared resource data;When the digital signature does not meet the triggering intelligent contract certainly When the dynamic prerequisite executed, then the intelligent contract is not executed, it is any the shared resource data to be become per capita More.
Step S140: if so, executing the intelligent contract automatically to change to the shared resource data.
For the present embodiment, when the digital signature meets the prerequisite that the triggering intelligent contract executes automatically, It triggers the intelligent contract to execute automatically, realizes the automatic change to the shared resource data.The shared resource data Any change and use are executed automatically by intelligent contract, can effectively avoid human intervention.
For the present embodiment, any change change of shared resource data is honestly recorded in block chain, is become Shared resource data after more can update in block chain, and block chain can be wide from each affiliated party's node in trend block chain The notification information for broadcasting the shared resource data change, can ensure the right to know of shared resource data association conscientiously, eliminate Between affiliated party the problem of information asymmetry, shared resource Data Hosting potential risks are reduced.
Shared resource data processing method provided in an embodiment of the present invention based on block chain intelligence contract, by obtaining institute The digital signature of the affiliated party of shared resource data is stated, and just executes intelligence automatically when the digital signature meets prerequisite Contract can avoid shared resource data and occur in the unwitting situation of affiliated party to change to the shared resource data Change, 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 In block chain, trackability is strong, and shared resource data is effectively avoided illegally to be distorted, and significantly improves the storage of shared resource data And the safety of processing.
In one embodiment, it is described judge the digital signature whether meet the intelligent contract of triggering execute automatically it is preset Condition, comprising:
Judge whether the corresponding affiliated party's quantity of the digital signature reaches and triggers the preset threshold that intelligent contract executes automatically Value.
For the present embodiment, the prerequisite that multi-signature mechanism is executed automatically as the intelligent contract is being obtained After the digital signature of the affiliated party of the shared resource data, judge whether the digital signature meets the intelligent contract of triggering certainly The dynamic prerequisite executed specifically judges whether the quantity of the digital signature reaches and triggers what intelligent contract executed automatically Preset threshold value.If the quantity of the digital signature, which reaches, triggers the preset threshold value that the intelligent contract executes automatically, hold automatically The row intelligent contract is to change the shared resource data;If described in the quantity of the digital signature not up to triggers The preset threshold value that intelligent contract executes automatically, then do not execute the intelligent contract, it is any per capita can not be to the shared resource number According to changing.
Wherein, the quantity of the digital signature of acquisition can be any specific value or counted according to certain proportion meter Numerical value, those skilled in the art can determine the specific value of the quantity according to practical application request, and the embodiment of the present invention is to this Without limitation, the prerequisite that the intelligent contract of the triggering executes automatically can be to obtain both sides' signature, multiple party signatures etc..
For example, if the shared resource data are only enjoyed by two sides jointly, wherein the shared resource that a side initiates The change request of data needs to obtain both sides' signature, and just triggerable intelligent contract executes automatically.
In another example the shared resource of initiation can be set if the shared resource data are enjoyed jointly by multiple affiliated parties The digital signature of at least more than half affiliated party just can trigger intelligence conjunction in the whole affiliated parties of change request needs acquisition of data It is about automatic to execute.
In the present embodiment, the digital signature of the affiliated party of the shared resource data is obtained based on multi-signature mechanism, It can avoid shared resource data to change in the unwitting situation of affiliated party, effective guarantee shared resource data association Right to know significantly improves the safety of the storage of shared resource data and processing.
In one embodiment, it is described judge the digital signature whether meet the intelligent contract of triggering execute automatically it is preset Condition, comprising:
Judge whether the corresponding affiliated party's quantity of the digital signature is total with the affiliated party of the shared resource data Amount is consistent.
For the present embodiment, the prerequisite that multi-signature mechanism is executed automatically as the intelligent contract is being obtained After the digital signature of the affiliated party of the shared resource data, judge whether the digital signature meets the intelligent contract of triggering certainly The dynamic prerequisite executed, specifically, judge the corresponding affiliated party's quantity of the digital signature whether with the shared resource number According to affiliated party's total amount it is consistent.
For the present embodiment, only when getting the digital signature of all affiliated parties of the shared resource data, just may be used Automatically the intelligent contract is executed to change to the shared resource data, does not otherwise execute the intelligent contract, it is any The shared resource data can not be changed per capita.
In the present embodiment, the number label of all affiliated parties of shared resource data are obtained based on multi-signature mechanism Name can avoid shared resource data and change in the unwitting situation of any affiliated party, effective guarantee shared resource data The right to know of all affiliated parties significantly improves the safety of the storage of shared resource data and processing.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Before, further includes:
The signature time at first of the digital signature and being ultimately written for the intelligent contract are obtained from the block chain Time;
Be ultimately written the time described in determination signs the time at first earlier than described.
For the present embodiment, for the illegal change for preventing intelligent contract from illegally being distorted to realize the shared resource data More, the time that is ultimately written that the signature time of all digital signature acquired in need to determining is later than the intelligent contract just continues It executes and described executes the step of intelligent contract is to change the shared resource data automatically.
For the present embodiment, record has the signature time of acquired each affiliated party's digital signature in block chain, wherein The signature time of acquired first digital signature signs the time at first described in being, the number label are obtained from the block chain The signature time at first of name, it may be to know that the signature time for the first digital signature that block chain obtains.In addition, also being recorded in block chain There is the timing node in intelligent contract write-in chain, the intelligent contract is obtained from the block chain is ultimately written the time, can Know the final time that the intelligent contract is written or is updated in block chain.
In practical application scene, intelligent contract is generally previously written block chain, and the intelligence contract ought to be in block chain The digital signature for starting to obtain each affiliated party no longer updates later, i.e., the time that is ultimately written of the described intelligent contract should be earlier than institute State the signature time at first of digital signature.
If the intelligence contract is ultimately written the signature time at first that the time is later than the digital signature, then it represents that described There are the biggish risks illegally altered for intelligent contract.Therefore the intelligent contract is being executed automatically to the shared resource number According to before changing, also need to further determine that it is described be ultimately written the time and sign at first the time earlier than described, described last Write time earlier than it is described at first sign the time when just execute it is described execute automatically it is described intelligence contract to the shared resource The step of data change.
In the present embodiment, further according to the time of signature at first for the digital signature being stored in block chain and institute The time that is ultimately written for stating intelligent contract determines whether to execute the intelligent contract automatically, can effectively ensure that the effective of intelligent contract Property, and then guarantee the safety of the storage of shared resource data and processing.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Before, further includes:
The intelligent contract is obtained from the block chain is ultimately written the time;
The time interval that time and current time are ultimately written described in determination is greater than preset time period.
For the present embodiment, for the illegal change for preventing intelligent contract from illegally being distorted to realize the shared resource data More, need to determine the intelligent contract be ultimately written the time it is eligible when just continue to execute and described execute the intelligence automatically The step of contract is to change the shared resource data.
For the present embodiment, record has the timing node in intelligent contract write-in chain in block chain, from the block chain Obtain the intelligent contract is ultimately written the time, it may be to know that the intelligence contract be written in block chain or update it is last when Between.
In practical application scene, intelligent contract is generally previously written block chain, the write time one of the intelligence contract As there are certain time interval with the timing node that intelligent contract executes automatically is triggered.If when being ultimately written of contract of intelligence Between it is too small with the time interval for the current time that will execute automatically intelligent contract, then it represents that it is described intelligence contract there are biggish The risk illegally altered.Therefore before executing the intelligent contract automatically to change to the shared resource data, also The time interval for being ultimately written time and current time need to be further determined that greater than preset time period, in described be ultimately written Between just execute when being greater than preset time period with the time interval of current time and described execute the intelligence contract automatically to described total There is the step of resource data changes.
For the present embodiment, the preset time period can be 5h, for 24 hours, the pre-set duration such as 7 days, art technology Personnel can determine the specific value of the preset time period according to practical application request, and it is not limited in the embodiment of the present invention.
In the present embodiment, it is further determined according to the time that is ultimately written for the intelligent contract being stored in block chain The intelligent contract whether is executed automatically, can effectively ensure that the validity of intelligent contract, and then guarantees the storage of shared resource data And the safety of processing.
In one embodiment, it is described judge the digital signature whether meet the intelligent contract of triggering execute automatically it is preset Before condition, further includes:
According to the shared resource data, intelligent contract is generated;
It will be in the intelligent contract write-in block chain.
Intelligent contract is previously written in block chain using the programmable feature of block chain for the present embodiment.The intelligence Energy contract handles different resource type for being executed automatically when eligible to change to the shared resource data When shared resource data, it may be necessary to just can be achieved to change the shared resource data using different intelligent contracts.
For the present embodiment, the data type of the shared resource data is predefined, and according to the shared resource number According to, the intelligent contract of the corresponding shared resource data of generation, and the intelligent contract of generation is written in block chain, so that in institute State digital signature it is eligible when can automatic trigger correspond to the intelligent contracts of the shared resource data, realize to the shared money The change of source data.
In one embodiment, described according to the shared resource data, generate intelligent contract, comprising:
Determine the resource type of the shared resource data;
According to the resource type, the service logic of the corresponding shared resource data is determined;
According to the service logic, the directive script list of the corresponding shared resource data is generated, the script is referred to Enable list as the intelligent contract.
The foot that can be executed automatically is previously written in block chain using the programmable feature of block chain for the present embodiment This instruction list, what is be written execution script instruction list can be used for as intelligent contract, the directive script list automatically Automatic execution needs meet certain condition, i.e., the prerequisite that the corresponding triggering intelligent contract executes automatically.
For the present embodiment, the resource type of different shared resource data may correspond to different service logics, different Service logic may need to generate different directive script lists.Difference is made by the way that different scripts is written in block chain Intelligent contract, the otherness between the corresponding different business logic of different types of shared resource data can be met.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Afterwards, further includes:
Generate the broadcast message of the shared resource data change;
The broadcast message is pushed into the affiliated party.
For the present embodiment, the shared resource data after change be will be updated into the block of block chain, and block chain is given birth to immediately At the broadcast message that the shared resource data change, and described in each affiliated party's node broadcasts to the shared resource data The broadcast message is pushed to the affiliated party by the broadcast message of shared resource data change, realization, correspondingly, each association Fang Jiedian can passively receive the broadcast message of the shared resource data change, can effectively ensure that the shared resource data All affiliated parties know that the shared resource data change, and all affiliated parties of effective guarantee shared resource data know Power.
In addition, the embodiment of the invention provides a kind of shared resource data processing equipment based on block chain intelligence contract, As shown in Fig. 2, described device includes: change request receiving module 21, digital signature acquisition module 22, judgment module 23 and change Module 24;Wherein,
The change request receiving module 21 is directed to the shared resource data being hosted in block chain initiation for receiving Change request;
The digital signature obtains module 22, for responding the change request, obtains the pass of the shared resource data The digital signature of connection side;
The judgment module 23, for judge the digital signature whether meet the intelligent contract of triggering execute automatically it is preset Condition;
The change module 24, for meeting the prerequisite for triggering intelligent contract and executing automatically in the digital signature When, execute the intelligent contract automatically to change to the shared resource data.
In one embodiment, the judgment module 23, is specifically used for:
Judge whether the corresponding affiliated party's quantity of the digital signature reaches and triggers the preset threshold that intelligent contract executes automatically Value.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Before, further includes:
The signature time at first of the digital signature and being ultimately written for the intelligent contract are obtained from the block chain Time;
Be ultimately written the time described in determination signs the time at first earlier than described.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Before, further includes:
The intelligent contract is obtained from the block chain is ultimately written the time;
The time interval that time and current time are ultimately written described in determination is greater than preset time period.
In one embodiment, it is described judge the digital signature whether meet the intelligent contract of triggering execute automatically it is preset Before condition, further includes:
According to the shared resource data, intelligent contract is generated;
It will be in the intelligent contract write-in block chain.
In one embodiment, described according to the shared resource data, generate intelligent contract, comprising:
Determine the resource type of the shared resource data;
According to the resource type, the service logic of the corresponding shared resource data is determined;
According to the service logic, the directive script list of the corresponding shared resource data is generated, the script is referred to Enable list as the intelligent contract.
In one embodiment, described to execute the intelligent contract automatically to change it to the shared resource data Afterwards, further includes:
Generate the broadcast message of the shared resource data change;
The broadcast message is pushed into the affiliated party.
Shared resource data processing equipment provided by the invention based on block chain intelligence contract can be realized: by obtaining institute The digital signature of the affiliated party of shared resource data is stated, and just executes intelligence automatically when the digital signature meets prerequisite Contract can avoid shared resource data and occur in the unwitting situation of affiliated party to change to the shared resource data Change, 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 In block chain, trackability is strong, and shared resource data is effectively avoided illegally to be distorted, and significantly improves the storage of shared resource data And the safety of processing.It can also be achieved: obtaining the number label of the affiliated party of the shared resource data based on multi-signature mechanism Name can avoid shared resource data and change in the unwitting situation of affiliated party, effective guarantee shared resource data correlation The right to know of side significantly improves the safety of the storage of shared resource data and processing;Further basis is stored in block chain The time of signing at first of the digital signature, the time that is ultimately written of the intelligent contract determines whether to execute the intelligence automatically Energy contract can effectively ensure that the validity of intelligent contract, and then guarantee the safety of the storage of shared resource data and processing.
Shared resource data processing equipment provided in an embodiment of the present invention based on block chain intelligence contract may be implemented The embodiment of the method for offer is stated, concrete function realizes the explanation referred in embodiment of the method, and details are not described herein.
In addition, being deposited on computer readable storage medium the embodiment of the invention provides a kind of computer readable storage medium Computer program is contained, is realized when the computer program is executed by processor described in above embodiments based on block chain intelligence The shared resource data processing method of contract.Wherein, the computer readable storage medium is including but not limited to any kind of Disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random AcceSS Memory, immediately memory), EPROM (EraSable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically EraSable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.It is, storage Equipment includes that can be by equipment (for example, computer, mobile phone) with any medium for the form storage or transmission information that can be read Read-only memory, disk or CD etc..
Computer readable storage medium provided by the invention, it can be achieved that: pass through the association for obtaining the shared resource data The digital signature of side, and intelligent contract is just executed automatically to the shared resource when the digital signature meets prerequisite Data change, and can avoid shared resource data and change in the unwitting situation of affiliated party, the shared money of effective guarantee The right to know of source data affiliated party, 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.May be used also It realizes: obtaining the digital signature of the affiliated party of the shared resource data based on multi-signature mechanism, can avoid shared resource number It is changed according in the unwitting situation of affiliated party, the right to know of effective guarantee shared resource data association significantly improves The safety of the storage of shared resource data and processing;Further at first according to the digital signature being stored in block chain The signature time, the intelligent contract the time that is ultimately written determine whether to execute the intelligent contract automatically, can effectively ensure that intelligence The validity of energy contract, and then guarantee the safety of the storage of shared resource data and processing.
The embodiment of the method for above-mentioned offer may be implemented in computer readable storage medium provided in an embodiment of the present invention, specifically Function realizes the explanation referred in embodiment of the method, and details are not described herein.
In addition, the embodiment of the invention also provides a kind of computer equipments, as shown in Figure 3.Calculating described in the present embodiment Machine equipment can be the equipment such as server, personal computer and the network equipment.The computer equipment include processor 302, The devices such as memory 303, input unit 304 and display unit 305.It will be understood by those skilled in the art that setting shown in Fig. 3 Standby structure devices do not constitute the restriction to all devices, may include components more more or fewer than diagram, or combine certain A little components.Memory 303 can be used for storing computer program 301 and each functional module, and the operation of processor 302 is stored in storage The computer program 301 of device 303, thereby executing the various function application and data processing of equipment.Memory can be memory Reservoir or external memory, or including both built-in storage and external memory.Built-in storage may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash Device or random access memory.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..It is disclosed in this invention to deposit Reservoir includes but is not limited to the memory of these types.Memory disclosed in this invention is only used as example rather than as restriction.
Input unit 304 is used to receive the input of signal, and receives the keyword of user's input.Input unit 304 can Including touch panel and other input equipments.Touch panel collects the touch operation of user on it or nearby and (for example uses Family uses the operations of any suitable object or attachment on touch panel or near touch panel such as finger, stylus), and root According to the corresponding attachment device of preset driven by program;Other input equipments can include but is not limited to physical keyboard, function One of key (such as broadcasting control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.Display unit 305 can be used for showing the information of user's input or be supplied to the information of user and the various menus of computer equipment.Display is single The forms such as liquid crystal display, Organic Light Emitting Diode can be used in member 305.Processor 302 is the control centre of computer equipment, benefit With the various pieces of various interfaces and the entire computer of connection, by running or executing the software being stored in memory 302 Program and/or module, and the data being stored in memory are called, perform various functions and handle data.
As one embodiment, the computer equipment includes: one or more processors 302, memory 303, and one Or multiple computer programs 301, wherein one or more of computer programs 301 are stored in memory 303 and are matched It is set to and is executed by one or more of processors 302, one or more of computer programs 301 are configured to carry out above Shared resource data processing method based on block chain intelligence contract described in any embodiment.
Computer equipment provided by the invention, it can be achieved that: pass through the number for obtaining the affiliated party of the shared resource data Signature, and execute intelligent contract automatically just when the digital signature meets prerequisite to carry out to the shared resource data Change can avoid shared resource data and change in the unwitting situation of affiliated party, and effective guarantee shared resource data are closed The right to know of connection side, and the change details of shared resource data is stored and is recorded in block chain, trackability is strong, effectively avoids Shared resource data are illegally distorted, and the safety of the storage of shared resource data and processing is significantly improved.It can also be achieved: being based on Multi-signature mechanism obtains the digital signature of the affiliated party of the shared resource data, can avoid shared resource data in affiliated party It is changed in unwitting situation, the right to know of effective guarantee shared resource data association significantly improves shared resource The safety of data storage and processing;Further according to be stored in the digital signature in block chain the time of signature at first, The time that is ultimately written of the intelligence contract determines whether to execute the intelligent contract automatically, can effectively ensure that having for intelligent contract Effect property, and then guarantee the safety of the storage of shared resource data and processing.
The embodiment of the method for above-mentioned offer may be implemented in computer equipment provided in an embodiment of the present invention, and concrete function is realized The explanation in embodiment of the method is referred to, details are not described herein.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of shared resource data processing method based on block chain intelligence contract, which comprises the steps of:
Receive 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.
2. the shared resource data processing method according to claim 1 based on block chain intelligence contract, which is characterized in that It is described to judge whether the digital signature meets the prerequisite that the intelligent contract of triggering executes automatically, comprising:
Judge whether the corresponding affiliated party's quantity of the digital signature reaches and triggers the preset threshold value that intelligent contract executes automatically.
3. the shared resource data processing method according to claim 1 or 2 based on block chain intelligence contract, feature exist In, it is described execute the intelligent contract automatically to change to the shared resource data before, further includes:
Sign at first time and the intelligent contract of the digital signature are obtained from the block chain is ultimately written the time;
Be ultimately written the time described in determination signs the time at first earlier than described.
4. the shared resource data processing method according to claim 1 based on block chain intelligence contract, which is characterized in that It is described execute the intelligent contract automatically to change to the shared resource data before, further includes:
The intelligent contract is obtained from the block chain is ultimately written the time;
The time interval that time and current time are ultimately written described in determination is greater than preset time period.
5. the shared resource data processing method according to claim 1 based on block chain intelligence contract, which is characterized in that It is described to judge whether the digital signature meets before triggering the prerequisite that intelligent contract executes automatically, further includes:
According to the shared resource data, intelligent contract is generated;
It will be in the intelligent contract write-in block chain.
6. the shared resource data processing method according to claim 5 based on block chain intelligence contract, which is characterized in that It is described according to the shared resource data, generate intelligent contract, comprising:
Determine the resource type of the shared resource data;
According to the resource type, the service logic of the corresponding shared resource data is determined;
According to the service logic, the directive script list of the corresponding shared resource data is generated, the directive script is arranged Table is as the intelligent contract.
7. the shared resource data processing method according to claim 1 based on block chain intelligence contract, which is characterized in that It is described execute the intelligent contract automatically to change to the shared resource data after, further includes:
Generate the broadcast message of the shared resource data change;
The broadcast message is pushed into the affiliated party.
8. a kind of shared resource data processing equipment based on block chain intelligence contract characterized by comprising
Request receiving module is changed, the change request initiated for receiving the shared resource data for being directed to and being hosted in block chain;
Digital signature obtains module, for responding the change request, obtains the number of the affiliated party of the shared resource data Signature;
Judgment module, for judging whether the digital signature meets the prerequisite for triggering intelligent contract and executing automatically;
Module is changed, for being executed automatically when the digital signature meets the prerequisite that the intelligent contract of triggering executes automatically The intelligence contract is to change the shared resource data.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized that claim 1 to 7 is described in any item and is intelligently closed based on block chain when the computer program is executed by processor Shared resource data processing method about.
10. a kind of computer equipment, characterized in that it comprises:
One or more processors;
Memory;
One or more computer programs, wherein one or more of computer programs are stored in the memory and quilt It is configured to be executed by one or more of processors, one or more of computer programs are configured to: execute according to power Benefit requires 1 to 7 described in any item shared resource data processing methods based on block chain intelligence contract.
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
CN110602544B (en) Video display method and device, electronic equipment and storage medium
CN110380860A (en) Shared resource data processing method and equipment based on block chain intelligence contract
CN110830735B (en) Video generation method and device, computer equipment and storage medium
CN106959879B (en) Control method and electronic equipment
KR20080076919A (en) System, method and computer program product for dynamically enhancing an application executing on a computing device
US11107318B2 (en) Detecting excluded players and related systems and methods
CN110995781A (en) Praise information processing method, device and system
CN111386548A (en) Mask disabling in social VR settings
US10063555B2 (en) Method, apparatus, and system for achieving privilege separation
US9558365B1 (en) Systems and methods for creating and sharing protected content
US11019072B2 (en) Content management based on spatial and temporal information
CN106506443A (en) A kind of information inspection method and device
CN110134480B (en) User trigger operation processing method and device, electronic equipment and storage medium
WO2020249653A1 (en) Dynamically modifying functionality of a real-time communications session
CN110198477A (en) Offline bullet screen interaction method, bullet screen server and interaction system
CN114390011B (en) Message processing method and device and readable storage medium
CN109614778A (en) Dynamic Configuration, gateway and the system of user right
CN111309210B (en) Method, device, terminal and storage medium for executing system functions
CN107466394B (en) Method and system for view activation via hit testing in an asynchronous windowing system
US20200320187A1 (en) Candidate user profiles for fast, isolated operating system use
US12005348B2 (en) Game delivery system
CN114629682B (en) Industrial control network target range allocation method, device, terminal and storage medium
US20220210159A1 (en) Method and apparatus for managing user profile
CN110661789B (en) Address resetting method, device, equipment and computer readable storage medium
CN111723343B (en) Interactive control method and device of electronic equipment 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
GR01 Patent grant
GR01 Patent grant