CN116523518A - Cross-channel data access method, system and storage medium based on blockchain - Google Patents

Cross-channel data access method, system and storage medium based on blockchain Download PDF

Info

Publication number
CN116523518A
CN116523518A CN202310796725.5A CN202310796725A CN116523518A CN 116523518 A CN116523518 A CN 116523518A CN 202310796725 A CN202310796725 A CN 202310796725A CN 116523518 A CN116523518 A CN 116523518A
Authority
CN
China
Prior art keywords
node
channel
intelligent contract
cross
transaction
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
CN202310796725.5A
Other languages
Chinese (zh)
Other versions
CN116523518B (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.)
China Iridium Digital Technology Co ltd
Original Assignee
China Iridium Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Iridium Digital Technology Co ltd filed Critical China Iridium Digital Technology Co ltd
Priority to CN202310796725.5A priority Critical patent/CN116523518B/en
Publication of CN116523518A publication Critical patent/CN116523518A/en
Application granted granted Critical
Publication of CN116523518B publication Critical patent/CN116523518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • 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

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a block chain-based cross-channel data access method, a system and a storage medium, comprising the following steps: acquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where a first node is located; if not, sending an intelligent contract installation request to a second node provided with the first role identity; receiving a request of the first node to install the intelligent contract, generating a first transaction and sending the first transaction to all nodes in the cluster; acquiring feedback results of all nodes in the cluster corresponding to the first transaction, and if the number of the nodes receiving the first transaction is greater than or equal to the number of the nodes in the consensus rule requirement, executing intelligent contract installation operation; if the intelligent contract is successfully installed, the intelligent contract is sent to the first node, so that the first node reads corresponding channel data through the intelligent contract, and the problems that the current block-chain-based cross-channel data access method is complicated in service program access, and a notary mechanism is selected in a cross-chain protocol, so that privacy leakage risk is generated are solved.

Description

