CN112801661B - Block chain cross-chain rule management method and system - Google Patents

Block chain cross-chain rule management method and system Download PDF

Info

Publication number
CN112801661B
CN112801661B CN202110142601.6A CN202110142601A CN112801661B CN 112801661 B CN112801661 B CN 112801661B CN 202110142601 A CN202110142601 A CN 202110142601A CN 112801661 B CN112801661 B CN 112801661B
Authority
CN
China
Prior art keywords
cross
rule
chain
link
operation application
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
CN202110142601.6A
Other languages
Chinese (zh)
Other versions
CN112801661A (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.)
Wealedger Network Technologies Co ltd
Original Assignee
Wealedger Network Technologies 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 Wealedger Network Technologies Co ltd filed Critical Wealedger Network Technologies Co ltd
Priority to CN202110142601.6A priority Critical patent/CN112801661B/en
Publication of CN112801661A publication Critical patent/CN112801661A/en
Application granted granted Critical
Publication of CN112801661B publication Critical patent/CN112801661B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a block chain crossing rule management method and a system, and the method belongs to the technical field of block chains, and comprises the following steps: receiving a rule operation application submitted by a cross-link service participant; adding the rule operation application to a contract change application list; the rule operation application in the contract change application list is used for indicating a cross-link business related party to vote on the rule operation application when detecting that the rule operation application exists in the contract change application list; and receiving the voting result of the cross-link service related party for the rule operation application, and judging whether to update the cross-link rule according to the voting result of the cross-link service related party for the rule operation application. The blockchain cross-chain rule management method and the blockchain cross-chain rule management system solve the problems of blockchain transaction cross-chain control and permission, and provide an effective intervention means for cross-chain supervision.

Description

