[go: up one dir, main page]

CN110310205A - A kind of block chain data monitoring method, device, equipment and medium - Google Patents

A kind of block chain data monitoring method, device, equipment and medium Download PDF

Info

Publication number
CN110310205A
CN110310205A CN201910580172.3A CN201910580172A CN110310205A CN 110310205 A CN110310205 A CN 110310205A CN 201910580172 A CN201910580172 A CN 201910580172A CN 110310205 A CN110310205 A CN 110310205A
Authority
CN
China
Prior art keywords
intelligent contract
transactions requests
supervision
account
contract
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
CN201910580172.3A
Other languages
Chinese (zh)
Other versions
CN110310205B (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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910580172.3A priority Critical patent/CN110310205B/en
Publication of CN110310205A publication Critical patent/CN110310205A/en
Application granted granted Critical
Publication of CN110310205B publication Critical patent/CN110310205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/42Confirmation, e.g. check or permission by the legal debtor of payment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of block chain data monitoring method, device, equipment and media.Wherein, this method is applied to block chain node, this method comprises: obtaining the transactions requests initiated based on the intelligent contract of application;The intelligent contract of application for executing the transactions requests is loaded, and loads at least one and supervises intelligent contract;Using the intelligent contract of the supervision and the intelligent contract of application, the transactions requests are handled, with the pre-execution result of the determination transactions requests;According to the supervision intelligence contract executive condition in the pre-execution result of the transactions requests, and it is preset in the permission control strategy for supervising supervision account belonging to intelligent contract in block chain, the verifying that rule are closed in supervision is carried out to the implementation procedure of the transactions requests;The verification result that rule are closed according to the supervision, determines the validity of the transactions requests pre-execution result.Provided technical solution through the embodiment of the present invention can be realized and effectively be supervised to data in block chain.

Description

A kind of block chain data monitoring method, device, equipment and medium
Technical field
The present embodiments relate to block chain data processing technique more particularly to a kind of block chain data monitoring methods, dress It sets, equipment and medium.
Background technique
Block chain is a kind of distributed account book technology, has the characteristics that decentralization, is difficult to tamper with, is open and clear.Block Chain can simply divide into publicly-owned chain, alliance's chain and privately owned chain according to network architecture scale and mode.
Publicly-owned chain refers to anyone the block chain that can be participated in, limit without access.Each Internet user can make For a block chain node, to can be issued on publicly-owned chain, verify, receive transaction data, and has the opportunity to competition and take Must keep accounts power, the generation node as accounting nodes, that is, current block.
But due to the attribute of this opening, the supervision problem of publicly-owned chain is always a bigger challenge.For example, All nodes all have the power to issue trade transactions request, if carrying sensitive data, yellow anti-data in trade transactions request Deng these data can be also stored in block chain.Once these data cochains, are just faced with the problem of being difficult to tamper with.Therefore, When carrying out the design of publicly-owned chain, need to fully consider that rule problem is closed in supervision, to guarantee the safety of data on chain.It is practical On, not only there are such problems for publicly-owned chain, and for some alliance's chains, even privately owned chain, there is also effectively supervised to data The demand of pipe.
Summary of the invention
The embodiment of the present invention provides a kind of block chain data monitoring method, device, equipment and medium, to realize to block chain Middle data are effectively supervised.
In a first aspect, it is applied to block chain node the embodiment of the invention provides a kind of block chain data monitoring method, it should Method includes:
Obtain the transactions requests initiated based on the intelligent contract of application;
The intelligent contract of application for executing the transactions requests is loaded, and loads at least one and supervises intelligent contract;
Using the intelligent contract of the supervision and the intelligent contract of application, the transactions requests are handled, described in determination The pre-execution result of transactions requests;
According to the supervision intelligence contract executive condition in the pre-execution result of the transactions requests, and it is preset in block chain The middle permission control strategy for supervising supervision account belonging to intelligent contract, carries out supervision to the implementation procedure of the transactions requests and closes rule Verifying;
The verification result that rule are closed according to the supervision, determines the validity of the transactions requests pre-execution result.
Second aspect, the embodiment of the invention also provides a kind of block chain data monitoring devices, are configured at block chain node, The device includes:
Transactions requests initiation module, for obtaining the transactions requests initiated based on the intelligent contract of application;
Contract loading module for loading the intelligent contract of application for executing the transactions requests, and loads at least one The intelligent contract of a supervision;
Transactions requests processing module, for being asked to the affairs using the intelligent contract of the supervision and the intelligent contract of application It asks and is handled, with the pre-execution result of the determination transactions requests;
Rule authentication module is closed in supervision, executes for the supervision intelligence contract in the pre-execution result according to the transactions requests Situation, and it is preset in the permission control strategy that supervision account belonging to intelligent contract is supervised in block chain, to the transactions requests Implementation procedure carry out supervision close rule verifying;
Validity determining module determines the transactions requests pre-execution for closing the verification result of rule according to the supervision As a result validity.
The third aspect, the embodiment of the invention also provides a kind of equipment, which includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes a kind of block chain data monitoring method as provided by first aspect embodiment.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes a kind of block chain data monitoring method as provided by first aspect embodiment when the program is executed by processor.
A kind of block chain data monitoring method, device, equipment and medium provided in an embodiment of the present invention, by using execution The supervision intelligence contract of the application intelligent contract and introducing of transactions requests, to the transactions requests initiated based on the intelligent contract of application into Row pre-execution;And according to the supervision intelligence contract executive condition in pre-execution result, and the permission control strategy of account is supervised, The verifying that rule are closed in supervision is carried out to the implementation procedure of transactions requests, to realize to the validity of transactions requests pre-execution result Verifying.This programme supervises intelligent contract by introducing, so that the transactions requests in block chain network are required to by supervision intelligence The Authority Verification of supervision account, is realized with this and is effectively supervised to data in block chain belonging to contract.
Detailed description of the invention
Figure 1A is a kind of structural schematic diagram of intelligent contract account model used by the embodiment of the present invention;
Figure 1B is a kind of structural schematic diagram of contract account used by the embodiment of the present invention;
Fig. 2 is a kind of flow chart of the block chain data monitoring method provided in the embodiment of the present invention one;
Fig. 3 is a kind of flow chart of the block chain data monitoring method provided in the embodiment of the present invention two;
Fig. 4 is a kind of flow chart of the block chain data monitoring method provided in the embodiment of the present invention three;
Fig. 5 is a kind of flow chart of the block chain data monitoring method provided in the embodiment of the present invention four;
Fig. 6 is a kind of structural block diagram of the block chain data monitoring device provided in the embodiment of the present invention five;
Fig. 7 is a kind of structural schematic diagram of the equipment provided in the embodiment of the present invention six.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
In order to clearly describe the technical solution of various embodiments of the present invention, referring first to intelligent contract account shown in figure 1A The structural schematic diagram of contract account shown in the structural schematic diagram and Figure 1B of model, to system account, contract account and user's account Family is described in detail.
System account is the system-level account for corresponding to creation for block catenary system, can generally create when creating block chain It builds, system account binding has the intelligent contract (Kernel contract) in a basis, is to be exclusively used in generating permission control for contract account The intelligent contract of data processed, is generally completed the function management of system level.
Contract account is the contract grade account distributed by the intelligent contract in intelligent contract account model, by needing portion The one or more user accounts for affixing one's name to intelligent contract call the intelligent contract in basis to create, for disposing to intelligent contract And/or management.Contract account can be managed it by basic intelligent contract.
Configuration has permission control data in contract account, for what is authenticated as the account operation to contract account Referring to foundation;The intelligent contract of at least one application is deployed in contract account, for being called for user account, to pass through It executes the intelligent contract of application and realizes various required concrete application functions;Contract account can also be held any in block catenary system Assets when being issued using intelligent contract, for realizing the transfer of account assets when participating in application intelligence contract;Contract account In be also configured with permission control table, the calling of the subprogram (method) in the intelligent contract of application is called for controlling user account Permission.
User account is usually owned by personal or enterprise, for the unique identification as user in block chain.Each use Family account can be assigned asymmetrical public key and private key, can be using public key as the ground of user account by user management private key Location.
In intelligent contract account model, a system account and at least one contract account are generally included.The present invention is each The technical solution of embodiment is based on above-mentioned intelligent contract account model and is realized.
Embodiment one
Fig. 2 is a kind of flow chart of the block chain data monitoring method provided in the embodiment of the present invention one.The present invention is implemented Example is applicable to how effectively to supervise the data of transactions requests in block chain, to guarantee the feelings of the safety of data on chain Condition.The scheme of the embodiment of the present invention is executed by the block chain node in block chain network, may further be block chain network The initiation node of middle transactions requests executes, which can be normal block chain node, be also possible to lightweight node.Its In, lightweight node refers to the deployment data for being deployed with block chain, such as intelligent contract, common recognition mechanism, but not stored or deposit The block chain network node for storing up Partial Block Data and Transaction Information, can participate in the transactions requests interactive process of block chain, gently Magnitude node can be generally deployed in terminal device.
This method can be executed by block chain data monitoring device, which matches by software and or hardware realization, and specifically It is placed in the calculating equipment for carrying block chain node.Referring to fig. 2, this method can specifically include:
S210 obtains the transactions requests initiated based on the intelligent contract of application.
It include at least one subprogram using intelligent contract as shown in Figure 1B in the present embodiment, for being answered by calling Any required function completed such as corresponding application function, such as the analysis of money transfer transactions, data is realized with the subprogram of intelligent contract Energy.
Optionally, the transactions requests that the available local of localized nodes is initiated based on the intelligent contract of application.For example, the machine section Point clicks application button event detecting a certain user account on localized nodes, it is determined that there is the user account application to need It asks, localized nodes can give the intelligent contract showing interface of application corresponding to application demand to the user account at this time, later should User account can initiate transactions requests by the intelligent contract interface of the application;And then localized nodes can obtain user account at it The transactions requests that ground is initiated based on the intelligent contract of application.
It is closed due in addition to being deployed with using intelligent contract, being also deployed with basic intelligence in the block catenary system of localized nodes About.In order to carry out area to the transactions requests initiated based on the intelligent contract of application and the transactions requests initiated based on basic intelligent contract Point, further, for example specific identifier of identification information can be added in the transactions requests initiated based on the intelligent contract of application Or intelligent contract title of application etc..
S220 loads the intelligent contract of application for executing transactions requests, and loads at least one and supervise intelligent contract.
In the present embodiment, supervising intelligent contract is supervision account in block chain network based on the basis in block chain network What intelligent contract was disposed, for executing corresponding monitoring function to transactions requests.Wherein supervision account is based on block link network Contract account made of the intelligent contract deployment in basis in network.Optionally, a supervision account can be belonging one or more Supervise unit, that is to say, that at least one supervision account (i.e. one is deployed with by least one supervision unit in block chain network Supervision unit can dispose one or more supervision accounts or multiple supervision units dispose one or more supervision accounts together Family), wherein supervision unit for example can be public security system, network supervision center and yellow anticentre etc..
Optionally, a supervision account can be deployed at least one and supervise intelligent contract, and the intelligent contract of each supervision is used for Execute corresponding monitoring function.It may include at least one of following that intelligent contract is supervised in the present embodiment: real name contract, using intelligence Energy contract closes contract, filtering sensitive words contract, initiates user identity contract and yellow anti-contract.Wherein, real name contract can be used for Whether the initiation account of verifying transactions requests carried out real-name authentication;Closing contract using intelligent contract can be used for transactions requests Whether the intelligent contract of the application called, which is closed, is verified;Filtering sensitive words contract, which can be used to identify in transactions requests, to be carried Sensitive vocabulary and filtered;Initiate user identity contract can be used for the initiation account to transactions requests whether belong to preset it is black List or white list are verified;Yellow anti-contract can be used to identify yellow anti-data (such as yellow picture whether is carried in transactions requests Or text etc.).
In the present embodiment, specific execution logic can be had by supervising in intelligent contract, as filtering sensitive words contract can pass through Code identification sensitive word is filtered;Application can be identified by the blacklist or white list of program by closing contract using intelligent contract Rogue program in intelligent contract is closed.In addition, logic can also not executed specifically by supervising in intelligent contract, that is, hold Capable code is sky, and specific data audit can be executed by supervision unit, can such as send the data to yellow anticentre and carry out Yellow picture and the identification of text etc..
Specifically, localized nodes need to pass through load after obtaining the transactions requests initiated based on the intelligent contract of application The intelligent contract of code form is run, to handle transactions requests.It can load for executing transactions requests Using intelligent contract, and loads at least one and supervise intelligent contract.Optionally, it is closed for executing the application intelligence of transactions requests Intelligent contract loaded in parallel, or sequence load etc. can be about supervised at least one, the present embodiment does not limit this.
S230 is handled transactions requests, using intelligent contract and the intelligent contract of application is supervised to determine transactions requests Pre-execution result.
In the present embodiment, pre-execution result can be understood as localized nodes and be closed using the intelligent contract of supervision and application intelligence About, pre-execution is carried out to the transactions requests based on the intelligent contract of application locally initiated and operates generated result.Optionally, in advance May include in implementing result during calling the intelligent contract of application to execute transactions requests needed for read data (i.e. reading data set), Write-in data (writing data set) needed for transactions requests have executed and the intelligent contract executive condition of supervision;It can also include thing Signing messages needed for needing the resources such as the interface called and the transactions requests to execute in business request implementation procedure such as initiates user The authorized signature etc. of offer.
Optionally, it in the intelligent contract of application of the load for executing transactions requests, and loads at least one supervision intelligence and closes After about, the intelligent contract of supervision can be used and the intelligent contract of application is parallel handled transactions requests, it can also be according to setting in advance Fixed processing sequence handles transactions requests.
It should be noted that the intelligent contract of application is usually called to execute transactions requests, the resource for needing to occupy is relatively more, because This improves the treatment effeciency of transactions requests to reduce the data operation quantity of transactions requests treatment process, in the present embodiment At least one of load supervises application intelligent contract of the execution sequence prior to load of intelligent contract, and concrete condition will be following It describes in detail in embodiment.
S240 according to the supervision intelligence contract executive condition in the pre-execution result of transactions requests, and is preset in block The permission control strategy that supervision account belonging to intelligent contract is supervised in chain carries out supervision to the implementation procedure of transactions requests and closes rule Verifying.
Optionally, each supervision account is deployed with corresponding permission by basic intelligent contract and controls data.Wherein, permission Control data may include member account's set and permission control strategy.At least one user's account is stored in member account's set The account address at family, for limiting the user account for having administration authority to supervision account;Preferably, it is deposited in member account's set Storage has the account address of the user account of administration authority.Permission control strategy, which is used to limit, operates plan to the management of supervision account It slightly, is supervision specified when supervising account creation by the founder of supervision account or the owner's customized determination as needed The attribute of account.
Further, the intelligent contract executive condition of different supervision may be provided with different permission control strategies.For example, if Supervising intelligent contract executive condition is to be verified as a result, corresponding, and permission control strategy can appoint to supervise in intelligent contract The verifying of meaning one does not pass through, then does not use and execute transactions requests using intelligent contract.It is if supervising intelligent contract executive condition The called mark of intelligent contract is supervised, corresponding, permission control strategy can be to have finger in the pre-execution result of transactions requests The endorsement signature for determining account, can just call the supervision intelligence contract.
It include supervising intelligent contract executive condition, and then directly parse pre-execution knot in the present embodiment, in pre-execution result Fruit can obtain the intelligent contract executive condition of supervision from pre-execution result;Later can according to supervising intelligent contract executive condition, And the permission control strategy of supervision account belonging to intelligent contract is supervised in block chain, the implementation procedure of transactions requests is supervised Pipe closes the verifying of rule.
For example, if supervise intelligent contract executive condition be verified as a result, if can be obtained according to from pre-execution result Take the intelligent contract of each supervision is verified result;Then determine whether to accord with according to each result that is verified for supervising intelligent contract Permission control strategy is closed, the verifying that rule are closed in supervision is carried out to transactions requests implementation procedure to realize.
It should be noted that intelligent contract is supervised by introducing in the present embodiment, so that the affairs in block chain network are asked The verifying being required to by supervising the permission control strategy of supervision account belonging to intelligent contract is asked, and then realizes supervision unit pair Effective supervision of data in block chain.
S250 closes the verification result of rule according to supervision, determines the validity of transactions requests pre-execution result.
In the present embodiment, if the verification result that rule are closed in supervision is to pass through, it can determine that transactions requests pre-execution result has Effect;If the verification result that rule are closed in supervision is that verifying does not pass through, it can determine that transactions requests pre-execution result is invalid.
The authenticity and/or validity of transactions requests are tested for the ease of other block chain nodes in block chain network It demonstrate,proves, can also include: that pre-execution result is encapsulated into transactions requests after the validity for determining the transactions requests implementing result In, it is transmitted into block chain network, to request other block chain node verification transactions requests.
Specifically, pre-execution result can be encapsulated into affairs after localized nodes determine the validity of transactions requests and asked In asking, and it is transmitted to block chain network.After other block chain nodes in block chain network receive transactions requests, can first it adopt The verifying that rule are closed in supervision is carried out with implementation procedure of the S240 to transactions requests, then calls the intelligent contract of application to execute affairs and asks It asks, to obtain verifying implementing result, and is matched with the pre-execution result in acquired transactions requests;Further, may be used With by verify implementing result in reading data set and write data set, respectively and in the pre-execution result in acquired transactions requests Reading data set and write data set and matched;If successful match, it is determined that transactions requests pre-execution result is effective;Later, may be used It stores pre-execution result as Transaction Information into block.
Further, other block chain nodes for getting the transactions requests including pre-execution result, which can default the affairs, asks The verification result that rule are closed in the supervision for the initiation node asked is to pass through, and then can directly carry out above-mentioned to the authenticated of pre-execution result Journey.
Optionally, if localized nodes are that current block generates node, after the validity for determining transactions requests implementing result, Transactions requests including pre-execution result can also be stored as Transaction Information into block;It later can be by the encrypted communication To block chain network, to request other block chain node verifications to store.
Technical solution provided in an embodiment of the present invention, by using the intelligent contract of the application for executing transactions requests and introducing Intelligent contract is supervised, pre-execution is carried out to the transactions requests initiated based on the intelligent contract of application;And according in pre-execution result Intelligent contract executive condition, and the permission control strategy of supervision account are supervised, the implementation procedure of transactions requests is supervised The verifying of rule is closed, to realize the verifying to the validity of transactions requests pre-execution result.This programme is by introducing supervision intelligence Contract, so that the transactions requests in block chain network are required to supervise the Authority Verification of account belonging to intelligent contract by supervising, It is realized with this and data in block chain is effectively supervised.
Embodiment two
Fig. 3 is a kind of flow chart of the block chain data monitoring method provided in the embodiment of the present invention two.The present embodiment exists On the basis of above-described embodiment, further to the supervision intelligence contract executive condition in the pre-execution result according to transactions requests, And it is preset in the permission control strategy that supervision account belonging to intelligent contract is supervised in block chain, to the implementation procedure of transactions requests The verifying for carrying out supervision conjunction rule is explained.Referring to Fig. 3, this method be can specifically include:
S310 obtains the transactions requests initiated based on the intelligent contract of application.
S320 loads the intelligent contract of application for executing transactions requests, and loads at least one and supervise intelligent contract.
S330 is handled transactions requests, using intelligent contract and the intelligent contract of application is supervised to determine transactions requests Pre-execution result.
S340, the intelligent contract executive condition of the supervision obtained from pre-execution result are the called mark for supervising intelligent contract Will executes verification result.
In the present embodiment, for supervising intelligent contract without such as yellow anti-contract of the specific supervision intelligence contract for executing logic Executive condition can be the called mark of the intelligent contract of supervision.Optionally, called mark, which can be, shows the anti-contract of the Huang The mark being called.For will be recorded in pre-execution result to the processing result of transactions requests, unit pair is supervised with request The supervision intelligence contract that processing result is verified, such as filtering sensitive words contract, supervising intelligent contract executive condition can be with To execute verification result.
S350 verifies affairs according to the permission control strategy for supervising account belonging to intelligent contract is supervised in preset block chain The implementation procedure of request is to the calling for supervising intelligent contract or calls whether the execution verification result generated meets permission control plan Slightly.
Illustratively, permission control strategy may include it is following at least one: 1) threshold strategies, for according to the authentication is passed The sum of the weighted value of member account determine whole the authentication is passed result with setting by the relationship between threshold value, wherein at The weighted value of each member account is when defining member's account aggregation in member's account aggregation, by the founder or the owner of supervision account It is allocated;2) endorsement strategy determines whole the authentication is passed knot for the quantity or ratio according to the member account that the authentication is passed Fruit;3) fixed account strategy determines whole for the relationship between the interlock account and default fixed account according to account operation Result that the authentication is passed.Wherein presetting fixed account can be one or more accounts in preassigned member account set;It closes Joining account can be to preset the derivative account of fixed account or by derivative account in member account's set;Further, it presets solid The derivative account for determining account can be understood as the sub- account of default fixed account, inherit at least partly behaviour for having default fixed account Make permission;The parent account that can be understood as default fixed account by derivative account of default fixed account, preset fixed account after It holds by at least partly operating right of derivative account.
In the present embodiment, during the intelligent contract of application executes transactions requests, user account can request other use Family account verify to pre-execution result and feedback signature is endorsed, and obtained signature is added to the setting word of transactions requests Duan Zhong.
Illustratively, it according to the permission control strategy for supervising account belonging to intelligent contract is supervised in preset block chain, verifies The implementation procedure of transactions requests is to the calling for supervising intelligent contract or calls whether the execution verification result generated meets the power Limit control strategy may is that if permission control strategy is fixed account strategy, obtain from the pre-execution result of transactions requests Take the title of signature endorsement account;Determine whether to meet fixed account strategy according to the title of signature endorsement account, to verify thing The implementation procedure requested of being engaged in is to the calling for supervising intelligent contract or calls whether the execution verification result generated meets permission control Strategy;Wherein, signature endorsement account be during the pre-execution of transactions requests be requested pre-execution result is verified after And the account of feedback signature endorsement.
Specifically, can be the title for obtaining signature endorsement account from the pre-execution result of transactions requests, and will acquire Each signature endorsement account title gather with member account in the title of default fixed account match;If matching at Function, it is determined that the implementation procedure of transactions requests is to the calling for supervising intelligent contract or the execution verification result generated is called to meet power Limit control strategy;Otherwise permission control strategy is not met.
Or can also be the title that signature endorsement account is obtained from the pre-execution result of transactions requests, and will acquire The title of each signature endorsement account is matched with the title of the interlock account of the default fixed account in member account's set;If Successful match, it is determined that the implementation procedure of transactions requests is to the calling for supervising intelligent contract or calls the execution verification result generated Meet permission control strategy;Otherwise permission control strategy is not met.
Optionally, according to the permission control strategy for supervising account belonging to intelligent contract is supervised in preset block chain, thing is verified The implementation procedure requested of being engaged in is to the calling for supervising intelligent contract or calls whether the execution verification result generated meets permission control If strategy may also is that permission control strategy is threshold strategies, signature back is obtained from the pre-execution result of transactions requests The title of book account, the title of each signature endorsement account and the title of the member account in member account's set that will acquire carry out Search matching;Determine the sum of the weighted value of each signature endorsement account of successful match;If the sum of weighted value, which is greater than setting, passes through threshold Value, it is determined that the implementation procedure of transactions requests is to the calling for supervising intelligent contract or the execution verification result generated is called to meet power Limit control strategy;Otherwise permission control strategy is not met.
Illustratively, it according to the permission control strategy for supervising account belonging to intelligent contract is supervised in preset block chain, verifies The implementation procedure of transactions requests is to the calling for supervising intelligent contract or calls whether the execution verification result generated meets the power Limit control strategy may also is that if permission control strategy is endorsement strategy, obtain from the pre-execution result of transactions requests The title of signature endorsement account, the title for each signature endorsement account that will acquire and the name of the member account in member account's set Title carries out lookup matching;Determine the quantity or ratio of each signature endorsement account;If the number of each signature endorsement account of successful match The ratio that amount is greater than each signature endorsement account of setting amount threshold or successful match is greater than setting ratio threshold value, it is determined that The implementation procedure of transactions requests is to the calling for supervising intelligent contract or the execution verification result generated is called to meet permission control plan Slightly;Otherwise permission control strategy is not met.
It should be noted that being to supervise called mark or the execution of intelligent contract for supervising intelligent contract executive condition The supervision intelligence contract of verification result is needed such as without the specific anti-contract of Huang for executing logic by the intelligent contract of mandatory requirement application Obtain the signature endorsement of destiny account, also will complex verification process to transactions requests turn by destiny account such as Huang Fanzhong The heart also can avoid the intelligent contract code band of adjustment supervision and come while can be achieved effectively to supervise data in block chain Troublesome operation.
S360, if meeting permission control strategy, it is determined that the verification result that rule are closed in supervision is to pass through.
S370 closes the verification result of rule according to supervision, determines the validity of transactions requests pre-execution result.
Technical solution provided in an embodiment of the present invention, the supervision intelligence contract executive condition in pre-execution result are supervision The called mark of intelligent contract or in the case where executing verification result provides a kind of foundation and is preset in block chain and supervises intelligence The permission control strategy of supervision account belonging to energy contract carries out the mode that the verifying advised is closed in supervision to the implementation procedure of transactions requests, And then the verification result of rule is closed based on supervision, realize the verifying to the validity of transactions requests pre-execution result.This programme is can It realizes and effectively supervises simultaneously to data progress in block chain, it is perfect that transactions requests are carried out when permission control strategy is verified Authentication mechanism.
Embodiment three
Fig. 4 is a kind of flow chart of the block chain data monitoring method provided in the embodiment of the present invention three.The present embodiment exists On the basis of above-described embodiment, closed at least one execution sequence for supervising intelligent contract of load prior to the application intelligence of load About the case where, is handled transactions requests, further to using intelligent contract and the intelligent contract of application is supervised to determine affairs The pre-execution result of request is explained.Referring to fig. 4, this method can specifically include:
S410 obtains the transactions requests initiated based on the intelligent contract of application.
S420 loads the intelligent contract of application for executing transactions requests, and loads at least one and supervise intelligent contract.
S430 is tested using the intelligent contract of application that intelligent contract calls transactions requests and transactions requests is supervised Card;If verifying does not pass through, S440 is executed;If being verified, S450 is executed.
It should be noted that the intelligent contract of application is usually called to execute transactions requests, the resource for needing to occupy is relatively more, because This present embodiment preferentially can carry out verification processing to transactions requests using the intelligent contract of at least one supervision of load, then foundation Verification processing is as a result, handle transactions requests using the intelligent contract of application.Optionally, as long as at least one supervision intelligence is closed The verifying of any one in about does not pass through, then can need not waste of resource execute a transactions requests.
Illustratively, application intelligence contract progress transactions requests and transactions requests called using intelligent contract is supervised Verifying may include at least one of following:
1) whether default blacklist or default white list are belonged to the initiation account of transactions requests using the intelligent contract of supervision It is verified;
Optionally, the blacklist for forbidding initiating the user account of transactions requests in block chain network can be preset, or Person allows to initiate the white list of the user account of transactions requests in block chain network.And then in load for executing transactions requests The intelligent contract of application, and load after at least one supervises intelligent contract, can be used using the initiation supervised in intelligent contract Family identity contract whether belongs to default blacklist to the initiation account of transactions requests or default white list is verified.For example, can To match the initiation account of transactions requests with the blacklist of preset user account, if it fails to match, it is determined that verifying Pass through;If successful match, it can determine that verifying does not pass through.
2) whether the intelligent contract of application called using the intelligent contract of supervision to transactions requests, which is closed, is verified;
Optionally, the blacklist for forbidding calling the intelligent contract of application can be preset, or setting allows to call using intelligence The white list of energy contract;Further, using the name that can be stored in the blacklist or white list of intelligent contract using intelligent contract Claim or identify etc..And then in the intelligent contract of application of the load for executing transactions requests, and loads at least one supervision intelligence and close After about, the application intelligence that contract calls transactions requests can be closed using the intelligent contract of the application supervised in intelligent contract Whether contract, which is closed, is verified.For example, the title of the intelligent contract of the application that can be called according to transactions requests, from application It is inquired in the white list of intelligent contract, if can inquire, it is determined that be verified;Otherwise, it determines verifying does not pass through.
3) it is verified using the intelligent contract of supervision to whether the initiation account of transactions requests carried out real-name authentication.
Optionally, the present embodiment can be to be arranged specific identifier by the user account of real-name authentication, to be different from not By the user account of real-name authentication.
Specifically, in the intelligent contract of application of the load for executing transactions requests, and load at least one supervision intelligence and close After about, whether real-name authentication can be carried out to the initiation account of transactions requests using the real name contract supervised in intelligent contract It is verified.For example, can identify whether the initiation account of transactions requests has specific identifier, if so, determining verifying Pass through;Otherwise, it determines verifying does not pass through.
Further, it is also possible to carry out verification processing etc. to transactions requests to supervise intelligent contract using other.
S440 forbids executing the intelligent contract processing transactions requests of application.
In the present embodiment, if verifying does not pass through, forbid executing the intelligent contract processing transactions requests of application, and then can determine Transactions requests are invalid.
S450 executes transactions requests using the intelligent contract of application, to determine the pre-execution result of transactions requests.
S460 according to the supervision intelligence contract executive condition in the pre-execution result of transactions requests, and is preset in block The permission control strategy that supervision account belonging to intelligent contract is supervised in chain carries out supervision to the implementation procedure of transactions requests and closes rule Verifying.
S470 closes the verification result of rule according to supervision, determines the validity of transactions requests pre-execution result.
Technical solution provided in an embodiment of the present invention, by preferentially supervising intelligent contract to thing using at least one of load It is engaged in requesting to carry out verification processing, then transactions requests is handled using intelligence contract as a result, using according to verification processing, it can Reduce the unnecessary wasting of resources.
Example IV
Fig. 5 is a kind of flow chart of the block chain data monitoring method provided in the embodiment of the present invention four.The present embodiment exists It is further to optimize on the basis of above-described embodiment.Referring to Fig. 5, this method be can specifically include:
S510 obtains the transactions requests initiated based on the intelligent contract of application.
S520 loads the intelligent contract of application for executing transactions requests, and loads at least one and supervise intelligent contract.
S530 is handled transactions requests, using intelligent contract and the intelligent contract of application is supervised to determine transactions requests Pre-execution result.
S540, according to pre-execution as a result, and the intelligent contract inventory of the corresponding supervision of the block chain disposed in advance, verify thing Whether the intelligent contract of the supervision that the implementation procedure of business request is called meets the requirement for supervising intelligent contract inventory;If meeting, Execute S550;If not meeting, it is determined that transactions requests pre-execution result is invalid.
In the present embodiment, supervising in intelligent contract inventory includes executing a transactions requests to need all supervision intelligence to be loaded The title of energy contract.Optionally, supervising intelligent contract inventory can be in creation block chain Shi Jianli, and is deployed in wound generation block.
Optionally, the requirement for supervising intelligent contract inventory, which can be one transactions requests of execution, needs supervision intelligence to be loaded The quantity of contract, which need to meet setting amount threshold or ratio, need to meet setting ratio threshold value.It may include pair in pre-execution result The title of the intelligent contract of the supervision that transactions requests are handled.And then according to pre-execution as a result, and the block chain disposed in advance The intelligent contract inventory of corresponding supervision, verifies whether the supervision intelligence contract that the implementation procedures of transactions requests is called meets supervision The requirement of intelligent contract inventory may is that obtains the intelligent contract of supervision handled transactions requests from pre-execution result The title of title, the intelligent contract of supervision that will acquire is matched with the title supervised in intelligent contract inventory, determine match at The quantity or ratio of the intelligent contract of the supervision of function;If the quantity of the intelligent contract of the supervision of successful match is greater than setting amount threshold, Or the ratio of the intelligent contract of supervision of successful match is greater than setting ratio threshold value, it is determined that the implementation procedure of transactions requests is adjusted It supervises intelligent contract and meets the requirement for supervising intelligent contract inventory.
It is clear that the requirement of the intelligent contract inventory of supervision can also be that one transactions requests of execution need to load the intelligent contract of supervision All supervision intelligence contracts etc. in list.And then according to pre-execution as a result, and the corresponding supervision intelligence of block chain disposed in advance Can contract inventory, verify whether the supervision intelligence contract that the implementation procedures of transactions requests is called meets the intelligent contract inventory of supervision Requirement may is that the title that the intelligent contract of supervision handled transactions requests is obtained from pre-execution result, and count Whether the title of the intelligent contract of acquired supervision includes the titles for supervising all intelligent contracts of supervision in intelligent contract inventory, if It is, it is determined that the intelligent contract of the supervision that the implementation procedure of transactions requests is called meets the requirement for supervising intelligent contract inventory.
In order to realize effective supervision to block chain data, the present embodiment preferably uses the second way to verify and determines affairs The intelligent contract of the supervision that the implementation procedure of request is called meets the requirement for supervising intelligent contract inventory.
S550 according to the supervision intelligence contract executive condition in the pre-execution result of transactions requests, and is preset in block The permission control strategy that supervision account belonging to intelligent contract is supervised in chain carries out supervision to the implementation procedure of transactions requests and closes rule Verifying.
It should be noted that the present embodiment first carries out pre-execution result to supervise intelligent conjunction after generating pre-execution result Verifying about;If supervising intelligent contract to be verified, the verifying of permission control strategy is carried out;And then it is controlled according to permission The verification result of strategy, determines that the pre-execution result of transactions requests is effective;When at least one above-mentioned restrictive condition is unsatisfactory for, really The pre-execution result for determining transactions requests is invalid.
S560 closes the verification result of rule according to supervision, determines the validity of transactions requests pre-execution result.
Technical solution provided in an embodiment of the present invention carries out supervision intelligence by the pre-execution result sequence to transactions requests The verifying of contract and permission control strategy, it is perfect that the authentication mechanism for closing rule is supervised to transactions requests implementation procedure, and then realize Data in block chain are effectively supervised.
Embodiment five
Fig. 6 is a kind of structural block diagram of the block chain data monitoring device provided in the embodiment of the present invention five, which can It is configured in block chain node, which can be performed block chain data monitoring method provided by any embodiment of the invention, tool The standby corresponding functional module of execution method and beneficial effect.As shown in fig. 6, the apparatus may include:
Transactions requests initiation module 610, for obtaining the transactions requests initiated based on the intelligent contract of application;
Contract loading module 620 for loading the intelligent contract of application for executing transactions requests, and loads at least one Supervise intelligent contract;
Transactions requests processing module 630, for being carried out to transactions requests using intelligent contract and the intelligent contract of application is supervised Processing, to determine the pre-execution result of transactions requests;
Rule authentication module 640 is closed in supervision, executes for the supervision intelligence contract in the pre-execution result according to transactions requests Situation, and it is preset in the permission control strategy that supervision account belonging to intelligent contract is supervised in block chain, transactions requests are held Row process carries out the verifying that rule are closed in supervision;
Validity determining module 650 determines transactions requests pre-execution result for closing the verification result of rule according to supervision Validity.
Technical solution provided in an embodiment of the present invention, by using the intelligent contract of the application for executing transactions requests and introducing Intelligent contract is supervised, pre-execution is carried out to the transactions requests initiated based on the intelligent contract of application;And according in pre-execution result Intelligent contract executive condition, and the permission control strategy of supervision account are supervised, the implementation procedure of transactions requests is supervised The verifying of rule is closed, to realize the verifying to the validity of transactions requests pre-execution result.This programme is by introducing supervision intelligence Contract, so that the transactions requests in block chain network are required to supervise the Authority Verification of account belonging to intelligent contract by supervising, It is realized with this and data in block chain is effectively supervised.
Illustratively, in the present embodiment, at least one supervision is deployed with by least one supervision unit in block chain network Account, supervision account are based on contract account made of the intelligent contract deployment in basis in block chain network, each supervision account Corresponding permission, which is deployed with, by basic intelligent contract controls data;It is deployed in supervision account based on the intelligent contract in the basis At least one supervises intelligent contract.
Illustratively, permission control data bag includes: member account's set and permission control strategy.
Illustratively, permission control strategy include it is following at least one:
Threshold strategies, for passing through between threshold value with setting according to the sum of the weighted value of member account that the authentication is passed Relationship determines whole the authentication is passed result;
Endorsement strategy determines whole the authentication is passed result for the quantity or ratio according to the member account that the authentication is passed;
Fixed account strategy is determined for the relationship between the interlock account and default fixed account according to account operation Result that integrally the authentication is passed.
Illustratively, supervision conjunction rule authentication module 640 may include:
Mark/result determination unit, the supervision intelligence contract executive condition for obtaining from pre-execution result are supervision The called mark of intelligent contract executes verification result;
Rule authentication unit is closed in supervision, for supervising the permission control of account according to belonging to the intelligent contract of supervision in preset block chain Whether system strategy verifies execution verification result that the implementation procedures of transactions requests generates the calling for supervising intelligent contract or call Meet permission control strategy;
Verification result determination unit, if for meeting permission control strategy, it is determined that supervision closes the verification result advised and is Pass through.
Illustratively, supervision is closed rule authentication unit and specifically be can be used for:
If permission control strategy is fixed account strategy, signature endorsement is obtained from the pre-execution result of transactions requests The title of account;
Determine whether to meet fixed account strategy according to the title of signature endorsement account, to verify the execution of transactions requests Journey is to the calling for supervising intelligent contract or calls whether the execution verification result generated meets permission control strategy;
Wherein, signature endorsement account is to be requested to verify pre-execution result during the pre-execution of transactions requests The account of feedback signature endorsement afterwards.
Illustratively, what at least one of load supervised intelligent contract executes sequence, prior to the application intelligence contract of load.
Illustratively, transactions requests processing module 630 may include:
Transactions requests authentication unit, the application for being called using intelligent contract is supervised to transactions requests and transactions requests Intelligent contract is verified;
Transactions requests execution unit, for if the verification passes, then transactions requests being executed using the intelligent contract of application, with true Determine the pre-execution result of transactions requests;
Forbid execution unit, if do not passed through for verifying, forbids executing the intelligent contract processing transactions requests of application.
Illustratively, transactions requests authentication unit specifically can be used for executing at least one of following:
Using supervise intelligent contract to the initiation account of transactions requests whether belong to default blacklist or default white list into Row verifying;
It is verified to what transactions requests were called using whether intelligent contract is closed using intelligent contract is supervised.
Illustratively, above-mentioned apparatus can also include:
Intelligent contract authentication module is supervised, for using the intelligent contract of supervision and the intelligent contract of application, to transactions requests It is handled, after the pre-execution result to determine transactions requests, according to pre-execution as a result, and the block chain pair disposed in advance The supervision intelligence contract inventory answered, verifies whether the supervision intelligence contract that the implementation procedures of transactions requests is called meets supervision intelligence The requirement of energy contract inventory.
Illustratively, it includes at least one of following for supervising intelligent contract: real name contract, closed using intelligent contract contract, Filtering sensitive words contract initiates user identity contract and yellow anti-contract.
Illustratively, above-mentioned apparatus can also include:
Transmission module, for after the validity for determining transactions requests implementing result, pre-execution result to be encapsulated into thing In business request, transmitted into block chain network, to request other block chain node verification transactions requests;Or
Memory module, for after the validity for determining transactions requests implementing result, by the thing including pre-execution result Business request is stored as Transaction Information into block.
Embodiment six
Fig. 7 is a kind of structural schematic diagram of the equipment provided in the embodiment of the present invention seven.Fig. 7, which is shown, to be suitable for being used to realizing The block diagram of the example devices 12 of embodiment of the present invention.The equipment 12 that Fig. 7 is shown is only an example, should not be to the present invention The function and use scope of embodiment bring any restrictions.12 typical case of equipment can be the meter for undertaking block chain network nodal function Calculate equipment.
As shown in fig. 7, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited In one or more processor or processing unit 16, memory 28, different system components (including memory 28 He is connected Processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
Memory 28 may include the computer system readable media of form of volatile memory, such as random access memory Device (RAM) 30 and/or cache memory 32.Equipment 12 may further include other removable/nonremovable, volatile Property/nonvolatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing immovable, non- Volatibility magnetic medium (Fig. 7 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 7, can provide for can The disc driver of mobile non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable anonvolatile optical disk (such as CD- ROM, DVD-ROM or other optical mediums) read-write CD drive.In these cases, each driver can pass through one A or multiple data media interfaces are connected with bus 18.Memory 28 may include at least one program product, which produces Product have one group of (for example, at least one) program module, these program modules are configured to perform the function of various embodiments of the present invention Energy.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual Execute the function and/or method in embodiment described in the invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment/terminal/server 12 can also pass through Network adaptation Device 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) logical Letter.As shown, network adapter 20 is communicated by bus 18 with other modules of equipment 12.Although should be understood that in figure not Show, can with bonding apparatus 12 use other hardware and/or software module, including but not limited to: microcode, device driver, Redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
The program that processing unit 16 is stored in memory 28 by operation, thereby executing various function application and data Processing, such as realize block chain data monitoring method provided by the embodiment of the present invention.
Embodiment seven
The embodiment of the present invention seven additionally provides a kind of computer readable storage medium, be stored thereon with computer program (or Referred to as computer executable instructions), for executing a kind of block chain data monitoring method, the party when which is executed by processor Method includes:
Obtain the transactions requests initiated based on the intelligent contract of application;
The intelligent contract of application for executing transactions requests is loaded, and loads at least one and supervises intelligent contract;
Using intelligent contract and the intelligent contract of application is supervised, transactions requests are handled, to determine the pre- of transactions requests Implementing result;
According to the supervision intelligence contract executive condition in the pre-execution result of transactions requests, and it is preset in block chain and supervises The permission control strategy of supervision account belonging to pipe intelligence contract, carries out the verifying that rule are closed in supervision to the implementation procedure of transactions requests;
The verification result that rule are closed according to supervision, determines the validity of transactions requests pre-execution result.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (15)

1. a kind of block chain data monitoring method, which is characterized in that be applied to block chain node, which comprises
Obtain the transactions requests initiated based on the intelligent contract of application;
The intelligent contract of application for executing the transactions requests is loaded, and loads at least one and supervises intelligent contract;
Using the intelligent contract of the supervision and the intelligent contract of application, the transactions requests are handled, with the determination affairs The pre-execution result of request;
According to the supervision intelligence contract executive condition in the pre-execution result of the transactions requests, and it is preset in block chain and supervises The permission control strategy of supervision account belonging to pipe intelligence contract, carries out supervision to the implementation procedure of the transactions requests and closes testing for rule Card;
The verification result that rule are closed according to the supervision, determines the validity of the transactions requests pre-execution result.
2. the method according to claim 1, wherein being deployed in block chain network by least one supervision unit At least one supervision account, the account of supervising is based on conjunction made of the intelligent contract deployment in basis in the block chain network About account, each supervision account are deployed with corresponding permission by the intelligent contract in the basis and control data;The supervision account In at least one be deployed with based on the intelligent contract in basis supervise intelligent contract.
3. according to the method described in claim 2, it is characterized in that, the permission control data bag includes: member account set and Permission control strategy.
4. according to the method described in claim 3, it is characterized in that, the permission control strategy include it is following at least one:
Threshold strategies, for passing through the relationship between threshold value with setting according to the sum of the weighted value of member account that the authentication is passed, Determine whole the authentication is passed result;
Endorsement strategy determines whole the authentication is passed result for the quantity or ratio according to the member account that the authentication is passed;
Fixed account strategy determines whole for the relationship between the interlock account and default fixed account according to account operation Result that the authentication is passed.
5. the method according to claim 1, wherein according to the supervision in the pre-execution result of the transactions requests Intelligent contract executive condition, and it is preset in the permission control strategy that supervision account belonging to intelligent contract is supervised in block chain, it is right The implementation procedure of the transactions requests carries out the verifying that rule are closed in supervision, comprising:
The intelligent contract executive condition of the supervision obtained from the pre-execution result is the called mark for supervising intelligent contract Will executes verification result;
According to the permission control strategy for supervising account belonging to intelligent contract is supervised in preset block chain, the transactions requests are verified Implementation procedure is to the calling for supervising intelligent contract or calls whether the execution verification result generated meets the permission control Strategy;
If meeting the permission control strategy, it is determined that the verification result that rule are closed in supervision is to pass through.
6. according to the method described in claim 5, it is characterized in that, being supervised belonging to intelligent contract according to being supervised in preset block chain The permission control strategy of account verifies the implementation procedure of the transactions requests to the calling for supervising intelligent contract or calls production Whether raw execution verification result meets the permission control strategy, comprising:
If the permission control strategy is fixed account strategy, signature is obtained from the pre-execution result of the transactions requests The title for account of endorsing;
Determine whether to meet the fixed account strategy according to the title of the signature endorsement account, to verify the transactions requests Implementation procedure to the calling for supervising intelligent contract or call whether the execution verification result generated meets the permission control System strategy;
Wherein, the signature endorsement account is to be requested to carry out pre-execution result during the pre-execution of the transactions requests The account that feedback signature is endorsed after verifying.
7. the method according to claim 1, wherein the execution that at least one of load supervises intelligent contract is suitable Sequence, prior to the intelligent contract of the application of load.
8. the method according to the description of claim 7 is characterized in that using the intelligent contract of the supervision and the intelligent contract of application, The transactions requests are handled, with the pre-execution result of the determination transactions requests, comprising:
The intelligent contract progress of application that intelligent contract calls the transactions requests and the transactions requests is supervised using described Verifying;
If the verification passes, then the transactions requests are executed using the intelligent contract of the application, with the determination transactions requests Pre-execution result;
If verifying does not pass through, forbid executing the application intelligent contract processing transactions requests.
9. according to the method described in claim 8, it is characterized in that, using the intelligent contract of the supervision to the transactions requests and It includes at least one of following that the intelligent contract of the application that the transactions requests are called, which carries out verifying:
Whether default blacklist is belonged to the initiation account of the transactions requests using the intelligent contract of the supervision or presets white name Singly verified;
Whether the intelligent contract of application called using the intelligent contract of the supervision to the transactions requests, which is closed, is verified.
10. the method according to claim 1, wherein using the intelligent contract of the supervision and the intelligent contract of application, The transactions requests are handled, after the pre-execution result of the determination transactions requests, further includes:
According to the pre-execution as a result, and the intelligent contract inventory of the corresponding supervision of the block chain disposed in advance, verify the thing Whether the intelligent contract of the supervision that the implementation procedure of business request is called meets the requirement for supervising intelligent contract inventory.
11. the method according to claim 1, wherein supervision intelligence contract includes at least one of following: real Name contract closes contract, filtering sensitive words contract using intelligent contract, initiates user identity contract and yellow anti-contract.
12. the method according to claim 1, wherein determine the transactions requests implementing result validity it Afterwards, further includes:
The pre-execution result is encapsulated into the transactions requests, is transmitted into block chain network, to request other block chains Transactions requests described in node verification;Or
Transactions requests including the pre-execution result are stored as Transaction Information into block.
13. a kind of block chain data monitoring device, which is characterized in that be configured at block chain node, described device includes:
Transactions requests initiation module, for obtaining the transactions requests initiated based on the intelligent contract of application;
Contract loading module for loading the intelligent contract of application for executing the transactions requests, and loads at least one prison Pipe intelligence contract;
Transactions requests processing module, for using the intelligent contract of the supervision and application intelligence contract, to the transactions requests into Row processing, with the pre-execution result of the determination transactions requests;
Rule authentication module is closed in supervision, executes feelings for the supervision intelligence contract in the pre-execution result according to the transactions requests Condition, and it is preset in the permission control strategy that supervision account belonging to intelligent contract is supervised in block chain, to the transactions requests Implementation procedure carries out the verifying that rule are closed in supervision;
Validity determining module determines the transactions requests pre-execution result for closing the verification result of rule according to the supervision Validity.
14. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as a kind of described in any item block chain data monitoring methods of claim 1-12.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor A kind of such as claim 1-12 described in any item block chain data monitoring methods are realized when execution.
CN201910580172.3A 2019-06-28 2019-06-28 Block chain data monitoring method, device, equipment and medium Active CN110310205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910580172.3A CN110310205B (en) 2019-06-28 2019-06-28 Block chain data monitoring method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910580172.3A CN110310205B (en) 2019-06-28 2019-06-28 Block chain data monitoring method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110310205A true CN110310205A (en) 2019-10-08
CN110310205B CN110310205B (en) 2022-02-25

Family

ID=68077926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910580172.3A Active CN110310205B (en) 2019-06-28 2019-06-28 Block chain data monitoring method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110310205B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866740A (en) * 2019-11-14 2020-03-06 百度在线网络技术(北京)有限公司 Processing method and device for block chain transaction request, electronic equipment and medium
CN111258725A (en) * 2020-01-17 2020-06-09 北京百度网讯科技有限公司 A blockchain-based data processing method, device, equipment and medium
CN111311413A (en) * 2020-02-25 2020-06-19 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for monitoring resource circulation of block chain
CN111338906A (en) * 2020-03-06 2020-06-26 清华大学 Terminal equipment, edge node and block chain-based application supervision method and system
CN111369246A (en) * 2020-03-02 2020-07-03 万翼科技有限公司 Calling authentication method and device of intelligent contract, electronic equipment and storage medium
CN111581047A (en) * 2020-03-24 2020-08-25 博雅正链(北京)科技有限公司 A regulatory approach to smart contract behavior
CN111738721A (en) * 2020-06-23 2020-10-02 金蝶软件(中国)有限公司 Block chain transaction monitoring method and related device
CN112184264A (en) * 2020-09-30 2021-01-05 微医云(杭州)控股有限公司 Block chain-based drug supervision method, device, server and medium
CN112597762A (en) * 2020-12-04 2021-04-02 广东省科学院智能制造研究所 Block chain system with intelligent contract data supervision function and supervision method
CN112734410A (en) * 2021-03-30 2021-04-30 支付宝(杭州)信息技术有限公司 Method and device for pre-executing chain code in Fabric Block chain
WO2021088536A1 (en) * 2019-11-08 2021-05-14 蚂蚁区块链科技(上海)有限公司 Off-chain authorization-based private data query method and apparatus
CN113114465A (en) * 2021-03-19 2021-07-13 青岛海尔科技有限公司 Method and device for processing attribution authority, storage medium and electronic device
CN117113425A (en) * 2023-10-25 2023-11-24 东北大学秦皇岛分校 Privacy compliance method for lake and warehouse integrated data analysis

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103473A (en) * 2017-04-27 2017-08-29 电子科技大学 A kind of intelligent contract implementation method based on block chain
CN108961052A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Verification method, storage method, device, equipment and the medium of block chain data
CN109508561A (en) * 2018-10-18 2019-03-22 中钞信用卡产业发展有限公司杭州区块链技术研究院 Block chain network and right management method
CN109639437A (en) * 2019-01-09 2019-04-16 山东浪潮质量链科技有限公司 Monitoring and managing method and device, equipment, medium based on trust data source
CN109685507A (en) * 2018-12-26 2019-04-26 百度在线网络技术(北京)有限公司 The identification of transactions requests validity and initiating method, device, equipment and medium
CN109697670A (en) * 2018-12-29 2019-04-30 杭州趣链科技有限公司 A kind of public chain information screen method not influencing confidence level
CN109710689A (en) * 2018-11-26 2019-05-03 平安科技(深圳)有限公司 Enterprise's monitoring and managing method, system, device, equipment and readable storage medium storing program for executing
KR20190050163A (en) * 2017-11-02 2019-05-10 주식회사 케이티 Mutual Finance Platform and Implement Method thereof based on Block Chain
CN109871263A (en) * 2019-02-25 2019-06-11 百度在线网络技术(北京)有限公司 The operation method of block catenary system, device, equipment and storage medium under line
CN109903164A (en) * 2019-01-03 2019-06-18 广州斯拜若科技有限公司 Private equity funds automation monitoring and managing method and system based on block chain
CN109919764A (en) * 2019-01-31 2019-06-21 中国互联网络信息中心 Blockchain-based domain name transaction supervision method and device
CN109934005A (en) * 2019-03-15 2019-06-25 北京物资学院 A blockchain-based degree certification system and certification method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103473A (en) * 2017-04-27 2017-08-29 电子科技大学 A kind of intelligent contract implementation method based on block chain
KR20190050163A (en) * 2017-11-02 2019-05-10 주식회사 케이티 Mutual Finance Platform and Implement Method thereof based on Block Chain
CN108961052A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Verification method, storage method, device, equipment and the medium of block chain data
CN109508561A (en) * 2018-10-18 2019-03-22 中钞信用卡产业发展有限公司杭州区块链技术研究院 Block chain network and right management method
CN109710689A (en) * 2018-11-26 2019-05-03 平安科技(深圳)有限公司 Enterprise's monitoring and managing method, system, device, equipment and readable storage medium storing program for executing
CN109685507A (en) * 2018-12-26 2019-04-26 百度在线网络技术(北京)有限公司 The identification of transactions requests validity and initiating method, device, equipment and medium
CN109697670A (en) * 2018-12-29 2019-04-30 杭州趣链科技有限公司 A kind of public chain information screen method not influencing confidence level
CN109903164A (en) * 2019-01-03 2019-06-18 广州斯拜若科技有限公司 Private equity funds automation monitoring and managing method and system based on block chain
CN109639437A (en) * 2019-01-09 2019-04-16 山东浪潮质量链科技有限公司 Monitoring and managing method and device, equipment, medium based on trust data source
CN109919764A (en) * 2019-01-31 2019-06-21 中国互联网络信息中心 Blockchain-based domain name transaction supervision method and device
CN109871263A (en) * 2019-02-25 2019-06-11 百度在线网络技术(北京)有限公司 The operation method of block catenary system, device, equipment and storage medium under line
CN109934005A (en) * 2019-03-15 2019-06-25 北京物资学院 A blockchain-based degree certification system and certification method

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021088536A1 (en) * 2019-11-08 2021-05-14 蚂蚁区块链科技(上海)有限公司 Off-chain authorization-based private data query method and apparatus
CN110866740B (en) * 2019-11-14 2024-07-23 百度在线网络技术(北京)有限公司 Method, device, electronic equipment and medium for processing block chain transaction request
CN110866740A (en) * 2019-11-14 2020-03-06 百度在线网络技术(北京)有限公司 Processing method and device for block chain transaction request, electronic equipment and medium
CN111258725B (en) * 2020-01-17 2023-07-25 北京百度网讯科技有限公司 Data processing method, device, equipment and medium based on block chain
CN111258725A (en) * 2020-01-17 2020-06-09 北京百度网讯科技有限公司 A blockchain-based data processing method, device, equipment and medium
CN111311413B (en) * 2020-02-25 2023-08-29 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for monitoring resource circulation of block chain
CN111311413A (en) * 2020-02-25 2020-06-19 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for monitoring resource circulation of block chain
CN111369246A (en) * 2020-03-02 2020-07-03 万翼科技有限公司 Calling authentication method and device of intelligent contract, electronic equipment and storage medium
CN111338906B (en) * 2020-03-06 2021-09-17 清华大学 Terminal equipment, edge node and block chain-based application supervision method and system
CN111338906A (en) * 2020-03-06 2020-06-26 清华大学 Terminal equipment, edge node and block chain-based application supervision method and system
CN111581047B (en) * 2020-03-24 2023-03-24 博雅正链(北京)科技有限公司 Supervision method for intelligent contract behavior
CN111581047A (en) * 2020-03-24 2020-08-25 博雅正链(北京)科技有限公司 A regulatory approach to smart contract behavior
CN111738721A (en) * 2020-06-23 2020-10-02 金蝶软件(中国)有限公司 Block chain transaction monitoring method and related device
CN112184264A (en) * 2020-09-30 2021-01-05 微医云(杭州)控股有限公司 Block chain-based drug supervision method, device, server and medium
CN112597762A (en) * 2020-12-04 2021-04-02 广东省科学院智能制造研究所 Block chain system with intelligent contract data supervision function and supervision method
CN112597762B (en) * 2020-12-04 2024-03-08 广东省科学院智能制造研究所 A blockchain system and supervision method with smart contract data supervision function
CN113114465A (en) * 2021-03-19 2021-07-13 青岛海尔科技有限公司 Method and device for processing attribution authority, storage medium and electronic device
CN113114465B (en) * 2021-03-19 2022-10-11 青岛海尔科技有限公司 Processing method and device for attribution authority, storage medium, and electronic device
CN112734410A (en) * 2021-03-30 2021-04-30 支付宝(杭州)信息技术有限公司 Method and device for pre-executing chain code in Fabric Block chain
CN117113425A (en) * 2023-10-25 2023-11-24 东北大学秦皇岛分校 Privacy compliance method for lake and warehouse integrated data analysis
CN117113425B (en) * 2023-10-25 2023-12-22 东北大学秦皇岛分校 A privacy compliance method for integrated data analysis of lakes and warehouses

Also Published As

Publication number Publication date
CN110310205B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN110310205A (en) A kind of block chain data monitoring method, device, equipment and medium
US11710055B2 (en) Processing machine learning attributes
US10565360B2 (en) Verifying a user's identity based on adaptive identity assurance levels
CN110096857B (en) Authority management method, device, equipment and medium for block chain system
CN100380271C (en) Methods and apparatus for dynamic user authentication
WO2020073491A1 (en) Blockchain-based supply chain payment method, payment collection method, device, apparatus, and medium
KR101876674B1 (en) Method of managing common account using block chain and system performing the same
CN109146679A (en) Intelligent contract call method and device, electronic equipment based on block chain
US11563727B2 (en) Multi-factor authentication for non-internet applications
US12327254B2 (en) Flexible authentication
CN110138767A (en) Processing method, device, equipment and the storage medium of transactions requests
US10158628B2 (en) Preventing unauthorized access to secured information systems based on contextual login information
CN109446259B (en) Data processing method and device, processor and storage medium
CN109472439A (en) Credit estimation method, device, equipment and system
US12136091B2 (en) Systems and methods for secure transaction reversal
CN102165479A (en) Mobile banking architecture
CN110033188A (en) Business scheduling method, device, calculating equipment and medium based on block chain
US20240121230A1 (en) Systems and methods for generating and using secure sharded onboarding user interfaces
CN107730259A (en) Fingerprint payment method and device and user terminal
CN115115375A (en) Dynamic strengthening verification method based on wind control
CN114549011A (en) Method and device for binding bank card
US20250131427A1 (en) Bot prevention techniques
US20180165350A1 (en) Multicomputer Processing of Client Device Request Data Using Centralized Event Orchestator and Link Discovery Engine
CN109934009A (en) A kind of personal information data query interaction authorization method
CN118278932A (en) Block chain-based transaction method, device, equipment and medium

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