Cross-channel data access method, system and storage medium based on blockchain
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a blockchain-based cross-channel data access method, system, and storage medium.
Background
In the alliance chain pair cross-chain technical scheme, hyperledger Fabric is an enterprise-level blockchain open source architecture scheme, fabric constructs isolation of service data of multiple chains by defining channels, each channel represents one service chain, and cross-channel data access is not supported currently, for example, a CA identity data service is an independent channel, and a data exchange service is an independent channel, so that a service system may need to access data of two channels in one transaction, for example, the CA identity data needs to be queried in data exchange.
In the existing alliance chain scheme, cross-channel data access sharing of transactions is completed, two modes are generally selected, one mode is to apply for adding the data access sharing to the channel in a node mode, and the data access sharing and accessing are performed as members of the channel, and the other mode is to complete specific cross-chain data access through a cross-chain protocol.
However, by applying for joining in a channel in a node manner, such a manner as to share and access data as a member of the channel would result in high costs and a complicated access service procedure; the center problem exists when a notary mechanism is selected in the cross-chain protocol, and the notary can monitor all transactions on the chain, so that the privacy disclosure risk problem can occur, and the access efficiency is low.
Disclosure of Invention
The embodiment of the application provides a block chain-based cross-channel data access method, a block chain-based cross-channel data access system and a block chain-based cross-channel data access storage medium, which are used for solving the technical problems that the existing block chain-based cross-channel data access method generates high cost, access service programs are complicated, and a notary mechanism is selected in a cross-chain protocol to have a centralization problem, so that notary can monitor all transactions on a chain to generate privacy leakage risk.
The first aspect of the present application provides a blockchain-based cross-channel data access method, including:
responding to a cross-channel data access request of a first node, and acquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if not, sending a request for installing the intelligent contract to the second node provided with the first role identity;
receiving a request for installing an intelligent contract sent by a first node, generating a first transaction, and sending the first transaction to all nodes in a cluster, wherein the first transaction comprises a signature of a second node;
acquiring feedback results of all nodes in the cluster corresponding to the first transaction, wherein the feedback results comprise receiving the first transaction or rejecting the first transaction, and if the number of the nodes receiving the first transaction is greater than or equal to the number of the nodes in the requirement of the consensus rule, after all the nodes execute the first transaction, executing the installation operation of the intelligent contract, and recording the operation result on a blockchain;
and if the intelligent contract is successfully installed, sending the intelligent contract to the first node so that the first node reads the data of the corresponding channel through the intelligent contract.
In some embodiments, the blockchain-based cross-channel data access method further includes:
responding to a cross-channel data access request of a first node, and acquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if yes, acquiring a cross-channel intelligent contract of the corresponding channel;
based on the cross-channel intelligent contract of the corresponding channel, the first node reads the data of the corresponding channel through the intelligent contract.
In some embodiments, if the smart contract is installed successfully, sending the smart contract to the first node, so that the first node reads the data of the corresponding channel through the smart contract includes:
if the intelligent contract is successfully installed, the intelligent contract is sent to the first node, and the first node sends a cross-channel data access request;
receiving a cross-channel data access request sent by a first node, and verifying whether the intelligent contract is an intelligent contract corresponding to the cross-channel data access request of the first node, and whether a second role identity of the first node has permission to call the intelligent contract; and if the intelligent contract is about the intelligent contract corresponding to the first node cross-channel data access request and the second role identity of the first node has the authority to call the intelligent contract, reading the data of the corresponding channel.
In some embodiments, the blockchain-based cross-channel data access method further includes:
if the number of the nodes receiving the first transaction is smaller than the number of the nodes in the requirement of the consensus rule, generating feedback information which is regarded as transaction failure and feeding back the feedback information to the second node.
In some embodiments, before the obtaining feedback results of the first transaction corresponding to all nodes in the cluster includes:
acquiring the operation result record on the block chain, and if the operation result record exists, acquiring the operation result; if the operation result is successful, checking whether the signature of the second node is legal, if so, receiving the first transaction, and if not, not receiving the first transaction; if the signature of the second node is not legal, checking whether the signature of the second node is legal, and if the signature of the second node is legal, receiving the first transaction.
In some embodiments, the second role identity of the first node is responsible for execution and reading operations of the intelligent contract for the business cross-channel application member; the first role identity of the second node is responsible for intelligent contract management operations such as installation, upgrading and the like for the member of the channel manager.
A second aspect of the present application provides a blockchain-based cross-channel data access system, to implement a blockchain-based cross-channel data access method as described in any one of the first aspects, including:
the first acquisition module is configured to respond to a cross-channel data access request of the first node and acquire whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if not, sending a request for installing the intelligent contract to the second node provided with the first role identity;
the system comprises a receiving module, a first transaction processing module and a second transaction processing module, wherein the receiving module is configured to receive a request for installing an intelligent contract sent by a first node and generate a first transaction, and the first transaction comprises a signature of a second node and is sent to all nodes in a cluster;
the second acquisition module is configured to acquire feedback results of all nodes in the cluster corresponding to the first transaction, wherein the feedback results comprise receiving the first transaction or rejecting the first transaction, and if the number of the nodes receiving the first transaction is greater than or equal to the number of the nodes in the consensus rule requirement, after all the nodes execute the first transaction, executing the installation operation of the intelligent contract, and recording the operation results on the blockchain;
and the third acquisition module is configured to send the intelligent contract to the first node if the intelligent contract is successfully installed, so that the first node acquires the data of the corresponding channel through the intelligent contract.
In some embodiments, the blockchain-based cross-channel data access system further includes:
the fourth acquisition module is configured to respond to the cross-channel data access request of the first node and acquire whether the cross-channel intelligent contract of the corresponding channel exists on the channel where the first node is located; if yes, acquiring a cross-channel intelligent contract of the corresponding channel;
and a fifth acquisition module configured to acquire data of the corresponding channel through the intelligent contract by the first node based on the cross-channel intelligent contract of the corresponding channel.
A third aspect of the present application provides a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of a blockchain-based cross-channel data access method according to any of the first aspects when the computer program is executed.
A fourth aspect of the present application provides a computer readable storage medium storing a computer program which when executed by a processor implements the steps of a blockchain-based cross-channel data access method of any of the first aspects above.
The embodiment of the application provides a cross-channel data access method, a system and a storage medium based on a blockchain, which comprise the following steps: responding to a cross-channel data access request of a first node, and acquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if not, sending a request for installing the intelligent contract to the second node provided with the first role identity; receiving a request for installing an intelligent contract sent by a first node, generating a first transaction, and sending the first transaction to all nodes in a cluster, wherein the first transaction comprises a signature of a second node; acquiring feedback results of all nodes in the cluster corresponding to the first transaction, wherein the feedback results comprise receiving the first transaction or rejecting the first transaction, and if the number of the nodes receiving the first transaction is greater than or equal to the number of the nodes in the requirement of the consensus rule, after all the nodes execute the first transaction, executing the installation operation of the intelligent contract, and recording the operation result on a blockchain; if the intelligent contract is successfully installed, the intelligent contract is sent to the first node, so that the first node reads data of a corresponding channel through the intelligent contract, and the problems that the current block chain-based cross-channel data access method generates high cost, the access business program is complicated, and a notary mechanism is selected in a cross-chain protocol, so that the notary can monitor all transactions on a chain, and privacy leakage risks are generated are solved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a blockchain-based cross-channel data access method in the present application;
FIG. 2 is a schematic diagram of a block chain based cross-channel data access system in the present application;
fig. 3 is a schematic structural diagram of a terminal in the present application.
Reference numerals illustrate:
1-a first acquisition module; 2-a receiving module; 3-a second acquisition module; 4-a third acquisition module; 5-a fourth acquisition module; 6-a fifth acquisition module; 7-a memory; an 8-processor; 9-computer program.
Detailed Description
In order to better understand the technical solutions in the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
Because in some technologies, a blockchain-based cross-channel data access method generates high cost, an access service program is complicated, and a centralized problem exists when a notary mechanism is selected in a cross-chain protocol, the notary can monitor all transactions on a chain so as to generate a privacy leakage risk, in order to solve the technical problem, the application provides a blockchain-based cross-channel data access method, a blockchain-based cross-channel data access system and a storage medium, and the blockchain-based cross-channel data access method, the blockchain-based cross-channel data access system and the storage medium are described below:
as can be seen from fig. 1, a first aspect of the present application provides a block chain-based cross-channel data access method, which includes: responding to a cross-channel data access request of a first node, and acquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if not, sending a request for installing the intelligent contract to the second node provided with the first role identity; firstly, inquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located, and if not, sending a request for installing the intelligent contract to a node provided with administrator membership; wherein the node provided with administrator membership and the first node should be on the same channel; receiving a request for installing an intelligent contract sent by a first node, generating a first transaction, and sending the first transaction to all nodes in a cluster, wherein the first transaction comprises a signature of a second node; before obtaining feedback results of the first transaction corresponding to all nodes in the cluster, the method includes: acquiring the operation result record on the block chain, and if the operation result record exists, acquiring the operation result; if the operation result is successful, checking whether the signature of the second node is legal, if so, receiving the first transaction, and if not, not receiving the first transaction; if the signature of the second node is not legal, checking whether the signature of the second node is legal, and if the signature of the second node is legal, receiving the first transaction; if the final result is that the first transaction is received, acquiring feedback results of all nodes in the cluster corresponding to the first transaction, wherein the feedback results comprise that the first transaction is accepted or rejected, and if the number of the nodes accepting the first transaction is greater than or equal to the number of the nodes in the requirement of the consensus rule, after all the nodes execute the first transaction, executing the installation operation of the intelligent contract, and recording the operation results on a blockchain; and if the intelligent contract is successfully installed, sending the intelligent contract to the first node so that the first node reads the data of the corresponding channel through the intelligent contract. If the smart contract is successfully installed, sending the smart contract to the first node, so that the first node reads the data of the corresponding channel through the smart contract, including: if the intelligent contract is successfully installed, the intelligent contract is sent to the first node, and the first node sends a cross-channel data access request; receiving a cross-channel data access request sent by a first node, and verifying whether the intelligent contract is an intelligent contract corresponding to the cross-channel data access request of the first node, and whether a second role identity of the first node has permission to call the intelligent contract; and if the intelligent contract is about the intelligent contract corresponding to the first node cross-channel data access request and the second role identity of the first node has the authority to call the intelligent contract, reading the data of the corresponding channel. Wherein access across multiple channels is enabled through the smart contract.
In this embodiment, the rights control invoked by the cross-channel contract is controlled by a member role, for example, setting the role identity as the business cross-channel application member responsible for the execution and reading operations of the intelligent contract; setting role identity as a member of a channel manager to be responsible for intelligent contract management operations such as installation, upgrading and the like; when a cross-channel contract is approximately defined, a member that can specify a particular role invokes the contract; the roles can be custom roles or roles carried by the system; it is to be appreciated, however, that a cross-channel intelligence contract, if present on channel a, must be invoked by member M having role R on channel a, where R and M are both roles or members on channel a. It will be appreciated that if a smart contract is to be invoked, the member must be on the channel on which the smart contract resides, and the member must be provided with, for example, business cross-channel application membership to make read calls to the smart contract. If custom rights control is required, a new policy type needs to be defined and implemented by writing a new sdk call entry. Defining a checking method of a corresponding strategy in authority checking of the section; however, the current policy is well defined in the code, and the logic of the policy is well defined in the code, so that different cross-channel intelligent contracts can not be used for allowing different roles to call. One method is that when judging to be a cross-channel contract, judging whether the role of the current caller is legal or not through the role appointed in the extension parameters of the intelligent contract; the precondition of this method is that the roles are customized first, then the roles are designated in the extension parameters when the intelligent contract is deployed, and finally different cross-channel contracts are called by different role members. It can be understood that if different intelligent contracts are set to correspond to different role members, the identities of the members in the channel where the intelligent contracts are located need to be determined first, when the intelligent contracts are deployed according to the determined membership, that is, when the intelligent contracts are installed, membership codes capable of calling the intelligent contracts are encoded into the intelligent contracts to perform installation operation, and finally, reading calling can be completed by different intelligent contracts corresponding to different role members on the channel where the intelligent contracts are located, so that diversity of authority control of cross-channel contract calling is increased.
In this embodiment, the federation chain is for all nodes in the cluster, such as A, B, C, D, in this cluster X. Nodes a and B are on channel c 1 Nodes C and D are in lane C 2 Need to be specific to c 2 Can access c 1 The cross-channel intelligent contract code of the system is installed, authority settings owned by various roles are preset, such as a channel manager member is responsible for contract management operations of installation, upgrading and the like, and a business cross-channel application member is responsible for contract execution reading and writing operations and the like; a transaction requesting to install an intelligent contract is sent by assuming C as a role identity of a member having a channel manager through any one of C and D nodes in the cluster, wherein the transaction comprises a signature of C; in the process of consensus among nodes in the cluster, the nodes judge whether the transaction can be carried out or not through the operation result record of the intelligent contract before being recorded on the blockchain, the nodes can select whether the transaction is received or not after checking the signature of the transaction, and when the number of nodes meeting the requirement of the consensus rule exist to select to receive the transaction, the transaction is successfully consensus and is executed by all the nodes; when the node executes the transaction, if the transaction is successfully agreed, the installation of the intelligent contract is executed at the same time, the intelligent contract installation is completed at the moment, and the result of the intelligent contract operation (the intelligent contract installation is successful or the intelligent contract installation fails) is recorded on the block; the installation failure condition comprises the following steps: initiating that the member does not have role rights for intelligent contract installation; the number of nodes required in the consensus rule is not satisfied; and verification of the contract itself prior to installation, such as contract vulnerability checks, contract script size, whether the contract exists, etc.; and checking for anti-repeat transactions, such as the simultaneous existence of two identical installation contract transactions, the end result may result in failure of one of the transactions. In this cluster X, if the smart contract has been installed successfully, any node initiates a transaction regarding the smart contract that is executed,if D owning service cross-channel application member role identity is sent to a query method requesting to execute intelligent contracts; in the execution process of the query method, firstly, whether the identity role has the authority of calling the contract is judged, then, whether the contract is a cross-channel contract is judged, and the execution is carried out if the conditions are met, and the execution reading method of the cross-channel contract is completed by reading data of the cross-channel contract.
In this embodiment, the block chain-based cross-channel data access method further includes: responding to a cross-channel data access request of a first node, and acquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if yes, acquiring a cross-channel intelligent contract of the corresponding channel; based on the cross-channel intelligent contract of the corresponding channel, the first node reads the data of the corresponding channel through the intelligent contract. If the channel has the cross-channel intelligent contract of the corresponding channel, after the identity of the node is checked, the cross-channel intelligent contract can be directly utilized to access the cross-channel data if the node is met.
In this embodiment, the block chain-based cross-channel data access method further includes: if the number of the nodes receiving the first transaction is smaller than the number of the nodes in the requirement of the consensus rule, generating feedback information which is regarded as transaction failure and feeding back the feedback information to the second node.
In this embodiment, the second role identity of the first node is responsible for execution and reading operations of the intelligent contract for the business cross-channel application member; the first role identity of the second node is responsible for intelligent contract management operations such as installation, upgrading and the like for the member of the channel manager.
The method mainly solves the problem of cross-channel data access of a trust mechanism through a blockchain technology, forms a consensus record on a block in a transaction mode to complete the installation and execution method process of the cross-channel contract, forms a trust record for the operations, judges whether the operation action per se accords with the operation authority condition or not during each operation, realizes the decentralization, breaks the data island, completes the blockchain data sharing, and improves the operation efficiency.
As can be seen from fig. 2, a second aspect of the present application provides a blockchain-based cross-channel data access system, which implements a blockchain-based cross-channel data access method according to any of the foregoing embodiments, including: the first obtaining module 1 is configured to respond to a cross-channel data access request of the first node and obtain whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if not, sending a request for installing the intelligent contract to the second node provided with the first role identity; a receiving module 2, configured to receive a request for installing an intelligent contract sent by a first node, generate a first transaction, and send the first transaction to all nodes in a cluster, wherein the first transaction includes a signature of a second node; the second obtaining module 3 is configured to obtain feedback results of all nodes in the cluster corresponding to the first transaction, where the feedback results include accepting the first transaction or rejecting the first transaction, and if the number of nodes accepting the first transaction is greater than or equal to the number of nodes in the consensus rule requirement, after all nodes execute the first transaction, execute an installation operation of the intelligent contract, and record an operation result onto the blockchain; and the third acquisition module 4 is configured to send the intelligent contract to the first node if the intelligent contract is successfully installed, so that the first node acquires the data of the corresponding channel through the intelligent contract. The functional effects of the above-mentioned system in executing the above-mentioned method can be seen in the above-mentioned method embodiments, and are not described herein.
As can be seen from fig. 2, the block chain-based cross-channel data access system further includes: a fourth obtaining module 5, configured to obtain, in response to a cross-channel data access request of the first node, whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if yes, acquiring a cross-channel intelligent contract of the corresponding channel; and a fifth obtaining module 6, configured to be based on a cross-channel intelligent contract of the corresponding channel, so that the first node obtains data of the corresponding channel through the intelligent contract. The functional effects of the above-mentioned system in executing the above-mentioned method can be seen in the above-mentioned method embodiments, and are not described herein.
As can be seen from fig. 3, a third aspect of the present application provides a terminal comprising a memory 7, a processor 8 and a computer program 9 stored in the memory 7 and executable on the processor 8, the processor 8 implementing the steps of a blockchain-based cross-channel data access method according to any of the above embodiments when executing the computer program 9.
In this embodiment, the terminal may be a computing device such as a desktop computer, a notebook computer, a palm computer, or a cloud server. The terminal may include, but is not limited to, a processor 8, a memory 7. It will be appreciated by those skilled in the art that fig. 3 is merely an example of a terminal and is not intended to be limiting, and that more or fewer components than shown may be included, or certain components may be combined, or different components may be included, for example, the terminal may also include input and output devices, network access devices, buses, etc. The processor 8 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) 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 memory 7 may be an internal storage unit of the terminal, such as a hard disk or a memory of the terminal. The memory 7 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 memory 7 may also include both an internal storage unit and an external storage device of the terminal. The memory 7 is used for storing the computer program as well as other programs and data required by the terminal. The memory 7 may also be used for temporarily storing data that has been output or is to be output. The effects of each part of the above terminal when executing the above method can be referred to the above method embodiment, and will not be described herein.
As can be seen from fig. 3, a fourth aspect of the present application provides a computer readable storage medium storing a computer program 9, which computer program 9, when executed by a processor 8, implements the steps of a blockchain-based cross-channel data access method according to any of the above embodiments.
In this embodiment, those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. 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 application. In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms. 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 on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, each functional unit in each embodiment of the present application 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 integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium.
Based on such understanding, the present application implements all or part of the flow in a blockchain digital collection management method described in the foregoing embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the foregoing method embodiments when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the 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 computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals. The present application implements all or part of the flow in the above embodiments, and may also be implemented by a computer program product, which when executed on a terminal, causes the terminal to implement the steps of a blockchain digital collection management method in any of the above embodiments.
The foregoing detailed description of the embodiments of the present application has further described the objects, technical solutions and advantageous effects thereof, and it should be understood that the foregoing is merely a specific implementation of the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application, and any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of the embodiments of the present application.

