CN109670950A - Transaction monitor method, device, equipment and storage medium based on block chain - Google Patents

Transaction monitor method, device, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN109670950A
CN109670950A CN201811265445.7A CN201811265445A CN109670950A CN 109670950 A CN109670950 A CN 109670950A CN 201811265445 A CN201811265445 A CN 201811265445A CN 109670950 A CN109670950 A CN 109670950A
Authority
CN
China
Prior art keywords
transaction
block
transaction information
block chain
event
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
CN201811265445.7A
Other languages
Chinese (zh)
Other versions
CN109670950B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811265445.7A priority Critical patent/CN109670950B/en
Priority to PCT/CN2018/124621 priority patent/WO2020087739A1/en
Publication of CN109670950A publication Critical patent/CN109670950A/en
Application granted granted Critical
Publication of CN109670950B publication Critical patent/CN109670950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present invention relates to technical field of data processing more particularly to a kind of transaction monitor method, device, equipment and storage mediums based on block chain.This method comprises: obtaining the Transaction Information that the client in block chain network is initiated, a transaction monitoring event is registered automatically to every transaction information;Transaction monitoring event is called, every transaction information is monitored, when transaction exception occurs for Transaction Information, Transaction Information is reported to the intelligent contract of block chain network, the alarm regulation in intelligent contract is obtained, by corresponding processing type feedback to client;After Transaction Information completes transaction in block chain network, it is automatically logged out transaction monitoring event.The present invention is by registering a transaction monitoring event to every transaction information, to capture transaction abnormal conditions in time, the blank for automatically processing abnormal conditions in block monitoring in real time is compensated for out, ensure that being normally carried out for transaction, block chain is improved and goes out during block to abnormal treatment effeciency.

Description