Block chain cross-chain rule management method and system
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a block chain cross-chain rule management method and system.
Background
The blockchain technology is based on a decentralised peer-to-peer network, combines the cryptography principle with a consensus mechanism to ensure the data continuity and persistence of each distributed node, and realizes the characteristics of instant verification, traceability, difficult tampering and the like of transaction information, thereby creating a set of privacy, efficient and safe distributed trust system.
With the gradual maturity of the blockchain technology, more and more service systems use blockchains, and service call among different service systems is more and more frequently performed through a cross-chain system. At this time, how to solve the problems of cross-chain control and permission of blockchain transactions, and providing an intervention means for cross-chain supervision is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a blockchain cross-chain rule management method and a blockchain cross-chain rule management system, which are used for solving the problems of blockchain transaction cross-chain control and permission and providing an intervention means for cross-chain supervision.
In a first aspect of an embodiment of the present invention, a blockchain cross-chain rule management method is provided, including:
receiving a rule operation application submitted by a cross-link service participant;
adding the rule operation application to a contract change application list; the rule operation application in the contract change application list is used for indicating a cross-link business related party to vote on the rule operation application when detecting that the rule operation application exists in the contract change application list;
and receiving the voting result of the cross-link service related party for the rule operation application, and judging whether to update the cross-link rule according to the voting result of the cross-link service related party for the rule operation application.
In a second aspect of an embodiment of the present invention, there is provided a blockchain cross-chain rule management system, including:
the operation application receiving module is used for receiving a rule operation application submitted by a cross-link service participant; adding the rule operation application to a contract change application list; the rule operation application in the contract change application list is used for indicating a cross-link business related party to vote on the rule operation application when detecting that the rule operation application exists in the contract change application list;
and the cross-link rule updating module is used for receiving the voting result of the cross-link service related party for the rule operation application and judging whether to update the cross-link rule according to the voting result of the cross-link service related party for the rule operation application.
In a third aspect of the embodiment of the present invention, a terminal device is provided, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the above-mentioned blockchain cross-chain rule management method when executing the computer program.
In a fourth aspect of the embodiments of the present invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the blockchain cross-chain rule management method described above.
The block chain cross-chain rule management method and system provided by the embodiment of the invention have the beneficial effects that:
the invention provides a block chain cross-link rule management method, namely, a rule operation application submitted by a cross-link service participant and a voting result of a cross-link service related party on the rule operation application are received, and whether to update the cross-link rule is judged according to the voting result of the cross-link service related party on the rule operation application. That is, the invention provides a management scheme of the blockchain transaction cross-chain rule, solves the problems of blockchain transaction cross-chain control and permission, and provides an effective intervention means for cross-chain supervision.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating a method for managing blockchain cross-chain rules according to an embodiment of the present invention;
FIG. 2 is a block diagram illustrating a block-chain rules management system according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a terminal device according to an embodiment of the present invention;
FIG. 4 is a block chain network diagram according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects to be solved more clear, the invention is further described in detail below with reference to the accompanying drawings and embodiments. 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 invention.
Referring to fig. 1, fig. 1 is a flowchart of a blockchain cross-link rule management method according to an embodiment of the invention, where the method is applied to a rule management contractor, and includes:
s101: and receiving a rule operation application submitted by the cross-link service participant.
In this embodiment, the cross-link service participant may be any node that participates in the cross-link service.
In this embodiment, the cross-link service participant may submit the rule operation application by calling a preset interface of the rule management contract.
S102: the rule operation application is added to the contract change application list.
In this embodiment, the rule operation application in the contract change application list is used to instruct the cross-link service related party to vote on the rule operation application when detecting that the rule operation application exists in the contract change application list.
In this embodiment, the cross-link service related party refers to other nodes participating in the cross-link service than the cross-link service participant.
That is, the cross-link service related party can continuously detect that all rule operation applications exist in the contract change application list, and vote on the rule operation applications if detecting that the rule operation applications exist in the contract change application list.
S103: and receiving the voting result of the cross-link service related party for the rule operation application, and judging whether to update the cross-link rule according to the voting result of the cross-link service related party for the rule operation application.
In this embodiment, after the cross-link service related party votes on the rule operation application, the voting result is sent to the rule contractor, and the rule contractor can check the validity of the vote according to the voting result of the cross-link service related party on the rule operation application, and then count the vote, thereby judging whether to update the cross-link rule. Wherein, the cross-chain rule refers to a cross-chain transaction rule.
It can be obtained from the above that the embodiment of the invention provides a blockchain cross-link rule management method, that is, a rule operation application submitted by a cross-link service participant and a voting result of a cross-link service related party on the rule operation application are received, and whether to update the cross-link rule is judged according to the voting result of the cross-link service related party on the rule operation application. That is, the embodiment of the invention provides a management scheme of the blockchain transaction cross-chain rule, solves the problems of blockchain transaction cross-chain control and permission, and provides an effective intervention means for cross-chain supervision.
Optionally, as a specific implementation manner of the blockchain cross-link rule management method provided by the embodiment of the present invention, if a received rule operation application submitted by a cross-link service participant is a cross-link rule adding application, before adding the rule operation application to a contract change application list, the method may further include:
and allocating a unique identifier for the rule corresponding to the rule operation application.
In this embodiment, if the received rule operation application submitted by the cross-link service participant is a cross-link rule adding application, a unique identifier may be allocated to a rule corresponding to the rule operation application so as to distinguish from an existing rule (valid/not valid).
Optionally, as a specific implementation manner of the blockchain cross-link rule management method provided by the embodiment of the present invention, after adding the rule operation application to the contract change application list, the blockchain cross-link rule management method may further include:
and counting a ticket for the cross-link business participants submitting the rule operation application.
Correspondingly, whether to update the cross-link rule is judged according to the voting result of the cross-link service related party on the rule operation application, which can be described as follows:
judging whether to update the cross-link rule according to the voting result of the cross-link service participant submitting the rule operation application and the voting result of the cross-link service related party on the rule operation application.
In this embodiment, after receiving the rule operation application of the cross-link service participant, the cross-link service participant submitting the rule operation application may be defaulted to vote for approval.
Optionally, as a specific implementation manner of the blockchain cross-link rule management method provided by the embodiment of the present invention, after receiving a voting result applied by a cross-link service related party for rule operation, the blockchain cross-link rule management method may further include:
and deleting the rule operation application corresponding to the voting result from the contract change application list.
In this embodiment, after the cross-link service related party completes the voting, the rule operation application corresponding to the voting result may be deleted from the contract change application list, so as to save the memory space.
Optionally, as a specific implementation manner of the blockchain cross-link rule management method provided by the embodiment of the present invention, the determining whether to update the cross-link rule according to the voting result applied by the cross-link service related party for the rule operation may be described in detail as follows:
and if the voting result of the cross-link service related party to the rule operation application shows that the number of the votes is greater than a preset threshold, updating the cross-link rule based on the rule operation application corresponding to the voting result.
In this embodiment, the preset threshold may be determined according to the number of nodes participating in the cross-link service.
Optionally, as a specific implementation manner of the blockchain cross-chain rule management method provided by the embodiment of the invention, the rule operation application includes cross-chain rule definition and cross-chain rule description.
The rule operation application in the contract change application list is used for indicating that the cross-link business related party performs validity verification on the cross-link rule definition and the cross-link rule description in the rule operation application according to a preset check rule when detecting that the rule operation application exists in the contract change application list, and votes on the rule operation application based on a verification result.
In this embodiment, the rule operation application includes a rule operation and a rule itself.
Among them, rule operations include, but are not limited to: adding a rule to a white list/blacklist, deleting a rule from a white list/blacklist, moving a rule from a white list to a blacklist, moving a rule from a blacklist to a white list, and the like.
Wherein the rule itself contains a cross-chain rule definition and a cross-chain rule description.
Optionally, as a specific implementation manner of the blockchain cross-chain rule management method provided by the embodiment of the present invention, the preset checking rule may be described in detail as follows:
if the cross-chain rule is described as: the cross-chain direction is from a-chain to B-chain, then the cross-chain rule is defined as:
AChain>BChain。
if the cross-chain rule is described as: a-chain cross-chain asset, then the cross-chain rule is defined as:
AChain.TokenA。
if the cross-chain rule is described as: the real-name token of the A chain is defined as the cross-chain rule:
AChain.crtToken=true。
if the cross-chain rule is described as: anonymous token for the A-chain, then the cross-chain rule is defined as:
AChain.crtToken=false。
if the cross-chain rule is described as: the cross-link source transaction input address is a-link address a, and the cross-link rule is defined as: srcoaddress = achain.
If the cross-chain rule is described as: the cross-link destination address is a-link address a, and the cross-link rule is defined as: dstaddress= achain.
If the cross-chain rule is described as: a-link contract a address, then the cross-link rule is defined as:
AChain.contractAddressA。
if the cross-chain rule is described as: the destination chain A contains the information certification transaction of keyString, and the cross-chain rule is defined as: dst=achain.
If the cross-chain rule is described as: the source chain A contains the information certification transaction of keyString, and then the cross-chain rule is defined as: src= achain.
In this embodiment A, B is meant only and not a certain defined chain. For example, if the cross-chain rule is described as: the cross-chain direction is from the B-chain to the A-chain, and the cross-chain rule is defined as: BChain > AChain. If the cross-chain rule is described as: the cross-chain rule is defined as: bchain. Token (that is, bchain corresponds to a B-chain name, token corresponds to a Token name, where "a" in "Token" is not a limitation of a relationship to which Token belongs, and only has a name referring effect), and other cross-chain rules are similar and are not repeated herein.
In this embodiment, putting the above cross-link rule into the white list is a permission rule, and putting the above cross-link rule into the black list is a prohibition rule.
In this embodiment, a whole set of systematic rule description method is provided, and by combining the blockchain cross-chain rule management method provided in the above embodiment, the difficulty in decentralizing management of the cross-chain rule can be effectively solved.
Optionally, referring to fig. 4, as a specific implementation of the blockchain cross-chain rule management method provided by the embodiment of the present invention, the embodiment describes the blockchain cross-chain rule management method of the present invention by a specific example.
In this embodiment, the rule management contract runs in a blockchain network consisting of three nodes, a, b, and c. On this basis, if a cross-link rule needs to be added: srcoaddress=achain. Addressa to white list, the steps are as follows:
1) The inter-link service related party A node invokes a rule management contract adding rule interface to apply for adding inter-link rules: srcoaddress = achain. Address a to whitelist.
2) The rule management contractor receives the application, assigns a unique identifier for the rule so as to distinguish the rule from the existing rule (effective/not effective), writes the rule into a contract change application list, and initiates the applicant (namely, the cross-chain service related party submitting the rule operation application) to count 1 ticket;
3) The cross-link service correlation Fang Yi and the propyl node detect that a rule operation application to be voted/audited exists in the contract change application list, and after checking rule meanings and completing rule evaluation, the rule management contract change voting interface is called to vote respectively (here, vote can be voted, vote can be against or directly abandoned, and the embodiment is not limited).
4) The rule management contractor receives the voting result, checks the validity of the vote, counts the vote, checks whether the number of votes in the rule operation application reaches a preset threshold (the preset threshold may be 2 in this example), reaches the preset threshold, adds srcadress=achain.
The rule modification process is similar to the rule addition process, but only unique identifiers are not required to be allocated to the rules, and the original rules are replaced/removed after the voting is passed, and the specific process is not repeated here.
Corresponding to the blockchain cross-chain rule management method of the above embodiment, fig. 2 is a block diagram of a blockchain cross-chain rule management system according to an embodiment of the present invention. For convenience of explanation, only portions relevant to the embodiments of the present invention are shown. Referring to fig. 2, the blockchain cross-chain rule management system 20 includes: an operation application receiving module 21 and a cross-chain rule updating module 22.
The operation application receiving module 21 is configured to receive a rule operation application submitted by a cross-link service participant. And adds the rule operation application to the contract change application list. The rule operation application in the contract change application list is used for indicating that the cross-link business related party votes for the rule operation application when detecting that the rule operation cross-link rule update module 22 requests the existence of the rule operation cross-link rule in the contract change application list.
And the method is used for receiving the voting result of the cross-link service related party for the rule operation application and judging whether to update the cross-link rule according to the voting result of the cross-link service related party for the rule operation application.
Optionally, as a specific implementation manner of the blockchain cross-link rule management system provided by the embodiment of the present invention, if a received rule operation application submitted by a cross-link service participant is a cross-link rule adding application, before the rule operation application is added to a contract change application list, the operation application receiving module 21 is further configured to assign a unique identifier to a rule corresponding to the rule operation application.
Optionally, as a specific implementation manner of the blockchain cross-chain rule management system provided by the embodiment of the present invention, after adding the rule operation application to the contract change application list, the operation application receiving module 21 is further configured to count a ticket for a cross-chain service participant submitting the rule operation application.
Correspondingly, judging whether to update the cross-link rule according to the voting result of the cross-link service related party on the rule operation application, including:
judging whether to update the cross-link rule according to the voting result of the cross-link service participant submitting the rule operation application and the voting result of the cross-link service related party on the rule operation application.
Optionally, as a specific implementation manner of the blockchain cross-link rule management system provided by the embodiment of the present invention, after receiving the voting result of the cross-link service related party on the rule operation application, the operation application receiving module 21 is further configured to delete the rule operation application corresponding to the voting result from the contract change application list.
Optionally, as a specific implementation manner of the blockchain cross-link rule management system provided by the embodiment of the present invention, determining whether to update the cross-link rule according to a voting result applied by a cross-link service related party to a rule operation includes:
and if the voting result of the cross-link service related party to the rule operation application shows that the number of the votes is greater than a preset threshold, updating the cross-link rule based on the rule operation application corresponding to the voting result.
Optionally, as a specific implementation manner of the blockchain cross-chain rule management system provided by the embodiment of the invention, the rule operation application includes cross-chain rule definition and cross-chain rule description.
The rule operation application in the contract change application list is used for indicating that the cross-link business related party detects that the rule operation application exists in the contract change application list,
and verifying the validity of the cross-link rule definition and the cross-link rule description in the rule operation application according to the preset checking rule, and voting the rule operation application based on the verification result.
Optionally, as a specific implementation manner of the blockchain cross-chain rule management system provided by the embodiment of the present invention, the preset checking rule includes:
if the cross-chain rule is described as: the cross-chain direction is from a-chain to B-chain, then the cross-chain rule is defined as:
AChain>BChain。
if the cross-chain rule is described as: a-chain cross-chain asset, then the cross-chain rule is defined as:
AChain.TokenA。
if the cross-chain rule is described as: the real-name token of the A chain is defined as the cross-chain rule:
AChain.crtToken=true。
if the cross-chain rule is described as: anonymous token for the A-chain, then the cross-chain rule is defined as:
AChain.crtToken=false。
if the cross-chain rule is described as: the cross-link source transaction input address is a-link address a, and the cross-link rule is defined as: srcoaddress = achain.
If the cross-chain rule is described as: the cross-link destination address is a-link address a, and the cross-link rule is defined as: dstaddress= achain.
If the cross-chain rule is described as: a-link contract a address, then the cross-link rule is defined as:
AChain.contractAddressA。
if the cross-chain rule is described as: the destination chain A contains the information certification transaction of keyString, and the cross-chain rule is defined as: dst=achain.
If the cross-chain rule is described as: the source chain A contains the information certification transaction of keyString, and then the cross-chain rule is defined as: src= achain.
Referring to fig. 3, fig. 3 is a schematic block diagram of a terminal device according to an embodiment of the present invention. The terminal 300 in the present embodiment as shown in fig. 3 may include: one or more processors 301, one or more input devices 302, one or more output devices 303, and one or more memories 304. The processor 301, the input device 302, the output device 303, and the memory 304 communicate with each other via a communication bus 305. The memory 304 is used to store a computer program comprising program instructions. The processor 301 is configured to execute program instructions stored in the memory 304. Wherein the processor 301 is configured to invoke program instructions to perform the following functions of the modules/units in the above described device embodiments, such as the functions of the modules 21 to 22 shown in fig. 2.
It should be appreciated that in embodiments of the present invention, the processor 301 may be a central processing unit (Central Processing Unit, CPU), which may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 302 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of a fingerprint), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc.
The memory 304 may include read only memory and random access memory and provides instructions and data to the processor 301. A portion of memory 304 may also include non-volatile random access memory. For example, the memory 304 may also store information of device type.
In a specific implementation, the processor 301, the input device 302, and the output device 303 described in the embodiments of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the blockchain cross-link rule management method provided in the embodiments of the present invention, and may also execute the implementation manner of the terminal described in the embodiments of the present invention, which is not described herein again.
In another embodiment of the present invention, a computer readable storage medium is provided, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, where the program instructions, when executed by a processor, implement all or part of the procedures in the method embodiments described above, or may be implemented by instructing related hardware by the computer program, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by the processor, implements the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
The computer readable storage medium may be an internal storage unit of the terminal of any of the foregoing embodiments, such as a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store a computer program and other programs and data required for the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working procedures of the terminal and the unit described above may refer to the corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In several embodiments provided in the present application, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via some interfaces or units, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The present invention is not limited to the above embodiments, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and these modifications and substitutions are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (8)

