CN117094725A - Block chain-based rule judging method, device, equipment and storage medium - Google Patents

Block chain-based rule judging method, device, equipment and storage medium Download PDF

Info

Publication number
CN117094725A
CN117094725A CN202310808108.2A CN202310808108A CN117094725A CN 117094725 A CN117094725 A CN 117094725A CN 202310808108 A CN202310808108 A CN 202310808108A CN 117094725 A CN117094725 A CN 117094725A
Authority
CN
China
Prior art keywords
rule
business
service
blockchain
parties
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310808108.2A
Other languages
Chinese (zh)
Inventor
章奇超
卢益
蔡来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Merchants Bank Co Ltd
Original Assignee
China Merchants Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Merchants Bank Co Ltd filed Critical China Merchants Bank Co Ltd
Priority to CN202310808108.2A priority Critical patent/CN117094725A/en
Publication of CN117094725A publication Critical patent/CN117094725A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a rule judging method, device, equipment and storage medium based on a blockchain, wherein the method comprises the following steps: acquiring a first business rule corresponding to business data judged by a plurality of business parties, wherein a blockchain is built among the business parties, and the first business rule is selected from a sharing rule set on the blockchain; based on the first business rule, carrying out rule judgment on the business data, and calculating to obtain a sub-rule judgment result; and calculating the sub-rule judging result to obtain a total rule judging result, wherein the total rule judging result is obtained by jointly executing rule judgment by a plurality of service parties. The application improves the trust degree among all business parties during rule judgment.

Description