Transaction monitor method, device, equipment and storage medium based on block chain
Technical field
The present invention relates to technical field of data processing more particularly to a kind of transaction monitor method based on block chain, device, Equipment and storage medium.
Background technique
Block chain is the new application of the computers such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Mode, it is that the mathematical algorithm for trusting, obtaining equity is established between different nodes that so-called common recognition mechanism, which is in block catenary system,.In area It trades in block chain, then forms block, and existing only interesting chain science and technology is monitored the transaction in block and block.
Some monitoring schemes of interesting chain Technological research are mainly used for monitoring out the friendship of the sum of block, number of deals, TPS, TPP Yi Liang, and for the transaction abnormal conditions of the appearance in block, but timely and effectively it cannot be monitored and give a warning.Later period It when handling transaction abnormal conditions, needs that the abnormal conditions of generation are positioned and analyzed, finds out abnormal cause It can be carried out processing, can not be handled in time because transaction is abnormal, to can also cause other risks.
Summary of the invention
In view of this, it is necessary to it is abnormal for the transaction in block, it cannot timely and effectively be monitored and propose to alert The problem of, a kind of transaction monitor method, device, equipment and storage medium based on block chain is provided.
A kind of transaction monitor method based on block chain, comprising:
The Transaction Information that the client in block chain network is initiated is obtained, one is registered automatically to Transaction Information described in every Corresponding transaction monitoring event;
The transaction monitoring event is called, Transaction Information described in every is monitored, when the Transaction Information is handed over When easily abnormal, the Transaction Information is reported to the intelligent contract of the block chain network, obtains the announcement in the intelligent contract Police regulations then, by the corresponding processing type feedback of the alarm regulation give the client;
After the Transaction Information completes transaction in the block chain network, it is corresponding to be automatically logged out the Transaction Information The transaction monitoring event.
It is described in one of the embodiments, to call the transaction monitoring event, Transaction Information described in every is supervised It listens, comprising:
The transaction monitoring event is called, the Transaction Information is obtained, calls the exception rules in the intelligent contract, it will The Transaction Information is matched with the exception rules, if the Transaction Information triggers the exception rules, is judged as institute It states Transaction Information and transaction exception occurs.
A corresponding transaction monitoring event is registered automatically to Transaction Information described in every in one of the embodiments, Include:
If register the failure of the corresponding transaction monitoring event automatically to the Transaction Information, to the Transaction Information The block generated in the block chain network registers a corresponding block and monitors event, and the Transaction Information is stored in In message queue;
It calls the block to monitor event, the block is monitored, when block exception occurs for the block, in institute It states in message queue and the corresponding Transaction Information of the block is reported to the intelligent contract, obtain in the intelligent contract Alarm regulation, by the corresponding processing type feedback of the alarm regulation give the client;
After the block completes cochain in the block chain network, it is automatically logged out the corresponding block of the block Monitoring event.
It is described in one of the embodiments, that the block is called to monitor event, the block is monitored, comprising:
It calls the block to monitor event, obtains the block, the Transaction Information in the block is passed through into hash algorithm It calculates and generates verifying cryptographic Hash, the verifying cryptographic Hash is compared with the cryptographic Hash of the current block in the block, if It is inconsistent, then it is abnormal to be judged as that block occurs for the block;
If consistent, by the cryptographic Hash of previous block, the cryptographic Hash of current block and the list of block chain in the block into Row compares, and judges whether the cryptographic Hash of previous block, the cryptographic Hash of current block join end to end, if it is not, being then judged as described It is abnormal that block occurs for block.
The alarm regulation obtained in the intelligent contract in one of the embodiments, by the alarm regulation pair The processing type feedback answered gives the client, comprising:
The alarm regulation includes multinomial alarm triggered condition, each described alarm triggered condition corresponds to described at least one Handle type;
When the Transaction Information triggers any alarm triggered condition, corresponding processing type is obtained, by institute Processing type feedback is stated to the client.
The alarm regulation further includes that processing corresponding with the processing type executes foot in one of the embodiments, This;
When the Transaction Information triggers any alarm triggered condition, the processing perform script is called, from It is dynamic to carry out alarming processing, and processing result and the processing type are fed back into the client together.
It is described in one of the embodiments, that a corresponding transaction monitoring thing is registered automatically to Transaction Information described in every When part, preset EventHub event handling center is called to be registered the transaction monitoring event automatically;
It is described when being automatically logged out the corresponding transaction monitoring event of the Transaction Information, it calls in the EventHub UnregisterTxEvent event nullifies the transaction monitoring event.
A kind of transaction monitoring device based on block chain, comprising:
Registering transaction monitors event module, is set as obtaining the Transaction Information that the client in block chain network is initiated, right Every Transaction Information registers a corresponding transaction monitoring event automatically;
Module is monitored, is set as calling the transaction monitoring event, Transaction Information described in every be monitored, when described Transaction Information occur transaction it is abnormal when, the Transaction Information is reported to the intelligent contract of the block chain network, described in acquisition Alarm regulation in intelligent contract gives the corresponding processing type feedback of the alarm regulation to the client;
It nullifies transaction and monitors event module, be set as completing transaction in the block chain network when the Transaction Information Afterwards, it is automatically logged out the corresponding transaction monitoring event of the Transaction Information.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction and being executed by the processor, so that the processor executes the above-mentioned transaction based on block chain and monitors The step of method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that the step of one or more processors execute the above-mentioned transaction monitor method based on block chain.
Above-mentioned transaction monitor method, device, equipment and storage medium based on block chain, including obtain in block chain network Client initiate Transaction Information, a corresponding transaction monitoring event is registered automatically to Transaction Information described in every;It calls The transaction monitoring event, monitors Transaction Information described in every, when transaction exception occurs for the Transaction Information, by institute The intelligent contract that Transaction Information is reported to the block chain network is stated, the alarm regulation in the intelligent contract is obtained, it will be described The corresponding processing type feedback of alarm regulation gives the client;When the Transaction Information is completed to hand in the block chain network Yi Hou is automatically logged out the corresponding transaction monitoring event of the Transaction Information.The present invention is by infusing every transaction information One transaction monitoring event of volume, captures transaction abnormal conditions in time, compensates for out in block monitoring and automatically processes abnormal feelings in real time The blank of condition ensure that being normally carried out for transaction, improves block chain and goes out during block to abnormal treatment effeciency.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.
Fig. 1 is the flow chart of the transaction monitor method based on block chain in one embodiment of the invention;
Fig. 2 is the flow chart of step S4 in one embodiment;
Fig. 3 is the deterministic process figure of the transaction monitor method based on block chain in one embodiment of the invention;
Fig. 4 is the structure chart of the transaction monitoring device in one embodiment of the invention based on block chain.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is the flow chart of the transaction monitor method based on block chain in one embodiment of the invention, as shown in Figure 1, A kind of transaction monitor method based on block chain, comprising the following steps:
Step S1, registering transaction monitor event: the Transaction Information that the client in block chain network is initiated are obtained, to every Transaction Information registers a corresponding transaction monitoring event automatically.
Block chain network is a kind of system based on block chain technology, and also referred to as distributed account book technology is a kind of mutual Networking data library technology.Its main feature is that it is decentralization, open and clear, allow each user to each may participate in maintenance data-base recording.Area Block chain network is the new application mould of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Formula.Block chain network mainly includes data Layer, intelligent contract layer etc., wherein data Layer encapsulates bottom data block and phase The basic datas such as the data encryption of pass and timestamp and rudimentary algorithm, and bottom data block is presented with chain structure, i.e. block Chain is a kind of a kind of linked data structure for being sequentially in time combined into data block in such a way that sequence is connected, and with close The distributed account book that can not be distorted He can not forge that code mode guarantees.Intelligent contract believable can not be distorted based on these Data, some rules pre-defined of execution and clause that can be automated.For example, user information, including medical information, Risk occur information, be all it is genuine and believable, according to the insurance products of intelligent contract Plays, the reason automated It pays for.
When any client node of this step in block chain network initiates Transaction Information, client node is preset with defeated Enter interface, for client node by calling input interface to obtain the Transaction Information of every transaction, client node includes mobile phone visitor Family end, computer client or third party's client, Transaction Information include O/No., both parties' information, loco etc..With Family uploads Transaction Information by client node, and block chain network obtains the Transaction Information that client node is initiated, block link network Network can obtain separate sources client initiate more different Transaction Informations, block chain network to every transaction information from One corresponding transaction monitoring event of dynamic registration.
This step is called preset when registering a corresponding transaction monitoring event automatically to every transaction information EventHub event handling center is that each transaction information registers a transaction monitoring event automatically.Thing is monitored in registering transaction Registration process when part is the Fabric network structure by block chain network, is preset in Fabric network structure bottom Event is monitored by the automatic registering transaction in EventHub event handling center in EventHub event handling center.
Fabric network structure in this step is one of structure important in block chain network.Fabric network structure is Block chain network provides four kinds of services, is respectively: identity service, policy service, the service of block chain and intelligent bond service.Body Part service: Fabric network structure is permission block chain structure, and each node participated in block chain network all needs clear identity Information, the node in block chain network need to determine the Permission Levels for participating in transaction in Fabric network structure.Policy service: Strategy configuration and management function are provided for block chain network, realizes access control and rights management, realizes that node is added or exits Network, the registration of identity, verifying, privacy, secrecy and common recognition strategy etc..Block chain service: it provides and constructs distributed account book most The ability on basis realizes the functions such as data are transmitted, common recognition is reached, and provides subscription and issues the management framework of event.Intelligent contract Service: for verifying the distributed transaction program run on node, to execute specific business rule, final updated account automatically The state of this information.User can realize service application, by the application interface of calling Fabric network structure to construct block The distributed account book of chain network.
And the EventHub event handling center of Fabric network structure bottom is used to monitor event behavior, in EventHub Constructed fuction in, it is set up by monitoring tools INotify and Epoll case mechanism to client additions and deletions event and readable The monitoring of state.INotify is a kind of file system change notification mechanism provided by linux kernel, and INotify can be to answer With the variation of program monitoring file system, such as the newly-built of file, deletion, read-write.INotify there are two basic object, Inotify object corresponds to a queue, and application program can add multiple monitorings to inotify object, when monitored event When generation, event information can be read out from inotify object by read () function;Watch object is then used to retouch The monitoring of the change events of file system is stated, it is a binary group, including monitors two elements of target and event mask, is monitored Target is a path of file system, can be file and is also possible to file.It is more that primary waiting monitoring can be used in Epoll A descriptor it is readable/can write state.
A transaction monitoring event is registered automatically by using EventHub event handling center, and registration is simple and convenient, leads to It crosses the transaction that EventHub event handling is centrally generated and monitors event, when can monitor high-volume information, monitoring is high-efficient, works as hair When playing volume business information, obstructing event will not occur.
Step S2 monitors Transaction Information: calling transaction monitoring event, monitors every transaction information, when transaction is believed When transaction exception occurs for breath, Transaction Information is reported to the intelligent contract of block chain network, obtains the alarm rule in intelligent contract Then, by the corresponding processing type feedback of alarm regulation to client.
In one embodiment, this step is calling monitoring event of trading, when monitoring every transaction information, packet It includes: calling transaction monitoring event, acquisition Transaction Information calls the exception rules in intelligent contract, by Transaction Information and abnormal rule It is then matched, if Transaction Information triggers exception rules, it is abnormal to be judged as that transaction occurs for Transaction Information.
It is equipped with intelligent contract in block chain network, exception rules, alarm regulation, processing type are preset in intelligent contract Deng.When being monitored Transaction Information and determining whether to send transaction exception, Transaction Information is matched with exception rules, Exception rules may include transaction amount whether excess, both parties' information whether there is, loco whether strange land transaction etc. Trading rules.When Transaction Information does not meet the trading rules of an arm's length dealing, triggering exception rules are defined as, are judged as friendship It is easily abnormal.
When transaction exception occurs for Transaction Information, Transaction Information is reported to the intelligent contract of block chain network, is being obtained Alarm regulation in intelligent contract, when by the corresponding processing type feedback of alarm regulation to client, further includes: alarm regulation packet Multinomial alarm triggered condition is included, at least one corresponding processing type of each alarm triggered condition;When Transaction Information triggers any one When item alarm triggered condition, corresponding processing type is obtained, type feedback will be handled to client.
Since the transaction abnormal cause of Transaction Information is varied, this step is equipped with multinomial alarm to every kind of transaction extremely Trigger condition and corresponding processing type.Such as Transaction Information then triggers an alarm since transaction amount is more than a certain threshold value Trigger condition, alignment processing type.If being more than another threshold value, another alarm triggered condition, corresponding another processing class are triggered Type.Block chain network is sent to client after obtaining alignment processing type in intelligent contract according to the alarm triggered condition of triggering End node.The processing type that client node is fed back according to block chain network is abnormal to transaction to handle.
The present embodiment monitors transaction flow by transaction monitoring event, the abnormal conditions of capture transaction in time, and right Abnormal conditions are handled in time, are overcome in the later period from new definition abnormal conditions, are found out the delay that abnormal cause is handled Processing problem, the present embodiment can guarantee the normal of transaction, reduce abnormal risk.
In one embodiment, alarm regulation further includes processing perform script corresponding with processing type;Work as Transaction Information When triggering any alarm triggered condition, processing perform script is called, carries out alarming processing automatically, and by processing result and place Reason type feeds back to client together.
It is preset in block chain network to the corresponding processing perform script of processing type, it is different in order to work as Transaction Information generation When reason condition, according to alarm triggered condition, execute processing perform script, realize the automatic purpose for solving abnormal conditions, without by Client copes with solution according to processing type.Processing perform script include according to the contact method in both parties' information, Processing is automatic to send the means such as short message, automatic transmission mail.The present embodiment realization automatically processes transaction exception, and it is different to improve transaction The efficiency often handled.
Step S3 nullifies transaction monitoring event: after Transaction Information completes transaction in block chain network, being automatically logged out friendship The corresponding transaction monitoring event of easy information.
When being automatically logged out the corresponding transaction monitoring event of Transaction Information, call in EventHub UnregisterTxEvent event come nullify transaction monitoring event.
When Transaction Information completes transaction in block chain network, it is defined as the corresponding block of Transaction Information and has broadcasted, And it is had verified that by the node in block chain network, and the corresponding block of Transaction Information completes cochain.At this point, without to transaction Information is monitored again, therefore this step is automatically performed cancellation by the unregisterTxEvent event of EventHub.
After nullifying transaction monitoring event, classification also is carried out according to preset mode classification to transaction exception information and is deposited Storage solves the abnormal reference scheme of transaction as subsequent, and preset mode classification includes the alarm triggered by transaction exception information The mode that condition is classified.
In one embodiment, a corresponding transaction monitoring event is registered automatically to every transaction information, such as Fig. 2 institute Show, further include step S4:
Step S401, registration block monitor event: if registering corresponding transaction monitoring event failure automatically to Transaction Information When, then a corresponding block is registered to the block that Transaction Information generates in block chain network and monitor event, and transaction is believed Breath is stored in message queue.
When in order to cope with step S1 automatic registering transaction monitoring event failure may occur for this step, it cannot achieve to transaction The real-time monitoring problem of information is called preset in Transaction Information generation block Node registry block monitoring event, registration EventHub event handling center is that each block registers a block monitoring event automatically, and corresponding Transaction Information is protected There are in message queue.
Step S402 monitors block abnormal conditions: calling block to monitor event, monitors block, when block occurs When block exception, the corresponding Transaction Information of block is reported to intelligent contract in message queue, obtains the announcement in intelligent contract Police regulations then, by the corresponding processing type feedback of alarm regulation to client.
When monitoring block, comprising: call block to monitor event, block is obtained, by the Transaction Information in block It is calculated by hash algorithm and generates verifying cryptographic Hash, verifying cryptographic Hash and the cryptographic Hash of the current block in block are compared Compared with it is abnormal to be judged as that block occurs for block if inconsistent;If consistent, by the cryptographic Hash of the previous block in block, work as proparea The cryptographic Hash of block is compared with block chain list, judge the cryptographic Hash of previous block, the cryptographic Hash of current block whether head and the tail It is connected, if it is not, it is abnormal to be then judged as that block occurs for block.
The present embodiment carries out abnormal verifying when monitoring block, through two steps, and the first step is by area The Transaction Information of block carries out hash algorithm again and is verified cryptographic Hash, is compared with the cryptographic Hash generated in block head, If inconsistent, illustrate that the Transaction Information in block is tampered, is judged as and block exception occurs.If consistent, second step is carried out Verifying, i.e., the data that will be saved in the cryptographic Hash of the previous block in block head, the cryptographic Hash of current block and the list of block chain It is compared.The network layer in all nodes and block chain network in usual block chain network preserves a block chain column Table, save in block chain list it is all gone out block block cryptographic Hash, and these cryptographic Hash join end to end each other.If monitoring Two cryptographic Hash of block are not that ending is connected, then are judged as and block exception occurs.
Step S403 nullifies block and monitors event: after block completes cochain in block chain network, being automatically logged out block Corresponding block monitors event.
It when monitored block has been broadcasted, and is had verified that by the node in block chain network, and after completing cochain, Without being monitored again block, therefore this step is automatically performed area by the unregisterTxEvent event of EventHub The cancellation of block monitoring event.
The present embodiment is right in such a way that whether monitoring block is abnormal in the case where that directly can not monitor Transaction Information Transaction Information is monitored, when block exception occurs, by the announcement in the Transaction Information and intelligent contract in message queue Police regulations are then matched, and matching process is identical as step step S2.
Transaction monitor method of the present embodiment based on block chain, as shown in figure 3, passing through the every transaction initiated client Information registers a transaction monitoring event automatically, monitors whether Transaction Information is abnormal situation in real time, is being abnormal After situation, alarm regulation can be passed through in time by corresponding processing type feedback to client, compensate for out and locate in real time in block monitoring Manage the blank of abnormal monitoring.When the present embodiment also monitors event failure to registering transaction, counte-rplan are given, i.e., block are infused One block of volume is monitored event and is monitored again to Transaction Information by way of monitoring block, and when occurring, block is different Corresponding processing type feedback ensure that being normally carried out for transaction to client by alarm regulation by Chang Shi.The present embodiment exists Before handling type feedback to client, also to abnormal conditions, perform script is handled by calling, realizes and automatically processes transaction It is abnormal, improve the efficiency of transaction abnormality processing.
In one embodiment it is proposed that a kind of transaction monitoring device based on block chain, as shown in figure 4, including as follows Module:
Registering transaction monitors event module, is set as obtaining the Transaction Information that the client in block chain network is initiated, right Every Transaction Information registers a corresponding transaction monitoring event automatically;
Module is monitored, is set as calling the transaction monitoring event, Transaction Information described in every be monitored, when described Transaction Information occur transaction it is abnormal when, the Transaction Information is reported to the intelligent contract of the block chain network, described in acquisition Alarm regulation in intelligent contract gives the corresponding processing type feedback of the alarm regulation to the client;
It nullifies transaction and monitors event module, be set as completing transaction in the block chain network when the Transaction Information Afterwards, it is automatically logged out the corresponding transaction monitoring event of the Transaction Information.
In one embodiment it is proposed that a kind of computer equipment, including memory and processor, it is stored in memory Computer-readable instruction, when computer-readable instruction is executed by processor, so that reality when processor executes computer-readable instruction Step in the transaction monitor method based on block chain of existing the various embodiments described above.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, computer-readable finger When order is executed by one or more processors so that one or more processors execute the various embodiments described above based on block chain Step in transaction monitor method.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of transaction monitor method based on block chain characterized by comprising
The Transaction Information that the client in block chain network is initiated is obtained, a correspondence is registered automatically to Transaction Information described in every Transaction monitor event;
The transaction monitoring event is called, Transaction Information described in every is monitored, when Transaction Information generation transaction is different The Transaction Information is reported to the intelligent contract of the block chain network by Chang Shi, obtains the alarm rule in the intelligent contract Then, the corresponding processing type feedback of the alarm regulation is given to the client;
After the Transaction Information completes transaction in the block chain network, it is corresponding described to be automatically logged out the Transaction Information Transaction monitoring event.
2. the transaction monitor method according to claim 1 based on block chain, which is characterized in that described to call the transaction Monitoring event, monitors Transaction Information described in every, comprising:
The transaction monitoring event is called, the Transaction Information is obtained, calls the exception rules in the intelligent contract, it will be described Transaction Information is matched with the exception rules, if the Transaction Information triggers the exception rules, is judged as the friendship It is abnormal that transaction occurs for easy information.
3. the transaction monitor method according to claim 1 based on block chain, which is characterized in that believe trading described in every Breath registers a corresponding transaction monitoring event automatically, comprising:
If register the failure of the corresponding transaction monitoring event automatically to the Transaction Information, to the Transaction Information in institute It states the block generated in block chain network and registers a corresponding block monitoring event, and the Transaction Information is stored in message In queue;
It calls the block to monitor event, the block is monitored, when block exception occurs for the block, disappear described The corresponding Transaction Information of the block is reported to the intelligent contract in breath queue, obtains the announcement in the intelligent contract Police regulations then, by the corresponding processing type feedback of the alarm regulation give the client;
After the block completes cochain in the block chain network, it is automatically logged out the corresponding block of the block and monitors Event.
4. the transaction monitor method according to claim 3 based on block chain, which is characterized in that described to call the block Monitoring event monitors the block, comprising:
It calls the block to monitor event, obtains the block, the Transaction Information in the block is calculated by hash algorithm Verifying cryptographic Hash is generated, the verifying cryptographic Hash is compared with the cryptographic Hash of the current block in the block, if different It causes, then it is abnormal to be judged as that block occurs for the block;
If consistent, the cryptographic Hash of previous block, the cryptographic Hash of current block and the block chain list in the block are compared It is right, judge whether the cryptographic Hash of previous block, the cryptographic Hash of current block join end to end, if it is not, being then judged as the block It is abnormal that block occurs.
5. the transaction monitor method according to claim 1 based on block chain, which is characterized in that described to obtain the intelligence Alarm regulation in contract gives the corresponding processing type feedback of the alarm regulation to the client, comprising:
At least one of the alarm regulation includes multinomial alarm triggered condition, each described alarm triggered condition the is corresponding processing Type;
When the Transaction Information triggers any alarm triggered condition, corresponding processing type is obtained, by the place Type feedback is managed to the client.
6. the transaction monitor method according to claim 5 based on block chain, which is characterized in that the alarm regulation also wraps Include processing perform script corresponding with the processing type;
When the Transaction Information trigger any alarm triggered condition when, call the processing perform script, automatically into Row alarming processing, and processing result and the processing type are fed back into the client together.
7. the transaction monitor method according to claim 1 based on block chain, which is characterized in that described to friendship described in every When easy information registers a corresponding transaction monitoring event automatically, preset EventHub event handling center is called to carry out automatic Register the transaction monitoring event;
It is described when being automatically logged out the corresponding transaction monitoring event of the Transaction Information, it calls in the EventHub UnregisterTxEvent event nullifies the transaction monitoring event.
8. a kind of transaction monitoring device based on block chain characterized by comprising
Registering transaction monitors event module, is set as obtaining the Transaction Information that the client in block chain network is initiated, to every The Transaction Information registers a corresponding transaction monitoring event automatically;
Module is monitored, is set as calling the transaction monitoring event, Transaction Information described in every be monitored, when the transaction When transaction exception occurs for information, the Transaction Information is reported to the intelligent contract of the block chain network, obtains the intelligence Alarm regulation in contract gives the corresponding processing type feedback of the alarm regulation to the client;
It nullifies transaction and monitors event module, after being set as completing transaction in the block chain network when the Transaction Information, from It is dynamic to nullify the corresponding transaction monitoring event of the Transaction Information.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right It is required that the step of transaction monitor method based on block chain.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors are executed is based on block chain as described in any one of claims 1 to 7 claim Transaction monitor method the step of.
CN201811265445.7A 2018-10-29 2018-10-29 Transaction monitoring method, device, equipment and storage medium based on blockchain Active CN109670950B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811265445.7A CN109670950B (en) 2018-10-29 2018-10-29 Transaction monitoring method, device, equipment and storage medium based on blockchain
PCT/CN2018/124621 WO2020087739A1 (en) 2018-10-29 2018-12-28 Block chain-based transaction detecting method, apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811265445.7A CN109670950B (en) 2018-10-29 2018-10-29 Transaction monitoring method, device, equipment and storage medium based on blockchain

