CN116523518B - 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 PDFInfo
- Publication number
- CN116523518B CN116523518B CN202310796725.5A CN202310796725A CN116523518B CN 116523518 B CN116523518 B CN 116523518B CN 202310796725 A CN202310796725 A CN 202310796725A CN 116523518 B CN116523518 B CN 116523518B
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000009434 installation Methods 0.000 claims abstract description 23
- 238000004590 computer program Methods 0.000 claims description 20
- 230000004044 response Effects 0.000 claims description 2
- 230000007246 mechanism Effects 0.000 abstract description 6
- 238000007726 management method Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 239000004744 fabric Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy 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, wherein the method comprises 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
Technical Field
The present application 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 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 application provides a cross-channel data access method based on a blockchain, which comprises 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;
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.
The second aspect of the present application provides a blockchain-based cross-channel data access system, which implements the blockchain-based cross-channel data access method according to any one of the first aspect, 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 as in any of the first aspects above 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 solution 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 accordance with the present application;
FIG. 2 is a schematic diagram of a blockchain-based cross-channel data access system in accordance with the present application;
fig. 3 is a schematic structural diagram of a terminal according to 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 make the technical solution of the present application better understood by those skilled in the art, the technical solution of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application 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 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, the first aspect of the present application provides a block chain 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; 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 successfullyAny node initiates a transaction related to the smart contract to be executed, and if the D owning service cross-channel application member role identity is used for sending a query method for requesting to execute the smart contract; 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 application mainly solves the problem of cross-channel data access method of trust mechanism by using block chain technology, forms consensus records on blocks in a transaction mode to complete the installation and execution method processes of cross-channel contracts, forms trust records 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 block chain 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 said memory 7 and executable on said processor 8, said processor 8 implementing the steps of a blockchain-based cross-channel data access method according to any of the above embodiments when executing said 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 the embodiments 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 above 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 above 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 may also be implemented by a computer program product, which when run on a terminal causes the terminal to execute the steps of a blockchain digital collection management method according to any of the above embodiments.
The foregoing detailed description of the embodiments of the present application further illustrates the purposes, technical solutions and advantageous effects of the embodiments of the present application, 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 (8)
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; the first role identity of the second node is responsible for installing and upgrading intelligent contract management operation for a member of a channel manager;
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;
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; 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; and the second role identity of the first node is responsible for the execution and reading operation of the intelligent contract for the business cross-channel application member.
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, 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.
4. 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.
5. A blockchain-based cross-channel data access system implementing a blockchain-based cross-channel data access method as in any of claims 1-4, 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; the first role identity of the second node is responsible for installing and upgrading intelligent contract management operation for a member of a channel manager;
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;
a third obtaining module (4) configured to send the smart contract to the first node if the smart contract is successfully installed, so that the first node obtains data of a corresponding channel through the smart 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; 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; and the second role identity of the first node is responsible for the execution and reading operation of the intelligent contract for the business cross-channel application member.
6. The blockchain-based cross-channel data access system of claim 5, 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.
7. 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 4 when executing the computer program (9).
8. 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 as claimed in any of claims 1 to 4.
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 CN116523518A (en) | 2023-08-01 |
CN116523518B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117033270B (en) * | 2023-10-08 | 2024-01-26 | 腾讯科技(深圳)有限公司 | Chip, device and data processing method |
CN117539644B (en) * | 2024-01-09 | 2024-03-26 | 四川迅鳐科技有限公司 | Block chain transaction query method, system and storage medium based on service chain |
Citations (14)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113111389A (en) * | 2020-01-13 | 2021-07-13 | 梅特勒-托利多(常州)精密仪器有限公司 | Information management method and device of measuring equipment |
-
2023
- 2023-07-03 CN CN202310796725.5A patent/CN116523518B/en active Active
Patent Citations (14)
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 |
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)
Title |
---|
Towards Cross-Blockchain Smart Contracts;Markus Nissl et al.;《2021 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPS)》;第85-94页 * |
基于区块链的分布式数据安全共享技术研究及应用;王小畅;《中国优秀硕士学位论文全文数据库 (信息科技辑)》(第01期);第I138-126页 * |
适用于异构联盟链底层平台的跨链模型;文攀等;《无线电通信技术》;第47卷(第03期);第284-289页 * |
面向猕猴桃质量溯源的联盟链跨组织链上合同交易机制;景旭等;《农业机械学报》;第53卷(第05期);第282-290页 * |
Also Published As
Publication number | Publication date |
---|---|
CN116523518A (en) | 2023-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116523518B (en) | Cross-channel data access method, system and storage medium based on blockchain | |
CN110855777B (en) | Node management method and device based on block chain | |
CN111163130B (en) | Network service system and data transmission method thereof | |
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 | |
CN111666539B (en) | Real estate resource management method, device, server and storage medium | |
CN111191212B (en) | Block chain-based digital certificate processing method, device, equipment and storage medium | |
CN112989422B (en) | Block chain system assembling method, device, electronic equipment 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 | |
CN109729063B (en) | Information processing method and information processing system applied to encryption machine | |
CN113689216A (en) | Cross-chain transaction processing method and device, equipment, storage medium and program product | |
CN112448956A (en) | Authority processing method and device of short message verification code and computer equipment | |
CN113328854B (en) | Service processing method and system based on block chain | |
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 | |
CN113890751B (en) | Method, apparatus and readable storage medium for controlling federation chain rights voting | |
CN111369246B (en) | Calling authentication method and device of intelligent contract, electronic equipment and storage medium | |
CN113987598A (en) | Block migration method and device | |
CN115225681A (en) | Multi-robot cooperation method, electronic device, cloud server and storage medium | |
CN110932861A (en) | Digital certificate management method, device, equipment and storage medium based on multiple CA | |
US20240223390A1 (en) | Blockchain system | |
CN114546927B (en) | Data transmission method, core, computer readable medium, and electronic device | |
CN117528519B (en) | Method and device for realizing expansion of smart card |
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 |