Block chain-based rule judging method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a rule based on a blockchain.
Background
The block chain technology is a decentralized distributed account book technology, can safely store data, has non-tamperable information and transparent disclosure, and the transaction confirmation of the block chain is completed by the consensus of all nodes on the block, and is packaged and written into the block after the consensus is successful. All transactions on the blockchain storage blockchain network are carried out by any node, so that the information is guaranteed to be untampered, the information sharing is realized, and the information circulation efficiency is improved.
At present, in the business processing process of each field, different rules are required to be judged for different businesses, and then rule judging results are output, wherein the rule judging process usually adopts a rule engine to judge input data, then rule judging results are output, the rule judging method is usually applied to the fields of wind control, electronic commerce and finance, and most of the rule judging methods are applied to the scene of a single business party/trust domain, when the rules and the data relate to a plurality of business parties/trust domains, the rule judging process is independently executed by the business parties respectively, and the judging process is easily influenced by a single party, so that the trust degree among the business parties is lower.
Disclosure of Invention
The application mainly aims to provide a rule judging method, device, equipment and storage medium based on a blockchain, and aims to solve the technical problem that in the related technology, a plurality of service parties independently execute rule judgment respectively, the result and the process of rule judgment cannot be disclosed transparent, and the trust degree among the plurality of service parties is low.
In order to achieve the above object, an embodiment of the present application provides a blockchain-based rule determination method, including:
acquiring a first business rule corresponding to business data judged by a plurality of business parties, wherein a blockchain is built among the business parties, and the first business rule is selected from a sharing rule set on the blockchain;
based on the first business rule, carrying out rule judgment on the business data, and calculating to obtain a sub-rule judgment result;
and calculating the sub-rule judging result to obtain a total rule judging result, wherein the total rule judging result is obtained by jointly executing rule judgment by a plurality of service parties.
In one possible embodiment of the present application, the first business rule includes an on-link contract rule and an off-link normal rule;
the step of carrying out rule judgment on the service data based on the first service rule and calculating to obtain a sub-rule judgment result comprises the following steps:
if the first business rule is an on-link contract rule, performing contract calling on the business data according to the on-link contract rule, and calculating to obtain the sub-rule judging result;
if the first service rule is an out-of-chain common rule, based on the service party, carrying out rule judgment on the service data according to the out-of-chain common rule, and calculating to obtain a sub-rule judgment result;
and receiving a sub-rule judging result executed by the business party corresponding to the first business rule.
In one possible embodiment of the present application, before the step of obtaining the first service rule corresponding to the service data determined by the plurality of service parties, the method includes:
determining a service rule identifier of a rule to be used according to the service name corresponding to the service data;
and selecting a first business rule corresponding to the business data from the shared rule set according to the rule parameters.
In a possible embodiment of the present application, the rule parameter includes a business rule identifier;
the step of selecting the first business rule corresponding to the business data in the shared rule set according to the rule parameters comprises the following steps:
inquiring whether corresponding business rules exist in the shared rule set according to the business rule identification;
if the service rules corresponding to the service data exist in the sharing rule set, the service rules corresponding to the service data are used as first service rules;
and if the service rules corresponding to the service data do not exist in the sharing rule set, receiving the first service rules uploaded by the service parties according to the permission instructions of the service parties.
In one possible embodiment of the present application, the step of receiving, according to the permission instruction of a plurality of service parties, a first service rule uploaded by the service party includes:
sending an uploading request to a plurality of business parties of a block chain, and receiving an allowing instruction fed back by the business parties;
and receiving the first business rule uploaded by the business party according to the permission instruction.
In one possible embodiment of the present application, the step of calculating the sub rule determination result to obtain a total rule determination result includes:
and calculating the sub rule judgment result according to the preset rule expression of the blockchain, and outputting a total rule judgment result.
In one possible implementation manner of the present application, the service rules in the shared rule set may be freely combined, and when no service rule corresponding to the service data exists in the shared rule set, a plurality of service rules are combined, and the combined service rule is used as the rule to determine the corresponding first service rule.
The application also provides a rule judging device based on the block chain, which further comprises:
the system comprises an acquisition module, a rule judgment module and a rule judgment module, wherein the acquisition module is used for acquiring a first service rule corresponding to service data judged by a plurality of service parties, a block chain is built among the service parties, and the first service rule is selected from a sharing rule set on the block chain;
the judging module is used for judging the rule of the service data based on the first service rule and calculating to obtain a sub-rule judging result;
and the calculation module is used for calculating the sub-rule judgment result to obtain a total rule judgment result, wherein the total rule judgment result is obtained by jointly executing rule judgment by a plurality of service parties.
The application also provides a rule judging device based on the block chain, which is entity node equipment, and comprises: the program of the blockchain-based rule determination method may implement the steps of the blockchain-based rule determination method as described above when executed by a processor.
In order to achieve the above object, there is also provided a storage medium having stored thereon a blockchain-based rule determination program which, when executed by a processor, implements the steps of any of the blockchain-based rule determination methods described above.
The application provides a rule judging method, device and equipment based on a blockchain and a storage medium. Compared with the prior art that the rule judgment is independently executed by a plurality of service parties respectively, the result of the rule judgment and the process cannot be disclosed and transparent, so that the trust degree among the plurality of service parties is lower, in the application, the service rules corresponding to the service data for executing the rule judgment by the plurality of service parties are obtained, wherein a block chain is built among the plurality of service parties, and the service rules are obtained by selecting from a sharing rule set on the block chain; based on the business rule, carrying out rule judgment on the business data, and calculating to obtain a sub-rule judgment result; and calculating the sub-rule judging result to obtain a total rule judging result, wherein the total rule judging result is obtained by jointly executing rule judgment by a plurality of service parties. In the application, the business rules required by the business parties for executing the rule judgment are acquired from the sharing rule set, wherein a block chain is built among the business parties, so that the business parties are connected, and the sharing rule set is commonly used by the business parties, and a plurality of sub-rule judgment results obtained by calculation based on the business rules are disclosed, so that the calculation process and the calculation result of the business parties can be disclosed, the rule judgment process of each business party is disclosed transparent, the total rule judgment result is obtained by commonly executing the rule judgment by the business parties, and the total business judgment flow is commonly determined by the business parties, thereby increasing the trust degree among the business parties.
Drawings
FIG. 1 is a flowchart illustrating a first embodiment of a blockchain-based rule determination method of the present application;
FIG. 2 is a detailed flowchart of step S20 in a first embodiment of the blockchain-based rule determination method of the present application;
FIG. 3 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a system architecture according to the blockchain-based rule determination method of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
An embodiment of the present application provides a blockchain-based rule determination method, and in a first embodiment of the blockchain-based rule determination method of the present application, referring to fig. 1, the method includes:
step S10, a first business rule corresponding to business data determined by a plurality of business parties is obtained, wherein a block chain is built among the business parties, and the first business rule is selected from a sharing rule set on the block chain;
step S20, based on the first business rule, carrying out rule judgment on the business data, and calculating to obtain a sub-rule judgment result;
and step S30, calculating the sub rule judgment result to obtain a total rule judgment result, wherein the total rule judgment result is obtained by commonly executing rule judgment by a plurality of service parties.
The present embodiment aims at: and establishing a blockchain among a plurality of business parties for processing the business, establishing connection among the business parties, and uploading sub-rule judgment results of the business parties to the blockchain through sharing a rule set to enable the calculation process and the calculation result of the business parties to be disclosed and transparent, thereby increasing the trust degree among the business parties.
The method comprises the following specific steps:
step S10, a first business rule corresponding to business data determined by a plurality of business parties is obtained, wherein a block chain is built among the business parties, and the first business rule is selected from a sharing rule set on the block chain;
as one example, the blockchain-based rule determination method may be applied to a blockchain-based rule determination apparatus belonging to a blockchain-based rule determination system belonging to a blockchain-based rule determination device.
As an example, a business party may be a company, organization, institution, bank, institution or the like.
As an example, when a service is processed or a result of a transaction is determined among a plurality of service parties, corresponding rules are needed to determine service data, so as to obtain a service processing result, for example, when a user or a company applies for a credit card, the user needs to initiate handling the credit card service, the system determines the qualification of the user according to the uploaded user information, the determining process needs to set rules in advance, for example, the age of the user must be 18 years old to apply, if the condition is not met, the qualification of the user is not met, and then the subsequent service processing cannot be performed.
As an example, the above example is only a simple unilateral decision process, in the rule decision process, a plurality of service parties are often involved, each service party needs to perform a corresponding rule decision process, each service party uploads the rule decision result obtained by calculation to other companies, and after the rule decision result is checked by other service parties or companies, the subsequent service processing is completed.
As an example, the service data may be a service type, a service name, a service dynamic state, information related to related services, or the like, the service data may also be private data of a service party, or shared data commonly monitored by a plurality of service parties, and when the service data is the shared data, a rule determination process may be more transparent.
As one example, blockchains may be public blockchains, private blockchains, and federated blockchains, which are generally considered semi-decentralized (Consortium Block Chains). Designating a plurality of preselected nodes as billing people or managers from within a certain group, the generation of each block is decided jointly by all preselected nodes (the preselected nodes participate in the consensus process), other access nodes can participate in the transaction, but the other access nodes can participate in the transaction, but do not account for the transaction (are in essence, but rather are distributed billing, how many of the preselected nodes decide how the billing people of each block become the main risk points of the blockchain), and other anyone can conduct a limited query through the open API of the blockchain, which in this embodiment is elaborated by taking a alliance blockchain as an example.
As an example, a blockchain may be defined as a chain composed of a plurality of blocks, and the blockchain is built among a plurality of service parties, so that the blockchain is stored in servers corresponding to the service parties, where the blockchain is beneficial in that one server in the whole system can work, the whole blockchain is safe, and the server where each service party is located is a node in the blockchain, and the biggest advantage of the blockchain is that: the data is difficult to tamper and decentralize, and the two characteristics can ensure that the information recorded by the blockchain is more real and reliable, and can help solve the problem of low trust of people.
Before the step of obtaining the first service rule corresponding to the service data determined by the plurality of service parties, the method comprises the following steps:
step A1, determining rule parameters of a rule to be used according to the service name corresponding to the service data;
as an example, a required business rule may be determined according to a business name and a business stage, to obtain a rule parameter thereof, and then, according to the rule parameter, a corresponding business rule is selected from the shared rule set as a target business rule.
As an example, the rule parameter may be a rule number, a decision parameter, a request reference number, etc., for example, a rule number C1 of the invoked rule, the decision parameter is param=2, the request reference number busnbrxx1, and when the rule parameter is determined, the corresponding rule may be selected.
As one example, for the determination of business rules, the determination may be made by querying a business name-business stage and rule parameter relationship table. The service name-service stage and rule parameter relation table can be edited in advance by related operation and maintenance personnel, and is updated continuously along with the addition of various new services and rules in the service processing process.
And step A2, selecting a first business rule corresponding to the business data from the shared rule set according to the rule parameters.
As an example, the business rules in the shared rule set correspond to one rule parameter respectively, and the corresponding business rules can be accurately extracted according to the rule parameters.
Wherein the rule parameters comprise business rule identifications;
the step of selecting the first business rule corresponding to the business data in the shared rule set according to the rule parameters comprises the following steps:
step B1, inquiring whether corresponding business rules exist in the sharing rule set according to the business rule identification;
as one example, the shared rule set is specifically a combination of rules uploaded onto the blockchain, i.e., on-link contract rules.
As an example, an on-chain contract rule is an uploaded rule on a blockchain, and the rule used in the whole rule invoking process may be an on-chain contract rule or an off-chain normal rule.
As an example, when selecting a corresponding business rule from the shared rule set, it is required to first determine whether the corresponding business rule exists in the shared rule set, and determine a subsequent execution step according to the corresponding existence/nonexistence result.
Step B2, if the service rule corresponding to the service data exists in the shared rule set, taking the service rule corresponding to the service data as a first service rule;
as an example, when the service rule corresponding to the service data exists in the shared rule set, the corresponding service rule is directly selected as the first service rule.
And step B3, if the service rules corresponding to the service data do not exist in the shared rule set, receiving the first service rules uploaded by the service parties according to the permission instructions of the service parties.
As an example, when the service rule corresponding to the service data does not exist in the shared rule set, a new service rule needs to be uploaded, and before the service rule is uploaded, unified permission of each service party needs to be obtained due to the characteristic of the blockchain, so that the rule uploading can be completed.
As one example, after receiving the permission instructions of the plurality of business parties, the corresponding first business rule is uploaded to the blockchain.
As an example, the first business rule may be a business rule corresponding to business data, or may be a part of a business rule corresponding to business data, and when the situation belongs to the latter, the business rule corresponding to business data is obtained by combining the first business rule with an existing on-link contract rule.
As an example, the uploaded first business rule may be a business party that currently performs rule determination, or may be another business party, which is not limited in particular.
As an example, a parent-child rule relationship is constructed by hierarchically combining rules such that subsequently released new rules can be combined by all of the released rules.
As an example, the business rules are described by an expression language, which is a pluggable program language configured by a user or manager, and the expression language is used for parsing the rules.
As an example, after the combination rule is obtained, the new combination rule is used as the service rule corresponding to the service data, and further, the judgment of the service data is completed.
The step of receiving the first business rule uploaded by the business party according to the permission instructions of the business parties comprises the following steps:
step C1, an uploading request is sent to a plurality of business parties of a block chain, and an allowing instruction fed back by the business parties is received;
and step C2, receiving a first business rule uploaded by the business party according to the permission instruction.
As an example, before uploading a first business rule to a blockchain, an upload request needs to be sent to multiple business parties of the blockchain, and when the multiple business parties agree to the upload request, a new rule can be uploaded for the blockchain.
As an example, the required rule instructions are uploaded to the blockchain according to the allow instructions, thereby facilitating subsequent combination with on-chain contract rules or direct invocation.
Step S20, based on the first business rule, carrying out rule judgment on the business data, and calculating to obtain a sub-rule judgment result;
as an example, a rule set that is commonly determined by all business parties/trust domains of a shared rule set is recorded in the system in which the blockchain resides, and each business party can invoke a business rule in the shared rule set through the blockchain.
As an example, the first business rules have corresponding identifiers or numbers, respectively corresponding to different business data, and the first business rule with the corresponding number can be selected according to the type of the business data.
As an example, the rule determining process may be to call a service rule, when the service rule corresponds to an on-link contract, send a request to a corresponding intelligent contract to obtain an automatic response result, and when the service rule corresponds to an ordinary contract, the service party monitors service information on the blockchain, and then uploads the service data to the blockchain after executing the rule determining result.
As an example, the sub-rule determination result may be a rule determination result that is performed by each service party separately according to service data, or may be a determination result obtained by directly performing calculation on the blockchain using an on-chain contract rule, and finally uploading the sub-rule determination result to the blockchain, and further, performing integrated calculation on the sub-rule determination result on the blockchain to obtain a total rule determination result.
As an example, each sub-rule determination result has a corresponding number, in the existing rule determination process, since only each service party independently completes the service determination process and uploads the service determination process to the system, in the service processing process, the source of each processing result/determination result in the service processing process cannot be traced back well, and the source of the determination result can be traced back better by numbering the sub-rule determination result.
As an example, not only the sub-rule determination result has a number, but also the corresponding business rule has a corresponding number, and the number of the business rule is for convenience of user selection and identification.
As an example, by executing different rule judging processes on different types of business rules and uploading the rule judging processes to the blockchain, the business party can check the rule judging processes corresponding to each business party, the flow is traceable and can not be tampered, and the credibility of cooperation judgment among multiple parties is improved.
And step S30, calculating the sub rule judgment result to obtain a total rule judgment result, wherein the total rule judgment result is obtained by commonly executing rule judgment by a plurality of service parties.
As an example, in the process of interaction of rule determination results of a plurality of service parties, each service party performs individual calculation, and then calculates the calculation result of each service party according to a predetermined formula, thereby obtaining a corresponding service processing result.
The step of calculating the sub rule judgment result to obtain a total rule judgment result comprises the following steps:
and S31, calculating the sub rule judgment result according to the preset rule expression of the blockchain, and outputting a total rule judgment result.
As an example, the preset rule expression may be an expression calculated on the sub-rule determination result according to a contract method.
As an example, the contract is specifically defined among a plurality of service parties, and the sub-rule determination result is processed through the contracted contract content to obtain a corresponding rule determination result.
As an example, the overall rule determination result is a result of a combined action after rule determination by a plurality of service parties, respectively.
As an example, the rule determining method based on the blockchain is also applied to a rule determining system based on the blockchain, and a schematic diagram of the rule determining system based on the blockchain is shown in fig. 4, wherein a rule management module is used for maintaining rules on a chain, and each party uses identity on the chain to call the rule management module, upload and release new rules or update and delete rules under the authority; the rule logic execution module is mainly responsible for analyzing and executing rules, and calculates the total result according to the execution result of each sub-rule and the relation among all sub-rules; the rule contract module is used for managing rules of contract types.
The application provides a rule judging method, device and equipment based on a blockchain and a storage medium. Compared with the prior art that the rule judgment is independently executed by a plurality of service parties respectively, the result of the rule judgment and the process cannot be disclosed and transparent, so that the trust degree among the plurality of service parties is lower, in the application, the service rules corresponding to the service data for executing the rule judgment by the plurality of service parties are obtained, wherein a block chain is built among the plurality of service parties, and the service rules are obtained by selecting from a sharing rule set on the block chain; based on the business rule, carrying out rule judgment on the business data, and calculating to obtain a sub-rule judgment result; and calculating the sub-rule judging result to obtain a total rule judging result, wherein the total rule judging result is obtained by jointly executing rule judgment by a plurality of service parties. In the application, the business rules required by the business parties for executing the rule judgment are acquired from the sharing rule set, wherein a block chain is built among the business parties, so that the business parties are connected, and the sharing rule set is commonly used by the business parties, and a plurality of sub-rule judgment results obtained by calculation based on the business rules are disclosed, so that the calculation process and the calculation result of the business parties can be disclosed, the rule judgment process of each business party is disclosed transparent, the total rule judgment result is obtained by commonly executing the rule judgment by the business parties, and the total business judgment flow is commonly determined by the business parties, thereby increasing the trust degree among the business parties.
Further, based on the first embodiment of the present application, another embodiment of the present application is provided, in which, referring to fig. 2, the first business rule includes an on-link contract rule and an off-link normal rule;
the step of carrying out rule judgment on the service data based on the first service rule and calculating to obtain a sub-rule judgment result comprises the following steps:
step S201, if the first business rule is an on-link contract rule, performing contract call on the business data according to the on-link contract rule, and calculating to obtain the sub-rule judgment result;
as one example, an on-link contract rule is specifically a business rule uploaded to a blockchain, where the on-link contract rule follows the calling style of an intelligent contract.
As an example, the contract call is a call process executed by the execution process and the processing logic of the intelligent contract, and the contract call has the advantages of higher calculation speed, transparent and safe calculation process and corresponding rule determination process.
As an example, after making a contract call, the calculated sub-rule determination result is uploaded to a blockchain.
Step S202, if the service rule is an out-of-chain common rule, based on the service party, carrying out rule judgment on the service data according to the out-of-chain common rule, and calculating to obtain a sub-rule judgment result;
as an example, the out-of-chain normal rule is a business rule used when each business party performs rule determination by itself, and the out-of-chain normal rule is not uploaded to the blockchain.
As an example, when the service rule used is an out-of-chain normal rule, the service party completes the calculation process, and then uploads the obtained sub-rule determination result to the blockchain, at this time, the rule determination process executed by the service party is not disclosed, and other service parties can see the sub-rule determination result obtained by the current service party.
As an example, when using out-of-chain common rules, each business party may also share a set of rules that the business party itself uses, which is uploaded to the blockchain by the business party after soliciting consent from the corresponding business party.
Step S203, receiving a sub-rule determination result executed by the service party corresponding to the first service rule.
As an example, after the business party corresponding to the first business rule is executed to complete the rule determination, the obtained sub-rule determination result is uploaded to the blockchain, so that the rule determination result of each business party is publicly transparent.
In this embodiment, rule determination of each service party is performed by on-link contract rules and off-link common rules, so that the privacy of the service party is protected, and disclosure of each rule determination result or rule determination process is ensured.
Further, based on the first embodiment and the second embodiment of the present application, another embodiment of the present application is provided, in this embodiment, service rules in the shared rule set may be freely combined, and when no service rule corresponding to service data exists in the shared rule set, a plurality of service rules are combined, and the combined service rule is used as a first service rule corresponding to rule determination.
As an example, the rule determining process may be performed by a single rule or may be performed by combining a plurality of rules, so as to obtain a corresponding rule determining result.
As an example, when the service rule corresponding to the service data does not exist in the shared rule set, and at this time, the required first service rule may be obtained by combining other service rules in the shared rule set, then other service rules are combined, and the combined rule is used as a service rule required for executing the rule determination, for example, the a service party needs the a rule to execute the service determination, and the b rule and the c rule in the shared rule set may be combined to obtain the a rule, and then the a service party selects the a rule to execute the rule determination.
As an example, according to the business rules in the shared rule set, the combination rules are generated, new business rules do not need to be uploaded, other redundant operations are reduced, and meanwhile, other business parties can monitor the combination rules executed by the business party currently executing the rule judgment, so that the rule judgment process is public and transparent.
In this embodiment, the rules required by the service party are obtained by combining the rules in the shared service rule, so that the service party is prevented from uploading new rules, redundant manual operation is reduced, and meanwhile, the rule judging process can be monitored, so that the reliability of cooperation judgment among multiple parties is improved.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware running environment according to an embodiment of the present application.
As shown in fig. 3, the blockchain-based rule determination device may include: a processor 1001, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to enable connected communication between the processor 1001 and the memory 1005.
Optionally, the blockchain-based rule determination device may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like. The user interface may include a Display, an input sub-module such as a Keyboard (Keyboard), and the optional user interface may also include a standard wired interface, a wireless interface. The network interface may include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the blockchain-based rule determination device structure shown in fig. 3 does not constitute a limitation of the blockchain-based rule determination device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 3, an operating system, a network communication module, and a blockchain-based rule determination program may be included in the memory 1005 as one type of storage medium. An operating system is a program that manages and controls the blockchain-based rule determination device hardware and software resources, supporting the execution of blockchain-based rule determination programs and other software and/or programs. The network communication module is used to enable communication between components within the memory 1005 and other hardware and software in the blockchain-based rule determination system.
In the blockchain-based rule determination device shown in fig. 3, a processor 1001 is configured to execute a blockchain-based rule determination program stored in a memory 1005, to implement the steps of the blockchain-based rule determination method described in any of the above.
The specific implementation manner of the rule determining device based on the blockchain is basically the same as that of each embodiment of the rule determining method based on the blockchain, and is not repeated herein.
The application also provides a rule judging device based on the block chain, which comprises:
the system comprises an acquisition module, a rule judgment module and a rule judgment module, wherein the acquisition module is used for acquiring a first service rule corresponding to service data judged by a plurality of service parties, a block chain is built among the service parties, and the first service rule is selected from a sharing rule set on the block chain;
the judging module is used for judging the rule of the service data based on the first service rule and calculating to obtain a sub-rule judging result;
and the calculation module is used for calculating the sub-rule judgment result to obtain a total rule judgment result, wherein the total rule judgment result is obtained by jointly executing rule judgment by a plurality of service parties.
In one possible embodiment of the present application, the determining module includes:
the calling unit is used for carrying out contract calling on the service data according to the on-link contract rule if the first service rule is the on-link contract rule, and calculating to obtain the sub-rule judgment result;
and the first calculation unit is used for carrying out rule judgment on the service data based on the service party according to the out-of-chain common rule if the first service rule is the out-of-chain common rule, and calculating to obtain a sub-rule judgment result.
And the first receiving unit is used for receiving the sub-rule judging result executed by the business party corresponding to the first business rule.
In one possible embodiment of the present application, the blockchain-based rule determination device further includes:
the determining module is used for determining a service rule identifier of the rule to be used according to the service name corresponding to the service data;
and the selecting module is used for selecting a first business rule corresponding to the business data in the shared rule set according to the rule parameters.
In one possible embodiment of the present application, the selecting module includes:
the query unit is used for querying whether corresponding business rules exist in the sharing rule set according to the business rule identification;
a determining unit, configured to take, if the service rule corresponding to the service data exists in the shared rule set, the service rule corresponding to the service data as a first service rule;
and the second receiving unit is used for receiving the first business rule uploaded by the business party according to the permission instructions of the business parties if the business rule corresponding to the business data does not exist in the sharing rule set.
In one possible embodiment of the application, the receiving unit comprises:
the sending unit is used for sending an uploading request to a plurality of service parties of the blockchain and receiving an allowing instruction fed back by the service parties;
and the third receiving unit is used for receiving the first business rule uploaded by the business party according to the permission instruction.
In one possible embodiment of the present application, the calculation module further includes:
and the second calculation unit is used for calculating the sub rule judgment result according to the preset rule expression of the blockchain and outputting a total rule judgment result.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A blockchain-based rule determination method, the method comprising the steps of:
acquiring a first business rule corresponding to business data judged by a plurality of business parties, wherein a blockchain is built among the business parties, and the first business rule is selected from a sharing rule set on the blockchain;
based on the first business rule, carrying out rule judgment on the business data, and calculating to obtain a sub-rule judgment result;
and calculating the sub-rule judging result to obtain a total rule judging result, wherein the total rule judging result is obtained by jointly executing rule judgment by a plurality of service parties.
2. The blockchain-based rule determination method of claim 1, wherein the first business rule includes an on-chain contractual rule and an off-chain general rule;
the step of carrying out rule judgment on the service data based on the first service rule and calculating to obtain a sub-rule judgment result comprises the following steps:
if the first business rule is an on-link contract rule, performing contract calling on the business data according to the on-link contract rule, and calculating to obtain the sub-rule judging result;
if the service rule is an out-of-chain common rule, based on the service party, carrying out rule judgment on the service data according to the out-of-chain common rule, and calculating to obtain a sub-rule judgment result;
and receiving a sub-rule judging result executed by the business party corresponding to the first business rule.
3. The blockchain-based rule determination method of claim 1, wherein before the step of obtaining the first business rule corresponding to the business data for which the plurality of business parties perform rule determination, the step of obtaining the first business rule includes:
determining rule parameters of rules to be used according to the service names corresponding to the service data;
and selecting a first business rule corresponding to the business data from the shared rule set according to the rule parameters.
4. The blockchain-based rule determination method of claim 3, wherein the rule parameters include business rule identification;
the step of selecting the first business rule corresponding to the business data in the shared rule set according to the rule parameters comprises the following steps:
inquiring whether corresponding business rules exist in the shared rule set according to the business rule identification;
if the service rules corresponding to the service data exist in the sharing rule set, the service rules corresponding to the service data are used as first service rules;
and if the service rules corresponding to the service data do not exist in the sharing rule set, receiving the first service rules uploaded by the service parties according to the permission instructions of the service parties.
5. The blockchain-based rule determination method of claim 4, wherein the step of receiving the first business rule uploaded by the business party according to the permission instructions of the plurality of business parties comprises:
sending an uploading request to a plurality of business parties of a block chain, and receiving an allowing instruction fed back by the business parties;
and receiving the first business rule uploaded by the business party according to the permission instruction.
6. The blockchain-based rule determination method of claim 1, wherein the step of calculating the sub-rule determination result to obtain an overall rule determination result includes:
and calculating the sub rule judgment result according to the preset rule expression of the blockchain, and outputting a total rule judgment result.
7. The blockchain-based rule determination method of claim 1, wherein business rules in the shared rule set can be freely combined, and when no business rule corresponding to the business data exists in the shared rule set, a plurality of business rules are combined, and the combined business rules are used as the first business rule corresponding to the rule determination.
8. A blockchain-based rule determination device, wherein the blockchain-based rule determination device comprises:
the system comprises an acquisition module, a rule judgment module and a rule judgment module, wherein the acquisition module is used for acquiring a first service rule corresponding to service data judged by a plurality of service parties, a block chain is built among the service parties, and the first service rule is selected from a sharing rule set on the block chain;
the judging module is used for judging the rule of the service data based on the first service rule and calculating to obtain a sub-rule judging result;
and the calculation module is used for calculating the sub-rule judgment result to obtain a total rule judgment result, wherein the total rule judgment result is obtained by jointly executing rule judgment by a plurality of service parties.
9. A blockchain-based rule determination device, the device comprising: a memory, a processor, and a blockchain-based rule determination program stored on the memory and executable on the processor, the blockchain-based rule determination program configured to implement the steps of the blockchain-based rule determination method of any of claims 1 to 7.
10. A computer storage medium having stored thereon a blockchain-based rule determination program which when executed by a processor implements the steps of the blockchain-based rule determination method of any of claims 1 to 7.
CN202310808108.2A 2023-07-03 2023-07-03 Block chain-based rule judging method, device, equipment and storage medium Pending CN117094725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310808108.2A CN117094725A (en) 2023-07-03 2023-07-03 Block chain-based rule judging method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310808108.2A CN117094725A (en) 2023-07-03 2023-07-03 Block chain-based rule judging method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117094725A true CN117094725A (en) 2023-11-21

