WO2022032988A1 - Data processing method, apparatus and device, and medium - Google Patents

Data processing method, apparatus and device, and medium Download PDF

Info

Publication number
WO2022032988A1
WO2022032988A1 PCT/CN2021/072929 CN2021072929W WO2022032988A1 WO 2022032988 A1 WO2022032988 A1 WO 2022032988A1 CN 2021072929 W CN2021072929 W CN 2021072929W WO 2022032988 A1 WO2022032988 A1 WO 2022032988A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target
transaction data
target transaction
supervision
Prior art date
Application number
PCT/CN2021/072929
Other languages
French (fr)
Chinese (zh)
Inventor
许玉壮
朱涛
周钰
Original Assignee
中国银联股份有限公司
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 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2022032988A1 publication Critical patent/WO2022032988A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries

Definitions

  • the present disclosure belongs to the technical field of data processing, and in particular, relates to a data processing method, apparatus, device and medium.
  • Blockchain technology is a distributed database technology that uses cryptography and consensus mechanisms to ensure that data cannot be tampered with and cannot be forged.
  • blockchain technology is favored for its advantages of decentralization, openness, transparency, non-tampering, and trustworthiness. It is widely used in many fields such as file storage, proof of existence, identity verification, and equity crowdfunding.
  • Embodiments of the present disclosure provide a data processing method, apparatus, device, and medium, which can avoid leakage of transaction data that has been uploaded on the chain.
  • an embodiment of the present disclosure provides a data processing method, including:
  • an embodiment of the present disclosure provides a data processing apparatus, including:
  • a first receiving module configured to receive a data query request sent by a data query node; wherein, the data query request is used to query target transaction data;
  • a first obtaining module configured to obtain the target transaction data in response to the data query request under the condition that the target transaction data is determined to be compliant data
  • the first sending module is used for sending the target transaction data to the data query node.
  • an embodiment of the present disclosure provides a data processing device, the device comprising: a processor and a memory storing computer program instructions;
  • the data processing method according to the first aspect is implemented when the processor executes the computer program instructions.
  • an embodiment of the present disclosure provides a computer-readable storage medium, where computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by a processor, the data processing method described in the first aspect is implemented .
  • the target transaction data after receiving a data query request sent by a data query node for querying target transaction data, if it is determined that the target transaction data is compliant data, the target transaction data is obtained , and send the target transaction data to the data query node. Therefore, after receiving the data query request sent by the data query node, only the compliant data can be sent to the data query node to avoid the leakage of non-compliant transaction data.
  • FIG. 1 is an architectural diagram of an example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure
  • FIG. 2 is an architectural diagram of another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure
  • FIG. 3 is an architectural diagram of another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure
  • FIG. 4 is an architectural diagram of still another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure
  • FIG. 5 is a schematic flowchart of an embodiment of a data processing method according to the first aspect of the present disclosure
  • FIG. 6 is a schematic structural diagram of an embodiment of a data processing apparatus according to the second aspect of the present disclosure.
  • FIG. 7 is a schematic diagram of a hardware structure of an embodiment of a data processing device according to the third aspect of the present disclosure.
  • the data processing method provided by the present disclosure can be applied to the architectures as shown in FIG. 1 to FIG. 4 , and will be described in detail with reference to FIGS. 1 to 4 .
  • FIG. 1 shows an architecture diagram of an example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure.
  • the architecture can be applied to a blockchain network, and the architecture diagram can include a user contract 110 and a supervision encapsulation interface 120 , and the supervision encapsulation interface 120 includes a calling supervision instance 121 .
  • the user contract 110 may communicate with a data query node, and the data query node may be an electronic device or a server, and the electronic device may be a mobile phone, a tablet computer, a desktop computer, a vehicle terminal, a wearable device, and other devices with communication functions , the server may be a device with storage and computing functions, such as a cloud server or a server cluster.
  • the data query node may be an electronic device or a server
  • the electronic device may be a mobile phone, a tablet computer, a desktop computer, a vehicle terminal, a wearable device, and other devices with communication functions
  • the server may be a device with storage and computing functions, such as a cloud server or a server cluster.
  • the blockchain network may be a blockchain service network (Block-chain-based Service Network, BSN).
  • BSN Blockchain-chain-based Service Network
  • the data query node can generate a data query request corresponding to the data query command in response to a data query instruction sent by the user for querying target transaction data, and call the supervision encapsulation interface 120 through the user contract 110, so as to invoke the supervision Instance 121 receives a data query request for querying target transaction data.
  • the calling supervision instance 121 can receive the data query request sent by the data query node, and in response to the data query request, in the case of determining that the target transaction data is compliant data, obtain the target transaction data to send the target transaction data to the data query node.
  • FIG. 2 shows an architecture diagram of another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure.
  • the architecture diagram may include a user contract 110 , a supervisory package interface 120 and a state database 130 .
  • the supervision encapsulation interface 120 may be formed by encapsulating the calling supervision instance 121 and the native data interface 122 .
  • the state database 130 may be a database in a distributed ledger, and the calling supervision instance 121 may communicate with the state database 130 by calling the native data interface 122, thereby realizing the acquisition and storage of the compliance state flag value.
  • the status database 130 may pre-store a plurality of compliance status flag values.
  • the calling supervision instance 121 can call the state database, so that the state database queries the compliance state flag value corresponding to the target string, and after receiving the compliance state flag value corresponding to the target transaction data, the received compliance state flag value is In the case of the target value, the target transaction data is determined to be compliant data.
  • the compliance status flag value corresponding to each on-chain transaction data can be stored in the state database, and the compliance status flag value can be used to determine whether each on-chain transaction data is compliant data.
  • FIG. 3 shows an architecture diagram of another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure.
  • the architecture diagram may include a user contract 110 , a supervision package interface 120 , a state database 130 and a supervision contract 140 .
  • the supervision encapsulation interface 120 may be formed by encapsulating the calling supervision instance 121 and the native data interface 122 .
  • Invoking supervision instance 121 may also communicate with supervision contract 140 .
  • the calling supervision instance 121 can also communicate with the state database 130 by calling the native data interface 122, thereby realizing the acquisition and storage of the target transaction data.
  • the supervision contract 140 may also be called, so as to perform the target data detection on the target transaction data through the supervision contract 140, and obtain The supervision result enables the calling supervision instance 121 to store the compliance status flag value corresponding to the supervision result and the target transaction data in the state database 130 when the supervision result is that the target transaction data does not exist in the target data.
  • calling the supervision instance 121 may also call the supervision contract 140 to detect the target transaction data through the supervision contract 140 and obtain supervision. As a result, the calling supervision instance 121 can store the compliance status flag value and target transaction data corresponding to the supervision result in the status database 130 .
  • Examples of target data may be preset keywords, such as sensitive words.
  • target data such as sensitive words in the transaction data can be screened before the transaction data is uploaded to the chain or after the transaction data is uploaded to the chain, so as to avoid the leakage of the transaction data.
  • FIG. 4 shows an architecture diagram of still another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure.
  • the architecture diagram may include a user contract 110, a supervision package interface 120, a state database 130, and a supervision system server 150 of an offline supervision institution.
  • the supervision encapsulation interface 120 includes a calling supervision instance 121 and a native data interface 122 , and the calling supervision instance 121 is also connected in communication with the supervision system server 150 .
  • the target transaction data before calling the supervision instance 121 to store the target transaction data in the state database 130 through the native data interface 122, the target transaction data may also be sent to the supervision system server 150, so that the offline supervision agency can utilize the supervision system
  • the server 150 performs automatic or manual supervision, obtains the supervision result corresponding to the target transaction data, and feeds back the supervision result to the calling supervision instance 121 .
  • Invoking the supervision instance 121 may store the compliance status flag value corresponding to the supervision result and the target transaction data in the state database 130 when the supervision result is that there is no target data in the target transaction data.
  • calling the supervision instance 121 can send the target transaction data to the supervision system server 150, so that the offline supervision agency can use the supervision system server 150 Perform automatic or manual supervision, obtain the supervision result corresponding to the target transaction data, and feed back the supervision result to the calling supervision instance 121 .
  • Invoking the supervision instance 121 can determine the compliance status flag value corresponding to the supervision result, and store it in the status database.
  • offline regulatory agencies can be used to supervise the transaction data before or on the chain, and then determine whether the transaction data is compliant data, and avoid the leakage of transaction data.
  • FIG. 5 shows a schematic flowchart of an embodiment of the data processing method of the first aspect of the present disclosure.
  • the method shown in FIG. 5 may be executed by the call supervision instance 120 in the architecture shown in FIG. 1 to FIG. 4 , or may be executed by a smart contract engine, which is not limited herein.
  • the data processing method may include S510 , receiving a data query request sent by a data query node, wherein the data query request is used to query target transaction data.
  • the data query node may call the supervision encapsulation interface through the user contract, so that the calling supervision instance receives the data query request through the supervision encapsulation interface.
  • the data processing method further includes S520.
  • S520 In response to the data query request, in the case that the target transaction data is determined to be compliant data, obtain the target transaction data.
  • target transaction data may be stored in the form of key-value pairs.
  • the key of the key-value pair may be the target string
  • the value of the key-value pair may be the target transaction data
  • the target string may be used to index the target transaction data.
  • the data query request may carry a target string, and the target string may be associated with a compliance status mark value, and the compliance status mark value may be used to determine the target transaction data number as compliance data.
  • the compliance status flag value is the target value, it can be determined that the target transaction data is compliance data; in the case where the compliance status flag value is not the target value, it can be determined that the target transaction data is not compliance data.
  • the compliance status flag value when the compliance status flag value is 1, it can be determined that the target transaction data is compliant data, and when the compliance status flag value is 0, it can be determined that the target transaction data is not compliant data.
  • the data processing method may further include:
  • determining the target transaction data as compliance data may include:
  • the compliance status flag value is the target value, it is determined that the target transaction data is the compliance data.
  • the calling supervision instance may parse the data query request to obtain data query request information, and then obtain the target string carried in the data query request from the data query request information. Then, calling the supervision instance can query the compliance status tag value corresponding to the target string, and determine the target transaction data as compliance data when the compliance status tag value is determined to be the target value.
  • the target string and the compliance status flag value corresponding to the target string may be associated and stored in the calling supervision instance.
  • the target string and the compliance status flag value corresponding to the target string may be associated and stored in the status database of the distributed ledger.
  • the data processing method may further include:
  • obtaining the compliance status flag value corresponding to the target string may include:
  • the calling supervision instance may call the state database according to the target string, so that the state database state database queries the compliance state flag value corresponding to the target string.
  • the calling supervision instance can receive the compliance status tag value corresponding to the target string fed back by the status database, so as to obtain the compliance status tag value corresponding to the target string.
  • the calling supervisor instance may call the state database through the native data interface 122 according to the target string.
  • the data processing method may further include:
  • acquiring target transaction data may include:
  • the calling supervision instance can call the state database according to the target string, so that the state database indexes the target transaction data corresponding to the target string in a plurality of pre-stored transaction data, and then feeds back the target transaction data to the calling supervision instance, So that the calling supervisor instance receives the target transaction data fed back by the state database.
  • the calling supervision instance may call the state database through the native data interface 122 according to the target string.
  • the data processing method further includes S530 , sending target transaction data to a data query node.
  • the target transaction data after receiving the data query request sent by the data query node for querying the target transaction data, if it is determined that the target transaction data is compliant data, the target transaction data is acquired, and the target transaction data is sent to the data query node. Therefore, after receiving the data query request sent by the data query node, only the compliant data can be sent to the data query node to avoid the leakage of non-compliant transaction data.
  • the data processing method may further include:
  • first prompt information is sent to the data query node.
  • the first prompt information is used to prompt that the target transaction data is not compliant.
  • invoking the supervision instance can prompt the user that the target transaction data to be queried is not compliant through the first prompt message when it is determined that the target transaction data is not compliant data, so as to further avoid the leakage of transaction data.
  • the first prompt information may include information used to represent "data violation, cannot be queried", so as to prompt the user that the target transaction data to be queried is not compliant.
  • the calling supervision instance may send the first prompt information to the data query node through the user contract.
  • calling the supervision instance can call the user contract through the supervision encapsulation interface, so as to send the first prompt information to the data query node.
  • the data processing method may further include:
  • the target transaction data is refused to be sent to the data query node.
  • invoking the supervision instance can not feed back the target transaction data to the data query node when it is determined that the target transaction data is not compliant data, so as to further avoid the leakage of transaction data.
  • the data Processing methods can also include:
  • the supervisory instance can be called to send the target transaction data to the supervisory system server of the offline supervisory agency, so that the offline supervisory institution can use the supervisory system server for automatic or manual supervision. , obtain the supervision result corresponding to the target transaction data, and feed back the supervision result to the calling supervision instance.
  • the supervision system server may input the target transaction data into a pre-trained compliance detection model, and obtain supervision results corresponding to the target transaction data, so as to realize automatic supervision.
  • the supervision system server can push the target transaction data to the mobile terminal and the web terminal, so that the supervisors of the offline supervision agency can manually supervise the target transaction data, and obtain the supervision results corresponding to the target transaction data, so as to Implement manual supervision.
  • the supervision instance when the supervision result indicates that the target transaction data is compliant data, the supervision instance can be called to determine that the compliance status flag value is the target value; when the supervision result indicates that the target transaction data is not compliant data, the supervision instance is called It can be determined that the compliance status flag value is not the target value.
  • the data processing method may further include:
  • sending the target transaction data to the supervisory system server may include:
  • the supervision system server can also subscribe to the events in the calling supervision instance. For example, when the calling supervision instance detects that there is unsupervised target transaction data in the transaction data on the chain, the calling supervision instance will call the supervision instance according to the target transaction data. data, generate target events, and send the target events to the supervision system server, so that the supervision system server can obtain the target transaction data and conduct offline supervision.
  • the data processing Methods can also include:
  • the calling supervision instance can call the supervision contract, so that the supervision contract detects the target data in the target transaction data, and obtains the supervision result corresponding to the target transaction data.
  • the supervision result indicates that the target transaction data is compliant data; in the case where it is detected that the target data exists in the target transaction data, the supervision result indicates that the target transaction data is not compliant data .
  • the compliance status flag value can be determined as the target value; if the supervision result indicates that the target transaction data is not compliant In the case of data, it can be determined that the compliance status flag value is not the target value.
  • the transaction data it is possible to supervise the transaction data that has been uploaded to the chain. If the transaction data is not compliant, the non-compliant transaction data is marked by setting the compliance status mark value, thereby restricting data query nodes. Access to non-compliant transaction data.
  • the regulatory behavior is flexible and configurable and can be upgraded or updated at any time.
  • the data processing method may further include:
  • the calling supervision instance may, after determining the compliance status flag value corresponding to the supervision result, send the target string corresponding to the target transaction data to the status database, so that the status database can send the target string corresponding to the target string to the status database.
  • the compliance status tag value is stored in association with the status database.
  • the calling supervision instance may also associate and store the target string corresponding to the target transaction data locally.
  • the data processing method before receiving the data query request sent by the data query node, the data processing method may further include:
  • the data storage request is parsed to obtain data storage request information; wherein the data storage request information includes a target string and target transaction data;
  • the target string and target transaction data are associated and stored in the state database.
  • the calling supervision instance can parse the data storage request after receiving the data storage request sent by the data storage node, obtain the target string to be stored and the target transaction data in the data storage request information, and then convert the target string Associated with the target transaction data and stored in the state database.
  • the data processing method may further include:
  • storing the target string and target transaction data in association with the state database may include:
  • the compliance status tag value corresponding to the supervision result is the target value
  • the compliance status tag value and the target transaction data are respectively associated with the target character string and stored in the status database.
  • the calling supervision instance can call the supervision contract, so that the supervision contract can detect the target data in the target transaction data based on the preset supervision rules, and obtain the supervision corresponding to the target transaction data. result.
  • the supervision result indicates that the target transaction data is compliant data; in the case where it is detected that the target data exists in the target transaction data, the supervision result indicates that the target transaction data is not compliant data .
  • the calling supervision instance can determine the compliance status flag value corresponding to the supervision result.
  • calling the supervision instance can determine that the compliance status flag is the target value; when the supervision result indicates that the target transaction data is not compliant data, the compliance status tag can be determined value is not the target value.
  • the target string and the target transaction data can be associated and stored in the state database, and then only the ones that are preliminarily judged to be free of leakage risk by using the supervision contract are stored in the state database.
  • the transaction data is stored on the state database, thereby avoiding the leakage of transaction data.
  • the data processing method may further include:
  • storing the target string and target transaction data in association with the state database may specifically include:
  • the compliance status tag value corresponding to the supervision result is the target value
  • the compliance status tag value and the target transaction data are respectively associated with the target character string and stored in the status database.
  • the calling supervision instance can send the target transaction data to the supervision system server of the offline supervision institution, so that the offline supervision institution can use the supervision system server to automatically or manually Supervision, obtain the supervision result corresponding to the target transaction data, and feed back the supervision result to the calling supervision instance.
  • the supervision result indicates that the target transaction data is compliant data
  • calling the supervision instance can determine that the compliance status flag is the target value; when the supervision result indicates that the target transaction data is not compliant data, calling the supervision instance can determine the compliance status.
  • the gauge status tag value is not the target value.
  • the target string and the target transaction data can be associated and stored in the state database, and then only the ones that are preliminarily judged to be free of leakage risk by using the supervision contract are stored in the state database.
  • the transaction data is stored on the state database, thereby avoiding the leakage of transaction data.
  • penetrating and non-perceptual supervision can be performed on the transaction data on the chain. Users only need to call the supervision encapsulation interface, the transaction data does not need to be signed, and the supervision behavior is not perceived by the user.
  • the data processing method may further include:
  • the second prompt information is fed back to the data storage node.
  • the second prompt information is used to prompt that the target transaction data detection fails.
  • invoking the supervision instance can determine that the target transaction data is not compliant when it is determined that the compliance status flag value corresponding to the supervision result is not the target value, and then use the second prompt message to prompt the user that the target transaction data to be stored is not compliant , to further avoid the leakage of transaction data.
  • the second prompt information may include information used to represent "data violation and cannot be uploaded to the chain", so as to prompt the user that the target transaction data to be stored is not compliant.
  • the data processing method may further include:
  • the calling supervision instance may not upload the target transaction data to the state database when it is determined that the detection result is that the target data is detected, so as to further avoid the leakage of the transaction data.
  • FIG. 6 shows a schematic structural diagram of an embodiment of a data processing apparatus according to the second aspect of the present disclosure.
  • the apparatus shown in FIG. 6 may be set in the call supervision instance 120 in the architecture shown in FIG. 1 to FIG. 4 , or may be set in a smart contract engine, which is not limited herein.
  • the data processing apparatus 600 may include a first receiving module 610 , a first obtaining module 620 and a first sending module 630 .
  • the first receiving module 610 may be configured to receive a data query request sent by a data query node; wherein, the data query request is used to query target transaction data.
  • the first obtaining module 620 may be configured to obtain the target transaction data in response to the data query request under the condition that the target transaction data is determined to be compliant data.
  • the first sending module 630 may be configured to send the target transaction data to the data query node.
  • the target transaction data after receiving the data query request sent by the data query node for querying the target transaction data, if it is determined that the target transaction data is compliant data, the target transaction data is acquired, and the target transaction data is sent to the data query node. transaction data. Therefore, after receiving the data query request sent by the data query node, only the compliant data can be sent to the data query node to avoid the leakage of non-compliant transaction data.
  • the data processing apparatus 600 may further include a second sending module, and the second sending module may be configured to, in response to the data query request, query the data when it is determined that the target transaction data is not compliant data
  • the node sends first prompt information.
  • the first prompt information is used to prompt that the target transaction data is not compliant.
  • the data processing apparatus 600 may further include a first processing module, and the first processing module may be configured to, in response to a data query request, refuse to submit the data to the data in the case that it is determined that the target transaction data is not compliant data
  • the query node sends the target transaction data.
  • the data processing apparatus 600 may further include a first parsing module, a second acquiring module, and a first determining module.
  • the first parsing module may be configured to parse the data query request to obtain data query request information, wherein the data query request information includes a target character string corresponding to the target transaction data.
  • the second obtaining module may be configured to obtain the compliance status flag value corresponding to the target string.
  • the first confirmation module may be configured to determine the target transaction data as compliance data when the compliance status flag value is the target value.
  • the data processing apparatus 600 may further include a first calling module, and the first calling module may be configured to call the state database, so that the state database may query the compliance state flag value corresponding to the target string.
  • the second obtaining module may be specifically configured to obtain the compliance status flag value corresponding to the target string fed back by the status database.
  • the data processing apparatus 600 may further include a second calling module, and the second calling module may be configured to call the state database, so that the state database can query the target transaction data corresponding to the target string.
  • the first obtaining module 620 may be specifically configured to obtain the target transaction data fed back by the state database.
  • the data processing apparatus 600 may further include a third sending module, a second receiving module, and a second determining module.
  • the third sending module may be configured to send the target transaction data to the supervision system server, so that the supervision system server feeds back the supervision result corresponding to the target transaction data.
  • the second receiving module may be configured to receive the supervision result fed back by the supervision system server.
  • the second determination module may be configured to determine the compliance status flag value corresponding to the supervision result.
  • the data processing apparatus 600 may further include a third calling module, a third receiving module, and a third determining module.
  • the third calling module can be used to call the supervision contract, so that the supervision contract detects the target data in the target transaction data, and obtains the supervision result corresponding to the target transaction data.
  • the third receiving module can be used to receive the supervision result fed back by the supervision contract.
  • the third determination module may be configured to determine the compliance status flag value corresponding to the supervision result.
  • the data processing apparatus 600 may further include a third acquisition module and a first storage module.
  • the third obtaining module may be used to obtain the target character string corresponding to the target transaction data.
  • the first storage module may be configured to store the target string and the compliance status flag value in association with the status database.
  • the data processing apparatus 600 may further include a first generating module, and the first generating module may be configured to generate a target event according to the target transaction data.
  • the third sending module may be specifically configured to send the target event to the supervision system server.
  • the data processing apparatus 600 may further include a fourth receiving module, a second parsing module, and a second storage module.
  • the fourth receiving module may be configured to receive the data storage request sent by the data storage node.
  • the second parsing module may be configured to parse the data storage request in response to the data storage request to obtain data storage request information, wherein the data storage request information includes target character strings and target transaction data.
  • the second storage module may be configured to store the target character string and the target transaction data in a state database in association with each other.
  • the data processing apparatus 600 may further include a fourth calling module, a fifth receiving module, and a fourth determining module.
  • the fourth calling module calls the supervision contract, so that the supervision contract detects the target data in the target transaction data, and obtains the supervision result corresponding to the target transaction data.
  • the fifth receiving module may be used to receive the supervision result fed back by the supervision contract.
  • the fourth determination module may be used to determine the compliance status flag value corresponding to the supervision result.
  • the second storage module may be specifically configured to store the compliance status mark value and the target transaction data in the status database in association with the target character string when the compliance status mark value corresponding to the supervision result is the target value.
  • the data processing apparatus 600 may further include a fourth sending module, a sixth receiving module, and a fifth determining module.
  • the fourth sending module may be configured to send the target transaction data to the supervision system server, so that the supervision system server feeds back the supervision result corresponding to the target transaction data.
  • the sixth receiving module may be configured to receive the supervision result fed back by the supervision system server.
  • the fifth determination module may be used to determine the compliance status flag value corresponding to the supervision result.
  • the second storage module may be specifically configured to store the compliance status mark value and the target transaction data in the status database in association with the target character string when the compliance status mark value corresponding to the supervision result is the target value.
  • the data processing apparatus 600 may further include a fifth sending module, and the fifth sending module may be configured to feed back to the data storage node when the compliance status flag value corresponding to the supervision result is not the target value Second prompt message.
  • the second prompt information is used to prompt that the target transaction data detection fails.
  • the data processing apparatus 600 may further include a second processing module, and the second processing module may be configured to refuse to convert the target string to the target string when the compliance status flag value corresponding to the supervision result is not the target value Associated with the target transaction data and stored in the state database.
  • data processing apparatus 600 shown in FIG. 6 can execute various steps in the method embodiment shown in FIG. 5 and realize various processes and effects in the method embodiment shown in FIG. Repeat.
  • FIG. 7 shows a schematic diagram of a hardware structure of an embodiment of a data processing device according to the third aspect of the present disclosure.
  • the data processing apparatus may include a processor 701 and a memory 702 having computer program instructions stored thereon.
  • processor 701 may include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.
  • CPU central processing unit
  • ASIC Application Specific Integrated Circuit
  • Memory 702 may include mass storage for data or instructions.
  • memory 702 may include a Hard Disk Drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a Universal Serial Bus (USB) drive or two or more A combination of more than one of the above.
  • Memory 702 may include removable or non-removable (or fixed) media, where appropriate.
  • Storage 702 may be internal or external to the integrated gateway disaster recovery device, where appropriate.
  • memory 702 is non-volatile solid state memory.
  • memory 702 includes read only memory (ROM).
  • the ROM may be a mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically rewritable ROM (EAROM) or flash memory or A combination of two or more of the above.
  • PROM programmable ROM
  • EPROM erasable PROM
  • EEPROM electrically erasable PROM
  • EAROM electrically rewritable ROM
  • flash memory or A combination of two or more of the above.
  • the processor 701 reads and executes the computer program instructions stored in the memory 702 to implement any one of the data processing methods in the foregoing embodiments.
  • the data processing device may also include a communication interface 703 and a bus 710 .
  • the processor 701 , the memory 702 , and the communication interface 703 are connected through the bus 710 and complete the mutual communication.
  • the communication interface 703 is mainly used to implement communication between modules, apparatuses, units and/or devices in the embodiments of the present disclosure.
  • Bus 710 includes hardware, software, or both, coupling components of the data processing device to each other.
  • the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) Interconnect, Industry Standard Architecture (ISA) Bus, Infiniband Interconnect, Low Pin Count (LPC) Bus, Memory Bus, Microchannel Architecture (MCA) Bus, Peripheral Component Interconnect (PCI) Bus, PCI-Express (PCI-X) Bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or a combination of two or more of the above.
  • Bus 710 may include one or more buses, where appropriate. Although embodiments of the present disclosure describe and illustrate a particular bus, this disclosure contemplates any suitable bus or interconnect.
  • the data processing device can execute the information processing method in the embodiment of the present disclosure, thereby implementing the data processing method and apparatus described in conjunction with FIG. 5 and FIG. 6 .
  • the embodiments of the present disclosure may be implemented by providing a computer-readable storage medium.
  • Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by the processor, any one of the data processing device methods in the foregoing embodiments is implemented.
  • Examples of computer-readable storage media shown include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disks or CD etc.
  • the functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof.
  • it When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like.
  • ASIC application specific integrated circuit
  • elements of the present disclosure are programs or code segments used to perform the required tasks.
  • the program or code segments may be stored in a machine-readable medium or transmitted over a transmission medium or communication link by a data signal carried in a carrier wave.
  • a "machine-readable medium” may include any medium that can store or transmit information.
  • machine-readable media examples include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like.
  • the code segments may be downloaded via a computer network such as the Internet, an intranet, or the like.

Abstract

A data processing method, apparatus and device, and a medium. The data processing method comprises: receiving a data query request sent by a data query node, wherein the data query request is used for querying target transaction data (S510); in response to the data query request, when it is determined that the target transaction data is compliant data, acquiring the target transaction data (S520); and sending the target transaction data to the data query node (S530). As such, the leakage of transaction data that is already on a chain can be prevented.

Description

数据处理方法、装置、设备及介质Data processing method, apparatus, equipment and medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求享有于2020年08月14日提交的名称为“数据处理方法、装置、设备及介质”的中国专利申请202010820392.1的优先权,该申请的全部内容通过引用并入本文中。This application claims the priority of Chinese Patent Application No. 202010820392.1 filed on August 14, 2020, entitled "Data Processing Method, Apparatus, Equipment and Medium", the entire content of which is incorporated herein by reference.
技术领域technical field
本公开属于数据处理技术领域,尤其涉及一种数据处理方法、装置、设备及介质。The present disclosure belongs to the technical field of data processing, and in particular, relates to a data processing method, apparatus, device and medium.
背景技术Background technique
区块链技术是一种分布式数据库技术,利用密码学和共识机制保证了数据的不可篡改和不可伪造。随着计算机和互联网技术的发展,区块链技术以其去中心化、公开透明、不可篡改、可信任等优点,备受青睐,在智能合约、证券交易、电子商务、物联网、社交通讯、文件存储、存在性证明、身份验证、股权众筹等众多领域得到广泛应用。Blockchain technology is a distributed database technology that uses cryptography and consensus mechanisms to ensure that data cannot be tampered with and cannot be forged. With the development of computer and Internet technology, blockchain technology is favored for its advantages of decentralization, openness, transparency, non-tampering, and trustworthiness. It is widely used in many fields such as file storage, proof of existence, identity verification, and equity crowdfunding.
为了保证区块链的数据安全性,一旦数据上链,则无法修改。在交易相关方将交易数据上链之后,如果不对已上链的交易数据进行保护,则可能会造成交易相关方的交易数据的泄露。In order to ensure the data security of the blockchain, once the data is on the chain, it cannot be modified. After the transaction related parties upload the transaction data to the chain, if the transaction data that has been uploaded on the chain is not protected, the transaction data of the transaction related parties may be leaked.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供一种数据处理方法、装置、设备及介质,能够避免已上链的交易数据的泄露。Embodiments of the present disclosure provide a data processing method, apparatus, device, and medium, which can avoid leakage of transaction data that has been uploaded on the chain.
第一方面,本公开实施例提供了一种数据处理方法,包括:In a first aspect, an embodiment of the present disclosure provides a data processing method, including:
接收数据查询节点发送的数据查询请求;其中,数据查询请求用于查询目标交易数据;Receive a data query request sent by a data query node; wherein, the data query request is used to query target transaction data;
响应于数据查询请求,在确定目标交易数据为合规数据的情况下,获取目标交易数据;In response to the data query request, in the case that the target transaction data is determined to be compliant data, obtain the target transaction data;
向数据查询节点发送目标交易数据。Send the target transaction data to the data query node.
第二方面,本公开实施例提供了一种数据处理装置,包括:In a second aspect, an embodiment of the present disclosure provides a data processing apparatus, including:
第一接收模块,用于接收数据查询节点发送的数据查询请求;其中,数据查询请求用于查询目标交易数据;a first receiving module, configured to receive a data query request sent by a data query node; wherein, the data query request is used to query target transaction data;
第一获取模块,用于响应于数据查询请求,在确定目标交易数据为合规数据的情况下,获取目标交易数据;a first obtaining module, configured to obtain the target transaction data in response to the data query request under the condition that the target transaction data is determined to be compliant data;
第一发送模块,用于向数据查询节点发送目标交易数据。The first sending module is used for sending the target transaction data to the data query node.
第三方面,本公开实施例提供了一种数据处理设备,该设备包括:处理器以及存储有计算机程序指令的存储器;In a third aspect, an embodiment of the present disclosure provides a data processing device, the device comprising: a processor and a memory storing computer program instructions;
处理器执行计算机程序指令时实现如第一方面所述的数据处理方法。The data processing method according to the first aspect is implemented when the processor executes the computer program instructions.
第四方面,本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序指令,计算机程序指令被处理器执行时实现如第一方面所述的数据处理方法。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by a processor, the data processing method described in the first aspect is implemented .
本公开实施例的数据处理方法、装置、设备及介质,在接收到数据查询节点发送的用于查询目标交易数据的数据查询请求之后,如果确定目标交易数据为合规数据,则获取目标交易数据,并向数据查询节点发送目标交易数据,因此,可以在接收到数据查询节点发送的数据查询请求后,仅将合规数据发送给数据查询节点,避免不合规的交易数据的泄露。In the data processing method, device, device, and medium of the embodiments of the present disclosure, after receiving a data query request sent by a data query node for querying target transaction data, if it is determined that the target transaction data is compliant data, the target transaction data is obtained , and send the target transaction data to the data query node. Therefore, after receiving the data query request sent by the data query node, only the compliant data can be sent to the data query node to avoid the leakage of non-compliant transaction data.
附图说明Description of drawings
从下面结合附图对本公开的具体实施方式的描述中可以更好地理解本公开。其中,相同或相似的附图标记表示相同或相似的特征。The present disclosure can be better understood from the following description of specific embodiments of the present disclosure in conjunction with the accompanying drawings. Wherein, the same or similar reference numerals denote the same or similar features.
图1是根据本公开第一方面的数据处理方法的实施例的一种数据处理的示例的架构图;FIG. 1 is an architectural diagram of an example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure;
图2是根据本公开第一方面的数据处理方法的实施例的另一种数据处理的示例的架构图;FIG. 2 is an architectural diagram of another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure;
图3是根据本公开第一方面的数据处理方法的实施例的又一种数据处 理的示例的架构图;3 is an architectural diagram of another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure;
图4是根据本公开第一方面的数据处理方法的实施例的再一种数据处理的示例的架构图;4 is an architectural diagram of still another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure;
图5是本公开第一方面的数据处理方法的实施例的流程示意图;5 is a schematic flowchart of an embodiment of a data processing method according to the first aspect of the present disclosure;
图6是本公开第二方面的数据处理装置的实施例的结构示意图;6 is a schematic structural diagram of an embodiment of a data processing apparatus according to the second aspect of the present disclosure;
图7是本公开第三方面的数据处理设备的实施例的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an embodiment of a data processing device according to the third aspect of the present disclosure.
具体实施方式detailed description
下面将详细描述本公开的各个方面的特征和示例性实施例,为了使本公开的目的及优点更加清楚明白,以下结合附图及具体实施例,对本公开进行进一步详细描述。应理解,此处所描述的具体实施例仅被配置为解释本公开,并不被配置为限定本公开。对于本领域技术人员来说,本公开可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本公开的示例来提供对本公开更好的理解。The features and exemplary embodiments of various aspects of the present disclosure will be described in detail below. In order to make the purpose and advantages of the present disclosure more comprehensible, the present disclosure will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present disclosure, and not to limit the present disclosure. It will be apparent to those skilled in the art that the present disclosure may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present disclosure by illustrating examples of the present disclosure.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprises" does not preclude the presence of additional identical elements in a process, method, article, or device that includes the element.
本公开所提供的数据处理方法,可以应用于如图1至图4的架构中,具体结合图1至图4进行详细说明。The data processing method provided by the present disclosure can be applied to the architectures as shown in FIG. 1 to FIG. 4 , and will be described in detail with reference to FIGS. 1 to 4 .
图1示出了根据本公开第一方面的数据处理方法的实施例的一种数据处理的示例的架构图。如图1所示,该架构可以应用于区块链网络,该架构图中可以包括用户合约110和监管封装接口120,监管封装接口120包括调用监管实例121。FIG. 1 shows an architecture diagram of an example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure. As shown in FIG. 1 , the architecture can be applied to a blockchain network, and the architecture diagram can include a user contract 110 and a supervision encapsulation interface 120 , and the supervision encapsulation interface 120 includes a calling supervision instance 121 .
在一些实施例中,用户合约110可以与数据查询节点通信,数据查询节点可以为电子设备或服务器,电子设备可以是手机、平板电脑、台式电脑、车载终端和可穿戴设备等具有通讯功能的设备,服务器可以是云服务器或者服务器集群等具有存储以及计算功能的设备。In some embodiments, the user contract 110 may communicate with a data query node, and the data query node may be an electronic device or a server, and the electronic device may be a mobile phone, a tablet computer, a desktop computer, a vehicle terminal, a wearable device, and other devices with communication functions , the server may be a device with storage and computing functions, such as a cloud server or a server cluster.
在一些实施例中,区块链网络可以为区块链服务网络(Block-chain-based Service Network,BSN)。In some embodiments, the blockchain network may be a blockchain service network (Block-chain-based Service Network, BSN).
继续参见图1,数据查询节点可以响应于用户发出的用于查询目标交易数据的数据查询指令,生成数据查询指令对应的数据查询请求,并且通过用户合约110调用监管封装接口120,以使调用监管实例121接收用于查询目标交易数据的数据查询请求。Continuing to refer to FIG. 1 , the data query node can generate a data query request corresponding to the data query command in response to a data query instruction sent by the user for querying target transaction data, and call the supervision encapsulation interface 120 through the user contract 110, so as to invoke the supervision Instance 121 receives a data query request for querying target transaction data.
调用监管实例121可以接收数据查询节点发送的数据查询请求,并且响应于数据查询请求,在确定目标交易数据为合规数据的情况下,获取目标交易数据,以向数据查询节点发送目标交易数据。The calling supervision instance 121 can receive the data query request sent by the data query node, and in response to the data query request, in the case of determining that the target transaction data is compliant data, obtain the target transaction data to send the target transaction data to the data query node.
因此,可以在接收到数据查询节点发送的数据查询请求后,仅将合规数据发送给数据查询节点,避免不合规的交易数据的泄露。Therefore, after receiving the data query request sent by the data query node, only compliant data can be sent to the data query node to avoid leakage of non-compliant transaction data.
图2示出了根据本公开第一方面的数据处理方法的实施例的另一种数据处理的示例的架构图。如图2所示,该架构图中可以包括用户合约110、监管封装接口120和状态数据库130。其中,监管封装接口120可以由调用监管实例121和原生数据接口122封装形成。FIG. 2 shows an architecture diagram of another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure. As shown in FIG. 2 , the architecture diagram may include a user contract 110 , a supervisory package interface 120 and a state database 130 . The supervision encapsulation interface 120 may be formed by encapsulating the calling supervision instance 121 and the native data interface 122 .
需要说明的是,图2所示的架构中的用户合约110和调用监管实例121的原理与图1所示的架构中的用户合约110和调用监管实例121的原理相似,在此不做赘述。It should be noted that the principles of the user contract 110 and the invocation supervision instance 121 in the architecture shown in FIG. 2 are similar to those of the user contract 110 and the invocation supervision instance 121 in the architecture shown in FIG. 1 , and will not be repeated here.
状态数据库130可以为分布式账本中的数据库,调用监管实例121可以通过调用原生数据接口122与状态数据库130通信,进而实现合规状态标记值的获取及存储。The state database 130 may be a database in a distributed ledger, and the calling supervision instance 121 may communicate with the state database 130 by calling the native data interface 122, thereby realizing the acquisition and storage of the compliance state flag value.
状态数据库130可以预先存储有多个合规状态标记值。调用监管实例121可以调用状态数据库,使状态数据库查询目标字符串对应的合规状态标记值,并且在接收到目标交易数据对应的合规状态标记值之后,在接收到的合规状态标记值为目标值的情况下,确定目标交易数据为合规数据。The status database 130 may pre-store a plurality of compliance status flag values. The calling supervision instance 121 can call the state database, so that the state database queries the compliance state flag value corresponding to the target string, and after receiving the compliance state flag value corresponding to the target transaction data, the received compliance state flag value is In the case of the target value, the target transaction data is determined to be compliant data.
因此,可以在状态数据库中存储每个已上链的交易数据对应的合规状态标记值,并利用该合规状态标记值,确定每个已上链的交易数据是否为合规数据。Therefore, the compliance status flag value corresponding to each on-chain transaction data can be stored in the state database, and the compliance status flag value can be used to determine whether each on-chain transaction data is compliant data.
图3示出了根据本公开第一方面的数据处理方法的实施例的又一种数据处理的示例的架构图。如图3所示,该架构图中可以包括用户合约110、监管封装接口120、状态数据库130和监管合约140。其中,监管封装接口120可以由调用监管实例121和原生数据接口122封装形成。FIG. 3 shows an architecture diagram of another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure. As shown in FIG. 3 , the architecture diagram may include a user contract 110 , a supervision package interface 120 , a state database 130 and a supervision contract 140 . The supervision encapsulation interface 120 may be formed by encapsulating the calling supervision instance 121 and the native data interface 122 .
需要说明的是,图3所示的架构中的用户合约110、状态数据库130和调用监管实例121的原理与图2所示的架构中的用户合约110、状态数据库130和调用监管实例121的原理相似,在此不做赘述。It should be noted that the principles of the user contract 110 , the state database 130 and the invocation supervision instance 121 in the architecture shown in FIG. 3 are the same as the principles of the user contract 110 , the state database 130 and the invocation supervision instance 121 in the architecture shown in FIG. 2 similar, and will not be repeated here.
调用监管实例121还可以与监管合约140通信。调用监管实例121还可以通过调用原生数据接口122与状态数据库130通信,进而实现目标交易数据的获取及存储。Invoking supervision instance 121 may also communicate with supervision contract 140 . The calling supervision instance 121 can also communicate with the state database 130 by calling the native data interface 122, thereby realizing the acquisition and storage of the target transaction data.
在一些实施例中,调用监管实例121在通过原生数据接口122将目标交易数据存储至状态数据库130之前,还可以调用监管合约140,以通过监管合约140对目标交易数据进行目标数据的检测,得到监管结果,使得调用监管实例121可以在监管结果为目标交易数据中不存在目标数据的情况下,将监管结果对应的合规状态标记值和目标交易数据存储至状态数据库130。In some embodiments, before calling the supervision instance 121 to store the target transaction data in the state database 130 through the native data interface 122, the supervision contract 140 may also be called, so as to perform the target data detection on the target transaction data through the supervision contract 140, and obtain The supervision result enables the calling supervision instance 121 to store the compliance status flag value corresponding to the supervision result and the target transaction data in the state database 130 when the supervision result is that the target transaction data does not exist in the target data.
在另一些实施例中,在目标交易数据为已上链的交易数据的情况下,调用监管实例121还可以调用监管合约140,以通过监管合约140对目标交易数据进行目标数据的检测,得到监管结果,使得调用监管实例121可以将监管结果对应的合规状态标记值和目标交易数据存储至状态数据库130。In other embodiments, when the target transaction data is the transaction data that has been on the chain, calling the supervision instance 121 may also call the supervision contract 140 to detect the target transaction data through the supervision contract 140 and obtain supervision. As a result, the calling supervision instance 121 can store the compliance status flag value and target transaction data corresponding to the supervision result in the status database 130 .
目标数据的示例可以为预先设置的关键词,例如敏感词。Examples of target data may be preset keywords, such as sensitive words.
因此,可以在将交易数据上链之前或者在交易数据上链之后,对交易数据中的敏感词等目标数据进行筛查,避免交易数据的泄露。Therefore, target data such as sensitive words in the transaction data can be screened before the transaction data is uploaded to the chain or after the transaction data is uploaded to the chain, so as to avoid the leakage of the transaction data.
图4示出了根据本公开第一方面的数据处理方法的实施例的再一种数据处理的示例的架构图。如图3所示,该架构图中可以包括用户合约 110、监管封装接口120、状态数据库130和线下监管机构的监管系统服务器150。其中,监管封装接口120包括调用监管实例121和原生数据接口122,调用监管实例121还与监管系统服务器150通信连接。FIG. 4 shows an architecture diagram of still another example of data processing according to an embodiment of the data processing method of the first aspect of the present disclosure. As shown in FIG. 3, the architecture diagram may include a user contract 110, a supervision package interface 120, a state database 130, and a supervision system server 150 of an offline supervision institution. The supervision encapsulation interface 120 includes a calling supervision instance 121 and a native data interface 122 , and the calling supervision instance 121 is also connected in communication with the supervision system server 150 .
需要说明的是,图4所示的架构中的用户合约110、状态数据库130和调用监管实例121的原理与图2所示的架构中的用户合约110、状态数据库130和调用监管实例121的原理相似,在此不做赘述。It should be noted that the principles of the user contract 110 , the state database 130 and the invocation supervision instance 121 in the architecture shown in FIG. 4 are the same as the principles of the user contract 110 , the state database 130 and the invocation supervision instance 121 in the architecture shown in FIG. 2 similar, and will not be repeated here.
在一些实施例中,调用监管实例121在通过原生数据接口122将目标交易数据存储至状态数据库130之前,还可以将目标交易数据发送给监管系统服务器150,以使线下监管机构可以利用监管系统服务器150进行自动或手动监管,得到目标交易数据对应的监管结果,并且向调用监管实例121反馈该监管结果。调用监管实例121可以在监管结果为目标交易数据中不存在目标数据的情况下,将监管结果对应的合规状态标记值和目标交易数据存储至状态数据库130。In some embodiments, before calling the supervision instance 121 to store the target transaction data in the state database 130 through the native data interface 122, the target transaction data may also be sent to the supervision system server 150, so that the offline supervision agency can utilize the supervision system The server 150 performs automatic or manual supervision, obtains the supervision result corresponding to the target transaction data, and feeds back the supervision result to the calling supervision instance 121 . Invoking the supervision instance 121 may store the compliance status flag value corresponding to the supervision result and the target transaction data in the state database 130 when the supervision result is that there is no target data in the target transaction data.
在另一些实施例中,在目标交易数据为已上链的交易数据的情况下,调用监管实例121可以将目标交易数据发送给监管系统服务器150,以使线下监管机构可以利用监管系统服务器150进行自动或手动监管,得到目标交易数据对应的监管结果,并且向调用监管实例121反馈该监管结果。调用监管实例121可以确定监管结果对应的合规状态标记值,并将其存储至状态数据库。In other embodiments, when the target transaction data is the transaction data that has been on the chain, calling the supervision instance 121 can send the target transaction data to the supervision system server 150, so that the offline supervision agency can use the supervision system server 150 Perform automatic or manual supervision, obtain the supervision result corresponding to the target transaction data, and feed back the supervision result to the calling supervision instance 121 . Invoking the supervision instance 121 can determine the compliance status flag value corresponding to the supervision result, and store it in the status database.
因此,可以利用线下监管机构对上链前或已上链的交易数据进行监管,进而判断交易数据是否为合规数据,避免交易数据的泄露。Therefore, offline regulatory agencies can be used to supervise the transaction data before or on the chain, and then determine whether the transaction data is compliant data, and avoid the leakage of transaction data.
图5示出了本公开第一方面的数据处理方法的实施例的流程示意图。FIG. 5 shows a schematic flowchart of an embodiment of the data processing method of the first aspect of the present disclosure.
在本公开一些实施例中,图5所示的方法可以由图1至图4所示的架构中的调用监管实例120执行,也可以由智能合约引擎执行,在此不做限制。In some embodiments of the present disclosure, the method shown in FIG. 5 may be executed by the call supervision instance 120 in the architecture shown in FIG. 1 to FIG. 4 , or may be executed by a smart contract engine, which is not limited herein.
如图5所示,该数据处理方法可以包括S510、接收数据查询节点发送的数据查询请求,其中,数据查询请求用于查询目标交易数据。As shown in FIG. 5 , the data processing method may include S510 , receiving a data query request sent by a data query node, wherein the data query request is used to query target transaction data.
在本公开一些实施例中,数据查询节点可以通过用户合约调用监管封装接口,以使调用监管实例通过监管封装接口接收数据查询请求。In some embodiments of the present disclosure, the data query node may call the supervision encapsulation interface through the user contract, so that the calling supervision instance receives the data query request through the supervision encapsulation interface.
如图5所示,该数据处理方法还包括S520、响应于数据查询请求,在确定目标交易数据为合规数据的情况下,获取目标交易数据。As shown in FIG. 5 , the data processing method further includes S520. In response to the data query request, in the case that the target transaction data is determined to be compliant data, obtain the target transaction data.
在本公开一些实施例中,目标交易数据可以以键值对的形式进行存储。其中,键值对的键可以为目标字符串,键值对的值可以为目标交易数据,目标字符串可以用于对目标交易数据进行索引。In some embodiments of the present disclosure, target transaction data may be stored in the form of key-value pairs. The key of the key-value pair may be the target string, the value of the key-value pair may be the target transaction data, and the target string may be used to index the target transaction data.
进一步地,数据查询请求可以携带有目标字符串,该目标字符串可以关联存储有合规状态标记值,合规状态标记值可以用于确定目标交易数据数为合规数据。在合规状态标记值为目标值的情况下,可以确定目标交易数据为合规数据;在合规状态标记值不是目标值的情况下,可以确定目标交易数据不是合规数据。Further, the data query request may carry a target string, and the target string may be associated with a compliance status mark value, and the compliance status mark value may be used to determine the target transaction data number as compliance data. In the case where the compliance status flag value is the target value, it can be determined that the target transaction data is compliance data; in the case where the compliance status flag value is not the target value, it can be determined that the target transaction data is not compliance data.
以目标值为1为例,在合规状态标记值为1的情况下,可以确定目标交易数据为合规数据,在合规状态标记值为0的情况下,可以确定目标交易数据不是合规数据。Taking the target value of 1 as an example, when the compliance status flag value is 1, it can be determined that the target transaction data is compliant data, and when the compliance status flag value is 0, it can be determined that the target transaction data is not compliant data.
在这些实施例中,在S520之前,该数据处理方法还可以包括:In these embodiments, before S520, the data processing method may further include:
对数据查询请求进行解析,得到数据查询请求信息;其中,数据查询请求信息包括目标交易数据对应的目标字符串;Analyzing the data query request to obtain data query request information; wherein the data query request information includes a target string corresponding to the target transaction data;
获取目标字符串对应的合规状态标记值;Get the compliance status tag value corresponding to the target string;
其中,确定目标交易数据为合规数据可以包括:Wherein, determining the target transaction data as compliance data may include:
在合规状态标记值为目标值的情况下,确定目标交易数据为合规数据。In the case that the compliance status flag value is the target value, it is determined that the target transaction data is the compliance data.
具体地,调用监管实例可以在接收到数据查询请求之后,对数据查询请求进行解析,得到数据查询请求信息,进而在数据查询请求信息中,获取数据查询请求所携带的目标字符串。然后,调用监管实例可以查询目标字符串对应的合规状态标记值,并且在确定合规状态标记值为目标值的情况下,确定目标交易数据为合规数据。Specifically, after receiving the data query request, the calling supervision instance may parse the data query request to obtain data query request information, and then obtain the target string carried in the data query request from the data query request information. Then, calling the supervision instance can query the compliance status tag value corresponding to the target string, and determine the target transaction data as compliance data when the compliance status tag value is determined to be the target value.
在一些实施例中,目标字符串和目标字符串对应的合规状态标记值可以关联存储于调用监管实例内。In some embodiments, the target string and the compliance status flag value corresponding to the target string may be associated and stored in the calling supervision instance.
在另一些实施例中,目标字符串和目标字符串对应的合规状态标记值可以关联存储于分布式账本的状态数据库内。In other embodiments, the target string and the compliance status flag value corresponding to the target string may be associated and stored in the status database of the distributed ledger.
在这些实施例中,可选地,获取目标字符串对应的合规状态标记值之前,该数据处理方法还可以包括:In these embodiments, optionally, before acquiring the compliance status flag value corresponding to the target string, the data processing method may further include:
调用状态数据库,使状态数据库查询目标字符串对应的合规状态标记值。Call the state database to make the state database query the compliance state tag value corresponding to the target string.
相应地,获取目标字符串对应的合规状态标记值可以包括:Correspondingly, obtaining the compliance status flag value corresponding to the target string may include:
获取状态数据库反馈的目标字符串对应的合规状态标记值。Get the compliance status flag value corresponding to the target string fed back by the status database.
具体地,调用监管实例可以根据目标字符串调用状态数据库,以使状态数据库状态数据库查询目标字符串对应的合规状态标记值。调用监管实例可以接收状态数据库反馈的目标字符串对应的合规状态标记值,以实现对目标字符串对应的合规状态标记值的获取。Specifically, the calling supervision instance may call the state database according to the target string, so that the state database state database queries the compliance state flag value corresponding to the target string. The calling supervision instance can receive the compliance status tag value corresponding to the target string fed back by the status database, so as to obtain the compliance status tag value corresponding to the target string.
进一步地,调用监管实例可以根据目标字符串,通过原生数据接口122调用状态数据库。Further, the calling supervisor instance may call the state database through the native data interface 122 according to the target string.
在这些实施例中,可选地,获取目标交易数据之前,该数据处理方法还可以包括:In these embodiments, optionally, before acquiring the target transaction data, the data processing method may further include:
调用状态数据库,使状态数据库查询目标字符串对应的目标交易数据。Call the state database to make the state database query the target transaction data corresponding to the target string.
相应地,获取目标交易数据可以包括:Accordingly, acquiring target transaction data may include:
获取状态数据库反馈的目标交易数据。Get the target transaction data fed back by the state database.
具体地,调用监管实例可以根据目标字符串,调用状态数据库,使状态数据库在多个预先存储的交易数据中,索引到目标字符串对应的目标交易数据,进而向调用监管实例反馈目标交易数据,以使调用监管实例接收到状态数据库反馈的目标交易数据。Specifically, the calling supervision instance can call the state database according to the target string, so that the state database indexes the target transaction data corresponding to the target string in a plurality of pre-stored transaction data, and then feeds back the target transaction data to the calling supervision instance, So that the calling supervisor instance receives the target transaction data fed back by the state database.
具体地,调用监管实例可以根据目标字符串,通过原生数据接口122调用状态数据库。Specifically, the calling supervision instance may call the state database through the native data interface 122 according to the target string.
如图5所示,该数据处理方法还包括S530、向数据查询节点发送目标交易数据。As shown in FIG. 5 , the data processing method further includes S530 , sending target transaction data to a data query node.
在本公开实施例中,在接收到数据查询节点发送的用于查询目标交易数据的数据查询请求之后,如果确定目标交易数据为合规数据,则获取目标交易数据,并向数据查询节点发送目标交易数据,因此,可以在接收到 数据查询节点发送的数据查询请求后,仅将合规数据发送给数据查询节点,避免不合规的交易数据的泄露。In the embodiment of the present disclosure, after receiving the data query request sent by the data query node for querying the target transaction data, if it is determined that the target transaction data is compliant data, the target transaction data is acquired, and the target transaction data is sent to the data query node. Therefore, after receiving the data query request sent by the data query node, only the compliant data can be sent to the data query node to avoid the leakage of non-compliant transaction data.
在本公开另一种实施方式中,为了进一步避免交易数据的泄露,在S510之后,该数据处理方法还可以包括:In another embodiment of the present disclosure, in order to further avoid leakage of transaction data, after S510, the data processing method may further include:
响应于数据查询请求,在确定目标交易数据不是合规数据的情况下,向数据查询节点发送第一提示信息。其中,第一提示信息用于提示目标交易数据不合规。In response to the data query request, if it is determined that the target transaction data is not compliant data, first prompt information is sent to the data query node. The first prompt information is used to prompt that the target transaction data is not compliant.
由此,调用监管实例可以在确定目标交易数据不是合规数据的情况下,通过第一提示信息提示用户所要查询的目标交易数据不合规,以进一步避免交易数据的泄露。Therefore, invoking the supervision instance can prompt the user that the target transaction data to be queried is not compliant through the first prompt message when it is determined that the target transaction data is not compliant data, so as to further avoid the leakage of transaction data.
其中,第一提示信息可以包括用于表征“数据违规,无法查询”的信息,以提示用户所要查询的目标交易数据不合规。Wherein, the first prompt information may include information used to represent "data violation, cannot be queried", so as to prompt the user that the target transaction data to be queried is not compliant.
可选地,调用监管实例可以通过用户合约向数据查询节点发送第一提示信息。Optionally, the calling supervision instance may send the first prompt information to the data query node through the user contract.
进一步地,调用监管实例可以通过监管封装接口调用用户合约,以向数据查询节点发送第一提示信息。Further, calling the supervision instance can call the user contract through the supervision encapsulation interface, so as to send the first prompt information to the data query node.
在本公开一些实施例中,为了进一步避免交易数据的泄露,在S510之后,该数据处理方法还可以包括:In some embodiments of the present disclosure, in order to further avoid leakage of transaction data, after S510, the data processing method may further include:
响应于数据查询请求,在确定目标交易数据不是合规数据的情况下,拒绝向数据查询节点发送目标交易数据。In response to the data query request, if it is determined that the target transaction data is not compliant data, the target transaction data is refused to be sent to the data query node.
由此,调用监管实例可以在确定目标交易数据不是合规数据的情况下,不向数据查询节点反馈目标交易数据,以进一步避免交易数据的泄露。Therefore, invoking the supervision instance can not feed back the target transaction data to the data query node when it is determined that the target transaction data is not compliant data, so as to further avoid the leakage of transaction data.
在本公开又一种实施方式中,在目标交易数据为已存储数据的情况下,即目标交易数据为已上链交易数据的情况下,为了进一步避免交易数据的泄露,在S510之前,该数据处理方法还可以包括:In yet another embodiment of the present disclosure, when the target transaction data is stored data, that is, when the target transaction data is on-chain transaction data, in order to further avoid leakage of transaction data, before S510, the data Processing methods can also include:
将目标交易数据发送至监管系统服务器,以使监管系统服务器反馈目标交易数据对应的监管结果;Send the target transaction data to the supervision system server, so that the supervision system server can feed back the supervision results corresponding to the target transaction data;
接收监管系统服务器反馈的监管结果;Receive the supervision results fed back by the supervision system server;
确定监管结果对应的合规状态标记值。Determines the compliance status flag value corresponding to the regulatory result.
具体地,如果调用监管实例与监管系统服务器通信连接,则调用监管实例可以将目标交易数据发送给线下监管机构的监管系统服务器,以使线下监管机构可以利用监管系统服务器进行自动或手动监管,得到目标交易数据对应的监管结果,并且向调用监管实例反馈该监管结果。Specifically, if the supervisory instance is called to communicate with the supervisory system server, the supervisory instance can be called to send the target transaction data to the supervisory system server of the offline supervisory agency, so that the offline supervisory institution can use the supervisory system server for automatic or manual supervision. , obtain the supervision result corresponding to the target transaction data, and feed back the supervision result to the calling supervision instance.
在一些实施例中,监管系统服务器可以将目标交易数据输入预先训练的合规检测模型,得到目标交易数据对应的监管结果,以实现自动监管。In some embodiments, the supervision system server may input the target transaction data into a pre-trained compliance detection model, and obtain supervision results corresponding to the target transaction data, so as to realize automatic supervision.
在另一些实施例中,监管系统服务器可以将目标交易数据推送到移动端和网页端,以使线下监管机构的监管人员对目标交易数据进行人工监管,得到目标交易数据对应的监管结果,以实现人工监管。In other embodiments, the supervision system server can push the target transaction data to the mobile terminal and the web terminal, so that the supervisors of the offline supervision agency can manually supervise the target transaction data, and obtain the supervision results corresponding to the target transaction data, so as to Implement manual supervision.
具体地,在监管结果指示目标交易数据为合规数据的情况下,调用监管实例可以确定合规状态标记值为目标值;在监管结果指示目标交易数据不是合规数据的情况下,调用监管实例可以确定合规状态标记值不是目标值。Specifically, when the supervision result indicates that the target transaction data is compliant data, the supervision instance can be called to determine that the compliance status flag value is the target value; when the supervision result indicates that the target transaction data is not compliant data, the supervision instance is called It can be determined that the compliance status flag value is not the target value.
在另一些实施例中,在将目标交易数据发送至监管系统服务器之前,该数据处理方法还可以包括:In other embodiments, before sending the target transaction data to the supervision system server, the data processing method may further include:
根据目标交易数据,生成目标事件;Generate target events according to target transaction data;
相应地,将目标交易数据发送至监管系统服务器可以包括:Accordingly, sending the target transaction data to the supervisory system server may include:
将目标事件发送至监管系统服务器。Send the target event to the supervisory system server.
具体地,监管系统服务器还可以对调用监管实例中的事件进行订阅,例如,当调用监管实例检测到已上链交易数据中存在未经过监管的目标交易数据后,调用监管实例则会根据目标交易数据,生成目标事件,并且将目标事件发送至监管系统服务器,以使监管系统服务器可以获取目标交易数据,并进行线下监管。Specifically, the supervision system server can also subscribe to the events in the calling supervision instance. For example, when the calling supervision instance detects that there is unsupervised target transaction data in the transaction data on the chain, the calling supervision instance will call the supervision instance according to the target transaction data. data, generate target events, and send the target events to the supervision system server, so that the supervision system server can obtain the target transaction data and conduct offline supervision.
在本公开另一些实施例中,在目标交易数据为已存储数据的情况下,即目标交易数据为已上链交易数据的情况下,为了进一步避免交易数据的泄露,在S510之前,该数据处理方法还可以包括:In other embodiments of the present disclosure, when the target transaction data is stored data, that is, when the target transaction data is on-chain transaction data, in order to further avoid the leakage of transaction data, before S510, the data processing Methods can also include:
调用监管合约,以使监管合约在目标交易数据中检测目标数据,得到目标交易数据对应的监管结果;Invoke the supervision contract, so that the supervision contract can detect the target data in the target transaction data, and obtain the supervision result corresponding to the target transaction data;
接收监管合约反馈的监管结果;Receive the regulatory results fed back by the regulatory contract;
确定监管结果对应的合规状态标记值。Determines the compliance status flag value corresponding to the regulatory result.
具体地,如果调用监管实例具有可调用的监管合约,则调用监管实例可以调用监管合约,以使监管合约在目标交易数据中检测目标数据,得到目标交易数据对应的监管结果。在检测到目标交易数据中不存在目标数据的情况下,监管结果指示目标交易数据为合规数据;在检测到目标交易数据中存在目标数据的情况下,监管结果指示目标交易数据不是合规数据。Specifically, if the calling supervision instance has a callable supervision contract, the calling supervision instance can call the supervision contract, so that the supervision contract detects the target data in the target transaction data, and obtains the supervision result corresponding to the target transaction data. In the case where it is detected that the target data does not exist in the target transaction data, the supervision result indicates that the target transaction data is compliant data; in the case where it is detected that the target data exists in the target transaction data, the supervision result indicates that the target transaction data is not compliant data .
调用监管实例在接收到监管合约反馈的检测结果后,在监管结果指示目标交易数据为合规数据的情况下,可以确定合规状态标记值为目标值;在监管结果指示目标交易数据不是合规数据的情况下,可以确定合规状态标记值不是目标值。After the calling supervision instance receives the detection result fed back by the supervision contract, if the supervision result indicates that the target transaction data is compliant data, the compliance status flag value can be determined as the target value; if the supervision result indicates that the target transaction data is not compliant In the case of data, it can be determined that the compliance status flag value is not the target value.
因此,在本公开实施例中,可以对已上链的交易数据进行监管,如果交易数据不合规,通过设置合规状态标记值来对不合规的交易数据进行标记,进而限制数据查询节点对不合规的交易数据的访问。另外,监管行为灵活可配置并且随时升级或更新。Therefore, in the embodiment of the present disclosure, it is possible to supervise the transaction data that has been uploaded to the chain. If the transaction data is not compliant, the non-compliant transaction data is marked by setting the compliance status mark value, thereby restricting data query nodes. Access to non-compliant transaction data. In addition, the regulatory behavior is flexible and configurable and can be upgraded or updated at any time.
在一些实施例中,在确定监管结果对应的合规状态标记值之后,该数据处理方法还可以包括:In some embodiments, after determining the compliance status flag value corresponding to the supervision result, the data processing method may further include:
获取目标交易数据对应的目标字符串;Get the target string corresponding to the target transaction data;
将目标字符串和合规状态标记值关联存储至状态数据库。Associate the target string with the compliance status tag value and store it in the status database.
具体地,调用监管实例可以在确定监管结果对应的合规状态标记值之后,将其与目标交易数据对应的目标字符串发送至状态数据库,以使状态数据库将目标字符串和目标字符串对应的合规状态标记值关联存储至状态数据库。Specifically, the calling supervision instance may, after determining the compliance status flag value corresponding to the supervision result, send the target string corresponding to the target transaction data to the status database, so that the status database can send the target string corresponding to the target string to the status database. The compliance status tag value is stored in association with the status database.
在另一些实施例中,在确定监管结果对应的合规状态标记值之后,调用监管实例也可以将其与目标交易数据对应的目标字符串关联存储至本地。In other embodiments, after the compliance status flag value corresponding to the supervision result is determined, the calling supervision instance may also associate and store the target string corresponding to the target transaction data locally.
在本公开再一种实施方式中,在接收数据查询节点发送的数据查询请求之前,该数据处理方法还可以包括:In yet another embodiment of the present disclosure, before receiving the data query request sent by the data query node, the data processing method may further include:
接收数据存储节点发送的数据存储请求;Receive the data storage request sent by the data storage node;
响应于数据存储请求,对数据存储请求进行解析,得到数据存储请求信息;其中,数据存储请求信息包括目标字符串和目标交易数据;In response to the data storage request, the data storage request is parsed to obtain data storage request information; wherein the data storage request information includes a target string and target transaction data;
将目标字符串和目标交易数据关联存储至状态数据库。The target string and target transaction data are associated and stored in the state database.
具体地,调用监管实例可以在接收到数据存储节点发送的数据存储请求之后,对数据存储请求进行解析,得到数据存储请求信息中的待存储的目标字符串和目标交易数据,然后将目标字符串和目标交易数据关联存储至状态数据库。Specifically, the calling supervision instance can parse the data storage request after receiving the data storage request sent by the data storage node, obtain the target string to be stored and the target transaction data in the data storage request information, and then convert the target string Associated with the target transaction data and stored in the state database.
在本公开一些实施例中,为了进一步避免交易数据的泄露,在将目标字符串和目标交易数据关联存储至状态数据库之前,该数据处理方法还可以包括:In some embodiments of the present disclosure, in order to further avoid the leakage of transaction data, before the target string and the target transaction data are associated and stored in the state database, the data processing method may further include:
调用监管合约,以使监管合约在目标交易数据中检测目标数据,得到目标交易数据对应的监管结果;Invoke the supervision contract, so that the supervision contract can detect the target data in the target transaction data, and obtain the supervision result corresponding to the target transaction data;
接收监管合约反馈的监管结果;Receive the regulatory results fed back by the regulatory contract;
确定监管结果对应的合规状态标记值。Determines the compliance status flag value corresponding to the regulatory result.
相应地,将目标字符串和目标交易数据关联存储至状态数据库可以包括:Correspondingly, storing the target string and target transaction data in association with the state database may include:
在监管结果对应的合规状态标记值为目标值的情况下,将合规状态标记值和目标交易数据分别与目标字符串关联存储至状态数据库。In the case that the compliance status tag value corresponding to the supervision result is the target value, the compliance status tag value and the target transaction data are respectively associated with the target character string and stored in the status database.
可选地,如果调用监管实例具有可调用的监管合约,调用监管实例可以调用监管合约,以使监管合约基于预设的监管规则,在目标交易数据中检测目标数据,得到目标交易数据对应的监管结果。在检测到目标交易数据中不存在目标数据的情况下,监管结果指示目标交易数据为合规数据;在检测到目标交易数据中存在目标数据的情况下,监管结果指示目标交易数据不是合规数据。调用监管实例在接收到监管合约反馈的监管结果后,可以确定监管结果对应的合规状态标记值。在监管结果指示目标交易数据为合规数据的情况下,调用监管实例可以确定合规状态标记值为目标值;在监管结果指示目标交易数据不是合规数据的情况下,可以确定合规状态标记值不是目标值。最后,调用监管实例在监管结果对应的合规状态标记值为目标值的情况下,可以将目标字符串和目标交易数据关联存储至状态 数据库,进而仅将利用监管合约初步判断为无泄露风险的交易数据保存在状态数据库上,进而避免交易数据的泄露。Optionally, if the calling supervision instance has a callable supervision contract, the calling supervision instance can call the supervision contract, so that the supervision contract can detect the target data in the target transaction data based on the preset supervision rules, and obtain the supervision corresponding to the target transaction data. result. In the case where it is detected that the target data does not exist in the target transaction data, the supervision result indicates that the target transaction data is compliant data; in the case where it is detected that the target data exists in the target transaction data, the supervision result indicates that the target transaction data is not compliant data . After receiving the supervision result fed back by the supervision contract, the calling supervision instance can determine the compliance status flag value corresponding to the supervision result. In the case where the supervision result indicates that the target transaction data is compliant data, calling the supervision instance can determine that the compliance status flag is the target value; when the supervision result indicates that the target transaction data is not compliant data, the compliance status tag can be determined value is not the target value. Finally, when calling the supervision instance, when the compliance status flag corresponding to the supervision result is the target value, the target string and the target transaction data can be associated and stored in the state database, and then only the ones that are preliminarily judged to be free of leakage risk by using the supervision contract are stored in the state database. The transaction data is stored on the state database, thereby avoiding the leakage of transaction data.
在本公开另一些实施例中,为了进一步避免交易数据的泄露,在将目标字符串和目标交易数据关联存储至状态数据库之前,该数据处理方法还可以包括:In other embodiments of the present disclosure, in order to further avoid the leakage of transaction data, before the target string and the target transaction data are associated and stored in the state database, the data processing method may further include:
将目标交易数据发送至监管系统服务器,以使监管系统服务器反馈目标交易数据对应的监管结果;Send the target transaction data to the supervision system server, so that the supervision system server can feed back the supervision results corresponding to the target transaction data;
接收监管系统服务器反馈的监管结果;Receive the supervision results fed back by the supervision system server;
确定监管结果对应的合规状态标记值。Determines the compliance status flag value corresponding to the regulatory result.
相应地,将目标字符串和目标交易数据关联存储至状态数据库可以具体包括:Correspondingly, storing the target string and target transaction data in association with the state database may specifically include:
在监管结果对应的合规状态标记值为目标值的情况下,将合规状态标记值和目标交易数据分别与目标字符串关联存储至状态数据库。In the case that the compliance status tag value corresponding to the supervision result is the target value, the compliance status tag value and the target transaction data are respectively associated with the target character string and stored in the status database.
可选地,如果调用监管实例与监管系统服务器通信连接,则调用监管实例可以将目标交易数据发送给线下监管机构的监管系统服务器,以使线下监管机构可以利用监管系统服务器进行自动或手动监管,得到目标交易数据对应的监管结果,并且向调用监管实例反馈该监管结果。在监管结果指示目标交易数据为合规数据的情况下,调用监管实例可以确定合规状态标记值为目标值;在监管结果指示目标交易数据不是合规数据的情况下,调用监管实例可以确定合规状态标记值不是目标值。最后,调用监管实例在监管结果对应的合规状态标记值为目标值的情况下,可以将目标字符串和目标交易数据关联存储至状态数据库,进而仅将利用监管合约初步判断为无泄露风险的交易数据保存在状态数据库上,进而避免交易数据的泄露。Optionally, if the calling supervision instance is in communication with the supervision system server, the calling supervision instance can send the target transaction data to the supervision system server of the offline supervision institution, so that the offline supervision institution can use the supervision system server to automatically or manually Supervision, obtain the supervision result corresponding to the target transaction data, and feed back the supervision result to the calling supervision instance. When the supervision result indicates that the target transaction data is compliant data, calling the supervision instance can determine that the compliance status flag is the target value; when the supervision result indicates that the target transaction data is not compliant data, calling the supervision instance can determine the compliance status. The gauge status tag value is not the target value. Finally, when calling the supervision instance, when the compliance status flag corresponding to the supervision result is the target value, the target string and the target transaction data can be associated and stored in the state database, and then only the ones that are preliminarily judged to be free of leakage risk by using the supervision contract are stored in the state database. The transaction data is stored on the state database, thereby avoiding the leakage of transaction data.
因此,在本公开实施例中,可以对上链的交易数据进行穿透式和无感知的监管。用户只需要调用监管封装接口即可,交易数据无需签名,监管行为用户无感知。Therefore, in the embodiment of the present disclosure, penetrating and non-perceptual supervision can be performed on the transaction data on the chain. Users only need to call the supervision encapsulation interface, the transaction data does not need to be signed, and the supervision behavior is not perceived by the user.
在一些实施例中,在确定所述监管结果对应的合规状态标记值之后,该数据处理方法还可以包括:In some embodiments, after determining the compliance status flag value corresponding to the supervision result, the data processing method may further include:
在监管结果对应的合规状态标记值不是目标值的情况下,向数据存储节点反馈第二提示信息。其中,第二提示信息用于提示目标交易数据检测失败。In the case that the compliance state flag value corresponding to the supervision result is not the target value, the second prompt information is fed back to the data storage node. Wherein, the second prompt information is used to prompt that the target transaction data detection fails.
由此,调用监管实例可以在确定监管结果对应的合规状态标记值不是目标值的情况下,确定目标交易数据不合规,进而通过第二提示信息提示用户所要存储的目标交易数据不合规,以进一步避免交易数据的泄露。In this way, invoking the supervision instance can determine that the target transaction data is not compliant when it is determined that the compliance status flag value corresponding to the supervision result is not the target value, and then use the second prompt message to prompt the user that the target transaction data to be stored is not compliant , to further avoid the leakage of transaction data.
其中,第二提示信息可以包括用于表征“数据违规,无法上链”的信息,以提示用户所要存储的目标交易数据不合规。Wherein, the second prompt information may include information used to represent "data violation and cannot be uploaded to the chain", so as to prompt the user that the target transaction data to be stored is not compliant.
在一些实施例中,在确定所述监管结果对应的合规状态标记值之后,该数据处理方法还可以包括:In some embodiments, after determining the compliance status flag value corresponding to the supervision result, the data processing method may further include:
在监管结果对应的合规状态标记值不是目标值的情况下,拒绝将目标字符串和目标交易数据关联存储至状态数据库。In the case that the compliance status flag value corresponding to the supervision result is not the target value, it is refused to store the target string and target transaction data in the state database in association.
由此,调用监管实例可以在确定检测结果为检测到目标数据的情况下,不向状态数据库上传目标交易数据,以进一步避免交易数据的泄露。Therefore, the calling supervision instance may not upload the target transaction data to the state database when it is determined that the detection result is that the target data is detected, so as to further avoid the leakage of the transaction data.
图6示出了本公开第二方面的数据处理装置的实施例的结构示意图。FIG. 6 shows a schematic structural diagram of an embodiment of a data processing apparatus according to the second aspect of the present disclosure.
在本公开一些实施例中,图6所示的装置可以设置于图1至图4所示的架构中的调用监管实例120内,也可以设置于智能合约引擎中,在此不做限制。In some embodiments of the present disclosure, the apparatus shown in FIG. 6 may be set in the call supervision instance 120 in the architecture shown in FIG. 1 to FIG. 4 , or may be set in a smart contract engine, which is not limited herein.
如图6所示,该数据处理装置600可以包括第一接收模块610、第一获取模块620和第一发送模块630。As shown in FIG. 6 , the data processing apparatus 600 may include a first receiving module 610 , a first obtaining module 620 and a first sending module 630 .
第一接收模块610可以用于接收数据查询节点发送的数据查询请求;其中,数据查询请求用于查询目标交易数据。The first receiving module 610 may be configured to receive a data query request sent by a data query node; wherein, the data query request is used to query target transaction data.
第一获取模块620可以用于响应于数据查询请求,在确定目标交易数据为合规数据的情况下,获取目标交易数据。The first obtaining module 620 may be configured to obtain the target transaction data in response to the data query request under the condition that the target transaction data is determined to be compliant data.
第一发送模块630可以用于向数据查询节点发送目标交易数据。The first sending module 630 may be configured to send the target transaction data to the data query node.
在本公开实施例中,在接收到数据查询节点发送的用于查询目标交易数据的数据查询请求之后,如果确定目标交易数据为合规数据,则获取目标交易数据,并向数据查询节点发送目标交易数据。因此,可以在接收到数据查询节点发送的数据查询请求后,仅将合规数据发送给数据查询节 点,避免不合规的交易数据的泄露。In the embodiment of the present disclosure, after receiving the data query request sent by the data query node for querying the target transaction data, if it is determined that the target transaction data is compliant data, the target transaction data is acquired, and the target transaction data is sent to the data query node. transaction data. Therefore, after receiving the data query request sent by the data query node, only the compliant data can be sent to the data query node to avoid the leakage of non-compliant transaction data.
在本公开一些实施例中,该数据处理装置600还可以包括第二发送模块,第二发送模块可以用于响应于数据查询请求,在确定目标交易数据不是合规数据的情况下,向数据查询节点发送第一提示信息。其中,第一提示信息用于提示目标交易数据不合规。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a second sending module, and the second sending module may be configured to, in response to the data query request, query the data when it is determined that the target transaction data is not compliant data The node sends first prompt information. The first prompt information is used to prompt that the target transaction data is not compliant.
在本公开一些实施例中,该数据处理装置600还可以包括第一处理模块,第一处理模块可以用于响应于数据查询请求,在确定目标交易数据不是合规数据的情况下,拒绝向数据查询节点发送目标交易数据。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a first processing module, and the first processing module may be configured to, in response to a data query request, refuse to submit the data to the data in the case that it is determined that the target transaction data is not compliant data The query node sends the target transaction data.
在本公开一些实施例中,该数据处理装置600还可以包括第一解析模块、第二获取模块和第一确定模块。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a first parsing module, a second acquiring module, and a first determining module.
第一解析模块可以用于对数据查询请求进行解析,得到数据查询请求信息,其中,数据查询请求信息包括目标交易数据对应的目标字符串。The first parsing module may be configured to parse the data query request to obtain data query request information, wherein the data query request information includes a target character string corresponding to the target transaction data.
第二获取模块可以用于获取目标字符串对应的合规状态标记值。The second obtaining module may be configured to obtain the compliance status flag value corresponding to the target string.
第一确地模块可以用于在合规状态标记值为目标值的情况下,确定目标交易数据为合规数据。The first confirmation module may be configured to determine the target transaction data as compliance data when the compliance status flag value is the target value.
在本公开一些实施例中,该数据处理装置600还可以包括第一调用模块,第一调用模块可以用于调用状态数据库,使状态数据库查询目标字符串对应的合规状态标记值。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a first calling module, and the first calling module may be configured to call the state database, so that the state database may query the compliance state flag value corresponding to the target string.
相应地,第二获取模块可以具体用于获取状态数据库反馈的目标字符串对应的合规状态标记值。Correspondingly, the second obtaining module may be specifically configured to obtain the compliance status flag value corresponding to the target string fed back by the status database.
在本公开一些实施例中,该数据处理装置600还可以包括第二调用模块,第二调用模块可以用于调用状态数据库,使状态数据库查询目标字符串对应的目标交易数据。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a second calling module, and the second calling module may be configured to call the state database, so that the state database can query the target transaction data corresponding to the target string.
相应地,第一获取模块620可以具体用于获取状态数据库反馈的目标交易数据。Correspondingly, the first obtaining module 620 may be specifically configured to obtain the target transaction data fed back by the state database.
在本公开一些实施例中,该数据处理装置600还可以包括第三发送模块、第二接收模块和第二确定模块。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a third sending module, a second receiving module, and a second determining module.
第三发送模块可以用于将目标交易数据发送至监管系统服务器,以使监管系统服务器反馈目标交易数据对应的监管结果。The third sending module may be configured to send the target transaction data to the supervision system server, so that the supervision system server feeds back the supervision result corresponding to the target transaction data.
第二接收模块可以用于接收监管系统服务器反馈的监管结果。The second receiving module may be configured to receive the supervision result fed back by the supervision system server.
第二确定模块可以用于确定监管结果对应的合规状态标记值。The second determination module may be configured to determine the compliance status flag value corresponding to the supervision result.
在本公开一些实施例中,该数据处理装置600还可以包括第三调用模块、第三接收模块和第三确定模块。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a third calling module, a third receiving module, and a third determining module.
第三调用模块可以用于调用监管合约,以使监管合约在目标交易数据中检测目标数据,得到目标交易数据对应的监管结果。The third calling module can be used to call the supervision contract, so that the supervision contract detects the target data in the target transaction data, and obtains the supervision result corresponding to the target transaction data.
第三接收模块可以用于接收监管合约反馈的监管结果。The third receiving module can be used to receive the supervision result fed back by the supervision contract.
第三确定模块可以用于确定监管结果对应的合规状态标记值。The third determination module may be configured to determine the compliance status flag value corresponding to the supervision result.
在本公开一些实施例中,该数据处理装置600还可以包括第三获取模块和第一存储模块。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a third acquisition module and a first storage module.
第三获取模块可以用于获取目标交易数据对应的目标字符串。The third obtaining module may be used to obtain the target character string corresponding to the target transaction data.
第一存储模块可以用于将目标字符串和合规状态标记值关联存储至状态数据库。The first storage module may be configured to store the target string and the compliance status flag value in association with the status database.
在本公开一些实施例中,该数据处理装置600还可以包括第一生成模块,第一生成模块可以用于根据目标交易数据,生成目标事件。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a first generating module, and the first generating module may be configured to generate a target event according to the target transaction data.
相应地,第三发送模块可以具体用于将目标事件发送至监管系统服务器。Correspondingly, the third sending module may be specifically configured to send the target event to the supervision system server.
在本公开一些实施例中,该数据处理装置600还可以包括第四接收模块、第二解析模块和第二存储模块。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a fourth receiving module, a second parsing module, and a second storage module.
第四接收模块可以用于接收数据存储节点发送的数据存储请求。The fourth receiving module may be configured to receive the data storage request sent by the data storage node.
第二解析模块可以用于响应于数据存储请求,对数据存储请求进行解析,得到数据存储请求信息,其中,数据存储请求信息包括目标字符串和目标交易数据。The second parsing module may be configured to parse the data storage request in response to the data storage request to obtain data storage request information, wherein the data storage request information includes target character strings and target transaction data.
第二存储模块可以用于将目标字符串和目标交易数据关联存储至状态数据库。The second storage module may be configured to store the target character string and the target transaction data in a state database in association with each other.
在本公开一些实施例中,该数据处理装置600还可以包括第四调用模块、第五接收模块和第四确定模块。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a fourth calling module, a fifth receiving module, and a fourth determining module.
第四调用模块调用监管合约,以使监管合约在目标交易数据中检测目标数据,得到目标交易数据对应的监管结果。The fourth calling module calls the supervision contract, so that the supervision contract detects the target data in the target transaction data, and obtains the supervision result corresponding to the target transaction data.
第五接收模块可以用于接收监管合约反馈的监管结果。The fifth receiving module may be used to receive the supervision result fed back by the supervision contract.
第四确定模块可以用于确定监管结果对应的合规状态标记值。The fourth determination module may be used to determine the compliance status flag value corresponding to the supervision result.
相应地,第二存储模块可以具体用于在监管结果对应的合规状态标记值为目标值的情况下,将合规状态标记值和目标交易数据分别与目标字符串关联存储至状态数据库。Correspondingly, the second storage module may be specifically configured to store the compliance status mark value and the target transaction data in the status database in association with the target character string when the compliance status mark value corresponding to the supervision result is the target value.
在本公开一些实施例中,该数据处理装置600还可以包括第四发送模块、第六接收模块和第五确定模块。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a fourth sending module, a sixth receiving module, and a fifth determining module.
第四发送模块可以用于将目标交易数据发送至监管系统服务器,以使监管系统服务器反馈目标交易数据对应的监管结果。The fourth sending module may be configured to send the target transaction data to the supervision system server, so that the supervision system server feeds back the supervision result corresponding to the target transaction data.
第六接收模块可以用于接收监管系统服务器反馈的监管结果。The sixth receiving module may be configured to receive the supervision result fed back by the supervision system server.
第五确定模块可以用于确定监管结果对应的合规状态标记值。The fifth determination module may be used to determine the compliance status flag value corresponding to the supervision result.
相应地,第二存储模块可以具体用于在监管结果对应的合规状态标记值为目标值的情况下,将合规状态标记值和目标交易数据分别与目标字符串关联存储至状态数据库。Correspondingly, the second storage module may be specifically configured to store the compliance status mark value and the target transaction data in the status database in association with the target character string when the compliance status mark value corresponding to the supervision result is the target value.
在本公开一些实施例中,该数据处理装置600还可以包括第五发送模块,第五发送模块可以用于在监管结果对应的合规状态标记值不是目标值的情况下,向数据存储节点反馈第二提示信息。其中,第二提示信息用于提示目标交易数据检测失败。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a fifth sending module, and the fifth sending module may be configured to feed back to the data storage node when the compliance status flag value corresponding to the supervision result is not the target value Second prompt message. Wherein, the second prompt information is used to prompt that the target transaction data detection fails.
在本公开一些实施例中,该数据处理装置600还可以包括第二处理模块,第二处理模块可以用于在监管结果对应的合规状态标记值不是目标值的情况下,拒绝将目标字符串和目标交易数据关联存储至状态数据库。In some embodiments of the present disclosure, the data processing apparatus 600 may further include a second processing module, and the second processing module may be configured to refuse to convert the target string to the target string when the compliance status flag value corresponding to the supervision result is not the target value Associated with the target transaction data and stored in the state database.
需要说明的是,图6所示的数据处理装置600可以执行图5所示的方法实施例中的各个步骤,并且实现图5所示的方法实施例中的各个过程和效果,在此不做赘述。It should be noted that the data processing apparatus 600 shown in FIG. 6 can execute various steps in the method embodiment shown in FIG. 5 and realize various processes and effects in the method embodiment shown in FIG. Repeat.
图7示出了本公开第三方面的数据处理设备的实施例的硬件结构示意图。FIG. 7 shows a schematic diagram of a hardware structure of an embodiment of a data processing device according to the third aspect of the present disclosure.
数据处理设备可以包括处理器701以及存储有计算机程序指令的存储器702。The data processing apparatus may include a processor 701 and a memory 702 having computer program instructions stored thereon.
具体地,上述处理器701可以包括中央处理器(CPU),或者特定集 成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本公开实施例的一个或多个集成电路。Specifically, the above-mentioned processor 701 may include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present disclosure.
存储器702可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器702可包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器702可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器702可在综合网关容灾设备的内部或外部。在特定实施例中,存储器702是非易失性固态存储器。在特定实施例中,存储器702包括只读存储器(ROM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(PROM)、可擦除PROM(EPROM)、电可擦除PROM(EEPROM)、电可改写ROM(EAROM)或闪存或者两个或更多个以上这些的组合。 Memory 702 may include mass storage for data or instructions. By way of example and not limitation, memory 702 may include a Hard Disk Drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a Universal Serial Bus (USB) drive or two or more A combination of more than one of the above. Memory 702 may include removable or non-removable (or fixed) media, where appropriate. Storage 702 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In certain embodiments, memory 702 is non-volatile solid state memory. In certain embodiments, memory 702 includes read only memory (ROM). Where appropriate, the ROM may be a mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically rewritable ROM (EAROM) or flash memory or A combination of two or more of the above.
处理器701通过读取并执行存储器702中存储的计算机程序指令,以实现上述实施例中的任意一种数据处理方法。The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement any one of the data processing methods in the foregoing embodiments.
在一个示例中,数据处理设备还可包括通信接口703和总线710。其中,如图7所示,处理器701、存储器702、通信接口703通过总线710连接并完成相互间的通信。In one example, the data processing device may also include a communication interface 703 and a bus 710 . Among them, as shown in FIG. 7 , the processor 701 , the memory 702 , and the communication interface 703 are connected through the bus 710 and complete the mutual communication.
通信接口703,主要用于实现本公开实施例中各模块、装置、单元和/或设备之间的通信。The communication interface 703 is mainly used to implement communication between modules, apparatuses, units and/or devices in the embodiments of the present disclosure.
总线710包括硬件、软件或两者,将数据处理设备的部件彼此耦接在一起。举例来说而非限制,总线可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线710可包括一个或多个总线。尽管本公开实施例描述和示出了特定的总线,但本公开考虑任何合适 的总线或互连。 Bus 710 includes hardware, software, or both, coupling components of the data processing device to each other. By way of example and not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) Interconnect, Industry Standard Architecture (ISA) Bus, Infiniband Interconnect, Low Pin Count (LPC) Bus, Memory Bus, Microchannel Architecture (MCA) Bus, Peripheral Component Interconnect (PCI) Bus, PCI-Express (PCI-X) Bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or a combination of two or more of the above. Bus 710 may include one or more buses, where appropriate. Although embodiments of the present disclosure describe and illustrate a particular bus, this disclosure contemplates any suitable bus or interconnect.
该数据处理设备可以执行本公开实施例中的信息处理方法,从而实现结合图5和图6描述的数据处理方法和装置。The data processing device can execute the information processing method in the embodiment of the present disclosure, thereby implementing the data processing method and apparatus described in conjunction with FIG. 5 and FIG. 6 .
另外,结合上述实施例中的数据处理方法,本公开实施例可提供一种计算机可读存储介质来实现。该计算机可读存储介质上存储有计算机程序指令;该计算机程序指令被处理器执行时实现上述实施例中的任意一种数据处理设备方法。所示的计算机可读存储介质的示例包括非暂态计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。In addition, in combination with the data processing methods in the foregoing embodiments, the embodiments of the present disclosure may be implemented by providing a computer-readable storage medium. Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by the processor, any one of the data processing device methods in the foregoing embodiments is implemented. Examples of computer-readable storage media shown include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disks or CD etc.
需要明确的是,本公开并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本公开的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本公开的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。It is to be understood that the present disclosure is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above-described embodiments, several specific steps are described and shown as examples. However, the method process of the present disclosure is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order of steps after comprehending the spirit of the present disclosure.
以上所述的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本公开的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, elements of the present disclosure are programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted over a transmission medium or communication link by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. The code segments may be downloaded via a computer network such as the Internet, an intranet, or the like.
还需要说明的是,本公开中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本公开不局限于上述步骤的顺序,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。It should also be noted that the exemplary embodiments mentioned in the present disclosure describe some methods or systems based on a series of steps or devices. However, the present disclosure is not limited to the order of the above steps, and the steps may be performed in the order mentioned in the embodiment, or may be different from the order in the embodiment, or several steps may be performed simultaneously.
以上所述,仅为本公开的具体实施方式,所属领域的技术人员可以清 楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本公开的保护范围之内。The above are only specific implementations of the present disclosure, and those skilled in the art can clearly understand that, for the convenience and brevity of the description, for the specific working process of the above-described systems, modules and units, reference may be made to the foregoing method embodiments The corresponding process in , will not be repeated here. It should be understood that the protection scope of the present disclosure is not limited to this, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present disclosure, and these modifications or replacements should all cover within the scope of protection of the present disclosure.