Claims (10)

1. A blockchain-based cross-channel data access method, comprising:
responding to a cross-channel data access request of a first node, and acquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if not, sending a request for installing the intelligent contract to the second node provided with the first role identity;
receiving a request for installing an intelligent contract sent by a first node, generating a first transaction, and sending the first transaction to all nodes in a cluster, wherein the first transaction comprises a signature of a second node;
acquiring feedback results of all nodes in the cluster corresponding to the first transaction, wherein the feedback results comprise receiving the first transaction or rejecting the first transaction, and if the number of the nodes receiving the first transaction is greater than or equal to the number of the nodes in the requirement of the consensus rule, after all the nodes execute the first transaction, executing the installation operation of the intelligent contract, and recording the operation result on a blockchain;
and if the intelligent contract is successfully installed, sending the intelligent contract to the first node so that the first node reads the data of the corresponding channel through the intelligent contract.
2. The blockchain-based cross-channel data access method of claim 1, further comprising:
responding to a cross-channel data access request of a first node, and acquiring whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if yes, acquiring a cross-channel intelligent contract of the corresponding channel;
based on the cross-channel intelligent contract of the corresponding channel, the first node reads the data of the corresponding channel through the intelligent contract.
3. The blockchain-based cross-channel data access method of claim 1, wherein if the smart contract is successfully installed, sending the smart contract to the first node to cause the first node to read data of a corresponding channel through the smart contract comprises:
if the intelligent contract is successfully installed, the intelligent contract is sent to the first node, and the first node sends a cross-channel data access request;
receiving a cross-channel data access request sent by a first node, and verifying whether the intelligent contract is an intelligent contract corresponding to the cross-channel data access request of the first node, and whether a second role identity of the first node has permission to call the intelligent contract; and if the intelligent contract is about the intelligent contract corresponding to the first node cross-channel data access request and the second role identity of the first node has the authority to call the intelligent contract, reading the data of the corresponding channel.
4. The blockchain-based cross-channel data access method of claim 1, further comprising:
if the number of the nodes receiving the first transaction is smaller than the number of the nodes in the requirement of the consensus rule, generating feedback information which is regarded as transaction failure and feeding back the feedback information to the second node.
5. The blockchain-based cross-channel data access method of claim 1, wherein before obtaining feedback results of the first transaction corresponding to all nodes in the cluster, the method comprises:
acquiring the operation result record on the block chain, and if the operation result record exists, acquiring the operation result; if the operation result is successful, checking whether the signature of the second node is legal, if so, receiving the first transaction, and if not, not receiving the first transaction; if the signature of the second node is not legal, checking whether the signature of the second node is legal, and if the signature of the second node is legal, receiving the first transaction.
6. A blockchain-based cross-channel data access method according to claim 3, wherein the second role identity of the first node is responsible for the execution and reading operations of the intelligent contract for the business cross-channel application member; the first role identity of the second node is responsible for intelligent contract management operations such as installation, upgrading and the like for the member of the channel manager.
7. A blockchain-based cross-channel data access system implementing a blockchain-based cross-channel data access method as in any of claims 1-6, comprising:
the first acquisition module (1) is configured to respond to a cross-channel data access request of the first node and acquire whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if not, sending a request for installing the intelligent contract to the second node provided with the first role identity;
a receiving module (2) configured to receive a request for installing an intelligent contract sent by a first node and generate a first transaction, wherein the first transaction comprises a signature of a second node, and send the first transaction to all nodes in a cluster;
the second acquisition module (3) is configured to acquire feedback results of all nodes in the cluster corresponding to the first transaction, wherein the feedback results comprise receiving the first transaction or rejecting the first transaction, and if the number of the nodes receiving the first transaction is greater than or equal to the number of the nodes in the requirement of the consensus rule, after all the nodes execute the first transaction, the installation operation of the intelligent contract is executed, and the operation result is recorded on the blockchain;
and the third acquisition module (4) is configured to send the intelligent contract to the first node so that the first node acquires the data of the corresponding channel through the intelligent contract if the intelligent contract is successfully installed.
8. The blockchain-based cross-channel data access system of claim 7, further comprising:
a fourth obtaining module (5) configured to obtain, in response to a cross-channel data access request of the first node, whether a cross-channel intelligent contract of a corresponding channel exists on a channel where the first node is located; if yes, acquiring a cross-channel intelligent contract of the corresponding channel;
a fifth obtaining module (6) is configured to obtain data of the corresponding channel through the intelligent contract by the first node based on the cross-channel intelligent contract of the corresponding channel.
9. A terminal comprising a memory (7), a processor (8) and a computer program (9) stored in the memory (7) and executable on the processor (8), characterized in that the processor (8) implements the steps of a blockchain-based cross-channel data access method as claimed in any of claims 1 to 6 when executing the computer program (9).
10. A computer readable storage medium storing a computer program (9), characterized in that the computer program (9) when executed by a processor (8) implements the steps of a blockchain-based cross-channel data access method according to any of claims 1 to 6.
CN202310796725.5A 2023-07-03 2023-07-03 Cross-channel data access method, system and storage medium based on blockchain Active CN116523518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310796725.5A CN116523518B (en) 2023-07-03 2023-07-03 Cross-channel data access method, system and storage medium based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310796725.5A CN116523518B (en) 2023-07-03 2023-07-03 Cross-channel data access method, system and storage medium based on blockchain

