CN109726251B - Cross-chain distributed service system and method based on block chain development - Google Patents

Cross-chain distributed service system and method based on block chain development Download PDF

Info

Publication number
CN109726251B
CN109726251B CN201811618722.8A CN201811618722A CN109726251B CN 109726251 B CN109726251 B CN 109726251B CN 201811618722 A CN201811618722 A CN 201811618722A CN 109726251 B CN109726251 B CN 109726251B
Authority
CN
China
Prior art keywords
chain
contract
relay
cross
distributed service
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.)
Active
Application number
CN201811618722.8A
Other languages
Chinese (zh)
Other versions
CN109726251A (en
Inventor
邱望洁
杨泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Honglian Information Technology Co ltd
Original Assignee
Suzhou Honglian Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Honglian Information Technology Co ltd filed Critical Suzhou Honglian Information Technology Co ltd
Priority to CN201811618722.8A priority Critical patent/CN109726251B/en
Publication of CN109726251A publication Critical patent/CN109726251A/en
Application granted granted Critical
Publication of CN109726251B publication Critical patent/CN109726251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a block chain development-based cross-chain distributed service system and a block chain development-based cross-chain distributed service method, wherein the cross-chain distributed service system comprises a side chain which is related in the cross-chain distributed service and a relay chain which performs information interaction with the side chain, the side chain comprises an application mechanism account, a side chain variable is stored in the application mechanism account, a relay chain contract is deployed on the relay chain and used for receiving and processing various intelligent contracts, the cross-chain distributed service system also comprises participation objects which participate in the cross-chain distributed service, and the participation objects comprise application mechanisms, user nodes, monitoring nodes and execution nodes. The block chain-based developed cross-chain distributed service system supports the deployment of cross-chain intelligent contracts and completely supports multi-chain, multi-contract and multivariable distributed services.

Description

Cross-chain distributed service system and method based on block chain development
Technical Field
The invention relates to the technical field of cross-chain transaction, in particular to a cross-chain distributed service system and a method based on block chain development.
Background
The traditional mode has a plurality of problems in tracing, firstly, the information is easy to be falsified or deleted; secondly, such a numbering system is too huge on a national scale, and the workload is hard to bear; third, the problem of difficulty in sharing data securely across platforms cannot be solved. After the block chain is introduced, all the circulation data are permanently stored in the block chain and cannot be modified, and the traceability is extremely high in credibility; meanwhile, the high-performance network stored by the block chain engine and the block chain can support massive data processing requests and storage requirements; finally, the introduced block chain can unify the design standards and data systems of different enterprises, and meanwhile, due to the characteristics of openness, autonomy, non-tamper property, anonymity and the like of the introduced block chain, the trust cost among the enterprises is further reduced, and the information resources of the distributed heterogeneous systems can be more effectively integrated.
Existing cross-chain technologies such as Corda, interldge implement the transfer of cross-chain assets through the mode of notary, but do not implement cross-chain contracts and have low fairness; polkdot, COSMOS realizes cross-link contract through a repeater, but cannot completely support the distributed service of multi-link contract under multi-link; the technologies such as Atom Swap, WanChain, Fusion, EKT and the like also have respective defects. Besides a typical application scenario of virtual currency, a block chain technology has high time delay, throughput capacity limitation, storage capacity limitation and the like, so that an actual landing service scenario does not exist in the industry.
The distributed transaction database product is developed for solving the problem of massive connection, massive concurrency, massive throughput, stability, reliability, low time delay and other relational transaction type service scenes, so that the application of the distributed transaction database product in the service scenes of an alliance chain and a private chain is a pain point for solving a block chain of the product. And the existing cross-chain technology cannot fully support the distributed service of multi-chain lower contract deployment.
Disclosure of Invention
The invention aims to provide a block chain-based developed cross-chain distributed service system, which supports the deployment of cross-chain intelligent contracts and completely supports multi-chain, multi-contract and multivariable distributed services.
In order to achieve the purpose of the invention, the invention adopts the following technical scheme: a block chain development-based cross-chain distributed business system comprises a side chain which is related in the cross-chain distributed business and a relay chain which carries out information interaction with the side chain, wherein the side chain comprises an application institution account, a side chain variable is stored in the application institution account, and a relay chain contract is deployed on the relay chain and used for receiving and processing various intelligent contracts;
the cross-chain distributed service system also comprises participating objects, wherein the participating objects comprise application mechanisms, user nodes, monitoring nodes and execution nodes;
the application mechanism and the user node are direct service participants and participate in the state change of the relay chain and the side chain, and the application mechanism is a provider of the side chain;
the monitoring node monitors the state change of the side chain variable, packages the state change as the input of the relay link contract and drives the execution and the state jump of the relay link contract;
and the execution node monitors the execution result of the relay link contract, packages the execution result as the input of the side chain and drives the execution of the side chain to output the final result.
In addition, the technical scheme also comprises the following subsidiary technical scheme:
and the relay link contract is mapped with a relay link variable consistent with the side chain variable.
The relay link contract comprises an input, an output, a jump condition and a target state of the relay link contract, wherein the jump condition is a condition for completing the cross-link distributed service, the input is a condition for driving the jump condition to be executed, the output is a result after the jump condition is executed, and the target state is a final appeal of the user node.
The relay link contract further includes an event handling mechanism including a deposit mechanism that specifies that the object needs to mortgage certain tokens in the relay link contract as a deposit when participating in the cross-link distributed service.
The event processing mechanism also comprises a screening mechanism, a punishment mechanism and an excitation mechanism, wherein the screening mechanism is used for screening out monitoring nodes and execution nodes which meet the requirements; the punishment mechanism and the excitation mechanism are used for performing corresponding reward punishment on the participation object.
The relay link contract further comprises an arbitration mechanism comprising an arbitration contract for a verification operation when the application mechanism or the user node disagrees with an input of the relay link contract sent by the monitoring node.
The cross-chain distributed service system also comprises a controllable variable management system, the application mechanism can establish the controllable variable management system on the corresponding side chain, and the application mechanism can endow modification authority to other agent nodes through the controllable variable management system.
In order to achieve the purpose of the invention, the invention also adopts the following technical scheme: a method for developing a cross-chain distributed service based on a block chain is characterized in that the participation objects of the cross-chain distributed service comprise an application mechanism, a user node, a monitoring node and an execution node, wherein the application mechanism provides an associated side chain, the side chain comprises an application mechanism account, a side chain variable is stored in the application mechanism account, the user node and the application mechanism establish a relay chain, and a relay chain contract arranged on the relay chain is drawn up;
the cross-chain distributed service method comprises the following steps:
step 1: starting a relay link contract, adding a monitoring node and an execution node which meet the requirements, and mapping a relay link variable consistent with a side chain variable in the relay link contract;
step 2: the monitoring node monitors the state change of the side chain variable, and when the state changes, the monitoring node inputs the state change into a relay chain contract and requires to change the state of the relay chain variable;
and step 3: when the state of the relay link variable meets the skipping condition, skipping the relay link contract and outputting an execution result;
and 4, step 4: and the execution node monitors the execution result, inputs the execution result into the side chain to change the corresponding side chain variable after the execution result meets the target state, outputs the final result and closes the relay link contract.
In addition, the technical scheme also comprises the following subsidiary technical scheme:
the step 2 comprises the following specific steps: the relay chain contract stipulates that the monitoring node meets a threshold, and when the monitoring node meets the threshold, the state of the relay chain variable is synchronously changed according to the state change of the side chain variable, so that the state of the relay chain variable is consistent with the state of the side chain variable.
The relay chain contract comprises an arbitration mechanism and an arbitration validity period, wherein the arbitration mechanism comprises an arbitration contract, and if any input sent by the application mechanism or the user node to the relay chain contract by the monitoring node is disagreeed within the arbitration validity period, relevant information is input into the arbitration contract, and a final result is judged through the arbitration mechanism.
And the relay link contract comprises a punishment mechanism, and if the final result shows that the monitoring node is wrong, punishment is carried out on the monitoring node according to the punishment mechanism.
The relay link contract also comprises an incentive mechanism, and after the arbitration validity period is exceeded, the relay link contract carries out fee settlement on the application mechanism and the user node through the incentive mechanism.
The relay chain contract also comprises a contract effective period, the relay chain contract is automatically closed when the contract effective period is exceeded, and if the execution result output by the relay chain contract does not meet the target state, the overdue responsibility of the corresponding participating object is researched, and a punishment mechanism is executed.
In the cross-chain distributed service, an application mechanism can establish a controllable variable management system on a side chain and endow modification authority to other proxy nodes, the application mechanism has an external account and a contract account, and the specific authorization steps comprise:
a: judging whether the contract account is an authorized initiator or not, and if so, continuing to authorize; if not, refusing authorization and ending authorization;
b: when an application mechanism deploys a contract on a side chain, the address of the contract is recorded in a controllable variable management system;
c: the application mechanism inputs the contract address, the contract variable, the proxy node, the proxy rule and the validity period of the modification authority obtained by the proxy node into the controllable variable management system;
d: authorization is then performed.
Compared with the prior art, the invention has the advantages that: the block chain development-based cross-chain distributed service system and method support the deployment of cross-chain intelligent contracts and completely support multi-chain, multi-contract and multivariable distributed services, so that the cross-chain deployment of the intelligent contracts becomes possible, one intelligent contract can execute different parts on a plurality of different block chains, or completely execute the contracts, or completely return to the states before execution, great imagination for cross-chain cooperation is given, and the cross-chain distributed services greatly expand the application scenes of the block chains.
Drawings
Fig. 1 is a schematic structural diagram of a cross-chain distributed service system based on block chain development according to the present invention.
Fig. 2 is a schematic diagram of the structure of the controlled variable management system in the present invention.
FIG. 3 is a flow chart of a method for developing a cross-chain distributed service based on a blockchain according to the present invention.
FIG. 4 is a flow chart of the incentive scheme for fee settlement in accordance with the present invention.
FIG. 5 is a flow chart of the authorization of the controllable variable management system in the invention
Fig. 6 is a schematic system structure diagram according to a first embodiment of the present invention.
Fig. 7 is a flowchart of claim settlement according to a first embodiment of the present invention.
Detailed Description
The present invention will be described in further non-limiting detail with reference to the following preferred embodiments and accompanying drawings.
As shown in fig. 1, in a cross-chain distributed service system based on block chain development, k users are coordinated to generate distributed services among k sidelinks, where in this embodiment, the k sidelinks are defined as Ci (i ═ 1, 2, …, k), and a relay chain is defined as R. The cross-chain distributed service system comprises a side chain which is related in the cross-chain distributed service and a relay chain which carries out information interaction with the side chain, wherein the side chain comprises an application mechanism account, a side chain variable is stored in the application mechanism account, and the side chain variable is user information of a user on the side chain. The application has a corresponding relay chain application account on the relay chain. And the relay chain contract is deployed on the relay chain and used for receiving and processing various intelligent contracts, and relay chain variables consistent with the side chain variables are mapped in the relay chain contract.
The cross-chain distributed service system also comprises a participation object participating in the cross-chain distributed service, wherein the participation object comprises an application mechanism, a user node, a monitoring node and an execution node;
the application mechanism and the user node are direct participants of the service and participate in the state change of the relay chain and the side chain, the user node is defined as USERI (i is 1, 2, …, k), the user node has a corresponding side chain account on the associated side chain in the distributed service, and is defined as USERI (C)j) (j is more than or equal to 0 and less than or equal to k). The user node has a corresponding relay link user account in the relay link, which is defined as useri (r). The application mechanism is the provider of the side chain.
Monitoring the state change of the side chain variable by the monitoring node, packaging the state change as the input of a relay link contract, driving the execution and the state jump of the relay link contract, and enabling the monitoring node to meet (n, k) thresholds, namely for n monitoring nodes, only k monitoring nodes agree to transaction, so that the relay link variable can be changed;
the executing node monitors the executing result of the relay link contract, packs the executing result as the input of the side chain, drives the side chain to execute and output the final result, and the executing node meets the (n, k) threshold, namely for n executing nodes, the business can be executed only by the agreement of k executing nodes.
The specific values of n and k in the (n, k) threshold are agreed by the user nodes together with the establishment of the relay link contract, wherein k is less than or equal to n.
The relay chain contract follows the atomicity principle, and the state of the side chain variable and the relay chain variable changes to a new state or returns to the original state all according to the relay chain contract.
The relay link contract comprises input, output, jumping conditions and a target state of the relay link contract, wherein the input is a condition for driving the execution of the jumping conditions, the output is a result after the execution of the jumping conditions is finished, the jumping conditions are conditions for finishing the cross-link distributed service, and the target state is a final appeal of the user node.
The relay chain contract also comprises an event processing mechanism, after the service information is transmitted into the relay chain contract, the relay chain contract is triggered to carry out information judgment, and if the input service information meets the condition of triggering the event processing mechanism to work, the relay chain contract selects automatic execution of the action of the relay chain contract according to the processing mechanism.
The event handling mechanisms include a deposit mechanism, a screening mechanism, a punishment mechanism, and an incentive mechanism.
The deposit mechanism provides that the application, user, monitoring and executing nodes need to mortgage certain tokens in the relay link contract as a deposit when participating in the cross-link distributed service.
The screening mechanism is used for screening out monitoring nodes and execution nodes which meet requirements, and the screening principle of the monitoring nodes and the execution nodes comprises node credit values, node guarantee fund sufficiency rates and node stability, wherein the node credit values refer to service accuracy rates of the monitoring nodes or the execution nodes before the nodes; the guarantee fund sufficiency rate of the node means whether the monitoring node or the execution node has enough tokens as guarantee funds; node stability refers to monitoring the continuity of a node or performing an online service of a node.
The punishment mechanism is used for deducting the guarantee fund according to a certain proportion when some application mechanisms, user nodes, monitoring nodes or executing nodes in the service fail to execute corresponding duties in time or do not execute the corresponding duties according to the regulations, and the guarantee fund is used as compensation of other compliance application mechanisms, user nodes, monitoring nodes or executing nodes.
The incentive mechanism is used for motivating the user node to complete the service on time. Each user node in the service needs to store a certain amount of token in the relay link contract to serve as prepaid service fees of the monitoring node and the execution node, wherein the actual service fee is the guarantee rate of the monitoring node and the execution node and the relay link contract execution period plus the fixed service fee.
The relay link contract also comprises an arbitration mechanism, the arbitration mechanism comprises an arbitration contract, and a simple payment authentication (SPV) mechanism is arranged in the arbitration contract to realize the arbitration of the service.
The relay link contract also comprises an arbitration validity period and a contract validity period, the execution of the arbitration contract needs to be within the arbitration validity period, the execution of the relay link contract also needs to be within the contract validity period, and if the arbitration validity period exceeds the contract validity period, the relay link contract is automatically closed.
The cross-chain distributed business system further comprises a controllable variable management system (as shown in fig. 2), and the application mechanism can establish the controllable variable management system on the side chain, and through the system, the application mechanism can give the authority of modifying the side chain variable to other proxy nodes through the controllable variable management system. In one side chain, the application organization has two accounts that can modify the side chain variables. One is an external account which is an application mechanism account of an application mechanism on a corresponding side chain and can be understood as a public key address; the other is a contract account, which can be understood as the address of the application on the corresponding side chain "contract managing the variable modification rights", and the application can give the right to modify the side chain variable to other proxy nodes through the contract account. The usage rights of the system are only owned by the application.
As shown in fig. 3, a method for performing a cross-chain distributed service based on a blockchain development, where a cross-chain distributed service participant includes a user node, a monitoring node, and an execution node.
The application institution provides an associated side chain, the side chain comprises an application institution account, and a side chain variable is stored in the application institution account;
the method comprises the steps that a user node and an application mechanism establish a relay chain, a relay chain contract arranged on the relay chain is drawn up, the application mechanism and the user node respectively apply for a corresponding relay chain application mechanism account and a corresponding relay chain user account in the relay chain, and the application mechanism and the user node respectively pay a guarantee fee and a prepaid service fee to the relay chain application mechanism account and the relay chain user account;
the cross-chain distributed service method comprises the following steps:
step 1: starting a relay link contract, adding a monitoring node and an execution node which meet the requirements, and mapping a relay link variable consistent with a side chain variable in the relay link contract;
step 1-1: the monitoring node and the executing node need to apply for corresponding relay chain monitoring accounts and relay chain executing accounts in the relay chain;
step 1-2: and the monitoring node and the execution node pay the guarantee money to the relay chain monitoring account and the relay chain execution account respectively.
Step 2: the monitoring node monitors the state change of the side chain variable, and when the state changes, the monitoring node inputs the state change into a relay chain contract and requires to change the state of the relay chain variable;
the method comprises the following specific steps:
and when the monitoring node meets the (n, k) threshold, synchronously changing the state of the relay chain variable according to the state change of the side chain variable, so that the state of the relay chain variable is consistent with the state of the side chain variable.
And step 3: when the state of the relay link variable meets the skipping condition, skipping the relay link contract and outputting an execution result;
and 4, step 4: and the execution node monitors the execution result, inputs the execution result into the side chain to change the corresponding side chain variable after the execution result meets the target state, outputs the final result and closes the relay link contract.
The relay link contract comprises a penalty mechanism, an incentive mechanism, an arbitration mechanism and an arbitration validity period, wherein the arbitration mechanism comprises an arbitration contract;
in the arbitration validity period, if any input sent by the monitoring node to the relay link contract by the application mechanism or the user node is objectified, the relevant information is input into the arbitration contract to carry out SPV operation, and the final result is judged through an arbitration mechanism, wherein the specific arbitration step comprises the following steps:
a: the external third party sends a transaction to the relay link contract, the content of which is the block header of the newest side chain;
b: the relay link contract verifies the validity of the sent block header based on the existing block header information, and if the verification is passed, the relay link contract is added to a block header chain of a maintenance side chain; if the verification fails, the arbitration contract in the relay chain carries out SPV verification and judges the result.
c: and if the final result shows that the monitoring node is wrong, punishing the monitoring node according to a punishment mechanism, wherein the punishment step comprises the following steps:
and deducting the deposit in the relay chain monitoring account corresponding to the error monitoring node according to a punishment mechanism, compensating the deposit to the relay chain monitoring accounts corresponding to other compliant monitoring nodes, and returning the corresponding monitoring nodes according to the final deposit balance in the relay chain monitoring accounts by the relay chain contract.
After the arbitration validity period is exceeded, the relay link contract carries out expense settlement to the application mechanism and the user node through an incentive mechanism, and the specific settlement steps comprise:
if the actual service charge is larger than the prepaid service charge, the relay link contract judges the delay loss of a specific application mechanism or a user node according to the input of the monitoring node, deducts all prepaid service charges in a corresponding relay link application mechanism account or a relay link user account, the prepaid service charges in other relay link application mechanism accounts or relay link user accounts are unchanged, and the relay link contract returns the prepaid service charge amount to the corresponding application mechanism and user node according to the final prepaid service charge amount in the relay link application mechanism account and the relay link user account;
if the actual service fee is less than the pre-payment service fee, after the service execution is finished, the relay link contract automatically executes the service fee distribution work according to the actual service fee, and returns the residual service fee (the pre-payment service fee-the actual service fee) to the corresponding application mechanism and the user node.
The relay chain contract also comprises a contract effective period which exceeds the contract effective period, the relay chain contract is automatically closed, if the execution result output by the relay chain contract does not meet the target state, the deposit and the prepaid service fee in all the relay chain application mechanism accounts, the relay chain user accounts, the relay chain monitoring accounts and the relay chain execution accounts are not changed, the overdue responsibility of the corresponding application mechanism or user node or execution node or monitoring node is followed, a punishment mechanism is executed, the corresponding deposit in the relay chain application mechanism account or the relay chain user account or the relay chain monitoring account or the relay chain execution account is deducted, and the relay chain contract returns the final deposit and the prepaid service fee amount to the corresponding application mechanism according to the deposit, the relay chain user account, the relay chain monitoring account and the relay chain execution account, The system comprises a user node, a monitoring node and an execution node;
in the cross-chain distributed service, an application mechanism can establish a controllable variable management system on a side chain and endow modification authority to other agent nodes, and the specific authorization steps comprise:
a: judging whether the contract account is an authorized initiator or not, and if so, continuing to authorize; if not, refusing authorization and ending authorization;
b: when an application mechanism deploys a contract on a side chain, the address of the contract is recorded in a controllable variable management system;
c: the application mechanism inputs the contract address, the contract variable, the proxy node, the proxy rule and the validity period of the modification authority obtained by the proxy node into the controllable variable management system;
d: authorization is then performed.
After the authorization is completed, the proxy node can modify the side chain variable as long as the current time is within the validity period of the modification authority; and if the current time exceeds the validity period of the modification right, the proxy node loses the modification right of the side chain variable.
Example one
For better understanding of the essence of the present invention, the technical contents of the present invention will be described in detail below by way of examples, but the contents of the present invention are not limited thereto.
Assuming that the User1 has happened to collide with a traffic accident and the policy information is stored in the insurance chain C1 by the insurance company inster, the conditions for applying for claim are the evidence-taking information stored in the traffic chain C2 and the injury diagnosis information stored in the medical chain C3, which are issued by the Police office Police. If the User1 wants the claim to be settled successfully, the policy information on the insurance chain C1, the evidence information on the traffic chain C2 and the injury diagnosis information on the medical chain C3 are all put together to obtain the result of the claim settlement, and finally the result of the claim settlement is updated to the insurance chain C1 to complete the claim settlement.
In the first embodiment, the application institutions are an insurance company Insurer, a public security bureau Police and a Hospital Hospital, respectively; the User node is a User 1; the associated side chains are respectively a safety chain C1, a traffic chain C2 and a medical chain C3; the side chain variables are policy information, evidence obtaining information and injury diagnosis information respectively; the skipping condition is that the insurance policy information on the insurance chain C1, the evidence obtaining information on the traffic chain C2 and the injury diagnosis information on the medical chain C3 are all put together to obtain the claim settlement result; the target state is USER1To the final claim.
The cross-chain distributed claim settlement service method comprises the following steps:
s1: the insurance company Insurer, the public security bureau Police and the Hospital Hospital respectively provide a safety chain C1, a traffic chain C2 and a medical chain C3 which are associated with the cross-chain distributed claim settlement service, wherein the safety chain C1 comprises an insurance company account Insurer (C1), policy information is stored in the insurance company account Insurer (C1), the traffic chain C2 comprises a public security bureau account Police (C2), evidence obtaining information is stored in the public security bureau account Police (C2), the medical chain C3 comprises a Hospital account Hospital (C3), and the Hospital account Hospital (C3) comprises injury diagnosis information;
s2: a User1, an insurance company Insurer, a public security bureau Police and a Hospital Hospital jointly create a relay chain, and draw up a relay chain contract deployed on the relay chain;
s2-1: after the relay chain is created, the insurance company inster, the Police office Police, the Hospital and the User1 need to apply for a corresponding relay chain application agency account and a corresponding relay chain User account in the relay chain, which are respectively defined as inster (R), Police (R), Hospital (R) and User1 (R);
s2-2: insurance company Insurer, Police office Police, Hospital Hospital, and User1 pay a premium and a prepaid service fee, respectively, to Insurer (R), Police (R), Hospital (R), User1 (R).
S3: starting a relay link contract, adding a monitoring node and an execution node which meet the requirements, mapping a relay link variable consistent with a side chain variable in the relay link contract, wherein the relay link variable is policy information, evidence obtaining information and injury diagnosis information;
s3-1: the monitoring node and the execution node need to apply for corresponding relay chain monitoring accounts and relay chain execution accounts in the relay chain;
s3-2: and the monitoring node and the execution node pay the guarantee money to the relay chain monitoring account and the relay chain execution account respectively.
S4: and when the monitoring node meets the (n, k) threshold, synchronously changing the states of the policy information, the evidence obtaining information and the injury diagnosis information in the relay chain according to the state changes of the policy information, the evidence obtaining information and the injury diagnosis information.
S5: when the states according to the policy information, the evidence obtaining information and the injury diagnosis information meet the jump condition, the relay link contract jumps and outputs an execution result;
s6: and the execution node monitors the execution result, when the execution result meets a target state, namely a final claim settlement requirement of the User1 is met, the insurance company Insurer inputs the execution result into the insurance chain C1 through the execution node to change policy information including information of responsible persons, claim modes, claim amounts, claim states and the like, and the insurance chain C1 outputs the final claim settlement result.
And in the arbitration validity period, when any one of an insurance company Insurer, a public security office Police, a Hospital Hospital and a User1 disagrees any input sent by the monitoring node to the relay link contract, inputting relevant information into the arbitration contract, and judging a final result through an arbitration mechanism.
And if the result shows that the monitoring node is wrong, punishing the monitoring node according to a punishment mechanism, deducting the deposit in the relay chain monitoring account corresponding to the wrong monitoring node, and compensating the deposit to the relay chain monitoring accounts corresponding to other compliant monitoring nodes.
After the arbitration validity period is exceeded, the relay link contract carries out fee settlement to the insurance company Insurer, the public security bureau Police, the Hospital Hospital and the User1 through an incentive mechanism,
and if the contract validity period is exceeded, the relay link contract is automatically closed, if the execution result output by the relay link contract does not meet the target state, the policy information state returns to the original state, the overdue responsibility of the User1 or an insurance company Insurer or a public security bureau Police or a Hospital Hospital is researched, the penalty is executed, and the guarantee fund in the corresponding relay link application mechanism account or the relay link User account is deducted.
In the insurance chain C1, the insurance company inster can authorize the authority to change the policy information to the agent node by establishing the controlled variable management system, and authorize the execution node authority by the agent node to settle the claim.
The block chain development-based cross-chain distributed service system and method support the deployment of cross-chain intelligent contracts and completely support multi-chain, multi-contract and multivariable distributed services, so that the cross-chain deployment of the intelligent contracts becomes possible, one intelligent contract can execute different parts on a plurality of different block chains, or completely execute the contracts, or completely return to the states before execution, great imagination for cross-chain cooperation is given, and the cross-chain distributed services greatly expand the application scenes of the block chains.
It should be noted that the above-mentioned preferred embodiments are merely illustrative of the technical concepts and features of the present invention, and are intended to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the scope of the present invention. All equivalent changes and modifications made according to the spirit of the present invention should be covered within the protection scope of the present invention.