Claims (19)

  1. 一种数据处理方法,包括:A data processing method comprising:
    接收数据查询节点发送的数据查询请求,其中,所述数据查询请求用于查询目标交易数据;receiving a data query request sent by a data query node, wherein the data query request is used to query target transaction data;
    响应于所述数据查询请求,在确定所述目标交易数据为合规数据的情况下,获取所述目标交易数据;In response to the data query request, in the case that the target transaction data is determined to be compliant data, obtain the target transaction data;
    向所述数据查询节点发送所述目标交易数据。Send the target transaction data to the data query node.
  2. 根据权利要求1所述的方法,其中,所述接收数据查询节点发送的数据查询请求之后,所述方法还包括:The method according to claim 1, wherein after receiving the data query request sent by the data query node, the method further comprises:
    响应于所述数据查询请求,在确定所述目标交易数据不是所述合规数据的情况下,向所述数据查询节点发送第一提示信息,所述第一提示信息用于提示所述目标交易数据不合规。In response to the data query request, if it is determined that the target transaction data is not the compliance data, send first prompt information to the data query node, where the first prompt information is used to prompt the target transaction Data is not compliant.
  3. 根据权利要求1所述的方法,其中,所述接收数据查询节点发送的数据查询请求之后,所述方法还包括:The method according to claim 1, wherein after receiving the data query request sent by the data query node, the method further comprises:
    响应于所述数据查询请求,在确定所述目标交易数据不是所述合规数据的情况下,拒绝向所述数据查询节点发送所述目标交易数据。In response to the data query request, if it is determined that the target transaction data is not the compliant data, refusing to send the target transaction data to the data query node.
  4. 根据权利要求1所述的方法,其中,所述在确定所述目标交易数据为合规数据的情况下,获取所述目标交易数据之前,所述方法还包括:The method according to claim 1, wherein, when the target transaction data is determined to be compliant data, before acquiring the target transaction data, the method further comprises:
    对所述数据查询请求进行解析,得到数据查询请求信息,所述数据查询请求信息包括所述目标交易数据对应的目标字符串;Analyzing the data query request to obtain data query request information, where the data query request information includes a target character string corresponding to the target transaction data;
    获取所述目标字符串对应的合规状态标记值,Obtain the compliance status flag value corresponding to the target string,
    其中,所述确定所述目标交易数据为合规数据,包括:Wherein, the determining that the target transaction data is compliance data includes:
    在所述合规状态标记值为目标值的情况下,确定所述目标交易数据为所述合规数据。In the case that the compliance status flag value is a target value, it is determined that the target transaction data is the compliance data.
  5. 根据权利要求4所述的方法,其中,所述获取所述目标字符串对应的合规状态标记值之前,所述方法还包括:The method according to claim 4, wherein, before acquiring the compliance status flag value corresponding to the target string, the method further comprises:
    调用状态数据库,使所述状态数据库查询所述目标字符串对应的合规状态标记值,calling the state database, so that the state database queries the compliance state flag value corresponding to the target string,
    其中,所述获取所述目标字符串对应的合规状态标记值,包括:Wherein, the obtaining the compliance status flag value corresponding to the target string includes:
    获取所述状态数据库反馈的所述目标字符串对应的合规状态标记值。Obtain the compliance status flag value corresponding to the target string fed back by the status database.
  6. 根据权利要求4所述的方法,其中,所述获取所述目标交易数据之前,所述方法还包括:The method according to claim 4, wherein before the acquiring the target transaction data, the method further comprises:
    调用状态数据库,使所述状态数据库查询所述目标字符串对应的所述目标交易数据,Invoke the state database to make the state database query the target transaction data corresponding to the target string,
    其中,所述获取所述目标交易数据,包括:Wherein, the acquiring the target transaction data includes:
    获取所述状态数据库反馈的所述目标交易数据。Acquire the target transaction data fed back by the state database.
  7. 根据权利要求4所述的方法,其中,在所述目标交易数据为已存储数据的情况下,所述接收数据查询节点发送的数据查询请求之前,所述方法还包括:The method according to claim 4, wherein, when the target transaction data is stored data, before the receiving a data query request sent by a data query node, the method further comprises:
    将所述目标交易数据发送至监管系统服务器,以使所述监管系统服务器反馈所述目标交易数据对应的监管结果;sending the target transaction data to the supervision system server, so that the supervision system server feeds back the supervision result corresponding to the target transaction data;
    接收所述监管系统服务器反馈的所述监管结果;receiving the supervision result fed back by the supervision system server;
    确定所述监管结果对应的所述合规状态标记值。The compliance status flag value corresponding to the supervision result is determined.
  8. 根据权利要求4所述的方法,其中,在所述目标交易数据为已存储数据的情况下,所述接收数据查询节点发送的数据查询请求之前,所述方法还包括:The method according to claim 4, wherein, when the target transaction data is stored data, before the receiving a data query request sent by a data query node, the method further comprises:
    调用监管合约,以使监管合约在所述目标交易数据中检测目标数据,得到所述目标交易数据对应的监管结果;calling the supervision contract, so that the supervision contract detects the target data in the target transaction data, and obtains the supervision result corresponding to the target transaction data;
    接收所述监管合约反馈的所述监管结果;receiving the supervision result fed back by the supervision contract;
    确定所述监管结果对应的所述合规状态标记值。The compliance status flag value corresponding to the supervision result is determined.
  9. 根据权利要求7或8所述的方法,其中,所述确定所述监管结果对应的所述合规状态标记值之后,所述方法还包括:The method according to claim 7 or 8, wherein after the determining the compliance status flag value corresponding to the supervision result, the method further comprises:
    获取所述目标交易数据对应的所述目标字符串;obtaining the target character string corresponding to the target transaction data;
    将所述目标字符串和所述合规状态标记值关联存储至状态数据库。The target string and the compliance status flag value are associated and stored in a status database.
  10. 根据权利要求7所述的方法,其中,所述将所述目标交易数据发送至监管系统服务器之前,所述方法还包括:The method according to claim 7, wherein, before the sending the target transaction data to the supervisory system server, the method further comprises:
    根据所述目标交易数据,生成目标事件,According to the target transaction data, a target event is generated,
    其中,所述将所述目标交易数据发送至监管系统服务器,包括:Wherein, the sending the target transaction data to the supervision system server includes:
    将所述目标事件发送至所述监管系统服务器。The target event is sent to the supervisory system server.
  11. 根据权利要求4所述的方法,其中,所述接收数据查询节点发送的数据查询请求之前,所述方法还包括:The method according to claim 4, wherein before receiving the data query request sent by the data query node, the method further comprises:
    接收数据存储节点发送的数据存储请求;Receive the data storage request sent by the data storage node;
    响应于所述数据存储请求,对所述数据存储请求进行解析,得到数据存储请求信息;其中,所述数据存储请求信息包括所述目标字符串和所述目标交易数据;In response to the data storage request, the data storage request is parsed to obtain data storage request information; wherein the data storage request information includes the target character string and the target transaction data;
    将所述目标字符串和所述目标交易数据关联存储至状态数据库。The target character string and the target transaction data are associated and stored in a state database.
  12. 根据权利要求11所述的方法,其中,所述将所述目标字符串和所述目标交易数据关联存储至所述状态数据库之前,所述方法还包括:The method according to claim 11 , wherein, before storing the target character string and the target transaction data in association with the state database, the method further comprises:
    调用监管合约,以使监管合约在所述目标交易数据中检测目标数据,得到所述目标交易数据对应的监管结果;calling the supervision contract, so that the supervision contract detects the target data in the target transaction data, and obtains the supervision result corresponding to the target transaction data;
    接收所述监管合约反馈的监管结果;Receive the supervision result fed back by the supervision contract;
    确定所述监管结果对应的合规状态标记值,determining the compliance status flag value corresponding to the supervision result,
    其中,所述将所述目标字符串和所述目标交易数据关联存储至所述状态数据库,包括:Wherein, storing the target character string and the target transaction data in association with the state database includes:
    在所述监管结果对应的合规状态标记值为所述目标值的情况下,将所述合规状态标记值和所述目标交易数据分别与所述目标字符串关联存储至状态数据库。When the compliance status flag value corresponding to the supervision result is the target value, the compliance status flag value and the target transaction data are respectively associated with the target character string and stored in the status database.
  13. 根据权利要求11所述的方法,其中,所述将所述目标字符串和所述目标交易数据关联存储至所述状态数据库之前,所述方法还包括:The method according to claim 11 , wherein, before storing the target character string and the target transaction data in association with the state database, the method further comprises:
    将所述目标交易数据发送至监管系统服务器,以使所述监管系统服务器反馈所述目标交易数据对应的监管结果;sending the target transaction data to the supervision system server, so that the supervision system server feeds back the supervision result corresponding to the target transaction data;
    接收所述监管系统服务器反馈的所述监管结果;receiving the supervision result fed back by the supervision system server;
    确定所述监管结果对应的合规状态标记值,determining the compliance status flag value corresponding to the regulatory result,
    其中,所述将所述目标字符串和所述目标交易数据关联存储至所述状态数据库,包括:Wherein, storing the target character string and the target transaction data in association with the state database includes:
    在所述监管结果对应的合规状态标记值为所述目标值的情况下,将所 述合规状态标记值和所述目标交易数据分别与所述目标字符串关联存储至所述状态数据库。In the case that the compliance state flag value corresponding to the supervision result is the target value, the compliance state flag value and the target transaction data are respectively associated with the target character string and stored in the state database.
  14. 根据权利要求12或13所述的方法,其中,所述确定所述监管结果对应的合规状态标记值之后,所述方法还包括:The method according to claim 12 or 13, wherein after the determining the compliance status flag value corresponding to the supervision result, the method further comprises:
    在所述监管结果对应的合规状态标记值不是所述目标值的情况下,向所述数据存储节点反馈第二提示信息;其中,所述第二提示信息用于提示所述目标交易数据检测失败。In the case that the compliance status flag value corresponding to the supervision result is not the target value, feedback second prompt information to the data storage node; wherein the second prompt information is used to prompt the target transaction data detection fail.
  15. 根据权利要求12或14所述的方法,其中,所述确定所述监管结果对应的合规状态标记值之后,所述方法还包括:The method according to claim 12 or 14, wherein after the determining the compliance status flag value corresponding to the supervision result, the method further comprises:
    在所述监管结果对应的合规状态标记值不是所述目标值的情况下,拒绝将所述目标字符串和所述目标交易数据关联存储至所述状态数据库。In the case that the compliance status flag value corresponding to the supervision result is not the target value, refuse to associate and store the target character string and the target transaction data in the status database.
  16. 根据权利要求1所述的方法,其中,所述方法由智能合约引擎实现。The method of claim 1, wherein the method is implemented by a smart contract engine.
  17. 一种数据处理装置,包括:A data processing device, comprising:
    第一接收模块,用于接收数据查询节点发送的数据查询请求;其中,所述数据查询请求用于查询目标交易数据;a first receiving module, configured to receive a data query request sent by a data query node; wherein, the data query request is used to query target transaction data;
    第一获取模块,用于响应于所述数据查询请求,在确定所述目标交易数据为合规数据的情况下,获取所述目标交易数据;a first obtaining module, configured to obtain the target transaction data in response to the data query request, in the case that the target transaction data is determined to be compliant data;
    第一发送模块,用于向所述数据查询节点发送所述目标交易数据。The first sending module is configured to send the target transaction data to the data query node.
  18. 一种数据处理设备,包括:处理器以及存储有计算机程序指令的存储器,A data processing device, comprising: a processor and a memory storing computer program instructions,
    所述处理器执行所述计算机程序指令时实现如权利要求1-16中任意一项所述的数据处理方法。When the processor executes the computer program instructions, the data processing method according to any one of claims 1-16 is implemented.
  19. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现如权利要求1-16中任意一项所述的数据处理方法。A computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the data processing method according to any one of claims 1-16.
