CN112801662A - Business link access management method and system based on intelligent block chain contract - Google Patents

Business link access management method and system based on intelligent block chain contract Download PDF

Info

Publication number
CN112801662A
CN112801662A CN202110143224.8A CN202110143224A CN112801662A CN 112801662 A CN112801662 A CN 112801662A CN 202110143224 A CN202110143224 A CN 202110143224A CN 112801662 A CN112801662 A CN 112801662A
Authority
CN
China
Prior art keywords
chain
service
target
link
legal
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.)
Granted
Application number
CN202110143224.8A
Other languages
Chinese (zh)
Other versions
CN112801662B (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 CN202110143224.8A priority Critical patent/CN112801662B/en
Publication of CN112801662A publication Critical patent/CN112801662A/en
Application granted granted Critical
Publication of CN112801662B publication Critical patent/CN112801662B/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/3825Use of electronic signatures
    • 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/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
    • 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/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • 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)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (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 service link access management method and a system based on a block chain intelligent contract, wherein the method is applied to a relay chain in a cross-chain network and comprises the following steps: receiving a target access application submitted by a target service chain, and adding the target access application to a preset service chain application list; sending a voting application corresponding to the target access application to other legal service chains except the relay chain in the cross-link network; and receiving the voting result of the target access application submitted by other legal service chains, and judging whether to add the target service chain into the cross-chain network or not according to the voting result of the target access application by other legal service chains. The service link access management method and system based on the intelligent block chain contract can realize the comprehensive examination and verification of service link access, support more cross-link scenes and avoid centralized control.

Description

Business link access management method and system based on intelligent block chain contract
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a service link access management method and system based on a block chain intelligent contract.
Background
As the technology of chain crossing is more and more mature, how information between different chains is circulated is a topic of the cross-chain heat. In the face of various cross-link requirements, how to manage access of different service chains based on a block chain intelligent contract also becomes a problem to be solved urgently at present.
Most of the existing service chain access modes have a chain crossing requirement between two chains, and two parties negotiate to access a chain crossing service and carry out chain crossing operation, so that the process is relatively simple and convenient, and the following defects exist:
for the confirmation of the service chain information, the existing service chain access mode does not have a comprehensive auditing process, the existing chain crossing scene is simplified, a multi-chain to multi-chain scene is not supported, the existing service chain access auditing has authority limit, only an administrator can carry out the verification, and the decentralization is not thorough.
Therefore, a new business link entry management scheme is needed to solve the above problems.
Disclosure of Invention
The invention aims to provide a service link access management method and system based on a block chain intelligent contract, and aims to solve the technical problems that in the prior art, service link access modes are not complete in auditing, a chain-crossing scene is simplified, and decentralization is not complete.
In a first aspect of the embodiments of the present invention, a method for managing service link access based on a block chain intelligent contract is provided, where the method is applied to a relay chain in a cross-chain network, and the method includes:
receiving a target access application submitted by a target service chain, and adding the target access application to a preset service chain application list;
sending a voting application corresponding to the target access application to other legal service chains except the relay chain in the cross-link network; the voting application is used for indicating other legal service chains to vote for the target access application;
and receiving the voting result of the target access application submitted by other legal service chains, and judging whether to add the target service chain into the cross-chain network or not according to the voting result of the target access application by other legal service chains.
In a second aspect of the embodiments of the present invention, a service link access management system based on a block chain intelligent contract is provided, where the system is applied to a relay chain in a cross-chain network, and the system includes:
the access application processing module is used for receiving a target access application submitted by a target service chain and adding the target access application to a preset service chain application list; sending a voting application corresponding to the target access application to other legal service chains except the relay chain in the cross-link network; the voting application is used for indicating other legal service chains to vote for the target access application;
and the service link access management module is used for receiving the voting result of the target access application submitted by other legal service links and judging whether to add the target service link into the cross-link network or not according to the voting result of the target access application by other legal service links.
In a third aspect of the embodiments of the present invention, a terminal device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the above-mentioned service link entry management method based on a block chain intelligent contract when executing the computer program.
In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above-mentioned service link entry management method based on a blockchain intelligent contract.
The service link access management method and system based on the intelligent block chain contract have the advantages that:
1) in the invention, the joining of the target service chain requires the voting of other legal service chains in the cross-chain network, each legal member in the cross-chain network has the voting right, the openness and the participation are strong, the comprehensive examination and verification can be realized, and the problem that the decentralization is not thorough in the prior art can be effectively solved.
2) The service link access management method and system based on the intelligent block chain contract are applied to the relay link in the cross-link network, namely, one relay link can be connected with a plurality of legal service links, and more cross-link scenes are supported.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for managing service link entry based on a block chain intelligent contract according to an embodiment of the present invention;
fig. 2 is a block diagram of a business link entry management system based on a blockchain intelligent contract 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 schematic diagram illustrating a verification process of a target access application according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a real-name bi-directional validation process of voting results submitted by other legal service chains according to an embodiment of the present invention;
fig. 6 is a schematic view of an application scenario of a service link import management method based on a blockchain intelligent contract according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present 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 merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic flowchart of a service link entry management method based on a blockchain intelligent contract according to an embodiment of the present invention, where the method is applied to a relay link in a cross-link network, and the method includes:
s101: and receiving a target access application submitted by the target service chain, and adding the target access application to a preset service chain application list.
In this embodiment, a new service chain (i.e., a target service chain) wants to join a certain inter-chain network, a relay chain connected to the inter-chain network is needed, a "service chain joining interface" of a real-name contract is called by using its own real-name address to submit corresponding information (i.e., a target access application) to the relay chain, and the relay chain receives the target access application submitted by the target service chain and adds the target access application to a preset service chain application list. The real-name contract described by the embodiments of the present invention is issued by the relay-link nodes of the relay links of the cross-link network.
S102: and sending the voting application corresponding to the target access application to other legal service chains except the relay chain in the cross-chain network.
In this embodiment, the relay link notifies other legal service links in the inter-link network by applying for the request of new link access, thereby ensuring the right of awareness of the legal members.
S103: and receiving the voting results of the target access applications submitted by other legal service chains, and judging whether to add the target service chain into the cross-chain network or not according to the voting results of the target access applications of the other legal service chains.
In this embodiment, the relay link waits for all legal members (i.e. other legal service links) to call the "voting interface" of the real-name contract with their own real-name addresses for voting confirmation, and determines whether to add the target service link to the cross-link network according to the voting result of the other legal service links to the target access application.
Optionally, as a specific implementation manner of the method for managing service link entry based on the blockchain intelligent contract provided by the embodiment of the present invention, before adding the target access application to the preset service chain application list, the method for managing service link entry based on the blockchain intelligent contract may further include:
and checking the target access application.
Correspondingly, adding the target access application to a preset service chain application list comprises:
and adding the successfully verified target access application to a preset service chain application list.
In this embodiment, before adding the target access application to the preset service chain application list, the target access application may also be verified, and only the successfully verified target access application is added to the preset service chain application list. And if the target access application verification fails, returning information of access application verification failure to the target service chain.
Optionally, referring to fig. 4, as a specific implementation manner of the method for managing service link access based on a block chain intelligent contract according to the embodiment of the present invention, the target access application includes a chain name of the target service chain, a chain type of the target service chain, and a real-name system address of the target service chain.
The target access application is verified, and the method comprises the following steps:
and judging whether the chain type of the target service chain is legal, whether the chain name of the target service chain is added into the cross-chain service chain list, whether the real-name address of the target service chain is in the confirmed member list, and whether the real-name address of the target service chain is the effective transfer-out address of the calling transaction.
And if the chain type of the target service chain is legal, the chain name of the target service chain is not in the added cross-chain service chain list, the real-name address of the target service chain is not in the confirmed member list, and the real-name address of the target service chain is the effective roll-out address of the calling transaction, judging that the target access application verification is successful.
In this embodiment, the interface parameters of the "service chain joining interface" of the real-name contract are shown in the following table:
TABLE 1 interface parameters for "service chain joining interface
Parameter name Description of the invention
ChainName Name of newly added service chain
ChainType Chain type of newly added service chain
MyAddress Real-name system address of newly added service chain
In this embodiment, the target access application corresponds to an interface parameter of a "service chain joining interface" of a real-name contract, and the essence of the verification on the target access application is the verification on each parameter in the target access application.
In this embodiment, the verification process may be as shown in fig. 4, that is:
and checking whether the ChainType is legal, whether the ChainName is in the added cross-link service chain list, whether the MyAddress of the target service chain is in the confirmed member list, and whether the MyAddress of the target service chain is an effective transfer-out address of the calling transaction. If the ChainType is legal, the ChainName is not in the added cross-link service chain list, the MyAddress of the target service chain is not in the confirmed member list, and the MyAddress of the target service chain is the effective transfer-out address of the calling transaction, the target access application verification is judged to be successful.
The confirmed member list comprises the chain names of all legal service chains added into the cross-chain network, and the confirmed member list comprises the real-name system addresses of all legal service chains added into the cross-chain network.
In this embodiment, the invoking transaction refers to a process in which the target service chain invokes a "service chain joining interface" of the real-name system contract with its own real-name system address.
Optionally, as a specific implementation manner of the service link admission management method based on the blockchain intelligent contract provided by the embodiment of the present invention, before determining whether to join the target service chain in the inter-chain network according to a voting result of the other legal service chain for the target admission application, the service link admission management method based on the blockchain intelligent contract may further include:
and performing real-name system bidirectional verification on voting results submitted by other legal service chains to the target access application.
Correspondingly, judging whether to add the target service chain into the cross-chain network according to the voting result of the target access application of other legal service chains, comprising the following steps:
and judging whether the target service chain is added into the cross-chain network or not according to the voting result of the other successful validated service chains to the target access application.
In this embodiment, before determining whether to add the target service chain to the inter-chain network according to the voting results of the other legal service chains for the target access application, the real-name bidirectional authentication may be performed on the voting results of the target access application submitted by the other legal service chains, and only the voting results of the target access application by the other legal service chains that are successfully authenticated are used in the subsequent determination process. And if the verification fails, returning the information of failed voting to the corresponding legal service chain.
Optionally, referring to fig. 5, as a specific implementation manner of the service link access management method based on the intelligent block chain contract according to the embodiment of the present invention, the voting result submitted by the other legal service chains for the target access application includes a chain name of the target service chain, a chain type of the target service chain, a voting result of the other legal service chains, a real-name system address of the other legal service chains, a common address provided by the other legal service chains for generating a multi-signature address of the target service chain, and a public key corresponding to the common address provided by the other legal service chains.
The method for performing real-name system bidirectional verification on the voting result submitted by a legal service chain to a target access application comprises the following steps:
judging whether the chain name of the target service chain is in a service chain application list, whether the chain type of the target service chain is consistent with the chain type of the target service chain in the target access application, whether the real-name address of the legal service chain is in a confirmed member list, whether the real-name address of the legal service chain is a valid transfer-out address of the calling transaction, whether the real-name address of the legal service chain participates in the voting of the target service chain, whether the voting result of the legal service chain is in compliance, whether a common address provided by the legal service chain and used for generating a multi-signature address of the target service chain and a public key provided by the legal service chain and corresponding to the common address are in compliance.
If the link name of the target service link is in the service link application list, the link type of the target service link is consistent with the link type of the target service link in the target access application, the real-name address of the legal service link is in the confirmed member list, the real-name address of the legal service link is a valid transfer-out address of the current call transaction, the real-name address of the legal service link does not participate in the voting of the target service link, the voting result compliance of the legal service link, the common address provided by the legal service link and used for generating the multi-signature address of the target service link, and the public key compliance provided by the legal service link and corresponding to the common address, the voting result submitted by the legal service link for the target access application is judged to be successfully verified.
In the present embodiment, the interface parameters of the "voting interface" of the real-name contract are shown in the following table:
TABLE 2 interface parameters for "voting interface
Figure BDA0002930045160000071
In this embodiment, the voting results of the other legal service chains correspond to interface parameters of a "voting interface" of the real-name contract, and the essence of the verification of the voting results of the other legal service chains is the verification of each parameter in the voting results of the other legal service chains.
In this embodiment, the verification process may be as shown in fig. 5, that is:
whether VoteChain is in a service chain application list or not, whether the ChainType is consistent with the chain type of a target service chain in a target access application or not, whether the MyAddress of the legal service chain is in a confirmed member list or not, whether the MyAddress of the legal service chain is a valid transfer-out address of the call transaction or not, whether the MyAddress of the legal service chain participates in voting of the target service chain or not, whether Status of the legal service chain is in compliance or not, and whether SubAddress and SubPubKey corresponding to the legal service chain are in compliance or not are checked.
If VoteChain is in the service chain application list, the chain type of the ChainType is consistent with that of a target service chain in a target access application, MyAddress of the legal service chain is in a confirmed member list, MyAddress of the legal service chain is an effective transfer-out address of the calling transaction, MyAddress of the legal service chain does not participate in voting of the target service chain, Status compliance of the legal service chain, SubAddress and SubPubKey compliance corresponding to the legal service chain, the voting result of the target access application submitted by the legal service chain is judged to be successfully verified, and if any one of the conditions is not met, the voting result of the legal service chain is directly judged to be unsuccessfully verified.
In this embodiment, SubAddress and SubPubkey are both used to generate a multi-signature address of a target service chain.
In this embodiment, the invoking of the transaction refers to a process in which the legitimate service chain invokes a "voting interface" of the real-name contract with its own real-name address.
In this embodiment, the purpose of verifying whether the MyAddress of the legitimate service chain is the valid export address of the present call transaction is to ensure that the contract caller and the MyAddress are consistent in identity, and prevent malicious impersonation voting.
In this embodiment, as shown in fig. 5, after the verification is successful, if it is determined that the target service chain is to be added to the cross-chain network according to the voting result of the other verified service chains that are successfully verified, a multi-signature address corresponding to the target service chain may be generated according to SubAddress and SubPubkey carried in the voting result, and the target service chain is added to the added cross-chain service chain list config _ chains of the real-name contract, the multi-signature address corresponding to the target service chain is written into the confirmed member list confignotes of the real-name contract, and the target access application entry in the service chain application list nodeliplicationlist is deleted at the same time.
From the above description, the invention manages the members and contracts of the chain by using the real-name system, and the transaction process is traceable, unchangeable and transparent. By combining the information of different service chains, the invention can realize complete and comprehensive cross-chain network service, realize the information value transfer between different chains and is beneficial to establishing a harmonious and safe cross-chain ecological environment.
Optionally, as a specific implementation manner of the method for managing service link access based on a block chain intelligent contract provided in the embodiment of the present invention, determining whether to add a target service chain to a cross-chain network according to a voting result of a target access application by another legal service chain includes:
and if the voting results of other legal service chains for the target access application show that the number of other legal service chains which are added into the target service chain exceeds the preset proportion of the total number of the legal service chains in the cross-link network, adding the target service chain into the cross-link network, generating a multi-signature address corresponding to the target service chain according to the voting results of the other legal service chains for the target access application, and sending information of successful addition to the target service chain. Wherein the multi-signed address is used in a cross-chain transaction across a chain network.
And if the voting results of other legal service chains to the target access application show that the number of other legal service chains which approve the target service chain to be added does not exceed the preset proportion of the total number of the legal service chains in the cross-link network, not adding the target service chain to the cross-link network, and sending information of failed addition to the target service chain.
The preset proportion can be set according to actual requirements, and is not limited herein.
In this embodiment, adding the target service chain to the inter-chain network is also to add the target service chain to the added inter-chain service chain list, and meanwhile, the embodiment also generates and stores a multi-signature address corresponding to the target service chain according to the voting result of the other legal service chains to the target access application, so that the target service chain performs subsequent inter-chain transaction.
In the embodiment, the legal members have the voting right at the same time, and the target service chain is allowed to be accessed only by obtaining the support of the votes with the preset proportion or more, so that the possibility of wrong connection is avoided, and malicious attack is reduced.
In this embodiment, information of each service chain accessed to the inter-chain network is written into a real-name contract for storage and is permanently stored, and a legal member has a viewing right.
Optionally, as a specific implementation manner of the method for managing service link entry based on the intelligent block chain contract provided in the embodiment of the present invention, the method for managing service link entry based on the intelligent block chain contract may further include:
and after receiving the voting results of the target access application submitted by other legal service chains, deleting the target access application from the service chain application list.
Optionally, as a specific implementation manner of the service link access management method based on the blockchain intelligent contract provided by the embodiment of the present invention, as shown in fig. 6, fig. 6 provides an application scenario schematic diagram of the service link access management method based on the blockchain intelligent contract, and the service link access scheme provided by the present invention is described below with reference to fig. 6 as an example.
The service chain A, the relay chain Z and the service chain B form a cross-chain network, and cross-chain members in the network can perform cross-chain operation mutually. The service chain C also has a cross-chain requirement and wants to join the network, and needs to initiate an application first, and members in the network vote and confirm to join after passing. The specific operation process is as follows:
the relay link node needs to issue a real-name contract first, the service link C submits information for applying for joining, members of the service link A and the service link B call the real-name contract to vote, bidirectional real-name verification (the real-name contract verifies the identity of a caller, and the real-name caller verifies the authenticity of the contract) is performed during voting, the number of votes obtained by the service link C is counted by the relay link Z after the vote is verified, if the service link C obtains the number of votes with a preset proportion (for example, more than 60 percent) the service link C agrees to join the service link C, a multi-signature address corresponding to the service link C is generated according to common addresses and public key information of other legal members carried in the voting result, the service link C and the multi-signature address corresponding to the service link C are written into the contract state of the real-name contract, and the service link C is formally joined into the cross-link network.
As can be seen from fig. 6, the service link access management method provided by the present invention can support a multi-link-to-multi-link cross-link scenario, that is, the service link access management method provided by the present invention has a wider application prospect.
Corresponding to the method for managing service link entry based on blockchain intelligent contracts in the foregoing embodiment, fig. 2 is a block diagram of a system for managing service link entry based on blockchain intelligent contracts according to an embodiment of the present invention. For convenience of explanation, only portions related to the embodiments of the present invention are shown. Referring to fig. 2, the service link entry management system 20 based on the blockchain intelligent contract is applied to a relay link in a cross-link network, and includes: an access application processing module 21 and a service link access management module 22.
The access application processing module 21 is configured to receive a target access application submitted by a target service chain, and add the target access application to a preset service chain application list. And sending the voting application corresponding to the target access application to other legal service chains except the relay chain in the cross-chain network. The voting application is used for indicating other legal service chains to vote for the target access application.
And the service link access management module 22 is configured to receive the voting result of the target access application submitted by the other legal service links, and determine whether to add the target service link to the cross-link network according to the voting result of the target access application by the other legal service links.
Optionally, as a specific implementation manner of the service link access management system based on the block chain intelligent contract provided in the embodiment of the present invention, the access application processing module 21 is further configured to check the target access application before adding the target access application to the preset service chain application list.
Correspondingly, adding the target access application to a preset service chain application list comprises:
and adding the successfully verified target access application to a preset service chain application list.
Optionally, as a specific implementation manner of the service link access management system based on the block chain intelligent contract provided by the embodiment of the present invention, the target access application includes a chain name of the target service chain, a chain type of the target service chain, and a real-name address of the target service chain.
The target access application is verified, and the method comprises the following steps:
and judging whether the chain type of the target service chain is legal, whether the chain name of the target service chain is added into the cross-chain service chain list, whether the real-name address of the target service chain is in the confirmed member list, and whether the real-name address of the target service chain is the effective transfer-out address of the calling transaction.
And if the chain type of the target service chain is legal, the chain name of the target service chain is not in the added cross-chain service chain list, the real-name address of the target service chain is not in the confirmed member list, and the real-name address of the target service chain is the effective roll-out address of the calling transaction, judging that the target access application verification is successful.
Optionally, as a specific implementation manner of the service link entry management system based on the block chain intelligent contract provided in the embodiment of the present invention, the service link entry management module 22 is further configured to perform real-name system bidirectional verification on the voting result of the target access application submitted by the other legal service chains before determining whether to add the target service chain to the inter-chain network according to the voting result of the target access application by the other legal service chains.
Correspondingly, judging whether to add the target service chain into the cross-chain network according to the voting result of the target access application of other legal service chains, comprising the following steps:
and judging whether the target service chain is added into the cross-chain network or not according to the voting result of the other successful validated service chains to the target access application.
Optionally, as a specific implementation manner of the service link access management system based on the block chain intelligent contract provided in the embodiment of the present invention, the voting result submitted by the other legal service chains for the target access application includes a chain name of the target service chain, a chain type of the target service chain, a voting result of the other legal service chains, real-name addresses of the other legal service chains, a common address provided by the other legal service chains for generating a multi-signature address of the target service chain, and a public key corresponding to the common address provided by the other legal service chains.
The method for performing real-name system bidirectional verification on the voting result submitted by a legal service chain to a target access application comprises the following steps:
judging whether the chain name of the target service chain is in a service chain application list, whether the chain type of the target service chain is consistent with the chain type of the target service chain in the target access application, whether the real-name address of the legal service chain is in a confirmed member list, whether the real-name address of the legal service chain is a valid transfer-out address of the calling transaction, whether the real-name address of the legal service chain participates in the voting of the target service chain, whether the voting result of the legal service chain is in compliance, whether a common address provided by the legal service chain and used for generating a multi-signature address of the target service chain and a public key provided by the legal service chain and corresponding to the common address are in compliance.
If the link name of the target service link is in the service link application list, the link type of the target service link is consistent with the link type of the target service link in the target access application, the real-name address of the legal service link is in the confirmed member list, the real-name address of the legal service link is a valid transfer-out address of the current call transaction, the real-name address of the legal service link does not participate in the voting of the target service link, the voting result compliance of the legal service link, the common address provided by the legal service link and used for generating the multi-signature address of the target service link, and the public key compliance provided by the legal service link and corresponding to the common address, the voting result submitted by the legal service link for the target access application is judged to be successfully verified.
Optionally, as a specific implementation manner of the system for managing a service link access based on a block chain intelligent contract provided in the embodiment of the present invention, determining whether to add a target service link to a cross-link network according to a voting result of a target access application by another legal service link includes:
and if the voting results of other legal service chains for the target access application show that the number of other legal service chains which are added into the target service chain exceeds the preset proportion of the total number of the legal service chains in the cross-link network, adding the target service chain into the cross-link network, and generating a multi-signature address corresponding to the target service chain according to the voting results of other legal service chains for the target access application. Wherein the multi-signed address is used in a cross-chain transaction across a chain network.
And if the voting results of other legal service chains to the target access application show that the number of other legal service chains which approve the target service chain to be added does not exceed the preset proportion of the total number of the legal service chains in the cross-link network, not adding the target service chain to the cross-link network.
Optionally, as a specific implementation manner of the service link access management system based on the block chain intelligent contract provided in the embodiment of the present invention, the access application processing module 21 is further configured to delete the target access application from the service chain application list after receiving a voting result of the target access application submitted by another legal service chain.
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 are in communication with each other via a communication bus 305. The memory 304 is used to store a computer program comprising program instructions. Processor 301 is operative to execute program instructions stored in memory 304. Wherein the processor 301 is configured to call program instructions to perform the following functions of operating 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 understood that, in the embodiment of the present invention, the Processor 301 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and 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 the fingerprint), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc.
The memory 304 may include a read-only memory and a random access memory, and provides instructions and data to the processor 301. A portion of the memory 304 may also include non-volatile random access memory. For example, the memory 304 may also store device type information.
In specific implementation, the processor 301, the input device 302, and the output device 303 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the method for managing service link entry based on a block chain intelligent contract provided in this embodiment of the present invention, and may also execute the implementation manner of the terminal described in this embodiment of the present invention, which is not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, implement all or part of the processes in the method of the above embodiments, and may also be implemented by a computer program instructing associated hardware, and the computer program may be stored in a computer-readable storage medium, and the computer program, when executed by a processor, may implement the steps of the above methods embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may include any suitable increase or decrease as required by legislation and patent practice in the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The computer readable storage medium may be an internal storage unit of the terminal of any of the foregoing embodiments, for example, 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 provided on the terminal, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing a computer program and other programs and data required by 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 of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly 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 implementation. 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 can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces or units, and may also be an electrical, mechanical or other form of connection.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A service link access management method based on a block chain intelligent contract is characterized in that the method is applied to a relay chain in a cross-chain network, and the method comprises the following steps:
receiving a target access application submitted by a target service chain, and adding the target access application to a preset service chain application list;
sending a voting application corresponding to the target access application to other legal service chains except the relay chain in the cross-link network; the voting application is used for indicating other legal service chains to vote for the target access application;
and receiving the voting result of the target access application submitted by other legal service chains, and judging whether to add the target service chain into the cross-chain network or not according to the voting result of the target access application by other legal service chains.
2. The method for service chaining management based on blockchain intelligent contracts according to claim 1, wherein before adding the target access application to a preset service chaining application list, the method further comprises:
checking the target access application;
correspondingly, the adding the target access application to a preset service chain application list includes:
and adding the successfully verified target access application to a preset service chain application list.
3. The method for service link admission management based on blockchain intelligent contracts according to claim 2, wherein the target admission application comprises a link name of a target service chain, a link type of the target service chain, a real-name address of the target service chain;
the verifying the target access application comprises:
judging whether the chain type of the target service chain is legal, whether the chain name of the target service chain is added into a cross-chain service chain list, whether the real-name address of the target service chain is in a confirmed member list, and whether the real-name address of the target service chain is an effective transfer-out address of the calling transaction;
and if the chain type of the target service chain is legal, the chain name of the target service chain is not in the added cross-chain service chain list, the real-name address of the target service chain is not in the confirmed member list, and the real-name address of the target service chain is the effective roll-out address of the calling transaction, judging that the target access application verification is successful.
4. The method for service link admission management based on blockchain intelligent contracts according to claim 1, wherein before judging whether to join a target service chain to the cross-chain network according to the voting results of other legal service chains on the target admission application, the method further comprises:
performing real-name system bidirectional verification on voting results submitted by other legal service chains to the target access application;
correspondingly, the determining whether to add the target service chain to the inter-chain network according to the voting result of the other legal service chains to the target access application includes:
and judging whether the target service chain is added into the cross-chain network or not according to the voting result of the other successful validated service chains to the target access application.
5. The method for managing service chain access based on block chain intelligent contract according to claim 4, wherein the voting result submitted by the other legal service chains for the target access application comprises a chain name of a target service chain, a chain type of the target service chain, a voting result of the other legal service chains, a real-name system address of the other legal service chains, a common address provided by the other legal service chains for generating a multi-signature address of the target service chain, and a public key corresponding to the common address provided by the other legal service chains;
the real-name system bidirectional verification of the voting result submitted by a legal service chain to the target access application comprises the following steps:
judging whether a link name of a target service link is in a service link application list, whether the link type of the target service link is consistent with the link type of the target service link in the target access application, whether a real-name system address of the legal service link is in a confirmed member list, whether the real-name system address of the legal service link is a valid transfer-out address of the calling transaction, whether the real-name system address of the legal service link participates in voting of the target service link, whether the voting result of the legal service link is compliant, whether a common address provided by the legal service link and used for generating a multi-signature address of the target service link and a public key provided by the legal service link and corresponding to the common address are compliant or not;
if the link name of the target service link is in a service link application list, the link type of the target service link is consistent with the link type of the target service link in the target access application, the real-name address of the legal service link is in a confirmed member list, the real-name address of the legal service link is a valid transfer-out address of the calling transaction, the real-name address of the legal service link does not participate in the voting of the target service link, the voting result compliance of the legal service link, the common address provided by the legal service link and used for generating the multi-signature address of the target service link, and the public key compliance provided by the legal service link and corresponding to the common address, the voting result submitted by the legal service link for the target access application is judged to be successfully verified.
6. The method for service link admission management based on blockchain intelligent contracts according to claim 1, wherein the judging whether to join a target service chain to the cross-chain network according to the voting result of other legal service chains on the target admission application comprises:
if the voting results of other legal service chains to the target access application show that the number of other legal service chains which are added to the target service chain exceeds the preset proportion of the total number of the legal service chains in a cross-chain network, adding the target service chain to the cross-chain network, and generating a multi-signature address corresponding to the target service chain according to the voting results of the other legal service chains to the target access application; wherein the multi-signed address is used in a cross-chain transaction of the cross-chain network;
and if the voting results of other legal service chains to the target access application show that the number of other legal service chains which approve the target service chain to be added does not exceed the preset proportion of the total number of the legal service chains in the cross-link network, not adding the target service chain to the cross-link network.
7. The method for managing service chaining based on the blockchain intelligent contract according to any one of claims 1 to 6, further comprising:
and after receiving voting results of the target access application submitted by other legal service chains, deleting the target access application from the service chain application list.
8. A system for managing service chaining based on a blockchain intelligent contract, the system being applied to a relay chain in a cross-chain network, the system comprising:
the access application processing module is used for receiving a target access application submitted by a target service chain and adding the target access application to a preset service chain application list; sending a voting application corresponding to the target access application to other legal service chains except the relay chain in the cross-link network; the voting application is used for indicating other legal service chains to vote for the target access application;
and the service link access management module is used for receiving the voting result of the target access application submitted by other legal service links and judging whether to add the target service link into the cross-link network or not according to the voting result of the target access application by other legal service links.
9. 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 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110143224.8A 2021-02-02 2021-02-02 Business link access management method and system based on blockchain intelligent contract Active CN112801662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110143224.8A CN112801662B (en) 2021-02-02 2021-02-02 Business link access management method and system based on blockchain intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110143224.8A CN112801662B (en) 2021-02-02 2021-02-02 Business link access management method and system based on blockchain intelligent contract