Claims (14)

1. A block chain development-based cross-chain distributed service system is characterized in that: the system comprises a side chain which is related in the cross-chain distributed service and a relay chain which carries out information interaction with the side chain, wherein the side chain comprises an application institution account, side chain variables are stored in the application institution account, and a relay chain contract is deployed on the relay chain and used for receiving and processing various intelligent contracts;
the cross-chain distributed service system also comprises participating objects, wherein the participating objects comprise application mechanisms, user nodes, monitoring nodes and execution nodes;
the application mechanism and the user node are direct service participants and participate in the state change of the relay chain and the side chain, and the application mechanism is a provider of the side chain;
the monitoring node monitors the state change of the side chain variable, and when the state of the side chain variable changes, the monitoring node packages the state change as the input of the relay link contract and drives the execution and the state jump of the relay link contract;
and the execution node monitors the execution result of the relay link contract, packages the execution result as the input of the side chain and drives the execution of the side chain to output the final result.
2. The block chain based inter-chain distributed service system as claimed in claim 1, wherein: and the relay link contract is mapped with a relay link variable consistent with the side chain variable.
3. The block chain based inter-chain distributed service system as claimed in claim 1, wherein: the relay link contract comprises an input, an output, a jump condition and a target state of the relay link contract, wherein the jump condition is a condition for completing the cross-link distributed service, the input is a condition for driving the jump condition to be executed, the output is a result after the jump condition is executed, and the target state is a final appeal of the user node.
4. The block chain based inter-chain distributed service system as claimed in claim 1, wherein: the relay link contract further includes an event handling mechanism including a deposit mechanism that specifies that the object needs to mortgage certain tokens in the relay link contract as a deposit when participating in the cross-link distributed service.
5. The system of claim 4, wherein: the event processing mechanism also comprises a screening mechanism, a punishment mechanism and an excitation mechanism, wherein the screening mechanism is used for screening out monitoring nodes and execution nodes which meet the requirements; the punishment mechanism and the excitation mechanism are used for performing corresponding reward punishment on the participation object.
6. The block chain based inter-chain distributed service system as claimed in claim 1, wherein: the relay link contract further comprises an arbitration mechanism comprising an arbitration contract for a verification operation when the application mechanism or the user node disagrees with an input of the relay link contract sent by the monitoring node.
7. The block chain based inter-chain distributed service system as claimed in claim 1, wherein: the cross-chain distributed service system also comprises a controllable variable management system, the application mechanism can establish the controllable variable management system on the corresponding side chain, and the application mechanism can endow modification authority to other agent nodes through the controllable variable management system.
8. A method for developing cross-chain distributed service based on block chain is characterized in that: the method comprises the steps that participation objects of the cross-link distributed service comprise an application mechanism, a user node, a monitoring node and an execution node, the application mechanism provides an associated side chain, the side chain comprises an application mechanism account, a side chain variable is stored in the application mechanism account, the user node and the application mechanism establish a relay link, and a relay link contract arranged on the relay link is drawn up;
the cross-chain distributed service method comprises the following steps:
step 1: starting a relay link contract, adding a monitoring node and an execution node which meet the requirements, and mapping a relay link variable consistent with a side chain variable in the relay link contract;
step 2: the monitoring node monitors the state change of the side chain variable, and when the state changes, the monitoring node inputs the state change into a relay chain contract and requires to change the state of the relay chain variable;
and step 3: when the state of the relay link variable meets the skipping condition, skipping the relay link contract and outputting an execution result;
and 4, step 4: and the execution node monitors the execution result, inputs the execution result into the side chain to change the corresponding side chain variable after the execution result meets the target state, outputs the final result and closes the relay link contract.
9. The method for performing a cross-chain distributed service based on a block chain as claimed in claim 8, wherein the step 2 comprises the following steps: the relay chain contract stipulates that the monitoring node meets a threshold, and when the monitoring node meets the threshold, the state of the relay chain variable is synchronously changed according to the state change of the side chain variable, so that the state of the relay chain variable is consistent with the state of the side chain variable.
10. The block chain-based developed cross-chain distributed service method according to claim 8, wherein: the relay chain contract comprises an arbitration mechanism and an arbitration validity period, wherein the arbitration mechanism comprises an arbitration contract, and if any input sent by the application mechanism or the user node to the relay chain contract by the monitoring node is disagreeed within the arbitration validity period, relevant information is input into the arbitration contract, and a final result is judged through the arbitration mechanism.
11. The block chain-based developed cross-chain distributed service method according to claim 10, wherein: and the relay link contract comprises a punishment mechanism, and if the final result shows that the monitoring node is wrong, punishment is carried out on the monitoring node according to the punishment mechanism.
12. The block chain-based developed cross-chain distributed service method according to claim 10, wherein: the relay link contract also comprises an incentive mechanism, and after the arbitration validity period is exceeded, the relay link contract carries out fee settlement on the application mechanism and the user node through the incentive mechanism.
13. The block chain-based developed cross-chain distributed service method according to claim 11, wherein: the relay chain contract also comprises a contract effective period, the relay chain contract is automatically closed when the contract effective period is exceeded, and if the execution result output by the relay chain contract does not meet the target state, the overdue responsibility of the corresponding participating object is researched, and a punishment mechanism is executed.
14. The block chain-based developed cross-chain distributed service method according to claim 8, wherein: in the cross-chain distributed service, an application mechanism can establish a controllable variable management system on a side chain and endow modification authority to other proxy nodes, the application mechanism has an external account and a contract account, and the specific authorization steps comprise:
a: judging whether the contract account is an authorized initiator or not, and if so, continuing to authorize; if not, refusing authorization and ending authorization;
b: when an application mechanism deploys a contract on a side chain, the address of the contract is recorded in a controllable variable management system;
c: the application mechanism inputs the contract address, the contract variable, the proxy node, the proxy rule and the validity period of the modification authority obtained by the proxy node into the controllable variable management system;
d: authorization is then performed.
CN201811618722.8A 2018-12-28 2018-12-28 Cross-chain distributed service system and method based on block chain development Active CN109726251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811618722.8A CN109726251B (en) 2018-12-28 2018-12-28 Cross-chain distributed service system and method based on block chain development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811618722.8A CN109726251B (en) 2018-12-28 2018-12-28 Cross-chain distributed service system and method based on block chain development