Publications (2)

Publication Number Publication Date
CN109670950A true CN109670950A (en) 2019-04-23
CN109670950B CN109670950B (en) 2023-09-15

Family

ID=66141715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811265445.7A Active CN109670950B (en) 2018-10-29 2018-10-29 Transaction monitoring method, device, equipment and storage medium based on blockchain

Country Status (2)

Country Link
CN (1) CN109670950B (en)
WO (1) WO2020087739A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111127208A (en) * 2019-12-30 2020-05-08 上海金仕达软件科技有限公司 Abnormal transaction real-time monitoring system and calculation method
CN111369221A (en) * 2020-03-09 2020-07-03 浙江大学 Intelligent contract monitoring method and system for block chain supervision
CN111475520A (en) * 2020-04-10 2020-07-31 厦门慢雾科技有限公司 Method and system for automatically monitoring and alarming block data
WO2021022710A1 (en) * 2019-08-02 2021-02-11 平安科技(深圳)有限公司 Message queue processing method, device, electronic apparatus, and computer readable non-volatile storage medium
CN112837155A (en) * 2021-02-10 2021-05-25 中国人民银行数字货币研究所 Method and device for registering and executing intelligent contracts in block chain
CN112949985A (en) * 2021-02-01 2021-06-11 南方电网能源发展研究院有限责任公司 Power grid engineering supervision method and device based on block chain and computer equipment
CN113282864A (en) * 2021-06-15 2021-08-20 支付宝(杭州)信息技术有限公司 Webpage processing method and system
CN113572812A (en) * 2021-06-21 2021-10-29 中盾创新档案管理(北京)有限公司 File block synchronization method based on distributed cloud platform
CN113722125A (en) * 2021-09-08 2021-11-30 浙江中控技术股份有限公司 Data processing method and system based on distributed subscription and release network
CN113761559A (en) * 2021-09-08 2021-12-07 霍普智库(南京)信息科技有限公司 AI training data storage management system based on block chain

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563002B (en) * 2020-05-15 2023-07-25 中国工商银行股份有限公司 Transaction fault processing method and device, electronic equipment and storage medium
CN111861747A (en) 2020-07-08 2020-10-30 支付宝(杭州)信息技术有限公司 Transaction link exception handling method and device and electronic equipment
CN113760651B (en) * 2021-08-12 2024-04-02 熵链科技(福建)有限公司 Main sub-chain running state collection method, system and storage medium of block chain
CN116012150A (en) * 2022-07-25 2023-04-25 天津理工大学 Bit coin transaction autonomous message extraction and analysis method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506203A (en) * 2016-10-25 2017-03-15 杭州云象网络技术有限公司 A kind of monitoring nodes system for being applied to block chain
CN106951185A (en) * 2017-03-01 2017-07-14 武汉爱宁智慧科技有限公司 A kind of health detection data management system and method based on block chain technology
KR101814989B1 (en) * 2017-07-06 2018-01-05 주식회사 케이뱅크은행 Method of detecting fraud financial trade and server performing the same
CN107862600A (en) * 2017-10-24 2018-03-30 深圳四方精创资讯股份有限公司 Bank transfer method and its system based on block chain

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10437630B2 (en) * 2016-04-10 2019-10-08 Bank Of America Corporation System for transforming large scale electronic processing using application block chain and multi-structured data stores
US10984081B2 (en) * 2016-09-30 2021-04-20 Cable Television Laboratories, Inc. Systems and methods for secure person to device association
CN107819749A (en) * 2017-10-26 2018-03-20 平安科技(深圳)有限公司 Block catenary system and transaction data processing method based on ether mill

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506203A (en) * 2016-10-25 2017-03-15 杭州云象网络技术有限公司 A kind of monitoring nodes system for being applied to block chain
CN106951185A (en) * 2017-03-01 2017-07-14 武汉爱宁智慧科技有限公司 A kind of health detection data management system and method based on block chain technology
KR101814989B1 (en) * 2017-07-06 2018-01-05 주식회사 케이뱅크은행 Method of detecting fraud financial trade and server performing the same
CN107862600A (en) * 2017-10-24 2018-03-30 深圳四方精创资讯股份有限公司 Bank transfer method and its system based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MELLYMENGYAN: "hyperledger fabric的区块事件", 《CSDN》, pages 1 - 4 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021022710A1 (en) * 2019-08-02 2021-02-11 平安科技(深圳)有限公司 Message queue processing method, device, electronic apparatus, and computer readable non-volatile storage medium
CN111127208A (en) * 2019-12-30 2020-05-08 上海金仕达软件科技有限公司 Abnormal transaction real-time monitoring system and calculation method
CN111369221A (en) * 2020-03-09 2020-07-03 浙江大学 Intelligent contract monitoring method and system for block chain supervision
CN111475520B (en) * 2020-04-10 2022-05-13 厦门慢雾科技有限公司 Method and system for automatically monitoring and alarming block data
CN111475520A (en) * 2020-04-10 2020-07-31 厦门慢雾科技有限公司 Method and system for automatically monitoring and alarming block data
CN112949985A (en) * 2021-02-01 2021-06-11 南方电网能源发展研究院有限责任公司 Power grid engineering supervision method and device based on block chain and computer equipment
CN112949985B (en) * 2021-02-01 2023-08-11 南方电网能源发展研究院有限责任公司 Power grid engineering supervision method and device based on block chain and computer equipment
CN112837155A (en) * 2021-02-10 2021-05-25 中国人民银行数字货币研究所 Method and device for registering and executing intelligent contracts in block chain
CN113282864A (en) * 2021-06-15 2021-08-20 支付宝(杭州)信息技术有限公司 Webpage processing method and system
CN113572812A (en) * 2021-06-21 2021-10-29 中盾创新档案管理(北京)有限公司 File block synchronization method based on distributed cloud platform
CN113761559A (en) * 2021-09-08 2021-12-07 霍普智库(南京)信息科技有限公司 AI training data storage management system based on block chain
CN113722125A (en) * 2021-09-08 2021-11-30 浙江中控技术股份有限公司 Data processing method and system based on distributed subscription and release network
CN113722125B (en) * 2021-09-08 2024-01-26 浙江中控技术股份有限公司 Data processing method and system based on distributed subscription and release network