Publications (2)

Publication Number Publication Date
CN112801662A true CN112801662A (en) 2021-05-14
CN112801662B CN112801662B (en) 2023-07-04

Family

ID=75813677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110143224.8A Active CN112801662B (en) 2021-02-02 2021-02-02 Business link access management method and system based on blockchain intelligent contract

Country Status (1)

Country Link
CN (1) CN112801662B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723962A (en) * 2021-11-04 2021-11-30 中国信息通信研究院 Block chain authority management method and block chain system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590738A (en) * 2017-08-24 2018-01-16 阿里巴巴集团控股有限公司 Processing method, device and the server of selection common recognition node
CN108269190A (en) * 2018-01-17 2018-07-10 深圳四方精创资讯股份有限公司 Across chain method and its system based on across chain relaying platform
CN110868308A (en) * 2018-08-28 2020-03-06 傲为信息技术(江苏)有限公司 Block chain network access method and system
CN111741114A (en) * 2020-06-24 2020-10-02 陈鹏 System, method and equipment capable of monitoring cross-chain interaction based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590738A (en) * 2017-08-24 2018-01-16 阿里巴巴集团控股有限公司 Processing method, device and the server of selection common recognition node
CN108269190A (en) * 2018-01-17 2018-07-10 深圳四方精创资讯股份有限公司 Across chain method and its system based on across chain relaying platform
CN110868308A (en) * 2018-08-28 2020-03-06 傲为信息技术(江苏)有限公司 Block chain network access method and system
CN111741114A (en) * 2020-06-24 2020-10-02 陈鹏 System, method and equipment capable of monitoring cross-chain interaction based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723962A (en) * 2021-11-04 2021-11-30 中国信息通信研究院 Block chain authority management method and block chain system
WO2023077795A1 (en) * 2021-11-04 2023-05-11 中国信息通信研究院 Blockchain rights management method, blockchain system, device, program, and medium