1. A blockchain cross-chain rule management method, comprising:
receiving a rule operation application submitted by a cross-link service participant;
adding the rule operation application to a contract change application list; the rule operation application in the contract change application list is used for indicating a cross-link business related party to vote on the rule operation application when detecting that the rule operation application exists in the contract change application list;
receiving a voting result of the cross-link service related party on the rule operation application, and judging whether to update the cross-link rule according to the voting result of the cross-link service related party on the rule operation application;
the rule operation application comprises a cross-link rule definition and a cross-link rule description;
the rule operation application in the contract change application list is used for indicating the cross-link business related party to detect that the rule operation application exists in the contract change application list,
performing validity verification on the cross-link rule definition and the cross-link rule description in the rule operation application according to a preset verification rule, and voting the rule operation application based on a verification result;
the preset checking rule comprises the following steps:
if the cross-chain rule is described as: the cross-chain direction is from a-chain to B-chain, then the cross-chain rule is defined as:
AChain>BChain;
if the cross-chain rule is described as: a-chain cross-chain asset, then the cross-chain rule is defined as:
AChain.TokenA;
if the cross-chain rule is described as: the real-name token of the A chain is defined as the cross-chain rule:
AChain.crtToken=true;
if the cross-chain rule is described as: anonymous token for the A-chain, then the cross-chain rule is defined as:
AChain.crtToken=false;
if the cross-chain rule is described as: the cross-link source transaction input address is a-link address a, and the cross-link rule is defined as: srcAddress = achain.
If the cross-chain rule is described as: the cross-link destination address is a-link address a, and the cross-link rule is defined as: dstaddress= achain. Addressa;
if the cross-chain rule is described as: a-link contract a address, then the cross-link rule is defined as:
AChain.contractAddressA;
if the cross-chain rule is described as: the destination chain A contains the information certification transaction of keyString, and the cross-chain rule is defined as: dst=achain. Containstr (keyString);
if the cross-chain rule is described as: the source chain A contains the information certification transaction of keyString, and then the cross-chain rule is defined as: src= achain.
2. The blockchain cross-chain rule management method of claim 1, wherein if the received rule operation application submitted by the cross-chain service participant is a cross-chain rule addition application, before adding the rule operation application to the contract change application list, further comprising:
and allocating a unique identifier for the rule corresponding to the rule operation application.
3. The blockchain cross-chain rule management method of claim 1, further comprising, after adding the rule operation application to a contract change application list:
counting a ticket for a cross-link business participant submitting a rule operation application;
correspondingly, the step of judging whether to update the cross-link rule according to the voting result of the cross-link service related party on the rule operation application comprises the following steps:
judging whether to update the cross-link rule according to the voting result of the cross-link service participant submitting the rule operation application and the voting result of the cross-link service related party on the rule operation application.
4. The blockchain cross-chain rule management method of claim 1, further comprising, after receiving a voting result applied for the rule operation by the cross-chain service-related party:
and deleting the rule operation application corresponding to the voting result from the contract change application list.
5. The blockchain cross-link rule management method as in claim 1, wherein the determining whether to update the cross-link rule according to the voting result of the cross-link service related party for the rule operation application comprises:
and if the voting result of the cross-link service related party to the rule operation application shows that the number of the votes is greater than a preset threshold, updating the cross-link rule based on the rule operation application corresponding to the voting result.
6. A blockchain cross-chain rule management system, comprising:
the operation application receiving module is used for receiving a rule operation application submitted by a cross-link service participant; adding the rule operation application to a contract change application list; the rule operation application in the contract change application list is used for indicating a cross-link business related party to vote on the rule operation application when detecting that the rule operation application exists in the contract change application list;
the cross-link rule updating module is used for receiving the voting result of the cross-link service related party for the rule operation application and judging whether to update the cross-link rule according to the voting result of the cross-link service related party for the rule operation application;
the rule operation application comprises a cross-link rule definition and a cross-link rule description;
the rule operation application in the contract change application list is used for indicating the cross-link business related party to detect that the rule operation application exists in the contract change application list,
performing validity verification on the cross-link rule definition and the cross-link rule description in the rule operation application according to a preset verification rule, and voting the rule operation application based on a verification result;
the preset checking rule comprises the following steps:
if the cross-chain rule is described as: the cross-chain direction is from a-chain to B-chain, then the cross-chain rule is defined as:
AChain>BChain;
if the cross-chain rule is described as: a-chain cross-chain asset, then the cross-chain rule is defined as:
AChain.TokenA;
if the cross-chain rule is described as: the real-name token of the A chain is defined as the cross-chain rule:
AChain.crtToken=true;
if the cross-chain rule is described as: anonymous token for the A-chain, then the cross-chain rule is defined as:
AChain.crtToken=false;
if the cross-chain rule is described as: the cross-link source transaction input address is a-link address a, and the cross-link rule is defined as: srcAddress = achain.
If the cross-chain rule is described as: the cross-link destination address is a-link address a, and the cross-link rule is defined as: dstaddress= achain. Addressa;
if the cross-chain rule is described as: a-link contract a address, then the cross-link rule is defined as:
AChain.contractAddressA;
if the cross-chain rule is described as: the destination chain A contains the information certification transaction of keyString, and the cross-chain rule is defined as: dst=achain. Containstr (keyString);
if the cross-chain rule is described as: the source chain A contains the information certification transaction of keyString, and then the cross-chain rule is defined as: src= achain.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 5.
CN202110142601.6A 2021-02-02 2021-02-02 Block chain cross-chain rule management method and system Active CN112801661B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110142601.6A CN112801661B (en) 2021-02-02 2021-02-02 Block chain cross-chain rule management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110142601.6A CN112801661B (en) 2021-02-02 2021-02-02 Block chain cross-chain rule management method and system

