CN112966094A - Transaction data processing method, device and system - Google Patents

Transaction data processing method, device and system Download PDF

Info

Publication number
CN112966094A
CN112966094A CN202110295299.8A CN202110295299A CN112966094A CN 112966094 A CN112966094 A CN 112966094A CN 202110295299 A CN202110295299 A CN 202110295299A CN 112966094 A CN112966094 A CN 112966094A
Authority
CN
China
Prior art keywords
transaction data
block chain
block
sensitive word
link point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110295299.8A
Other languages
Chinese (zh)
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.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian 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 Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202110295299.8A priority Critical patent/CN112966094A/en
Publication of CN112966094A publication Critical patent/CN112966094A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

When the method, the device and the system are applied to a block chain platform, sensitive word filtering processing can be uniformly carried out on transaction data through specific second block chain node equipment in the block chain platform, the sensitive word filtering requirement of the block chain platform is met, meanwhile, a sensitive word filtering strategy can be conveniently maintained at the second block chain node equipment, the maintenance cost is low, and the practical value is good. The transaction data processing method provided by the application comprises the following steps: the method comprises the steps that first block chain link point equipment obtains target transaction data in a block chain platform; the first block chain link point device transmits target transaction data to a second block chain link point device preset in a block chain platform, wherein the second block chain link point device is a block chain link point device with a sensitive word filtering strategy deployed; and calling a sensitive word filtering strategy by the second block link point equipment, and executing sensitive word filtering processing on the target transaction data.

Description