Family

ID=88770482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310808108.2A Pending CN117094725A (en) 2023-07-03 2023-07-03 Block chain-based rule judging method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117094725A (en)

Similar Documents

Publication Publication Date Title
CN111488595B (en) Method for realizing authority control and related equipment
CN111861140A (en) Service processing method, device, storage medium and electronic device
CN113055421B (en) Service grid management method and system
CN113271311B (en) Digital identity management method and system in cross-link network
US10891357B2 (en) Managing the display of hidden proprietary software code to authorized licensed users
CN112100585A (en) Authority management method, device and storage medium
CN108846603A (en) Logistics retroactive method, user equipment, storage medium and device based on block chain
US10192262B2 (en) System for periodically updating backings for resource requests
CN113037831A (en) Service gateway message processing method and device
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN113011907A (en) Data processing method, device, storage medium and equipment
US10013237B2 (en) Automated approval
CN110245014B (en) Data processing method and device
CN111260421B (en) Electronic invoice management and control method and device based on block chain
US20230205849A1 (en) Digital and physical asset tracking and authentication via non-fungible tokens on a distributed ledger
CN117094725A (en) Block chain-based rule judging method, device, equipment and storage medium
CN109992298A (en) Examine platform extending method, device, examination & approval platform and readable storage medium storing program for executing
CN112417402B (en) Authority control method, authority control device, authority control equipment and storage medium
CN114866970A (en) Policy control method, system and related equipment
CN114567678A (en) Resource calling method and device of cloud security service and electronic equipment
CN112433821B (en) Method and device for building business model, electronic equipment and medium
CN113596168B (en) Verification method and device based on block chain alliance chain
CN112907278B (en) Rights object distribution control method and device, equipment and medium thereof
CN108830441B (en) Resource query method and device
CN112734360A (en) End-to-end business process management method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination