CN112801662B - Business link access management method and system based on blockchain intelligent contract - Google Patents

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

Info

Publication number
CN112801662B
CN112801662B CN202110143224.8A CN202110143224A CN112801662B CN 112801662 B CN112801662 B CN 112801662B CN 202110143224 A CN202110143224 A CN 202110143224A CN 112801662 B CN112801662 B CN 112801662B
Authority
CN
China
Prior art keywords
chain
service
target
legal
link
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
CN202110143224.8A
Other languages
Chinese (zh)
Other versions
CN112801662A (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 business link access management method and a business link access management system based on a blockchain intelligent contract, wherein the business link access management method is applied to a relay link in a cross-link 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 voting application corresponding to the target access application to other legal service chains except a relay chain in the cross-chain network; and receiving voting results of other legal service chains submitted to the target access application, and judging whether to add the target service chain into the cross-chain network according to the voting results of other legal service chains to the target access application. The business chain access management method and system based on the blockchain intelligent contract can realize comprehensive auditing of business chain access, support more cross-chain scenes and avoid centralized control.

Description

Business link access management method and system based on blockchain intelligent contract
Technical Field
The invention belongs to the technical field of blockchain, and particularly relates to a business link access management method and system based on a blockchain intelligent contract.
Background
As the technology of cross-chain is more and more mature, how information between different chains flows is a topic of cross-chain hotspots today. In the face of various cross-chain requirements, how to manage access to different service chains based on blockchain intelligent contracts is also a current urgent problem to be solved.
Most of the existing service link access modes are that a cross-link requirement exists between two links, the two sides negotiate to access a cross-link service to perform the cross-link operation, the process is relatively simple and convenient, and the following defects exist:
for confirmation of service link information, the existing service link access mode does not have a comprehensive auditing process, the existing cross-link scene is single, a multi-link to multi-link scene is not supported, the existing service link access audit has authority limit, only an administrator can conduct the verification, and the decentralization is not thorough.
Therefore, a new service link-in management scheme is needed to solve the above-mentioned problems.
Disclosure of Invention
The invention aims to provide a business link access management method and system based on a blockchain intelligent contract, which are used for solving the technical problems of incomplete auditing of business link access modes, single cross-link scene and incomplete decentralization in the prior art.
In a first aspect of the embodiment of the present invention, there is provided a method for managing service link access based on a blockchain intelligent contract, where the method is applied to a relay link in a cross-link 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 voting application corresponding to the target access application to other legal service chains except a relay chain in the cross-chain network; the voting application is used for indicating other legal service chains to vote on the target access application;
and receiving voting results of other legal service chains submitted to the target access application, and judging whether to add the target service chain into the cross-chain network according to the voting results of other legal service chains to the target access application.
In a second aspect of the embodiment of the present invention, there is provided a service link access management system based on a blockchain smart contract, the system being applied to a relay link in a cross-link 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 into a preset service chain application list; sending voting application corresponding to the target access application to other legal service chains except a relay chain in the cross-chain network; the voting application is used for indicating other legal service chains to vote on the target access application;
And the service link access management module is used for receiving voting results submitted by other legal service links to the target access application and judging whether the target service link is added into the cross-link network according to the voting results submitted by other legal service links to the target access 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 service link entry management method based on a blockchain intelligent contract 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 above-described blockchain smart contract-based service link entry management method.
The business link access management method and system based on the blockchain intelligent contract provided by the invention have the beneficial effects that:
1) In the invention, the addition of the target service chain requires the voting of other legal service chains in the cross-chain network, and each legal member in the cross-chain network has the voting right, so that the openness and the participation are strong, the comprehensive audit can be realized, and the problem that the decentralization is not thorough in the prior art can be effectively solved.
2) The business link access management method and system based on the blockchain intelligent contract are applied to relay links in a cross-link network, namely, one relay link can be connected with a plurality of legal business links, and more cross-link scenes are supported.
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 service link access based on a blockchain intelligent contract according to an embodiment of the invention;
FIG. 2 is a block diagram illustrating a business link access management system based on a blockchain smart 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 of a verification flow of a target access application according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a real-name system bidirectional verification process of voting results submitted by other legal service chains according to an embodiment of the present invention;
Fig. 6 is a schematic diagram of an application scenario of a service link access 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 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 service link access 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 a target service chain, and adding the target access application into a preset service chain application list.
In this embodiment, a new service chain (i.e., a target service chain) wants to join a certain cross-link network, needs to connect to a relay chain of the cross-link network, invokes a service chain joining interface of a real-name system contract with its own real-name system address to submit corresponding information (i.e., a target access application) to the relay chain, and the relay chain receives a 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 system contracts described by the embodiments of the invention are issued by relay chain nodes of relay chains of a cross-chain network.
S102: and sending 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 in an application manner, notifies a request for new link access, and ensures the awareness of legal members.
S103: and receiving voting results of other legal service chains submitted to the target access application, and judging whether to add the target service chain into the cross-chain network according to the voting results of other legal service chains to the target access application.
In this embodiment, the relay chain waits for all legal members (i.e. other legal service chains) to call the "voting interface" of the real-name system contract to perform voting confirmation by using their real-name system addresses, and determines whether to add the target service chain into the cross-chain network according to the voting result of the other legal service chains on the target access application.
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, before adding the target access application to the preset service link application list, the service link access management method 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 the following steps:
and adding the target access application which is checked successfully into a preset service chain application list.
In this embodiment, before the target access application is added to the preset service chain application list, the target access application may be checked, and only the target access application that is checked successfully is added to the preset service chain application list. And if the verification of the target access application fails, returning information of the failure of the verification of the access application to the target service chain.
Optionally, referring to fig. 4, 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, the target access application includes a chain name of the target service link, a chain type of the target service link, and a real-name system address of the target service link.
Verifying the target access application, including:
judging whether the chain type of the target service chain is legal, whether the chain name of the target service chain is in the added cross-chain service chain list, whether the real-name system address of the target service chain is in the confirmed member list, and whether the real-name system address of the target service chain is an effective transfer address of the call transaction.
If the link type of the target service link is legal, the link name of the target service link is not in the added cross-link service link list, the real-name system address of the target service link is not in the confirmed member list, and the real-name system address of the target service link is the effective transfer-out address of the call transaction, judging that the verification of the target access application is successful.
In this embodiment, the interface parameters of the "service chain joining interface" of the real-name contract are as follows:
table 1 interface parameters of "service chain join interface
Parameter name Description of the invention
ChainName Name of newly added service chain
ChainType Chain type of newly added service chain
MyAddress Newly addedReal-name address of service chain
In this embodiment, the target access application corresponds to the interface parameter of the "service chain joining interface" of the real-name contract, and the verification essence of the target access application is to verify each parameter in the target access application.
In this embodiment, the verification process may be as shown in fig. 4, that is:
checking whether the ChainType is legal, whether the ChainName is in the joined 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 the effective transfer-out address of the call transaction. If the ChainType is legal, the ChainName is not in the list of the added cross-link service chains, the MyAddress of the target service chain is not in the list of the confirmed members, and the MyAddress of the target service chain is the effective transfer address of the call transaction, the target access application verification is judged to be successful.
The confirmed member list comprises the chain names of all legal service chains which are added into the cross-chain network, and the confirmed member list comprises real-name system addresses of all legal service chains which are added into the cross-chain network.
In this embodiment, the current call transaction refers to the process of the target service chain calling the "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 access management method based on the blockchain intelligent contract provided by the embodiment of the present invention, before determining whether to join the target service link into the cross-link network according to voting results of other legal service links for the target access application, the service link access management method based on the blockchain intelligent contract may further include:
and carrying out real-name system bidirectional verification on voting results submitted by other legal service chains and applied for target access.
Correspondingly, judging whether to add the target service chain into the cross-chain network according to voting results of other legal service chains to the target access application, including:
and judging whether to add the target service chain into the cross-chain network according to voting results of other legal service chains successfully verified to the target access application.
In this embodiment, before judging whether to add the target service chain to the cross-chain network according to the voting results of other legal service chains for the target access application, real-name bidirectional verification can be performed on the voting results of other legal service chains submitted for the target access application, and only the voting results of other legal service chains successfully verified for the target access application are used in the subsequent judging process. If the verification fails, the voting failure information is returned 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 blockchain intelligent contract provided by the embodiment of the present invention, the voting result submitted by other legal service links for the target access application includes the link name of the target service link, the link type of the target service link, the voting result of other legal service links, the real-name system address of other legal service links, the common address provided by other legal service links for generating the multi-signature address of the target service link, and the public key corresponding to the common address provided by other legal service links.
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 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 a target access application, whether the real-name system address of the legal service chain is in a confirmed member list, whether the real-name system address of the legal service chain is an effective transfer address of the call transaction, whether the real-name system address of the legal service chain participates in voting of the target service chain, whether the voting result of the legal service chain is compliant, 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 compliant.
If the chain name of the target service chain is in the service chain application list, the chain type of the target service chain is consistent with the chain type of the target service chain in the target access application, the real-name system address of the legal service chain is in the confirmed member list, the real-name system address of the legal service chain is an effective transfer address of the call transaction, the real-name system address of the legal service chain does not participate in voting of the target service chain, the voting result of the legal service chain is in compliance, the normal address provided by the legal service chain and used for generating the multi-signature address of the target service chain and the public key corresponding to the normal address are in compliance, and the voting result of the legal service chain submitted to the target access application is successfully verified.
In this embodiment, the interface parameters of the "voting interface" of the real-name contract are shown in the following table:
table 2 interface parameters of "voting interface
Figure BDA0002930045160000071
In this embodiment, the voting results of the other legal service chains correspond to the interface parameters of the "voting interface" of the real-name contract, and the verification essence of the voting results of the other legal service chains is 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:
checking whether VoteChain is in a service chain application list, whether ChainType is consistent with the chain type of a target service chain in a target access application, whether MyAddress of a legal service chain is in a confirmed member list, whether MyAddress of the legal service chain is an effective transfer address of the call transaction, whether MyAddress of the legal service chain participates in voting of the target service chain, whether Status of the legal service chain is in compliance, and whether subAddress and subPubkey corresponding to the legal service chain are in compliance.
If VoteChain is in the service chain application list, the ChainType is consistent with the chain type of the target service chain in the target access application, the MyAddress of the legal service chain is in the confirmed member list, the MyAddress of the legal service chain is the effective transfer address of the call transaction, the MyAddress of the legal service chain does not participate in the voting of the target service chain, the Status compliance of the legal service chain, the subthread and the subPubkey compliance corresponding to the legal service chain are judged, the voting result verification of the target access application submitted by the legal service chain is judged to be successful, and if any one of the conditions is not satisfied, the voting result verification of the legal service chain is directly judged to be failed.
In this embodiment, both the sub address and the sub address are used to generate the multi-signature address of the target service chain.
In this embodiment, the current call transaction refers to the process that the legal service chain calls the "voting interface" of the real-name system contract with its own real-name system address.
In this embodiment, the purpose of verifying whether the MyAddress of the legal service chain is an effective address of the call transaction is to ensure that the contract caller is consistent with the MyAddress identity, and prevent malicious impersonation voting.
In this embodiment, as shown in fig. 5, after verification is successful, if it is determined that the target service chain is to be added to the cross-link network according to voting results of other legal service chains that are successful in verification, then a multi-signature address corresponding to the target service chain may be generated according to the SubAddress and the subpublic carried in the voting results, the target service chain is added to the added cross-link service chain list ConfirmedChains of the real-name system contract, the multi-signature address corresponding to the target service chain is written into the confirmed member list confirmedpots of the real-name system contract, and the target access application entry in the service chain application list NodeAplicationList is deleted.
From the above description, the invention manages the members and contracts of the chain by using a real-name system, the transaction process is traceable and can not be changed, and the disclosure is transparent. By combining the information of different service chains, the invention can realize complete and comprehensive cross-chain network service, realize information value transfer among different chains and is beneficial to establishing a harmonious and safe cross-chain ecological environment.
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, determining whether to join the target service link into the cross-link network according to voting results of other legal service links for the target access application includes:
if the voting results of other legal service chains on the target access application show that the number of other legal service chains which approve the addition of the target service chain exceeds the preset proportion of the total number of legal service chains in the cross-chain network, adding the target service chain into the cross-chain network, generating a multi-signature address corresponding to the target service chain according to the voting results of other legal service chains on the target access application, and sending information of successful addition to the target service chain. Wherein the multi-signature address is used in a cross-chain transaction across a chain network.
If the voting result of other legal service chains on the target access application shows that the number of other legal service chains which approve the joining of the target service chain does not exceed the preset proportion of the total number of legal service chains in the cross-chain network, the target service chain is not joined into the cross-chain network, and the joining failure information is sent to the target service chain.
The preset proportion can be set according to actual requirements, and is not limited herein.
In this embodiment, the target service chain is added to the cross-chain network, that is, the target service chain is added to the list of the added cross-chain service chains, and meanwhile, the embodiment also generates and stores a multi-signature address corresponding to the target service chain according to the voting results of other legal service chains on the target access application, so that the target service chain can perform subsequent cross-chain transactions.
In this embodiment, legal members have voting rights at the same time, and the target service chain only allows access if the target service chain obtains the support of the votes with the preset ratio, so that the possibility of incorrect connection is avoided, and malicious attacks are reduced.
In this embodiment, the information of each service chain accessing the cross-chain network is written into the real-name contract storage, and is permanently stored, and the legal member has the viewing authority.
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, the service link access management method based on the blockchain intelligent contract may further include:
and deleting the target access application from the service chain application list after receiving voting results of the target access application submitted by other legal service chains.
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 fig. 6 is taken as an example to describe the service link access scheme provided by the present invention.
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 mutually perform cross-chain operation. The service chain C also has a cross-chain requirement to join the network, and the application needs to be initiated first, and the members in the network perform voting confirmation and can join through the rear part. The specific operation process is as follows:
the relay chain node needs to issue real-name contracts first, the service chain C submits information for applying for joining, members of the service chain A and the service chain B call the real-name contracts to vote, bidirectional real-name system verification (the real-name system contract verifies the identity of a caller, the real-name system caller verifies the authenticity of the contract) is carried out during voting, the number of votes obtained by the service chain C is counted through the rear relay chain Z, if the service chain C obtains the number of votes with a preset proportion (for example, more than 60 percent is obtained), the joining of the service chain C is agreed, a multi-signature address corresponding to the service chain C is generated according to the common addresses and public key information of other legal members carried in the voting result, the service chain C and the multi-signature address corresponding to the service chain C are written into the contract state of the real-name contracts, and the service chain C is formally joined into a cross-chain 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-in based on blockchain intelligent contracts in the above embodiment, fig. 2 is a block diagram of a service link-in management system based on blockchain intelligent contracts 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 smart contract-based service link access management system 20 is applied to a relay chain in a cross-chain 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 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 on the target access application.
The service link access management module 22 is configured to receive voting results of other legal service links for the target access application, and determine whether to join the target service link in the cross-link network according to the voting results of other legal service links for the target access application.
Optionally, as a specific implementation manner of the service link access management system based on the blockchain intelligent contract provided by the embodiment of the present invention, the access application processing module 21 is further configured to verify the target access application before adding the target access application to the preset service link application list.
Correspondingly, adding the target access application to a preset service chain application list comprises the following steps:
and adding the target access application which is checked successfully into a preset service chain application list.
Optionally, as a specific implementation manner of the service link access management system based on the blockchain intelligent contract provided by the embodiment of the invention, the target access application includes a link name of the target service link, a link type of the target service link, and a real-name system address of the target service link.
Verifying the target access application, including:
judging whether the chain type of the target service chain is legal, whether the chain name of the target service chain is in the added cross-chain service chain list, whether the real-name system address of the target service chain is in the confirmed member list, and whether the real-name system address of the target service chain is an effective transfer address of the call transaction.
If the link type of the target service link is legal, the link name of the target service link is not in the added cross-link service link list, the real-name system address of the target service link is not in the confirmed member list, and the real-name system address of the target service link is the effective transfer-out address of the call transaction, judging that the verification of the target access application is successful.
Optionally, as a specific implementation manner of the service link access management system based on the blockchain intelligent contract provided by the embodiment of the present invention, the service link access management module 22 is further configured to perform real-name bidirectional verification on the voting result submitted by other legal service links for the target access application before determining whether to join the target service link in the cross-link network according to the voting result of the other legal service links for the target access application.
Correspondingly, judging whether to add the target service chain into the cross-chain network according to voting results of other legal service chains to the target access application, including:
and judging whether to add the target service chain into the cross-chain network according to voting results of other legal service chains successfully verified to the target access application.
Optionally, as a specific implementation manner of the service link access management system based on the blockchain intelligent contract provided by the embodiment of the present invention, the voting result submitted by other legal service links for the target access application includes a chain name of the target service link, a chain type of the target service link, a voting result of other legal service links, real-name addresses of other legal service links, common addresses provided by other legal service links for generating multi-signature addresses of the target service link, and public keys corresponding to the common addresses provided by other legal service links.
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 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 a target access application, whether the real-name system address of the legal service chain is in a confirmed member list, whether the real-name system address of the legal service chain is an effective transfer address of the call transaction, whether the real-name system address of the legal service chain participates in voting of the target service chain, whether the voting result of the legal service chain is compliant, 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 compliant.
If the chain name of the target service chain is in the service chain application list, the chain type of the target service chain is consistent with the chain type of the target service chain in the target access application, the real-name system address of the legal service chain is in the confirmed member list, the real-name system address of the legal service chain is an effective transfer address of the call transaction, the real-name system address of the legal service chain does not participate in voting of the target service chain, the voting result of the legal service chain is in compliance, the normal address provided by the legal service chain and used for generating the multi-signature address of the target service chain and the public key corresponding to the normal address are in compliance, and the voting result of the legal service chain submitted to the target access application is successfully verified.
Optionally, as a specific implementation manner of the service link access management system based on the blockchain intelligent contract provided by the embodiment of the present invention, determining whether to join the target service link into the cross-link network according to voting results of other legal service links for the target access application includes:
if the voting results of other legal service chains on the target access application show that the number of other legal service chains which agree to be added into the target service chain exceeds the preset proportion of the total number of legal service chains in the cross-chain network, adding the target service chain into the cross-chain network, and generating a multi-signature address corresponding to the target service chain according to the voting results of other legal service chains on the target access application. Wherein the multi-signature address is used in a cross-chain transaction across a chain network.
If the voting result of other legal service chains on the target access application shows that the number of other legal service chains which approve the addition of the target service chain does not exceed the preset proportion of the total number of legal service chains in the cross-chain network, the target service chain is not added into the cross-chain network.
Optionally, as a specific implementation manner of the service link access management system based on the blockchain intelligent contract provided by the embodiment of the present invention, the access application processing module 21 is further configured to delete the target access application from the service link application list after receiving the voting result of the target access application submitted by other legal service links.
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 service link management method based on the blockchain intelligent contract 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 (9)

