Data chain compliance control method, device and equipment and storage medium
By creating and uploading data screening templates through the template operation interface, the problem of high compliance control costs for blockchain data on-chain is solved, achieving simple and efficient compliance control and reducing development and maintenance costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LIAONING MOBILE COMM
- Filing Date
- 2021-05-08
- Publication Date
- 2026-06-23
AI Technical Summary
Current technologies for compliance control of blockchain data uploading are costly, requiring professional programmers to write code, resulting in complex and expensive operations.
This paper provides a data on-chain compliance control method that allows authorized users to visually create or modify data screening templates through a template operation interface and upload them to the blockchain. This enables all nodes to perform data screening based on a unified data screening template, preventing invalid or malicious data from being uploaded to the blockchain.
It reduces the development and maintenance costs of compliance control for on-chain data, and provides a secure, simple, self-maintaining, and self-synchronizing compliance control method to prevent invalid or malicious data from being uploaded to the blockchain.
Smart Images

Figure CN115309718B_ABST
Abstract
Description
Technical Field
[0001] This application pertains to blockchain technology, and in particular relates to a method, apparatus, device, and storage medium for compliance control of data on-chain. Background Technology
[0002] As a shared database, blockchain offers numerous advantages due to the characteristics of its stored data, such as being "unforgeable," "fully traceable," "transparent," and "collectively maintained." As a result, an increasing amount of data is being uploaded to the blockchain for storage. Ensuring the compliance of the uploaded data and preventing invalid or malicious data from being uploaded has become a crucial issue in blockchain data storage.
[0003] In existing technologies, smart contracts are commonly used to define the rules for uploading data to the blockchain. However, most blockchain smart contracts are currently written and fixed using computer code. Each modification or creation requires professional programmers to write the code, which results in high costs for compliance control of the data uploaded to the blockchain. Summary of the Invention
[0004] This application provides a data on-chain compliance control method, apparatus, device, and storage medium, which can solve the problem of high cost in the prior art for compliance control of on-chain data.
[0005] In a first aspect, embodiments of this application provide a data on-chain compliance control method, the method comprising:
[0006] Receive template configuration input from the target user based on the template operation interface; wherein, the target user is a user with template configuration permission, and the template configuration input includes modification input for an existing data screening template, or configuration input for creating a new data screening template, and the data screening template is used to determine whether the data to be uploaded to the blockchain conforms to the preset data specifications;
[0007] In response to the template configuration input, a target data screening template is generated;
[0008] The target data screening template is uploaded to the blockchain so that multiple nodes in the blockchain can screen the data to be uploaded to the blockchain based on the target data screening template before uploading it to the blockchain.
[0009] In one optional implementation, the first area of the template operation interface displays M data modules, and the template configuration input is an input that drags N data modules from the first area to the second area of the template operation interface; wherein M and N are positive integers, and M≥N;
[0010] The step of generating a target data screening template in response to the template configuration input includes:
[0011] In response to the template configuration input, the N data modules within the second region are obtained;
[0012] The target data screening template is generated based on the N data modules.
[0013] In one optional implementation, after uploading the target data screening template to the blockchain, the method further includes:
[0014] Obtain the target data to be uploaded to the blockchain;
[0015] Based on the target data screening template, determine whether the target data contains at least the data corresponding to the target data module, wherein the target data module is the module whose corresponding data among the N data modules cannot be empty;
[0016] If it is determined that the target data contains at least the data corresponding to the N data modules, the target data is uploaded to the blockchain.
[0017] In an optional implementation, after determining whether the target data contains at least the data corresponding to the target data module based on the target data screening template, the method further includes:
[0018] If it is determined that the target data does not contain the data corresponding to the target data module, the upload of the target data to the blockchain will be refused.
[0019] In an alternative implementation, after generating a target data screening template in response to the template configuration input, the method further includes:
[0020] The target data screening template is assembled into the data screening component;
[0021] The step of determining whether the target data contains at least the data corresponding to the target data module based on the target data screening template includes:
[0022] The target data is input into the data screening component;
[0023] The data screening component determines whether the target data contains at least the data corresponding to the target data module.
[0024] In one optional implementation, uploading the target data screening template to the blockchain includes:
[0025] The target data screening template is stored in the block data;
[0026] The block data is uploaded to the blockchain.
[0027] In one alternative implementation, the target data screening template is assigned a template-type identity identifier, so that other nodes in the blockchain can obtain the target data screening template based on the template-type identity identifier.
[0028] Secondly, embodiments of this application provide a data on-chain compliance control device, which includes:
[0029] The receiving module is used to receive template configuration input from the target user based on the template operation interface; wherein, the target user is a user with template configuration permissions, and the template configuration input includes modification input for an existing data screening template, or configuration input for creating a new data screening template, and the data screening template is used to determine whether the data to be uploaded to the blockchain conforms to the preset data specifications;
[0030] The generation module is used to generate a target data screening template in response to the template configuration input;
[0031] The upload module is used to upload the target data screening template to the blockchain, so that multiple nodes in the blockchain can screen the data to be uploaded to the blockchain based on the target data screening template before uploading it to the blockchain.
[0032] In one optional implementation, the first area of the template operation interface displays M data modules, and the template configuration input is an input that drags N data modules from the first area to the second area of the template operation interface; wherein M and N are positive integers, and M≥N;
[0033] The generation module includes:
[0034] A submodule is configured to acquire the N data modules within the second region in response to the template configuration input.
[0035] A generation submodule is used to generate the target data screening template based on the N data modules.
[0036] In one alternative embodiment, the device further includes:
[0037] The acquisition module is used to acquire the target data to be uploaded to the blockchain after the target data screening template is uploaded to the blockchain;
[0038] The determination module is used to determine, based on the target data screening template, whether the target data contains at least the data corresponding to the target data module, wherein the target data module is the module whose corresponding data among the N data modules cannot be empty;
[0039] An upload module is used to upload the target data to the blockchain when it is determined that the target data contains at least the data corresponding to the N data modules.
[0040] In one alternative embodiment, the device further includes:
[0041] The rejection module is used to refuse to upload the target data to the blockchain after determining, based on the target data screening template, whether the target data contains at least the data corresponding to the target data module, and if it is determined that the target data does not contain the data corresponding to the target data module.
[0042] In one alternative embodiment, the device further includes:
[0043] An assembly module is used to assemble the target data screening template into the data screening component after generating the target data screening template in response to the template configuration input.
[0044] The module to be determined includes:
[0045] The input submodule is used to input the target data into the data screening component.
[0046] The determination submodule is used to determine, through the data screening component, whether the target data contains at least the data corresponding to the target data module.
[0047] In one alternative implementation, the upload module includes:
[0048] The storage submodule is used to store the target data screening template in the block data.
[0049] The second upload submodule is used to upload the block data to the blockchain.
[0050] In one alternative implementation, the target data screening template is assigned a template-type identity identifier, so that other nodes in the blockchain can obtain the target data screening template based on the template-type identity identifier.
[0051] Thirdly, embodiments of this application provide an electronic device, which includes: a processor and a memory storing computer program instructions;
[0052] When the processor executes computer program instructions, it implements the data on-chain compliance control method as described in any embodiment of the first aspect.
[0053] Fourthly, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the data on-chain compliance control method as described in any embodiment of the first aspect.
[0054] The data on-chain compliance control method, apparatus, device, and storage medium of this application embodiment, by setting a template operation interface, enable authorized users to visually create or modify data screening templates on their local node. By uploading the data screening templates to the blockchain, all nodes in the blockchain can screen the on-chain data based on the unified data screening template. In this way, compliance control of on-chain data can be achieved without professional programming, preventing invalid or malicious data from being uploaded to the blockchain. This effectively reduces the development and maintenance costs required for compliance control of on-chain data, and provides a secure, simple, self-maintaining, and self-synchronizing compliance control method. Attached Figure Description
[0055] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 This is a flowchart illustrating a data on-chain compliance control method provided in one embodiment of this application;
[0057] Figure 2 This is a basic structural diagram of a data screening template provided in one embodiment of this application;
[0058] Figure 3 This is a flowchart of a contract layer configuration method provided in one embodiment of this application;
[0059] Figure 4 This is a flowchart of a blockchain data uploading method provided in one embodiment of this application;
[0060] Figure 5 This is a diagram illustrating the construction of a blockchain contract layer in one embodiment of this application.
[0061] Figure 6 This is a schematic diagram of the structure of a data on-chain compliance control device provided in one embodiment of this application;
[0062] Figure 7 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation
[0063] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application 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 intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0064] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0065] To address the problems of existing technologies, embodiments of this application provide a data on-chain compliance control method, apparatus, device, and storage medium. This data on-chain compliance control method can be applied to scenarios involving compliance control of on-chain data within a blockchain. The executing entity of this data on-chain compliance control method can be an electronic device configured with any node in the blockchain. The data on-chain compliance control method provided in this application embodiment is described below.
[0066] Figure 1 A flowchart illustrating a data on-chain compliance control method provided in one embodiment of this application is shown.
[0067] like Figure 1 As shown, the data on-chain compliance control method may specifically include the following steps:
[0068] First, S110, receive template configuration input from the target user based on the template operation interface.
[0069] Secondly, S120, in response to the template configuration input, generates a target data screening template.
[0070] Finally, in S130, the target data screening template is uploaded to the blockchain so that multiple nodes in the blockchain can screen the data to be uploaded to the blockchain based on the target data screening template before uploading it.
[0071] Therefore, by setting up a template operation interface, authorized users can visually create or modify data screening templates on their local node. By uploading these templates to the blockchain, all nodes within the blockchain can then screen the data on the chain based on this unified template. This allows for compliance control of on-chain data without requiring professional programming, preventing invalid or malicious data from being uploaded. This effectively reduces the development and maintenance costs required for compliance control of on-chain data, providing a secure, simple, self-maintaining, and self-synchronizing compliance control method.
[0072] The above steps are explained in detail below:
[0073] First, regarding S110, in this embodiment, the target user can configure a data screening template through the template operation interface. The target user is a user with template configuration permissions. The template configuration input includes modification input for an existing data screening template, or configuration input for creating a new data screening template. The data screening template is used to determine whether the data to be uploaded to the blockchain conforms to preset data specifications.
[0074] Here, the template operation interface can be a business compliance visual operation view interface, which can specifically include a selection area for data modules and an operation interface. Data modules can be fields in the template, such as record ID, system identification code, business identification code, etc. Template configuration can be performed by selecting or dragging data modules into the template.
[0075] In a specific example, a blockchain network may include several blockchain nodes such as the "Turning Stone into Gold" system, the order system, the integrated resource system, and the engineering construction system (ECMS). Each blockchain node can be set up with a template operation interface. Users with operation permissions can open the template operation interface on their node device, select the required data module in the candidate area, and transfer the data module from the candidate area to the operation interface, thereby completing the configuration process of the data screening template.
[0076] Secondly, regarding S120, the data screening template can be a combination of multiple data modules. The basic structure of the data screening template may include, for example, such as... Figure 2 The data modules shown include record ID, system identification code, business identification code, etc.
[0077] For example, users can configure data modules that can be uploaded to the blockchain according to business requirements and save the configuration results to the target data screening template.
[0078] In one optional implementation, the first area of the template operation interface mentioned above displays M data modules, and the template configuration input is the input of dragging N data modules from the first area to the second area of the template operation interface; wherein, M and N are positive integers, and M≥N;
[0079] Accordingly, the above-mentioned S120 may specifically include:
[0080] In response to the template configuration input, retrieve N data modules within the second region;
[0081] Generate a target data screening template based on N data modules.
[0082] Here, the first area of the template operation interface can be the candidate area for the data module, and the second area of the template operation interface can be the operation interface. The data module can be fields in the template, such as record ID, system identification code, business identification code, etc.
[0083] In a specific example, users can determine the fields corresponding to the data to be added to the chain based on business needs, and then drag and drop the data modules corresponding to these fields from the candidate area to the operation interface in the template operation interface, thereby generating the target data screening template according to the required data modules. The template operation interface is built based on the basic structure of the data screening template described in this solution, and the target data screening template can be generated after the user completes the operation.
[0084] In this way, through the above process, users can configure data screening templates in a simple interactive way on the visual template operation interface, and visually create or modify target data screening templates at this node, making the template creation and modification process more convenient and faster.
[0085] Finally, regarding S130, the data screening template can be uploaded to the blockchain network through the blockchain node configured in the device where the template was modified or created. In this way, other nodes in the blockchain network can obtain the data screening template and then perform compliance screening on the data uploaded from that node.
[0086] In one optional implementation, S130 may specifically include:
[0087] Store the target data screening template in the block data;
[0088] Upload block data to the blockchain.
[0089] Here, the target data screening template can be stored as a record in the block data. By uploading the block data to the blockchain, all nodes in the blockchain can synchronize the data corresponding to the data screening template.
[0090] In a specific example, if the target data screening template is generated in the Dian Shi Cheng Jin system, the blockchain nodes integrated in the Dian Shi Cheng Jin system will upload the screening template as record data to the chain and synchronize the block data through the blockchain network.
[0091] In this way, through the above process, each node in the blockchain can maintain blockchain data records according to a unified data screening template, preventing invalid or malicious data from being uploaded to the chain.
[0092] In one alternative implementation, the target data screening template is assigned a template-type identity identifier so that other nodes in the blockchain can obtain the target data screening template based on the template-type identity identifier.
[0093] Here, in order to allow other nodes in the blockchain to also obtain the full set of on-chain data screening templates, the blockchain nodes will upload the screening templates as record data and mark them with a special ID.
[0094] In a specific example, when the blockchain nodes integrated into the "Turning Stone into Gold" system upload screening templates as record data to the chain, they will mark them with a special ID. Blockchain nodes deployed on "Turning Stone into Gold" synchronize block data through the blockchain network, including records of the uploaded data screening template type. Blockchain nodes deployed on the order system, integrated resource system, and ECMS system synchronize block data, including the target data screening template, and extract the target data screening template data based on the record ID of that type, appending it to the node's own data screening template.
[0095] In this way, by assigning a template type identifier to the target data screening template, the target data screening template data can be distinguished from ordinary data, making it convenient for other nodes to obtain and record the data screening template.
[0096] Based on this, after S130 above, the data on-chain compliance control method provided in this application embodiment may further include:
[0097] Obtain the target data to be uploaded to the blockchain;
[0098] Based on the target data screening template, determine whether the target data contains at least the data corresponding to the target data module. The target data module is the module among N data modules whose corresponding data cannot be empty.
[0099] If the target data is determined to contain data corresponding to at least N data modules, the target data will be uploaded to the blockchain.
[0100] Here, blockchain nodes can obtain target data through RESTful APIs (Representational State Transfer Application Program Interface, RESTful API), database triggers, and other means. The target data to be uploaded to the chain can be business change records.
[0101] In this way, by screening the target data to be uploaded to the blockchain based on the target data screening template, and ensuring that the target data contains data corresponding to at least N data modules, the compliance of the uploaded data can be guaranteed.
[0102] In one alternative implementation, after determining whether the target data contains at least the data corresponding to the target data module based on the target data screening template, the aforementioned data on-chain compliance control method may further include:
[0103] If it is determined that the target data does not contain the data corresponding to the target data module, the target data will not be uploaded to the blockchain.
[0104] Here, if a blockchain node is screening target data and determines that the target data does not contain the data corresponding to the target data module, then the blockchain node can refuse to upload the data to the chain and notify the application layer of the abnormal status.
[0105] In a specific example, when the blockchain node integrated into the ECMS system is screening the record data, if it finds that a certain field in the template cannot be empty, but the record data is missing the content of that field, the blockchain node will refuse to store the data in the block data.
[0106] In this way, by screening the target data to be uploaded to the blockchain based on the target data screening template, and refusing to upload the target data to the blockchain if it is determined that the target data does not contain the data corresponding to the target data module, it is possible to prevent illegal data from being uploaded to the blockchain, thereby ensuring the compliance of the data uploaded to the blockchain.
[0107] In one alternative implementation, after generating the target data screening template in response to the template configuration input, the aforementioned data on-chain compliance control method may further include:
[0108] Assemble the target data screening template into the data screening component;
[0109] Accordingly, based on the target data screening template, it is determined whether the target data contains at least the data corresponding to the target data module, including:
[0110] Input the target data into the data screening component;
[0111] The data screening component determines whether the target data contains at least the data corresponding to the target data module.
[0112] Here, the target data screening template is assembled into the data screening component. The data screening component will use the data screening template as a basis to screen the throughput of on-chain data to determine whether the target data contains at least the data corresponding to the target data module. The data screening component can be, for example, an on-chain data compliance screener.
[0113] In a specific example, after the user completes the design of the data screening template, the blockchain node integrated by the DianShiChengJin system will assemble the data screening template belonging to its own system into the on-chain data compliance screener of this node. All data to be uploaded to the chain must pass the compliance test of the on-chain data compliance screener before it can be uploaded to the chain, and the on-chain data compliance screener performs the test based on the data screening template configured by the user.
[0114] In this way, the data screening component can determine whether the target data contains at least the data corresponding to the target data module, making it easier to use the target data screening template.
[0115] To better describe the overall solution, several specific examples are given based on the above embodiments.
[0116] For example, such as Figure 3 The flowchart shown illustrates the blockchain contract layer configuration method. This contract layer configuration method may include S301-S306, which will be explained in detail below.
[0117] S301, users design on-chain data screening templates in the template operation interface.
[0118] In a specific example, a blockchain network includes several blockchain nodes such as a gold-making system, an order system, a comprehensive resource system, and an engineering construction system. Each blockchain node is equipped with a template operation interface. Users can open the template operation interface and transfer the data module from the candidate area to the operation interface by clicking on the data module in the candidate area, thereby generating the target data screening template.
[0119] S302, the on-chain data screening template is assembled into the node's on-chain data screening component.
[0120] In a specific example, after the target data screening template is generated, the blockchain nodes integrated by the DianShiChengJin system will assemble the screening template belonging to their own system into the on-chain data screening component of their own node. All data to be uploaded to the chain must pass the compliance test of the screening component before it can be uploaded to the chain, and the basis for the screening component to perform the test is the generated target data screening template.
[0121] S303, the on-chain data screening template is used to record data on the blockchain.
[0122] In a specific example, in order to allow other nodes in the blockchain network to also obtain the full target data screening template, the blockchain node will put the target data screening template on the chain as record data and mark it with a special ID.
[0123] S304, all nodes synchronize and upload data to the blockchain to screen template data.
[0124] In a specific example, blockchain nodes deployed on the "Turning Stone into Gold" blockchain synchronize block data through the blockchain network. The block data includes records of the target data screening template type.
[0125] S305, the node obtains the on-chain data screening template data from the synchronized block data.
[0126] S306, the on-chain data screening component for nodes is equipped with an on-chain data screening template.
[0127] In a specific example, blockchain nodes deployed on the order system, integrated resource system, and ECMS system synchronize block data. The block data includes a target data screening template, and the target data screening template data is extracted based on the record ID of this type. The target data screening template data is then appended to the node's own data screening template.
[0128] like Figure 4 The flowchart shown is a blockchain data uploading method, which may include steps S401-S409, which will be explained in detail below.
[0129] S401, Business System A pushes a business change record to Node A via a RESTful API.
[0130] In a specific example, the ECMS system pushes a business change record to its integrated blockchain node via a RESTful API, such as "the single project in the ECMS system with the number 00010086 has been changed from the design stage to the construction stage".
[0131] S402, Node A uses the on-chain data screening component to screen this record.
[0132] In a specific example, the blockchain node integrated into the ECMS system matches the system identification code (ECMS), business identification code (single project), field code (process progress), operation code (modification), operation value (construction) templates in the on-chain data screening component to determine whether the record is compliant.
[0133] S403, screen whether the record conforms to the preset specifications of the on-chain data screening template.
[0134] S404, refuse to upload data to the blockchain and notify the application layer of the exception.
[0135] In a specific example, when the blockchain node integrated into the ECMS system screens the record data, if it finds that the field code in the template is not empty, but the record is missing the field code content, the blockchain node will refuse to store the record in the block data.
[0136] S405, upload this record data to the blockchain.
[0137] In a specific example, if a blockchain node integrated into the ECMS system screens a record and finds that the record contains at least the data corresponding to the data module in the data screening template, then the blockchain node will push the record to be stored in the block data.
[0138] S406, all nodes synchronize this on-chain data.
[0139] In a specific example, the blockchain nodes of the DianShiChengJin system and the ECMS system achieve full synchronization of data blocks through the blockchain network.
[0140] S407, Application B obtains the latest on-chain data through Node B.
[0141] In a specific example, the "Turning Stone into Gold" system retrieves the record from the integrated blockchain node via an API.
[0142] S408, Application B uses this change record to update the status of a certain field.
[0143] In a specific example, the "Turning Stone into Gold" system changed the stage of a single project in the original ECMS system (number 00010086) from the design stage to the construction stage.
[0144] Based on the above-mentioned data on-chain compliance control method, in one possible embodiment, such as Figure 5 As shown, a blockchain contract layer architecture system is disclosed, comprising: an operation module 501, an interface module 502, a screening module 503, and a storage module 504. The operation module 501 is used to configure data screening templates. Users can configure the business record data to be uploaded to the blockchain in the template operation interface according to business requirements, and the configuration results are saved to the data screening template.
[0145] Interface module 502 can include two sub-modules: a REST-style interface and a database trigger, which can be used to obtain business record data to be uploaded to the blockchain.
[0146] The screening module 503 may include two sub-modules: an on-chain data screening template and an on-chain data compliance screener. It can be used to perform compliance screening on the data to be uploaded to the chain and determine whether the data to be uploaded to the chain meets the preset data specifications.
[0147] Storage module 506 can be used to store the on-chain data screening template in the block data for uploading.
[0148] Therefore, by setting up a template operation interface, authorized users can visually create or modify data screening templates on their local node. By uploading these templates to the blockchain, all nodes within the blockchain can then screen the data on the chain based on this unified template. This allows for compliance control of on-chain data without requiring professional programming, preventing invalid or malicious data from being uploaded. This effectively reduces the development and maintenance costs required for compliance control of on-chain data, providing a secure, simple, self-maintaining, and self-synchronizing compliance control method.
[0149] Figure 6 This is a schematic diagram illustrating the structure of a data on-chain compliance control device according to an exemplary embodiment.
[0150] like Figure 6 As shown, the data on-chain compliance control device may include:
[0151] The receiving module 601 is used to receive template configuration input from the target user based on the template operation interface; wherein, the target user is a user with template configuration permission, and the template configuration input includes modification input for existing data screening templates, or configuration input for creating new data screening templates, and the data screening template is used to determine whether the data to be uploaded to the blockchain conforms to the preset data specifications;
[0152] Generation module 602 is used to generate a target data screening template in response to template configuration input;
[0153] Upload module 603 is used to upload the target data screening template to the blockchain, so that multiple nodes in the blockchain can screen the data to be uploaded to the blockchain based on the target data screening template before uploading it to the blockchain.
[0154] In one embodiment, M data modules are displayed in the first area of the template operation interface, and the template configuration input is the input of dragging N data modules from the first area to the second area of the template operation interface; where M and N are positive integers, and M≥N;
[0155] The generation module 602 may specifically include:
[0156] The submodule is used to retrieve N data modules within the second region in response to template configuration input;
[0157] The generation submodule is used to generate a target data screening template based on N data modules.
[0158] In one embodiment, the device may further include:
[0159] The acquisition module is used to acquire the target data to be uploaded to the blockchain after the target data screening template is uploaded to the blockchain;
[0160] The determination module is used to determine whether the target data contains at least the data corresponding to the target data module based on the target data screening template. The target data module is the module whose corresponding data among N data modules cannot be empty.
[0161] The upload module is used to upload target data to the blockchain when it is determined that the target data contains data corresponding to at least N data modules.
[0162] In one embodiment, the device may further include:
[0163] The rejection module is used to refuse to upload target data to the blockchain after determining, based on the target data screening template, whether the target data contains at least the data corresponding to the target data module, and if it is determined that the target data does not contain the data corresponding to the target data module.
[0164] In one embodiment, the device may further include:
[0165] The assembly module is used to assemble the target data screening template into the data screening component after generating the target data screening template in response to the template configuration input.
[0166] Specifically, the module may include:
[0167] The input submodule is used to input target data into the data screening component.
[0168] The determination submodule is used to determine, through the data screening component, whether the target data contains at least the data corresponding to the target data module.
[0169] In one embodiment, the upload module specifically includes:
[0170] The storage submodule is used to store the target data screening template in the block data.
[0171] The second upload submodule is used to upload block data to the blockchain.
[0172] In one embodiment, the target data screening template is assigned an identity identifier of the template type, so that other nodes in the blockchain can obtain the target data screening template based on the identity identifier of the template type.
[0173] Therefore, by setting up a template operation interface, authorized users can visually create or modify data screening templates on their local node. By uploading the data screening templates to the blockchain, all nodes in the blockchain can screen the on-chain data based on this unified data screening template. In this way, compliance control of on-chain data can be achieved without professional programming, preventing invalid or malicious data from being uploaded to the chain. This effectively reduces the development and maintenance costs required for compliance control of on-chain data, providing a secure, simple, self-maintaining, and self-synchronizing compliance control method.
[0174] Figure 7 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment.
[0175] like Figure 7 As shown, the electronic device 7 may include a processor 701 and a memory 702 storing computer program instructions.
[0176] Specifically, the processor 701 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0177] Memory 702 may include a large-capacity storage for information or instructions. For example, and not limitingly, memory 702 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 702 may include removable or non-removable (or fixed) media. Where appropriate, memory 702 may be internal or external to the integrated gateway device. In a particular embodiment, memory 702 is a non-volatile solid-state memory. In a particular embodiment, memory 702 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0178] The processor 701 reads and executes computer program instructions stored in the memory 702 to achieve... Figure 1 or Figure 6 The methods in the illustrated embodiments achieve the corresponding technical effects, and will not be described in detail here for the sake of brevity.
[0179] In one embodiment, the electronic device 7 may further include a transceiver 703 and a bus 704. Wherein, as... Figure 7 As shown, the processor 701, memory 702 and transceiver 703 are connected via bus 704 and communicate with each other.
[0180] Bus 704 includes hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Controller Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 704 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0181] This application also provides a computer storage medium storing computer program instructions for implementing the marking method described in this application.
[0182] In some possible implementations, various aspects of the methods provided in this application may also be implemented as a program product comprising program code that, when run on a computer device, causes the computer device to perform the steps of the methods according to the various exemplary embodiments of this application described above, for example, the computer device may perform the marking method described in the embodiments of this application.
[0183] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0184] This application is described with reference to flowchart illustrations and / or block diagrams of the methods, apparatus, and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable information processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable information processing apparatus, generate instructions for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0185] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable information processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0186] These computer program instructions may also be loaded onto a computer or other programmable information processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0187] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A data on-chain compliance control method, characterized in that, include: Receive template configuration input from the target user based on the template operation interface; wherein, the target user is a user with template configuration permission, and the template configuration input includes modification input for an existing data screening template, or configuration input for creating a new data screening template, and the data screening template is used to determine whether the data to be uploaded to the blockchain conforms to the preset data specifications; In response to the template configuration input, a target data screening template is generated; The target data screening template is uploaded to the blockchain, so that multiple nodes in the blockchain can screen the data to be added to the chain based on the target data screening template before adding it to the chain. Uploading the target data screening template to the blockchain includes: The target data screening template is stored in the block data; The block data is uploaded to the blockchain so that other nodes in the blockchain can synchronize with the data corresponding to the target data screening template.
2. The method according to claim 1, characterized in that, The first area of the template operation interface displays M data modules, and the template configuration input is the input of dragging N data modules from the first area to the second area of the template operation interface; where M and N are positive integers, and M≥N; The step of generating a target data screening template in response to the template configuration input includes: In response to the template configuration input, the N data modules within the second region are obtained; The target data screening template is generated based on the N data modules.
3. The method according to claim 2, characterized in that, After uploading the target data screening template to the blockchain, the method further includes: Obtain the target data to be uploaded to the blockchain; Based on the target data screening template, determine whether the target data contains at least the data corresponding to the target data module, wherein the target data module is the module whose corresponding data among the N data modules cannot be empty; If it is determined that the target data contains at least the data corresponding to the N data modules, the target data is uploaded to the blockchain.
4. The method according to claim 3, characterized in that, After determining whether the target data contains at least the data corresponding to the target data module based on the target data screening template, the method further includes: If it is determined that the target data does not contain the data corresponding to the target data module, the upload of the target data to the blockchain will be refused.
5. The method according to claim 3, characterized in that, After generating the target data screening template in response to the template configuration input, the method further includes: The target data screening template is assembled into the data screening component; The step of determining whether the target data contains at least the data corresponding to the target data module based on the target data screening template includes: The target data is input into the data screening component; The data screening component determines whether the target data contains at least the data corresponding to the target data module.
6. The method according to claim 1, characterized in that, The target data screening template is assigned a template type identity identifier so that other nodes in the blockchain can obtain the target data screening template based on the template type identity identifier.
7. A data on-chain compliance control device, characterized in that, The device includes: The receiving module is used to receive template configuration input from the target user based on the template operation interface; wherein, the target user is a user with template configuration permissions, and the template configuration input includes modification input for an existing data screening template, or configuration input for creating a new data screening template, and the data screening template is used to determine whether the data to be uploaded to the blockchain conforms to the preset data specifications; The generation module is used to generate a target data screening template in response to the template configuration input; The upload module is used to upload the target data screening template to the blockchain, so that multiple nodes in the blockchain can screen the data to be uploaded to the blockchain based on the target data screening template before uploading it. Uploading the target data screening template to the blockchain includes: The target data screening template is stored in the block data; The block data is uploaded to the blockchain so that other nodes in the blockchain can synchronize with the data corresponding to the target data screening template.
8. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the data on-chain compliance control method as described in any one of claims 1-6.
9. A computer storage medium, characterized in that, The computer storage medium stores computer program instructions, which, when executed by a processor, implement the data on-chain compliance control method as described in any one of claims 1-6.