Transaction data processing method, device and system
Technical Field
The present application relates to the field of blockchain, and in particular, to a method, an apparatus, and a system for processing transaction data.
Background
In recent years, the block chain technology is continuously moving to the floor application level from the technical theory level, such as an electronic evidence storage system (electronic evidence system) built based on a block chain, a logistics information synchronization system built based on a block chain, a medical information sharing system built based on a block chain, and the like, in other words, the block chain technology is increasingly popularized to the daily life of a large number of users.
In the application process, the blockchain technology is decentralized distributed service, and blockchain node devices added to a blockchain platform can uplink related data and synchronize the data to the blockchain platform, such as blockchain addition requests, transaction requests, information to be stored, and the like.
In the existing research process of related technologies, the inventor finds that even if information transmission in a block chain platform is carried out, the characteristics that the platform information cannot be tampered and is real can be guaranteed through identity authentication, however, the information can be real, but the content of the information can also bring harm to the platform, the safety of the platform information can still be affected, the reliability of the platform information can obviously be reduced, and then the application value of the block chain platform is affected.
Disclosure of Invention
When the method, the device and the system are applied to a block chain platform, sensitive word filtering processing can be uniformly carried out on transaction data through specific second block chain node equipment in the block chain platform, the sensitive word filtering requirement of the block chain platform is met, meanwhile, a sensitive word filtering strategy can be conveniently maintained at the second block chain node equipment, the maintenance cost is low, and the practical value is good.
In a first aspect, the present application provides a method for processing transaction data, the method including:
the method comprises the steps that first block chain link point equipment obtains target transaction data in a block chain platform;
the first block chain link point device transmits target transaction data to a second block chain link point device preset in a block chain platform, wherein the second block chain link point device is a block chain link point device with a sensitive word filtering strategy deployed;
and calling a sensitive word filtering strategy by the second block link point equipment, and executing sensitive word filtering processing on the target transaction data.
With reference to the first aspect of the present application, in a first possible implementation manner of the first aspect of the present application, the acquiring, by a first block chain link point device, target transaction data in a block chain platform includes:
the first block chain link point device acquires transaction data of a block chain platform completing data uplink processing in a historical time period as target transaction data.
With reference to the first aspect of the present application, in a second possible implementation manner of the first aspect of the present application, the acquiring, by a first block chain link point device, target transaction data in a block chain platform includes:
the first blockchain link point equipment acquires an uplink request, wherein the uplink request is used for requesting to uplink target transaction data to a blockchain platform;
the first blocklink point device extracts target transaction data according to the uplink request.
With reference to the first or second possible implementation manner of the first aspect of the present application, in a third possible implementation manner of the first aspect of the present application, the acquiring, by a first block link point device, target transaction data in a block chain platform includes:
and when the sensitive word filtering strategy is detected to be updated, triggering and acquiring the transaction data of the block chain platform in the historical time period before updating as target transaction data.
With reference to the third possible implementation manner of the first aspect of the present application, in a fourth possible implementation manner of the first aspect of the present application, the acquiring, by the first block link node device, transaction data of a block chain platform in a historical time period before updating as target transaction data includes:
the method comprises the steps that a first block chain node device determines an updating time point of a sensitive word filtering strategy;
the first block chain node equipment identifies a block height s matched with an update time point from a block to be scanned;
the first block link point device ignores the block with the block height larger than the block height s in the block to be scanned, obtains the transaction data in the block with the block height smaller than the block height s as target transaction data, updates the currently traversed block height e in the obtaining process of each step, and takes the transaction data in the block with the block height smaller than the block height e as new target transaction data.
With reference to the first aspect of the present application, in a fifth possible implementation manner of the first aspect of the present application, the transmitting, by a first block chain link point device, target transaction data to a second block chain link point device preset in a block chain platform includes:
when the first block chain node equipment detects that the target transaction data does not belong to the transaction data of the blacklist, transmitting the target transaction data to the second block chain node equipment;
or the second block link point device calls a sensitive word filtering strategy to perform sensitive word filtering processing on the target transaction data, and the method comprises the following steps:
and when the second block chain node equipment detects that the target transaction data does not belong to the transaction data of the blacklist, calling a sensitive word filtering strategy, and executing sensitive word filtering processing on the target transaction data.
With reference to the first aspect of the present application, in a sixth possible implementation manner of the first aspect of the present application, the sensitive word filtering policy is included in an intelligent contract that is deployed by a block chain platform on a second block chain node device, where the sensitive word filtering policy includes interface data of a sensitive word bank, and the sensitive word bank is deployed locally on the second block chain node device, the first block chain node device, or a third-party device.
In a second aspect, the present application provides an apparatus for processing transaction data, the apparatus comprising:
the acquisition unit is used for acquiring target transaction data in the block chain platform;
the transmission unit is used for transmitting the target transaction data to second block chain link point equipment preset in the block chain platform, wherein the second block chain link point equipment is block chain link point equipment with a sensitive word filtering strategy deployed;
and the execution unit is used for calling the sensitive word filtering strategy and executing sensitive word filtering processing on the target transaction data.
With reference to the second aspect of the present application, in a first possible implementation manner of the second aspect of the present application, the obtaining unit is specifically configured to:
and acquiring transaction data of the blockchain platform completing data uplink processing in a historical time period as target transaction data.
With reference to the second aspect of the present application, in a second possible implementation manner of the second aspect of the present application, the obtaining unit is specifically configured to:
acquiring an uplink request, wherein the uplink request is used for requesting to uplink target transaction data to a block chain platform;
and extracting target transaction data according to the uplink request.
With reference to the first or second possible implementation manner of the second aspect of the present application, in a third possible implementation manner of the second aspect of the present application, the obtaining unit is specifically configured to:
and when the sensitive word filtering strategy is detected to be updated, triggering and acquiring the transaction data of the block chain platform in the historical time period before updating as target transaction data.
With reference to the third possible implementation manner of the second aspect of the present application, in a fourth possible implementation manner of the second aspect of the present application, the obtaining unit is specifically configured to:
determining an updating time point of a sensitive word filtering strategy;
identifying a block height s matched with an updating time point from the blocks to be scanned;
in the blocks to be scanned, ignoring the blocks with the block height larger than the block height s, acquiring the transaction data in the blocks with the block height smaller than the block height s as target transaction data, updating the currently traversed block height e in the acquisition process of each step, and taking the transaction data in the blocks with the block height smaller than the block height e as new target transaction data.
With reference to the second aspect of the present application, in a fifth possible implementation manner of the second aspect of the present application, the transmission unit is specifically configured to:
when the first block chain node equipment detects that the target transaction data does not belong to the transaction data of the blacklist, transmitting the target transaction data to the second block chain node equipment;
or, the execution unit is specifically configured to:
and when the second block chain node equipment detects that the target transaction data does not belong to the transaction data of the blacklist, calling a sensitive word filtering strategy, and executing sensitive word filtering processing on the target transaction data.
With reference to the second aspect of the present application, in a sixth possible implementation manner of the second aspect of the present application, the sensitive word filtering policy is included in an intelligent contract that is deployed by a block chain platform on a second block-link node device, where the sensitive word filtering policy includes interface data of a sensitive word bank, and the sensitive word bank is deployed locally on the second block-link node device, the first block-link node device, or a third-party device.
In a third aspect, the present application further provides a system for processing transaction data, including a processor and a memory, where the memory stores a computer program, and the processor executes the method provided by the first aspect of the present application or any possible implementation manner of the first aspect of the present application when calling the computer program in the memory.
In a fourth aspect, the present application further provides a computer-readable storage medium storing a plurality of instructions, which are suitable for being loaded by a processor to perform the method provided in the first aspect of the present application or any one of the possible implementation manners of the first aspect of the present application.
From the above, the present application has the following advantageous effects:
under the requirement that a block chain platform has sensitive word filtering, the method and the device select specific second block chain link point equipment in the block chain platform, after target transaction data to be subjected to sensitive word filtering processing is acquired by first block chain link point equipment in the block chain platform, the target transaction data can be sent to the second block chain link point equipment, the second block chain link point equipment uniformly performs sensitive word filtering processing on the transaction data, sensitive word filtering strategies can be conveniently maintained at the second block chain link point equipment while the sensitive word filtering requirement of the block chain platform is met, maintenance cost is low, and the method and the device have good practical value.
In addition, since the sensitive word filtering strategy is deployed in the second blockchain node device, a targeted security protection strategy is also easier to deploy, and higher data security can be achieved in the case of implementing the sensitive word filtering by the blockchain platform.
Drawings
FIG. 1 is a schematic view of a scenario of a transaction data processing method according to the present application;
FIG. 2 is a schematic flow chart illustrating a method for processing transaction data according to the present application;
FIG. 3 is a schematic flow chart of a traversal scan process of target transaction data of the present application;
FIG. 4 is a schematic diagram of a structure of a transaction data processing device according to the present application;
fig. 5 is a schematic structural diagram of a transaction data processing system according to the present application.
Detailed Description
First, before the present application is introduced, the relevant contents of the present application with respect to the application background will be described.
The transaction data processing method, the transaction data processing device and the computer readable storage medium can be applied to a transaction data processing system, when the transaction data processing method and the device are applied to a block chain platform, sensitive word filtering processing can be uniformly carried out on the transaction data through specific second block chain node equipment in the block chain platform, the sensitive word filtering requirement of the block chain platform is met, meanwhile, a sensitive word filtering strategy can be conveniently maintained at the second block chain node equipment, the maintenance cost is low, and the transaction data processing method and the device have good practical value.
The execution main body of the transaction data processing method can be a transaction data processing device, or a transaction data processing system integrated with the transaction data processing device, and the system can include different types of block link point devices such as a server device, a physical host, or a User Equipment (UE), wherein the transaction data processing device can be implemented in a hardware or software manner, and the UE can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a palm computer, a desktop computer, or a Personal Digital Assistant (PDA).
Next, a description will be given of a transaction data processing method provided in the present application.
First, referring to a scene schematic diagram of a processing method of transaction data of the present application shown in fig. 1 and a flow schematic diagram of a processing method of transaction data of the present application shown in fig. 2, as shown in fig. 2, the processing method of transaction data provided by the present application may specifically include the following steps:
step S201, a first block chain link point device acquires target transaction data in a block chain platform;
step S202, the first block chain link point device transmits target transaction data to a second block chain link point device preset in a block chain platform, wherein the second block chain link point device is a block chain link point device with a sensitive word filtering strategy deployed;
step S203, the second block node device invokes a sensitive word filtering policy to perform sensitive word filtering processing on the target transaction data.
As can be seen from the embodiment shown in fig. 2, when the blockchain platform has a requirement for filtering sensitive words, the application proposes to select a specific second blockchain node point device in the blockchain platform, and when the first blockchain node point device in the blockchain platform acquires target transaction data to be subjected to sensitive word filtering processing, the target transaction data can be sent to the second blockchain node point device, and the second blockchain node point device performs sensitive word filtering processing on the transaction data in a unified manner.
In addition, since the sensitive word filtering strategy is deployed in the second blockchain node device, a targeted security protection strategy is also easier to deploy, and higher data security can be achieved in the case of implementing the sensitive word filtering by the blockchain platform.
The following describes each step in the embodiment shown in fig. 2 and a specific implementation manner that may be adopted in practical applications of each step.
In the Application, different types of devices, such as a server device, a physical host, or a UE, may install an Application (APP) on a block chain platform, register an account, and after passing through verification of the platform, add the platform to become a block chain node device.
In practical applications, the uplink request may be a request initiated by the node equipment of the block chain. Such as transaction request, information with storage needs to be uplink for storage, calculation and other corresponding processing in the blockchain platform
Alternatively, the uplink request may be a request initiated by another device through a block-node device. For example, if a device wants to join a blockchain platform, a blockchain joining request may be forwarded to the platform through a blockchain link point device already joined to the platform, and after the platform passes through, the device may be pulled into the platform to become a new blockchain link point device.
For the data related to the uplink request, it may be referred to as transaction data, in other words, the transaction data for which the present application is directed may be the transaction data requested by the uplink request, and correspondingly, the acquiring, by the first bsp device, the target transaction data may include:
the first blockchain link point equipment acquires an uplink request, wherein the uplink request is used for requesting to uplink target transaction data to the blockchain platform; the first blocklink point device extracts target transaction data according to the uplink request.
It is easy to understand that, in practical applications, the sensitive word filtering processing can be performed on the transaction data that needs to be linked up by default corresponding to the sensitive word filtering requirement of the blockchain platform, so that the obtained transaction data pointed by the link up request can be used as target transaction data and sent to the second blockchain link point device for performing unified sensitive word filtering processing.
In addition, in practical applications, the transaction data targeted by the present application may also be data that has been linked in the blockchain platform, that is, target transaction data acquired by the first blockchain link point device, and data that has been linked in the blockchain platform in a historical time period.
It should be understood that, in practical applications, the stored data related to the blockchain may be understood as transaction data processed in a transaction form according to the service requirements of the actual applications, and the uplink of the transaction data may be specifically performed through a consensus mechanism in the blockchain platform, when the transaction data has uplink requirements, the transaction data may be sent to each blockchain node, and each blockchain node device votes whether to uplink the transaction data under the specification of the consensus mechanism, and when the voting result meets the passing requirement specified by the consensus mechanism, the uplink of the data may be implemented.
For example, in the application of the present application, after the first block link point device obtains the target transaction data, if the target transaction data is the transaction data to be linked, before performing the consensus, the target transaction data may be sent to the second block link point device to perform the sensitive word filtering process, and after the sensitive word filtering process of the second block link point device is performed, the consensus is performed to complete the data linking. Of course, in practical applications, it may also happen that the sensitive word filtering process is performed during the consensus process.
If the transaction data has been processed by filtering the sensitive words of the second block node device, a filtering identifier may be assigned to identify whether the transaction data has been processed by filtering the sensitive words of the second block node device, and through the identifier, whether the transaction data still needs to be processed by filtering the sensitive words may be clearly and easily learned.
For example, if it is detected that the acquired historical transaction data does not carry a filtering identifier, the acquired historical transaction data can be used as current target transaction data and sent to second block link point equipment for sensitive word filtering processing; or, if it is detected that the identification content of the filtering identification of the acquired historical transaction data does not pass the sensitive word filtering processing, the identification content may be sent to the second block link point device for sensitive word filtering processing, and may be specifically adjusted according to the identification form of the filtering identification, which is not specifically limited herein.
Correspondingly, when the sensitive word filtering is identified by whether the filtering identification is carried, in order to match with the unified identification processing, when the transaction data which is not subjected to the common identification or not subjected to the uplink is taken as the target transaction data, the field position of the preset filtering identification can be configured to be empty content so as to definitely identify that the transaction data does not pass the sensitive word filtering processing. Or; when the sensitive word filtering processing is specifically identified by filtering the identification content of the identification, in order to match with the unified identification processing, the identification content of the filtering identification can be given to the transaction data which is not subjected to common identification or uplink transmission, and then the transaction data is taken as the target transaction data, so as to definitely identify that the transaction data does not pass the sensitive word filtering processing.
In addition, in practical applications, especially for historical transaction data, if an update event occurs in the sensitive word filtering process, it is easy to understand that the original data content filtered by the sensitive word may need to continue the sensitive word filtering process to filter the content that needs to be filtered now, such as the above filtering identifier, and specifically, the identifier time point or the sensitive word filtering policy version may also be identified to determine whether the sensitive word policy passed by the sensitive word filtering process is performed under a new or old sensitive word filtering policy.
For example, for the above two types of transaction data proposed above, that is, the transaction data that does not complete uplink and the historical transaction data that has completed uplink, in a specific practical application, there may be a case that the update of the sensitive word filtering policy is currently triggered, it is easy to understand that after the update of the sensitive word filtering policy, there is a new sensitive word filtering process performed on the historical transaction data that completes uplink, and for the transaction data that does not complete uplink, it is obvious that the filtering process may still be performed according to normal sensitive words.
It should be noted that, in practical applications, there may be a huge amount of transaction data processed by the blockchain platform in a short time, and there may be a delay of a certain time when the sensitive word filtering policy is updated, and there may be some special cases, for example, a small amount of transaction data temporarily stops the sensitive word filtering processing, and accumulates into historical transaction data that is not subjected to the sensitive word filtering processing, or a small amount of transaction data passes through the sensitive word filtering processing of the original sensitive word filtering policy within the update time, so the present application specifically addresses a specific acquisition mode of target transaction data for a small amount of abnormal transaction data caused by the updating of the sensitive word filtering policy, that is:
and when the sensitive word filtering strategy is detected to be updated, triggering and acquiring the transaction data of the block chain platform in the historical time period before updating as target transaction data.
It can be understood that, specifically, the update time point when the sensitive word filtering policy is updated may be used to obtain the transaction data of the data time point in the historical time period before the update time point, as the target transaction data currently subjected to the sensitive word filtering processing under the new sensitive word filtering policy, so that it may be ensured that the transaction data that has been historically linked up and has passed through the original sensitive word filtering processing, or the transaction data that has been historically linked up and has not passed through the original sensitive word filtering processing, or the transaction data that has not been linked up and has not passed through the original sensitive word filtering processing, may be accurately captured, and may be used as the target transaction data to be subjected to the sensitive word filtering processing under the new sensitive word filtering policy. And for the updated new transaction data to be linked, the sensitive word filtering processing under the new sensitive word filtering strategy can be normally carried out.
Generally, the update time point of the sensitive word filtering policy is specifically the time point when the update is completed, or may be the time point when the update is triggered.
As a practical implementation manner, referring to a flow diagram of the traversal scanning process of the target transaction data shown in fig. 3, the processing content may specifically include the following steps S301 to S303:
step S301, the first block chain node equipment determines an update time point of a sensitive word filtering strategy;
the first blockchain node may extract an update time point of the sensitive word filtering policy, such as the above-mentioned time point of completing the update, or a time point when the update is triggered.
Specifically, the required update time point may be extracted from event data, such as a log, generated when the sensitive word filtering policy executes the update event.
Step S302, the first block chain node equipment identifies and updates the block height S matched with the time point from the block to be scanned;
in the present application, the blocks in the blockchain platform are similar to the list in terms of the scanning manner of the device, and the data time points of the blocks are arranged from bottom to top, the lower the block is, the longer the time span between the block and the current time point is, and conversely, the block on the upper layer is, the shorter the time span between the block and the current time point is.
In this case, the present application first identifies a block having a data time point that is the same as or closest to an update time point of the sensitive word filtering policy from among blocks within the scanning range, and records a block height of the block as a block height s.
It is understood that the block height s is constant in one scanning period.
Step S303, ignoring the block with the block height greater than the block height S, the first block link point device obtains the transaction data in the block with the block height less than the block height S as the target transaction data, and in each step of obtaining, updates the currently traversed block height e, and uses the transaction data in the block with the block height less than the block height e as the new target transaction data.
After the block height s is obtained, dynamic block scanning is performed by taking the block height s as a reference, each layer of blocks is scanned downwards layer by layer from the blocks smaller than the block height s, and only the transaction data in the blocks smaller than the block height e is taken as target transaction data by combining the dynamically updated currently traversed block height e, and sensitive word filtering processing is performed by a second block link node device.
Or, starting from the block smaller than the block height s, scanning each layer of blocks layer by layer upwards, and only using the transaction data in the block smaller than the block height e as the target transaction data by combining the dynamically updated currently traversed block height e, and executing sensitive word filtering processing by the second block link point device.
It can be understood that, by the scanning mechanism, transaction data in a block with a block height smaller than the block height e, that is, transaction data that does not pass through the sensitive word filtering process under the latest sensitive word filtering policy, is dynamically updated, and new sensitive word filtering process is performed on the transaction data that does not pass through the sensitive word filtering process under the latest sensitive word filtering policy, so that effective filtering process on historical transaction data is ensured within a minimum and effective scanning range.
Secondly, the scanning mechanism implemented based on the block height introduced by the application has the characteristics of simplicity and high efficiency in data processing, so that the efficient scanning efficiency can be provided under the condition of ensuring effective scanning, and the method is suitable for practical use.
It can be understood that in the present application, the sensitive word filtering process, a specific processing manner thereof, except for performing processes such as ignoring, deleting, isolating and the like on the transaction data itself containing the sensitive word, may also directly perform the processing on the sensitive word contained in the transaction data so as to achieve an effect of retaining data contents in the transaction data except for the sensitive word that needs to be filtered, and only filter the sensitive word detected in the transaction data, for example, the sensitive word may be deleted, covered, added with an invalid identifier and the like in the transaction data, so as to achieve an effect of clearing or invalidating the sensitive word.
The sensitive word filtering policy that the sensitive word filtering process depends on is a set of policies required for implementing the sensitive word filtering process, such as an address of a sensitive word bank, a calling mode of the sensitive word bank, a determining mode of a sensitive word, a processing mode of the sensitive word, and the like.
In the present application, the second blockchain link point device selected from the blockchain platform, which is specifically used for performing the sensitive word filtering process, may be selected in advance by a worker of the blockchain platform, or may be selected by voting by a user behind each blockchain link point device in the blockchain platform, in other words, may be selected by manual operation; or, the block chain platform may select the block chain link point device with higher data processing capability as the second block chain link point device, may select the block chain link point device with better network environment as the second block chain link point device, may select the block chain link point device randomly as the second block chain link point device, and may select a new block chain link point device as the second block chain link point device at regular time according to the device identified in the round-robin table. It can be seen that the specific selection strategy of the second block link point device can be adjusted according to actual needs, and the flexibility is high.
In addition, in order to provide convenience for maintenance of the sensitive word filtering strategy, in practical application, an application scheme can be considered, namely a sensitive word library related to the sensitive word filtering strategy is deployed in a pluggable mode.
The sensitive word library can be understood as a set which records various sensitive words needing to be filtered, the set needs to be configured by combining with actual filtering requirements, and therefore updating is needed irregularly along with the lengthening of application time so as to meet the latest sensitive word filtering requirements.
In the basic application scheme, the sensitive word stock can be integrally deployed in an intelligent contract along with a sensitive word filtering strategy, and the sensitive word stock to be called can be extracted from the intelligent contract identified by each node device when the sensitive word filtering strategy is operated.
It can be understood that if the sensitive thesaurus is integrated into the intelligent contract, obviously, each time the sensitive thesaurus is updated, a new round of consensus and writing operation into the intelligent contract are faced.
The method and the system are combined with efficient updating requirements in practical application, and a pluggable scheme is configured, namely the sensitive word stock is stripped out of an intelligent contract, interface data of the sensitive word stock is stored in the intelligent contract, and when the intelligent contract is called and sensitive word filtering processing is executed through a sensitive word filtering strategy, the sensitive word stock can be called through the commonly recognized interface data stored in the intelligent contract.
It is understood that the external sensitive thesaurus is also commonly known, and only the specific sensitive word data in the external sensitive thesaurus can be flexibly and conveniently updated outside, in this case, the external sensitive thesaurus is generally arranged on a device which is beyond the intelligent contract and is considered to have high data security, for example, the external sensitive thesaurus can be specifically deployed on a second block link point device, a first block link point device or even a third party device.
Meanwhile, in order to further improve the sensitive word filtering effect, a layer of simple filtering means can be constructed besides the sensitive word filtering strategy so as to screen the data scale of the transaction data needing to invoke the sensitive word filtering strategy.
Specifically, the filtering means may be understood as a preprocessing means to preliminarily filter the transaction data that does not need to invoke the sensitive word filtering policy and perform the sensitive word filtering processing, or preliminarily filter the transaction data that inevitably needs to be cleared by the general filtering means.
For example, the method can be implemented by combining a blacklist, and the blacklist can be understood as blocking transaction data types needing to be blocked, namely sensitive words do not need to be sent to second block link point equipment for filtering, so that the sensitive words can be directly cleared, invalidated and ignored, and the effect of primary screening is achieved.
Specifically, the data content, the data initiator, the data time point, the data type and the like can be limited, so that the purpose of preliminary screening can be achieved, and the method can be specifically adjusted according to actual needs.
Correspondingly, the target transaction data processed by the second block link point device may specifically correspond to two scenarios:
when the first block chain node equipment detects that the target transaction data does not belong to the transaction data of the blacklist, transmitting the target transaction data to the second block chain node equipment;
or when the second block chain node device detects that the target transaction data does not belong to the transaction data of the blacklist, calling a sensitive word filtering strategy and executing sensitive word filtering processing on the target transaction data.
It is to be understood that this preliminary screening process in combination with the black list may be performed by the first block-linked dot device as well as by the second block-linked dot device.
The blacklist may be configured locally for the blockchain node device, or may be common in the blockchain platform.
The above is the description of the method for processing transaction data of the present application, and the present application also provides a device for processing transaction data in order to better implement the method for processing transaction data provided by the present application.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a transaction data processing apparatus according to the present application, in which the transaction data processing apparatus 400 may specifically include the following structure:
an obtaining unit 401, configured to obtain target transaction data in a blockchain platform;
a transmission unit 402, configured to transmit the target transaction data to a second block link point device preset in the block link platform, where the second block link point device is a block link point device deployed with a sensitive word filtering policy;
and the executing unit 403 is configured to invoke a sensitive word filtering policy, and execute sensitive word filtering processing on the target transaction data.
In an exemplary implementation manner, the obtaining unit 401 is specifically configured to:
and acquiring transaction data of the blockchain platform completing data uplink processing in a historical time period as target transaction data.
In another exemplary implementation manner, the obtaining unit 401 is specifically configured to:
acquiring an uplink request, wherein the uplink request is used for requesting to uplink target transaction data to a block chain platform;
and extracting target transaction data according to the uplink request.
In another exemplary implementation manner, the obtaining unit 401 is specifically configured to:
and when the sensitive word filtering strategy is detected to be updated, triggering and acquiring the transaction data of the block chain platform in the historical time period before updating as target transaction data.
In another exemplary implementation manner, the obtaining unit 401 is specifically configured to:
determining an updating time point of a sensitive word filtering strategy;
identifying a block height s matched with an updating time point from the blocks to be scanned;
in the blocks to be scanned, ignoring the blocks with the block height larger than the block height s, acquiring the transaction data in the blocks with the block height smaller than the block height s as target transaction data, updating the currently traversed block height e in the acquisition process of each step, and taking the transaction data in the blocks with the block height smaller than the block height e as new target transaction data.
In another exemplary implementation manner, the transmission unit 402 is specifically configured to:
when the first block chain node equipment detects that the target transaction data does not belong to the transaction data of the blacklist, transmitting the target transaction data to the second block chain node equipment;
or, the execution unit 403 is specifically configured to:
and when the second block chain node equipment detects that the target transaction data does not belong to the transaction data of the blacklist, calling a sensitive word filtering strategy, and executing sensitive word filtering processing on the target transaction data.
In yet another exemplary implementation, the sensitive word filtering policy is included in an intelligent contract deployed by the blockchain platform on the second blockchain node device, and the sensitive word filtering policy includes interface data of a sensitive word library deployed locally on the second blockchain node device, the first blockchain node device, or a third-party device.
The present application further provides a transaction data processing system, where the transaction data processing system includes a first block link point device and a second block link point device, and taking the block link point device as an example unit, referring to fig. 5, fig. 5 shows a schematic structural diagram of the block link node device of the present application, specifically, the block link node device of the present application includes a processor 501, a memory 502, and an input/output device 503, where the processor 501 is configured to implement each step of the transaction data processing method in any embodiment corresponding to fig. 1 to fig. 3 when executing a computer program stored in the memory 502; alternatively, the processor 501 is configured to implement the functions of the units in the corresponding embodiment of fig. 4 when executing the computer program stored in the memory 502, and the memory 502 is configured to store the computer program required by the processor 501 to execute the transaction data processing method in any of the embodiments corresponding to fig. 1 to 3.
Illustratively, a computer program may be partitioned into one or more modules/units, which are stored in memory 502 and executed by processor 501 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of a computer program in a computer device.
The block link point device may include, but is not limited to, a processor 501, a memory 502, and an input-output device 503. Those skilled in the art will appreciate that the illustration is merely an example of a blockchain node device, and does not constitute a limitation of a blockchain node device, and may include more or less components than those shown, or combine some components, or different components, for example, a blockchain node device may further include a network access device, a bus, etc., and the processor 501, the memory 502, the input output device 503, and the network access device, etc., are connected by the bus.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for the block-linked point device, with various interfaces and lines connecting the various parts of the overall device.
The memory 502 may be used to store computer programs and/or modules, and the processor 501 may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 502, as well as invoking data stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the block link point device, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The processor 501, when executing the computer program stored in the memory 502, may specifically implement the following functions:
the method comprises the steps that first block chain link point equipment obtains target transaction data in a block chain platform;
the first block chain link point device transmits target transaction data to a second block chain link point device preset in a block chain platform, wherein the second block chain link point device is a block chain link point device with a sensitive word filtering strategy deployed;
and calling a sensitive word filtering strategy by the second block link point equipment, and executing sensitive word filtering processing on the target transaction data.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described transaction data processing apparatus, system and corresponding units thereof may refer to the descriptions of the transaction data processing method in any embodiment corresponding to fig. 1 to fig. 3, and are not described herein again in detail.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
For this reason, the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in the transaction data processing method in any embodiment corresponding to fig. 1 to fig. 3 in the present application, and specific operations may refer to descriptions of the transaction data processing method in any embodiment corresponding to fig. 1 to fig. 3, which are not described herein again.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in the transaction data processing method in any embodiment of the present application, such as those shown in fig. 1 to fig. 3, the beneficial effects that can be achieved by the transaction data processing method in any embodiment of the present application, such as those shown in fig. 1 to fig. 3, can be achieved, for details, see the foregoing description, and are not repeated herein.
The above detailed description is provided for the transaction data processing method, apparatus, system and computer-readable storage medium, and the principle and implementation of the present application are explained in detail by applying specific examples, and the description of the above embodiments is only used to help understanding the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of processing transaction data, the method comprising:
the method comprises the steps that first block chain link point equipment obtains target transaction data in a block chain platform;
the first block chain link point device transmits the target transaction data to a second block chain link point device preset in the block chain platform, wherein the second block chain link point device is a block chain link point device with a sensitive word filtering strategy deployed;
and the second block link point device calls the sensitive word filtering strategy to perform sensitive word filtering processing on the target transaction data.
2. The method of claim 1, wherein the first blockchain link point device obtains target transaction data in a blockchain platform, comprising:
and the first block chain link point equipment acquires transaction data of the block chain platform completing data uplink processing in a historical time period as the target transaction data.
3. The method of claim 1, wherein the first blockchain link point device obtains target transaction data in a blockchain platform, comprising:
the first blockchain link point device acquires an uplink request, wherein the uplink request is used for requesting to uplink the target transaction data to the blockchain platform;
and the first block chain node equipment extracts the target transaction data according to the uplink request.
4. The method of claim 2 or 3, wherein the first blockchain link point device obtains target transaction data in a blockchain platform, comprising:
and when the sensitive word filtering strategy is detected to be updated, triggering and acquiring the transaction data of the block chain platform in the historical time period before updating as the target transaction data.
5. The method of claim 4, wherein the first blockchain link point device obtaining transaction data for a historical period of time of the blockchain platform prior to updating as the target transaction data comprises:
the first block link point device determines an update time point of the sensitive word filtering strategy;
the first block link point equipment identifies a block height s matched with the updating time point from blocks to be scanned;
and the first block chain node equipment ignores the block with the block height larger than the block height s in the block to be scanned, acquires the transaction data in the block with the block height smaller than the block height s as the target transaction data, updates the currently traversed block height e in each step of acquisition, and takes the transaction data in the block with the block height smaller than the block height e as the new target transaction data.
6. The method of claim 1, wherein the first block-link point device transmits the target transaction data to a second block-link point device preset in the block chain platform, comprising:
when the first block chain node point device detects that the target transaction data does not belong to the transaction data of the blacklist, transmitting the target transaction data to the second block chain node point device;
or, the second block link point device invokes the sensitive word filtering policy to perform sensitive word filtering processing on the target transaction data, including:
and when the second block chain node device detects that the target transaction data does not belong to the transaction data of the blacklist, calling the sensitive word filtering strategy, and executing the sensitive word filtering processing on the target transaction data.
7. The method of claim 1, wherein the sensitive word filtering policy is included in an intelligent contract deployed by the blockchain platform at the second blockchain node device, wherein the sensitive word filtering policy includes interface data of a sensitive thesaurus deployed locally at the second blockchain node device, the first blockchain node device, or a third party device.
8. An apparatus for processing transaction data, the apparatus comprising:
the acquisition unit is used for acquiring target transaction data in the block chain platform;
the transmission unit is used for transmitting the target transaction data to second block chain link point equipment preset in the block chain platform, wherein the second block chain link point equipment is block chain link point equipment with a sensitive word filtering strategy deployed;
and the execution unit is used for calling the sensitive word filtering strategy and executing sensitive word filtering processing on the target transaction data.
9. A system for processing transaction data, comprising a processor and a memory, a computer program being stored in the memory, the processor, when calling the computer program in the memory, performing the method according to any of claims 1 to 7.
10. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method of any one of claims 1 to 7.
CN202110295299.8A 2021-03-19 2021-03-19 Transaction data processing method, device and system Pending CN112966094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110295299.8A CN112966094A (en) 2021-03-19 2021-03-19 Transaction data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110295299.8A CN112966094A (en) 2021-03-19 2021-03-19 Transaction data processing method, device and system