PCT/CN2021/072929 2020-08-14 2021-01-20 Data processing method, apparatus and device, and medium WO2022032988A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010820392.1 2020-08-14
CN202010820392.1A CN112000713A (en) 2020-08-14 2020-08-14 Data processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
WO2022032988A1 true WO2022032988A1 (en) 2022-02-17

Family

ID=73473515

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/072929 WO2022032988A1 (en) 2020-08-14 2021-01-20 Data processing method, apparatus and device, and medium

Country Status (3)

Country Link
CN (1) CN112000713A (en)
TW (1) TW202219789A (en)
WO (1) WO2022032988A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000713A (en) * 2020-08-14 2020-11-27 中国银联股份有限公司 Data processing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150310497A1 (en) * 2009-12-17 2015-10-29 David Valin Method and process for registration, creation and management of micro shares of real or intangible properties and advertisements in a network system
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN109697670A (en) * 2018-12-29 2019-04-30 杭州趣链科技有限公司 A kind of public chain information screen method not influencing confidence level
CN111327648A (en) * 2018-12-13 2020-06-23 北京果仁宝软件技术有限责任公司 Processing method and system based on block chain intelligent contract
CN112000713A (en) * 2020-08-14 2020-11-27 中国银联股份有限公司 Data processing method, device, equipment and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614823B (en) * 2018-10-26 2022-05-13 蚂蚁双链科技(上海)有限公司 Data processing method, device and equipment
CN109684408A (en) * 2018-12-07 2019-04-26 深圳市智税链科技有限公司 Data managing method, device, medium and the electronic equipment of block catenary system
CN110060162B (en) * 2019-03-29 2023-10-27 创新先进技术有限公司 Data authorization and query method and device based on block chain
CN113205339B (en) * 2019-09-30 2023-01-10 支付宝(杭州)信息技术有限公司 Transaction query and transaction data processing method, device and equipment based on block chain
CN110910138B (en) * 2019-12-04 2022-07-08 中科扶云(杭州)科技有限公司 Block chain data supervision method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150310497A1 (en) * 2009-12-17 2015-10-29 David Valin Method and process for registration, creation and management of micro shares of real or intangible properties and advertisements in a network system
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN111327648A (en) * 2018-12-13 2020-06-23 北京果仁宝软件技术有限责任公司 Processing method and system based on block chain intelligent contract
CN109697670A (en) * 2018-12-29 2019-04-30 杭州趣链科技有限公司 A kind of public chain information screen method not influencing confidence level
CN112000713A (en) * 2020-08-14 2020-11-27 中国银联股份有限公司 Data processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN112000713A (en) 2020-11-27
TW202219789A (en) 2022-05-16

Similar Documents

Publication Publication Date Title
CN107566358B (en) Risk early warning prompting method, device, medium and equipment
CN110413908B (en) Method and device for classifying uniform resource locators based on website content
US9734343B2 (en) Detection and prevention of sensitive information leaks
CN102542201B (en) Detection method and system for malicious codes in web pages
CN109766479B (en) Data processing method and device, electronic equipment and storage medium
CN110417718B (en) Method, device, equipment and storage medium for processing risk data in website
US11736474B1 (en) Automatic account protection for compromised credentials
CN105164691A (en) Optimizing test data payload selection for testing computer software applications using computer networks
WO2022032988A1 (en) Data processing method, apparatus and device, and medium
CN115361450B (en) Request information processing method, apparatus, electronic device, medium, and program product
CN108052842B (en) Signature data storage and verification method and device
US10826923B2 (en) Network security tool
CN112015494A (en) Third-party API tool calling method, system and device
CN108462713B (en) Method and system for client to perform credibility verification
US11874823B1 (en) Agnostic image digitizer to detect fraud
US11388264B1 (en) Data processing systems for data request routing
US11290505B1 (en) Data processing systems for data request routing
CN114327602B (en) Information processing method, device, electronic equipment and storage medium
CN109918895B (en) Method, electronic device, and computer-readable medium for outputting data
CN114298155A (en) Intelligent service processing method and system
CN115712513A (en) Method and device for calling interface, electronic equipment and storage medium
CN115203316A (en) Service data auditing method and device, computing equipment and storage medium
CN112711777A (en) Chain linking method, chain linking device and node equipment
CN115391781A (en) Malicious attack identification method, system, device and storage medium
CN114253984A (en) Information updating method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21855045

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21855045

Country of ref document: EP

Kind code of ref document: A1