Publications (2)

Publication Number Publication Date
CN116523518A true CN116523518A (en) 2023-08-01
CN116523518B CN116523518B (en) 2023-09-15

Family

ID=87390616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310796725.5A Active CN116523518B (en) 2023-07-03 2023-07-03 Cross-channel data access method, system and storage medium based on blockchain

Country Status (1)

Country Link
CN (1) CN116523518B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033270A (en) * 2023-10-08 2023-11-10 腾讯科技(深圳)有限公司 Chip, device and data processing method
CN117539644A (en) * 2024-01-09 2024-02-09 四川迅鳐科技有限公司 Block chain transaction query method, system and storage medium based on service chain

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889503A (en) * 2019-01-22 2019-06-14 平安科技(深圳)有限公司 Identity management method, electronic device and storage medium based on block chain
CN110147994A (en) * 2019-04-13 2019-08-20 山东公链信息科技有限公司 A kind of instant execution method of the block chain based on homomorphic cryptography
CN111159307A (en) * 2020-04-02 2020-05-15 支付宝(杭州)信息技术有限公司 Cross-link data subscription method and device
CN112417049A (en) * 2020-11-24 2021-02-26 杭州云象网络技术有限公司 Cross-chain interaction method and system based on block chain all-in-one machine
CN112686668A (en) * 2020-12-29 2021-04-20 东软集团股份有限公司 Alliance chain cross-chain system and method
CN112737862A (en) * 2021-01-08 2021-04-30 江苏众享金联科技有限公司 Cross-chain data sharing method based on intelligent contracts
US20210216651A1 (en) * 2020-01-13 2021-07-15 Mettler-Toledo (Changzhou) Precision Instruments Ltd. Method and apparatus for managing information about measurement device
CN113489671A (en) * 2021-05-11 2021-10-08 深圳前海移联科技有限公司 Cross-alliance-link communication method and device, computer equipment and storage medium
CN113723962A (en) * 2021-11-04 2021-11-30 中国信息通信研究院 Block chain authority management method and block chain system
CN113783698A (en) * 2021-08-26 2021-12-10 浙商银行股份有限公司 Supply chain financial method based on decentralized cross-chain
CN114221972A (en) * 2020-09-03 2022-03-22 中国电信股份有限公司 Relay blockchain system and cross-chain transaction method
CN114363352A (en) * 2022-01-05 2022-04-15 青岛理工大学 Block chain-based Internet of things system cross-chain interaction method
WO2022105600A1 (en) * 2020-11-19 2022-05-27 深圳前海微众银行股份有限公司 Blockchain cross-chain transaction method and apparatus based on internet-of-things
CN115310920A (en) * 2021-05-08 2022-11-08 腾讯科技(深圳)有限公司 Management method, device and storage medium for cross-chain interoperation management based on governance chain
CN115333751A (en) * 2022-08-10 2022-11-11 中铱数字科技有限公司 Decentralized digital certificate management method and system

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889503A (en) * 2019-01-22 2019-06-14 平安科技(深圳)有限公司 Identity management method, electronic device and storage medium based on block chain
CN110147994A (en) * 2019-04-13 2019-08-20 山东公链信息科技有限公司 A kind of instant execution method of the block chain based on homomorphic cryptography
US20210216651A1 (en) * 2020-01-13 2021-07-15 Mettler-Toledo (Changzhou) Precision Instruments Ltd. Method and apparatus for managing information about measurement device
CN111159307A (en) * 2020-04-02 2020-05-15 支付宝(杭州)信息技术有限公司 Cross-link data subscription method and device
CN114221972A (en) * 2020-09-03 2022-03-22 中国电信股份有限公司 Relay blockchain system and cross-chain transaction method
WO2022105600A1 (en) * 2020-11-19 2022-05-27 深圳前海微众银行股份有限公司 Blockchain cross-chain transaction method and apparatus based on internet-of-things
CN112417049A (en) * 2020-11-24 2021-02-26 杭州云象网络技术有限公司 Cross-chain interaction method and system based on block chain all-in-one machine
CN112686668A (en) * 2020-12-29 2021-04-20 东软集团股份有限公司 Alliance chain cross-chain system and method
CN112737862A (en) * 2021-01-08 2021-04-30 江苏众享金联科技有限公司 Cross-chain data sharing method based on intelligent contracts
CN115310920A (en) * 2021-05-08 2022-11-08 腾讯科技(深圳)有限公司 Management method, device and storage medium for cross-chain interoperation management based on governance chain
CN113489671A (en) * 2021-05-11 2021-10-08 深圳前海移联科技有限公司 Cross-alliance-link communication method and device, computer equipment and storage medium
CN113783698A (en) * 2021-08-26 2021-12-10 浙商银行股份有限公司 Supply chain financial method based on decentralized cross-chain
CN113723962A (en) * 2021-11-04 2021-11-30 中国信息通信研究院 Block chain authority management method and block chain system
CN114363352A (en) * 2022-01-05 2022-04-15 青岛理工大学 Block chain-based Internet of things system cross-chain interaction method
CN115333751A (en) * 2022-08-10 2022-11-11 中铱数字科技有限公司 Decentralized digital certificate management method and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
MARKUS NISSL ET AL.: "Towards Cross-Blockchain Smart Contracts", 《2021 IEEE INTERNATIONAL CONFERENCE ON DECENTRALIZED APPLICATIONS AND INFRASTRUCTURES (DAPPS)》, pages 85 - 94 *
文攀等: "适用于异构联盟链底层平台的跨链模型", 《无线电通信技术》, vol. 47, no. 03, pages 284 - 289 *
景旭等: "面向猕猴桃质量溯源的联盟链跨组织链上合同交易机制", 《农业机械学报》, vol. 53, no. 05, pages 282 - 290 *
王小畅: "基于区块链的分布式数据安全共享技术研究及应用", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 01, pages 138 - 126 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033270A (en) * 2023-10-08 2023-11-10 腾讯科技(深圳)有限公司 Chip, device and data processing method
CN117033270B (en) * 2023-10-08 2024-01-26 腾讯科技(深圳)有限公司 Chip, device and data processing method
CN117539644A (en) * 2024-01-09 2024-02-09 四川迅鳐科技有限公司 Block chain transaction query method, system and storage medium based on service chain
CN117539644B (en) * 2024-01-09 2024-03-26 四川迅鳐科技有限公司 Block chain transaction query method, system and storage medium based on service chain