Also Published As

Publication number Publication date
CN112801662B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN112765268B (en) Data privacy protection method, device and equipment based on block chain
CN110177124B (en) Identity authentication method based on block chain and related equipment
CN110517145B (en) Data transaction method based on multi-block chain and related equipment
US11403281B2 (en) Parallel blockchain processing
CN111080455A (en) Cross-border transaction method and device based on block chain and hardware equipment
CN112950201B (en) Node management method and related device applied to block chain system
CN113255014B (en) Data processing method based on block chain and related equipment
CN113689216A (en) Cross-chain transaction processing method and device, equipment, storage medium and program product
CN113890739B (en) Cross-blockchain authentication method and device, electronic equipment and medium
CN112187453A (en) Digital certificate updating method and system, electronic equipment and readable storage medium
CN112801662B (en) Business link access management method and system based on blockchain intelligent contract
CN115131022A (en) Block chain-based digital asset transaction method, device, equipment and medium
CN111182527B (en) OTA (over the air) firmware upgrading method and device, terminal equipment and storage medium thereof
CN115310920A (en) Management method, device and storage medium for cross-chain interoperation management based on governance chain
CN111209542B (en) Authority management method and device, storage medium and electronic equipment
CN111260421B (en) Electronic invoice management and control method and device based on block chain
CN117495373A (en) Block chain-based offline payment method and device
CN112788555B (en) Cross-operator telephone charge transfer settlement method, device and computing equipment
CN113890751A (en) Method, apparatus and readable storage medium for controlling voting of alliance link authority
CN102187345B (en) Midlet signing and revocation
CN112801661B (en) Block chain cross-chain rule management method and system
CN115526629A (en) Receipt transaction method and device based on block chain network and identity authentication device
CN113781230A (en) Transaction processing method and device based on block chain
CN112184246A (en) Account book management method, device, equipment and storage medium
CN112465642A (en) Method and system for realizing block chain transaction based on state channel

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