Publications (2)

Publication Number Publication Date
CN109726251A CN109726251A (en) 2019-05-07
CN109726251B true CN109726251B (en) 2022-04-05

Family

ID=66296581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811618722.8A Active CN109726251B (en) 2018-12-28 2018-12-28 Cross-chain distributed service system and method based on block chain development

Country Status (1)

Country Link
CN (1) CN109726251B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245517A (en) * 2019-05-29 2019-09-17 杭州秘猿科技有限公司 A kind of across chain method, apparatus, system and the electronic equipment of block chain
TWI772654B (en) * 2019-06-21 2022-08-01 天宿智能科技股份有限公司 Escrowing system for cross-blockchain third-party settlement and method thereof
CN112615868B (en) * 2019-06-28 2023-08-22 创新先进技术有限公司 Method and device for transmitting authenticatable message across chains
US10742415B2 (en) 2019-06-28 2020-08-11 Alibaba Group Holding Limited Method and apparatus for inter-blockchain transmission of authenticable message
CN110471982B (en) * 2019-07-09 2020-11-17 创新先进技术有限公司 Data processing method and device based on block chain
CN110689435B (en) * 2019-08-02 2022-05-27 上海分布信息科技有限公司 Data processing method and data processing system based on block chain
CN110609868B (en) * 2019-09-03 2022-01-07 中国人民大学 Cross-chain cooperative working method and system based on same-block chain platform
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN111046437A (en) * 2019-10-31 2020-04-21 中国科学院计算技术研究所 Block chain parallel transaction processing method and system based on isomorphic multi-chain and terminal
CN111292191A (en) * 2020-02-18 2020-06-16 杭州复杂美科技有限公司 Acceptance service alliance method, apparatus and storage medium
CN111431903B (en) * 2020-03-25 2022-08-09 北京新创智链科技有限公司 Cross-link relay method, device and computer readable storage medium
CN111770102B (en) * 2020-07-01 2022-07-19 中国建设银行股份有限公司 Block chain cross-chain method and device, computer equipment and storage medium
CN112055002B (en) * 2020-08-24 2022-07-19 杭州云象网络技术有限公司 Cross-link network supervision method based on public management link
CN112217645B (en) * 2020-09-28 2021-10-26 电子科技大学 Anonymous communication system routing method based on block chain technology
CN112017052B (en) * 2020-10-28 2021-05-18 支付宝(杭州)信息技术有限公司 Method and apparatus for deploying and invoking contracts in blockchain
CN112487098A (en) * 2020-12-10 2021-03-12 深圳前海微众银行股份有限公司 Method and device for realizing cross-chain atomic variable in block chain and electronic equipment
CN112511355B (en) * 2020-12-18 2022-02-08 四川大学 Cross-chain intelligent contract cooperation possibility evaluation method
CN113157809B (en) * 2021-04-28 2021-12-31 广东省机场集团物流有限公司 Traversal method and device based on block chain side chain and computer readable storage medium
CN113312406B (en) * 2021-05-27 2022-05-31 北京航空航天大学 Multi-service credit block inter-chain credit data cross-chain platform system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899698A (en) * 2017-04-11 2017-06-27 张铮文 A kind of across chain mutual operation method between block chain
WO2018055214A1 (en) * 2016-09-26 2018-03-29 Heliatek Gmbh Organic component for converting light into electrical energy with improved efficiency and service life in the case of partial shading
CN108615189A (en) * 2018-04-24 2018-10-02 北京罗格数据科技有限公司 A method of based on the processing of block chain data collaborative
CN108881187A (en) * 2018-05-31 2018-11-23 杭州秘猿科技有限公司 A kind of across chain data transferring method and equipment suitable for permitting chain scene
CN108876618A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network
CN108880794A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 Across chain user identity and its digital asset management system
CN109035012A (en) * 2018-06-11 2018-12-18 西安纸贵互联网科技有限公司 A kind of across the chain processing method and computer readable storage medium of block catenary system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10713731B2 (en) * 2016-07-22 2020-07-14 Nec Corporation Method for secure ledger distribution and computer system using secure distributed ledger technology
GB2557577A (en) * 2016-10-21 2018-06-27 Cygnetise Ltd Methods and apparatus for recording a change of authorisation state of one or more authorisation agents
CN107464106B (en) * 2017-07-25 2021-01-26 北京果仁宝科技有限公司 Method and system for transaction between main chain and side chain of block chain
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018055214A1 (en) * 2016-09-26 2018-03-29 Heliatek Gmbh Organic component for converting light into electrical energy with improved efficiency and service life in the case of partial shading
CN106899698A (en) * 2017-04-11 2017-06-27 张铮文 A kind of across chain mutual operation method between block chain
CN108615189A (en) * 2018-04-24 2018-10-02 北京罗格数据科技有限公司 A method of based on the processing of block chain data collaborative
CN108881187A (en) * 2018-05-31 2018-11-23 杭州秘猿科技有限公司 A kind of across chain data transferring method and equipment suitable for permitting chain scene
CN109035012A (en) * 2018-06-11 2018-12-18 西安纸贵互联网科技有限公司 A kind of across the chain processing method and computer readable storage medium of block catenary system
CN108876618A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network
CN108880794A (en) * 2018-06-15 2018-11-23 浙江华信区块链科技服务有限公司 Across chain user identity and its digital asset management system