Publications (1)

Publication Number Publication Date
CN112966094A true CN112966094A (en) 2021-06-15

Family

ID=76279561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110295299.8A Pending CN112966094A (en) 2021-03-19 2021-03-19 Transaction data processing method, device and system

Country Status (1)

Country Link
CN (1) CN112966094A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824565A (en) * 2021-09-24 2021-12-21 广东卓启云链科技有限公司 Block chain sensitive information management method and related device
CN117521148A (en) * 2023-12-29 2024-02-06 苏州元脑智能科技有限公司 Information interaction method and device based on block chain, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119428A (en) * 2019-04-19 2019-08-13 腾讯科技(深圳)有限公司 A kind of block chain information management method, device, equipment and storage medium
CN110543516A (en) * 2019-07-26 2019-12-06 深圳壹账通智能科技有限公司 Intelligent contract processing method and device, computer equipment and storage medium
CN111343142A (en) * 2020-01-22 2020-06-26 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119428A (en) * 2019-04-19 2019-08-13 腾讯科技(深圳)有限公司 A kind of block chain information management method, device, equipment and storage medium
CN110543516A (en) * 2019-07-26 2019-12-06 深圳壹账通智能科技有限公司 Intelligent contract processing method and device, computer equipment and storage medium
CN111343142A (en) * 2020-01-22 2020-06-26 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824565A (en) * 2021-09-24 2021-12-21 广东卓启云链科技有限公司 Block chain sensitive information management method and related device
CN113824565B (en) * 2021-09-24 2023-08-25 广东卓启云链科技有限公司 Block chain sensitive information management method and related device
CN117521148A (en) * 2023-12-29 2024-02-06 苏州元脑智能科技有限公司 Information interaction method and device based on block chain, storage medium and electronic equipment
CN117521148B (en) * 2023-12-29 2024-04-02 苏州元脑智能科技有限公司 Information interaction method and device based on block chain, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
EP3123311B1 (en) Malicious code protection for computer systems based on process modification
JP5863869B2 (en) Browser-based fraud prevention method and system
CN107832100B (en) APK plug-in loading method and terminal thereof
US8479292B1 (en) Disabling malware that infects boot drivers
US10402563B2 (en) Automated classification of exploits based on runtime environmental features
WO2015096695A1 (en) Installation control method, system and device for application program
CN101777062A (en) context-aware real-time computer-protection systems and methods
US8677508B2 (en) Confidential information leakage prevention system, confidential information leakage prevention method and confidential information leakage prevention program
CN112966094A (en) Transaction data processing method, device and system
CN111597553A (en) Process processing method, device, equipment and storage medium in virus searching and killing
CN114528598A (en) Method and device for determining file integrity of file system and electronic equipment
US20110047305A1 (en) Apparatus and method for securing data of usb devices
CN104426836A (en) Invasion detection method and device
CN110688628B (en) Multimedia information processing method and device and server
CN109784041B (en) Event processing method and device, storage medium and electronic device
CN115455414A (en) Safety detection method and device
CN104021351A (en) Method and device for data resource access
CN105653948B (en) Method and device for preventing malicious operation
CN113282363A (en) Method and device for optimizing hybrid APP
CN109492376B (en) Device access authority control method and device and bastion machine
CN113836529A (en) Process detection method, device, storage medium and computer equipment
CN114124524A (en) Cloud platform permission setting method and device, terminal equipment and storage medium
US20110321121A1 (en) Information processing system and operation method of information processing system
CN105208035A (en) Accessing operation blocking method and system and server device
CN110765426A (en) Equipment permission setting method, device, equipment and computer storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210615

RJ01 Rejection of invention patent application after publication