Publications (2)

Publication Number Publication Date
CN112801661A CN112801661A (en) 2021-05-14
CN112801661B true CN112801661B (en) 2023-06-30

Family

ID=75813631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110142601.6A Active CN112801661B (en) 2021-02-02 2021-02-02 Block chain cross-chain rule management method and system

Country Status (1)

Country Link
CN (1) CN112801661B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115439249B (en) * 2022-09-01 2023-09-26 国网区块链科技(北京)有限公司 Method, device and system for realizing business service of cross-region block chain

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493050A (en) * 2018-11-21 2019-03-19 北京蓝石环球区块链科技有限公司 Transfer process based on the more subchains of block chain main chain adduction row
CN111639127A (en) * 2020-05-11 2020-09-08 支付宝实验室(新加坡)有限公司 Method, system, device and equipment for updating intelligent contract

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11194837B2 (en) * 2018-05-01 2021-12-07 International Business Machines Corporation Blockchain implementing cross-chain transactions

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493050A (en) * 2018-11-21 2019-03-19 北京蓝石环球区块链科技有限公司 Transfer process based on the more subchains of block chain main chain adduction row
CN111639127A (en) * 2020-05-11 2020-09-08 支付宝实验室(新加坡)有限公司 Method, system, device and equipment for updating intelligent contract