Also Published As

Publication number Publication date
CN116523518B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN116523518B (en) Cross-channel data access method, system and storage medium based on blockchain
CN111163130B (en) Network service system and data transmission method thereof
CN110855777B (en) Node management method and device based on block chain
CN111506584B (en) Block chain-based service data processing method and device and computer equipment
CN111612614A (en) Public link-based sub-chain service system
CN111159753B (en) Block chain intelligent contract management method and system, storage medium and terminal
CN112087502B (en) Method, device and equipment for processing request and storage medium
CN111191212B (en) Block chain-based digital certificate processing method, device, equipment and storage medium
CN111666539B (en) Real estate resource management method, device, server and storage medium
CN111880919A (en) Data scheduling method, system and computer equipment
CN112950201A (en) Node management method and related device applied to block chain system
CN113689216A (en) Cross-chain transaction processing method and device, equipment, storage medium and program product
CN113328854B (en) Service processing method and system based on block chain
CN112989422B (en) Block chain system assembling method, device, electronic equipment and storage medium
CN111901384B (en) System, method, electronic device and readable storage medium for processing message
CN111182527B (en) OTA (over the air) firmware upgrading method and device, terminal equipment and storage medium thereof
CN112417407A (en) Data authorization processing method, device, equipment and storage medium
CN110825797B (en) Data exchange method and device
CN110704196B (en) Resource data transfer method, device and block chain system
CN113987598A (en) Block migration method and device
CN111369246B (en) Calling authentication method and device of intelligent contract, electronic equipment and storage medium
CN115225681A (en) Multi-robot cooperation method, electronic device, cloud server and storage medium
CN115983850A (en) Block chain-based device control method and related device
US20080301450A1 (en) Modular signature verification architecture
CN110932861A (en) Digital certificate management method, device, equipment and storage medium based on multiple CA

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