Also Published As

Publication number Publication date
CN109726251A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN109726251B (en) Cross-chain distributed service system and method based on block chain development
Poon et al. Plasma: Scalable autonomous smart contracts
CN108959621B (en) Method, device, equipment and storage medium for realizing block chain network
JP6858493B2 (en) Resource transfer system
US20200202334A1 (en) Indirect transaction processes on the basis of a blockchain architecture
CN107341402B (en) Program execution method and device
CN108881187A (en) A kind of across chain data transferring method and equipment suitable for permitting chain scene
CN110175913A (en) Data processing system, method, calculating equipment and storage medium based on block chain
KR20180114939A (en) Systems and methods for controlling asset-related activities through block chaining
CN108713209B (en) Management method and system of maintenance station and data management server
CN108881163A (en) A kind of multicenter block catenary system with block issue mechanism
CN109242483A (en) A kind of dual trading method and system based on centralization and decentralization
Khalil et al. Tex-a securely scalable trustless exchange
CN112801649B (en) Flow statistical system, method and device based on block chain
US20230177619A1 (en) Computer systems and software for self-executing code and distributed database
JP6818034B2 (en) Temporary consensus network within the resource transfer system
Kothapalli et al. Smartcast: An incentive compatible consensus protocol using smart contracts
CN111127120B (en) Service data processing system, relevant nodes and method based on block chain technology
CN111640002A (en) Block chain-based mortgage loan method and device
Dold The GNU Taler system: practical and provably secure electronic payments
Yan et al. Collusion-free for cloud verification toward the view of game theory
CN112070503A (en) Contract execution method, device, equipment and storage medium based on block chain
CN116415955A (en) Cross-chain transaction method and system based on combination of hash locking and notary
Borisov et al. Financial Cryptography and Data Security
CN112000961A (en) Block chain-based mutual-help platform, equipment and 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
GR01 Patent grant
GR01 Patent grant