Also Published As

Publication number Publication date
CN112801661A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
US20170236120A1 (en) Accountability and Trust in Distributed Ledger Systems
CN109600441B (en) Alliance link information publishing control method and terminal equipment
CN111556059A (en) Abnormity detection method, abnormity detection device and terminal equipment
CN111027099B (en) Identity verification method, device, system and computer readable storage medium
CN109388957B (en) Block chain-based information transfer method, device, medium and electronic equipment
CN112765268A (en) Block chain-based data privacy protection method, device and equipment
CN110517145B (en) Data transaction method based on multi-block chain and related equipment
CN112866282B (en) Method and device for verifying time information in block chain
CN112837157A (en) Method, device and system for registering and executing timing intelligent contract in block chain
CN112950201B (en) Node management method and related device applied to block chain system
CN113890739B (en) Cross-blockchain authentication method and device, electronic equipment and medium
CN112801661B (en) Block chain cross-chain rule management method and system
CN111476640A (en) Authentication method, system, storage medium and big data authentication platform
CN110245182B (en) Method, apparatus, device and medium for processing distributed data
CN117151859A (en) Model training and evaluating method, related device, equipment, medium and product
CN112801662B (en) Business link access management method and system based on blockchain intelligent contract
WO2020103573A1 (en) Block chain-based network transaction signature method and device, and terminal equipment
CN115001783A (en) Voting method, system and storage medium
CN113015973B (en) Data processing method, storage medium, electronic device and data transaction system
CN113901519A (en) Data processing method, device, equipment and medium based on block chain
CN111447216B (en) Method and apparatus for changing consensus node
CN111984727B (en) Method and device for recruiting subjects, terminal device and storage medium
CN114154996A (en) Cross-block-chain data transfer method and system, storage medium and terminal
CN113645025A (en) Data encryption storage method, storage device, user equipment and storage medium
CN111080084A (en) Credit investigation management method, device and storage medium based on block chain

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