Also Published As

Publication number Publication date
WO2020087739A1 (en) 2020-05-07
CN109670950B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN109670950A (en) Transaction monitor method, device, equipment and storage medium based on block chain
US10700976B2 (en) System and method for an automated system for continuous observation, audit and control of user activities as they occur within a mobile network
US11297088B2 (en) System and method for comprehensive data loss prevention and compliance management
US9532227B2 (en) System and method for an automated system for continuous observation, audit and control of user activities as they occur within a mobile network
US10477012B2 (en) Fraud detection system and method
US20190028557A1 (en) Predictive human behavioral analysis of psychometric features on a computer network
US10339309B1 (en) System for identifying anomalies in an information system
US20220377093A1 (en) System and method for data compliance and prevention with threat detection and response
US20180248902A1 (en) Malicious activity detection on a computer network and network metadata normalisation
US11240372B2 (en) System architecture for fraud detection
Hei et al. A trusted feature aggregator federated learning for distributed malicious attack detection
CN109558748A (en) Data processing method, device, electronic equipment and storage medium
US9075668B1 (en) Method, apparatus and system for integrating dynamic recognition of complex events with case-based processing
WO2013112740A1 (en) System and method for conducting real-time and historical analysis of complex customer care processes
CN111049695A (en) Cloud gateway configuration method and system
KR20140059227A (en) Systems and methods for evaluation of events based on a reference baseline according to temporal position in a sequence of events
US11477245B2 (en) Advanced detection of identity-based attacks to assure identity fidelity in information technology environments
US11074652B2 (en) System and method for model-based prediction using a distributed computational graph workflow
US20180205748A1 (en) Intrusion detection based on login attempts
US20210168238A1 (en) Methods and Systems for Detecting Disinformation and Blocking Robotic Calls
Ribino et al. Swarm intelligence model for securing healthcare ecosystem
WO2016191369A1 (en) Automated system for continuous observation, audit and control of user activities within a mobile network
Kilinc A Case Study on Fraudulent User Behaviors in the Telecommunication Network.
CN112581129A (en) Block chain transaction data management method and device, computer equipment and storage medium
WO2022035371A2 (en) Ai based data protection in wfh environment

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