1. A method for managing service link-in based on a blockchain intelligent contract, wherein the method is applied to a relay chain in a cross-chain network, the method comprising:
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 voting application corresponding to the target access application to other legal service chains except a relay chain in the cross-chain network; the voting application is used for indicating other legal service chains to vote on the target access application;
Receiving voting results of other legal service chains submitted to the target access application, and judging whether to add the target service chain into the cross-chain network according to the voting results of other legal service chains to the target access application;
the voting results submitted by the other legal service chains for the target access application comprise the chain name of the target service chain, the chain type of the target service chain, the voting results of the other legal service chains, real-name addresses of the other legal service chains, common addresses provided by the other legal service chains and used for generating multi-signature addresses of the target service chains, and public keys corresponding to the common addresses provided by the other legal service chains;
before judging whether to add the target service chain into the cross-chain network according to voting results of other legal service chains on the target access application, the method comprises the following steps:
carrying out real-name bidirectional verification on voting results submitted by other legal service chains and applied for target access;
correspondingly, the determining whether to add the target service chain to the cross-chain network according to the voting results of other legal service chains to the target access application includes:
judging whether to add the target service chain into the cross-chain network according to voting results of other legal service chains successfully verified to the target access application;
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 the chain name of a 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 system address of the legal service chain is in a confirmed member list, whether the real-name system address of the legal service chain is an effective transfer address of the call transaction, whether the real-name system address of the legal service chain participates in 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.
2. The blockchain smart contract-based service link access management method of claim 1, further comprising, before adding the target access application to a preset service link application list:
checking the target access application;
correspondingly, the adding the target access application to a preset service chain application list includes:
And adding the target access application which is checked successfully into a preset service chain application list.
3. The blockchain intelligent contract-based service link access management method according to claim 2, wherein the target access application comprises a link name of a target service link, a link type of the target service link, and a real-name address of the target service link;
the verifying the target access application includes:
judging whether the chain type of the target service chain is legal, whether the chain name of the target service chain is in a cross-chain service chain list, whether the real-name system address of the target service chain is in a confirmed member list, and whether the real-name system address of the target service chain is an effective transfer address of the call transaction;
if the link type of the target service link is legal, the link name of the target service link is not in the added cross-link service link list, the real-name system address of the target service link is not in the confirmed member list, and the real-name system address of the target service link is the effective transfer-out address of the call transaction, judging that the target access application verification is successful.
4. The method for managing service link access based on blockchain intelligent contracts according to claim 1, wherein if the chain name of a target service link is in a service link application list, the chain type of the target service link is consistent with the chain 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 an effective transfer address of the call transaction, the real-name address of the legal service link does not participate in voting of the target service link, the voting result of the legal service link is in conformity, the common address provided by the legal service link and used for generating a multi-signature address of the target service link, and the public key provided by the legal service link and corresponding to the common address are in conformity, the voting result of the legal service link submitted to the target access application is judged to be successful.
5. The method for managing service link access based on blockchain intelligent contracts according to claim 1, wherein the determining whether to join the target service link to the cross-link network according to the voting result of other legal service links for the target access application includes:
if the voting results of other legal service chains on the target access application show that the number of other legal service chains which agree to be added into the target service chain exceeds the preset proportion of the total number of legal service chains in a cross-chain network, adding the target service chain into the cross-chain network, and generating a multi-signature address corresponding to the target service chain according to the voting results of other legal service chains on the target access application; wherein the multi-signature address is used in a cross-chain transaction of the cross-chain network;
and if the voting results of other legal service chains on 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 legal service chains in the cross-chain network, the target service chain is not added into the cross-chain network.
6. The blockchain smart contract-based service link entry management method of any of claims 1 to 5, further comprising:
And deleting the target access application from the service chain application list after receiving voting results of other legal service chain submissions on the target access application.
7. A blockchain intelligence contract-based service link-in management system, 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 into a preset service chain application list; sending voting application corresponding to the target access application to other legal service chains except a relay chain in the cross-chain network; the voting application is used for indicating other legal service chains to vote on the target access application;
the service link access management module is used for receiving voting results of other legal service links on the target access application and judging whether the target service link is added into the cross-link network according to the voting results of other legal service links on the target access application;
the voting results submitted by the other legal service chains for the target access application comprise the chain name of the target service chain, the chain type of the target service chain, the voting results of the other legal service chains, real-name addresses of the other legal service chains, common addresses provided by the other legal service chains and used for generating multi-signature addresses of the target service chains, and public keys corresponding to the common addresses provided by the other legal service chains;
Before judging whether to add the target service chain into the cross-chain network according to voting results of other legal service chains on the target access application, the method comprises the following steps:
carrying out real-name bidirectional verification on voting results submitted by other legal service chains and applied for target access;
correspondingly, the determining whether to add the target service chain to the cross-chain network according to the voting results of other legal service chains to the target access application includes:
judging whether to add the target service chain into the cross-chain network according to voting results of other legal service chains successfully verified to the target access application;
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 the chain name of a 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 system address of the legal service chain is in a confirmed member list, whether the real-name system address of the legal service chain is an effective transfer address of the call transaction, whether the real-name system address of the legal service chain participates in 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.
8. 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 6 when the computer program is executed.
9. 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 6.
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 CN112801662A (en) 2021-05-14
CN112801662B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723962B (en) * 2021-11-04 2022-02-22 中国信息通信研究院 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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN111741114B (en) Chain-of-block-based supervision cross-chain interaction system, method and equipment
WO2020168937A1 (en) Block chain multi-party witness method, apparatus and device, and computer-readable storage medium
CN112765268B (en) Data privacy protection method, device and equipment based on block chain
CN110855777B (en) Node management method and device based on block chain
JP2021521555A (en) Blockchain consensus method, accounting nodes and nodes
WO2020119536A1 (en) Alliance chain information release control method and terminal device
WO2020228531A1 (en) Consortium blockchain governance method and apparatus, computer device and storage medium
CN110517145B (en) Data transaction method based on multi-block chain and related equipment
US11403281B2 (en) Parallel blockchain processing
CN112950201B (en) Node management method and related device applied to block chain system
CN110992178A (en) Verification method and device for block chain node, computer equipment and storage medium
CN111159753A (en) Block chain intelligent contract management method and system, storage medium and terminal
CN111429191A (en) Block chain-based electronic invoice flow management method, device and system
CN112801662B (en) Business link access management method and system based on blockchain intelligent contract
CN110321730A (en) A kind of method, block chain node and the storage medium of operation data processing
CN110659993A (en) Resource management method and device based on block chain network
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
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
CN117495373A (en) Block chain-based offline payment method and device
CN112801661B (en) Block chain cross-chain rule management method and system
CN113890751A (en) Method, apparatus and readable storage medium for controlling voting of alliance link authority
CN115526629A (en) Receipt transaction method and device based on block chain network and identity authentication device
CN114741446A (en) Data uplink method, device, terminal and storage medium

Legal Events

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