CN113495926A - Block output method of block chain network - Google Patents
Block output method of block chain network Download PDFInfo
- Publication number
- CN113495926A CN113495926A CN202111039651.8A CN202111039651A CN113495926A CN 113495926 A CN113495926 A CN 113495926A CN 202111039651 A CN202111039651 A CN 202111039651A CN 113495926 A CN113495926 A CN 113495926A
- Authority
- CN
- China
- Prior art keywords
- block
- chain network
- block chain
- transaction
- node
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000013500 data storage Methods 0.000 claims abstract description 42
- 230000007246 mechanism Effects 0.000 claims description 17
- 238000012795 verification Methods 0.000 claims description 3
- 230000000903 blocking effect Effects 0.000 abstract description 2
- 238000003860 storage Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 230000008520 organization Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000033764 rhythmic process Effects 0.000 description 3
- 238000013524 data verification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000005304 joining Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2219—Large Object storage; Management thereof
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
One or more embodiments of the present specification provide a method for blocking in a blockchain network. In consideration of the situation that data storage needs to be guaranteed that data storage transactions stored in the second blockchain network are submitted by the user identity registered in the first blockchain network, for this reason, a block output control device independent of the first blockchain network and the second blockchain network is deployed in the data storage system, and the block output control device controls block output operation of each node in the second blockchain network.
Description
Technical Field
One or more embodiments of the present disclosure relate to the field of terminal technologies, and in particular, to a block output method for a blockchain network.
Background
The block chain technology (also called as distributed ledger technology) is a decentralized distributed database technology, has the characteristics of decentralization, openness and transparency, no tampering, trustiness and the like, and is suitable for application scenes with high requirements on data reliability. Each node in the block chain network maintains the same block chain locally, determines a block to be written into the block chain based on a consensus mechanism among the nodes, and writes the determined block into the block chain (also called a block).
Based on this, a more efficient block output method of a blockchain network is provided.
Disclosure of Invention
One or more embodiments of the present disclosure provide a method for blocking in a blockchain network.
To achieve the above object, one or more embodiments of the present disclosure provide the following technical solutions:
according to a first aspect of one or more embodiments of the present specification, a block output method for a blockchain network is provided, which is applied to a data storage system, where the system includes a first blockchain network, a second blockchain network, and a block output control device; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network; the method comprises the following steps:
the block output control equipment acquires a block to be output, which is determined by each node of the second block chain network based on a consensus mechanism, and inquires whether a user identity for submitting the data storage transaction is registered in the first block chain network or not aiming at each data storage transaction in the block; then sending a control instruction to each node of the second block chain network;
and each node of the second block chain network takes out the data evidence transaction with the inquiry result of no from the block according to the control instruction, and then performs block-out operation on the block.
According to a second aspect of one or more embodiments of the present specification, another block output method for a blockchain network is provided, which is applied to a block output control device included in a data storage system, where the system further includes a first blockchain network and a second blockchain network; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network; the method comprises the following steps:
acquiring a block to be taken out which is determined by each node of a second block chain network based on a consensus mechanism, inquiring whether a user identity for submitting data storage transaction is registered in a first block chain network or not aiming at each data storage transaction in the block, and then sending a control instruction to each node of the second block chain network; and taking out the data evidence transaction with the inquiry result of no from the block by each node of the second block chain network according to the control instruction, and then executing block outlet operation on the block.
According to a third aspect of one or more embodiments of the present specification, a data storage and verification system is provided, which includes a first blockchain network, a second blockchain network, and an egress block control device; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network;
the block output control device acquires a block to be output, which is determined by each node of the second block chain network based on a consensus mechanism, and inquires whether a user identity for submitting the data storage transaction is registered in the first block chain network or not aiming at each data storage transaction in the block; then sending a control instruction to each node of the second block chain network;
and each node of the second block chain network takes out the data evidence transaction with the inquiry result of no from the block according to the control instruction, and then performs block-out operation on the block.
According to a fourth aspect of one or more embodiments of the present specification, a block output apparatus of a blockchain network is provided, where the block output apparatus is applied to a block output control device included in a data storage system, and the system further includes a first blockchain network and a second blockchain network; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network; the device comprises:
the control module is used for acquiring a block to be taken out which is determined by each node of the second block chain network based on a consensus mechanism, inquiring whether a user identity for submitting data storage transaction is registered in the first block chain network or not aiming at each data storage transaction in the block, and then sending a control instruction to each node of the second block chain network; and taking out the data evidence transaction with the inquiry result of no from the block by each node of the second block chain network according to the control instruction, and then executing block outlet operation on the block.
According to a fifth aspect of one or more embodiments of the present specification, there is provided a computing device comprising a memory, a processor; the memory is for storing computer instructions executable on the processor for implementing the method of the second aspect when executing the computer instructions.
In the above technical solution, in consideration of the situation that a data storage transaction stored in the second blockchain network needs to be submitted by a user identity registered in the first blockchain network, a block output control device independent of the first blockchain network and the second blockchain network is deployed in the data storage system, and the block output control device controls block output operations of each node in the second blockchain network. Specifically, for a block to be taken out in the second blockchain network, the block out control device needs to query one by one whether a user identity corresponding to each data certificate transaction in the block is registered in the first blockchain network, and in addition, each node of the second blockchain network takes out the data certificate transaction with a query result being no from the block in a mode of sending a control instruction to each node of the second blockchain network, and then the block out operation can be performed.
By the technical scheme, the data evidence transaction submitted by the untrusted user identity can be effectively prevented from being written into the blockchain by the second blockchain network.
Drawings
Fig. 1 is a flowchart illustrating a block output method of a blockchain network provided in the present specification.
Fig. 2 is a schematic diagram of a data storage system according to the present disclosure.
Fig. 3 is a schematic structural diagram of a block output device of a blockchain network provided in the present specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
The block chain technique is described first.
Blockchains are generally divided into three types: public chain (Public Blockchain), Private chain (Private Blockchain) and alliance chain (Consortium Blockchain). Furthermore, there may be a combination of the above types, such as private chain + federation chain, federation chain + public chain, and so on.
Among them, the most decentralized is the public chain. Participants joining the public chain (also referred to as nodes in the blockchain) can read the data records on the chain, participate in transactions, compete for accounting rights for new blocks, and so on. Moreover, each node can freely join or leave the network and perform related operations.
Private chains are the opposite, with the network's write rights controlled by an organization or organization and the data read rights specified by the organization. Briefly, a private chain may be a weakly centralized system with strict restrictions on nodes and a small number of nodes. This type of blockchain is more suitable for use within a particular establishment.
A federation chain is a block chain between a public chain and a private chain, and "partial decentralization" can be achieved. Each node in a federation chain typically has a physical organization or organization corresponding to it; the nodes are authorized to join the network and form a benefit-related alliance, and block chain operation is maintained together.
Based on the basic characteristics of a blockchain, a blockchain is usually composed of several blocks. The time stamps corresponding to the creation time of the block are recorded in the blocks respectively, and all the blocks form a time-ordered data chain according to the time stamps recorded in the blocks strictly.
The data generated outside the chain can be constructed into a standard transaction (transaction) format supported by the blockchain, then the data is issued to the blockchain, the node devices in the blockchain perform consensus on the transaction, and after the consensus is achieved, the node devices serving as accounting nodes in the blockchain package the transaction into blocks, and the persistent evidence is stored in the blockchain.
The consensus algorithm supported in the blockchain may include:
the first kind of consensus algorithm, namely the consensus algorithm that the node device needs to contend for the accounting right of each round of accounting period; consensus algorithms such as Proof of Work (POW), Proof of equity (POS), Proof of commission rights (DPOS), etc.;
the second kind of consensus algorithm, namely the consensus algorithm which elects accounting nodes in advance for each accounting period (without competing for accounting right); for example, a consensus algorithm such as a Practical Byzantine Fault Tolerance (PBFT) is used.
In a blockchain network employing a first type of consensus algorithm, node devices competing for billing rights can execute a transaction upon receipt. One of the node devices competing for the accounting right may win in the process of competing for the accounting right in the current round, and become an accounting node. The accounting node may package the received transaction with other transactions to generate a candidate block and send the generated candidate block or a block header of the candidate block to other node devices for consensus.
In the block chain network adopting the second type of consensus algorithm, the node equipment with the accounting right is agreed before accounting in the current round. Thus, the node device, after receiving the transaction, may send the transaction to the accounting node if it is not the accounting node of its own round. For the accounting node of the current round, the transaction may be performed during or before packaging the transaction with other transactions to generate candidate blocks. After generating the candidate block, the accounting node may send the candidate block or a block header of the candidate block to other node devices for consensus.
As described above, regardless of which consensus algorithm is used by the blockchain, the accounting node of the current round may package the received transaction to generate a candidate block and send the generated candidate block or the block header of the candidate block to other node devices for consensus verification. If no problem is verified after the other node device receives the candidate block or the block header of the candidate block, the candidate block can be added to the end of the original block chain as the latest block, thereby completing the accounting process of the block chain. The transaction contained in the block may also be performed by other nodes in verifying the new block or block header sent by the accounting node.
The blockchain technology can make the stored data difficult to be tampered, and therefore can be used for meeting the data storage requirement.
At present, a data card storage business mode is to construct a data card storage system including two blockchain networks (referred to as a first blockchain network and a second blockchain network herein), where the first blockchain network is used to register a user identity, that is, a user may submit relevant information for proving his identity to the first blockchain network, and the first blockchain network stores the information, so that the first blockchain network registers the user identity. It should be noted that the first blockchain network may register a plurality of user identities. It should be noted that the user may be an individual or an organization.
The second blockchain network is to: and storing the data evidence storing transaction submitted by the user identity registered in the first blockchain network. If a user wants to submit data generated by the user to a second blockchain network for storing the certificate, a data certificate storing transaction needs to be constructed, wherein the data certificate storing transaction comprises the data to be stored (or the hash value of the data to be stored) on one hand and user identity information (used for proving the identity of the user submitting the data certificate storing transaction) on the other hand. Typically, to ensure that the identity of the user submitting the data credentialing transaction is authentic, the user identity needs to be registered in the first blockchain network in advance.
Each node of the second blockchain network generally performs consensus according to a certain rhythm (e.g., periodically or whenever a certain amount of transactions are accumulated), and determines a block to be written into the blockchain (also referred to as a to-be-sent block) corresponding to the consensus in the round, where the block includes a batch of data storage transactions. Each node of the second blockchain network writes a block into the blockchain (performs a block out operation on the block), meaning that each data credentialing transaction in the block is written into the blockchain.
However, sometimes the second blockchain network accepts data credentialing transactions submitted by untrusted user identities (not registered in the first blockchain network) and possibly packages such data credentialing transactions into blocks. Therefore, how to effectively prevent the second blockchain network from writing the data authentication transaction submitted by the untrusted user identity into the blockchain is a technical problem to be solved urgently.
For this reason, in one or more embodiments provided in this specification, in consideration of the data storage scenario, it is necessary to ensure that a data storage transaction stored in the second blockchain network is submitted by a user identity registered in the first blockchain network, and for this purpose, a block output control device independent from the first blockchain network and the second blockchain network is deployed in the data storage system, and the block output control device controls block output operations of each node in the second blockchain network. Specifically, for a block to be taken out in the second blockchain network, the block out control device needs to query one by one whether a user identity corresponding to each data certificate transaction in the block is registered in the first blockchain network, and in addition, each node of the second blockchain network takes out the data certificate transaction with a query result being no from the block in a mode of sending a control instruction to each node of the second blockchain network, and then the block out operation can be performed.
Fig. 1 is a flowchart of a block output method of a blockchain network provided in the present specification, including the following steps:
s100: and the block outgoing control equipment acquires the block to be subjected to block outgoing, which is determined by each node of the second block chain network based on a consensus mechanism.
S102: the block output control equipment inquires whether the user identity for submitting the data storage transaction is registered in the first block chain network or not aiming at each data storage transaction in the block.
S104: after S102, the out-of-block control apparatus transmits a control instruction to each node of the second blockchain network.
S106: and each node of the second block chain network takes out the data evidence transaction with the inquiry result of no from the block according to the control instruction.
S108: after S106, the second blockchain network performs a block out operation on the block.
In one or more embodiments of the present description, a block control device is deployed in a data storage and verification system, and the block control device is configured to control block output operations of nodes of a second blockchain network.
The block determined by each node of the second blockchain network based on the consensus mechanism is a block to be written into the blockchain, that is, a block to be written out. The block output control device may monitor operation of each node in the second block chain network, and when each node in the second block chain network completes one consensus, obtain a block corresponding to the consensus.
It should be noted here that, for each node of the second blockchain network, it needs to be configured to: and responding to a control instruction sent by the block output control equipment to perform block output operation. Specifically, each node of the second blockchain network performs no block output operation for each round of consensus if no control instruction for the round of consensus is received.
It should be further noted that the consensus rhythm of each node of the first blockchain network is often not synchronous with the consensus rhythm of each node of the second blockchain network, a user may have previously submitted identity-related information to the first blockchain network before submitting a data deposit transaction to the second blockchain network, and the second blockchain network has not completed registration of the user identity when the first blockchain network has not yet reached to chain (i.e., has not yet reached to complete registration) the identity-related information submitted by the user, so that the data deposit transaction submitted by the user is packed into a block by each node of the second blockchain network and is ready to be written into the blockchain.
In order to wait for the first blockchain network to complete more user identities registration as much as possible, the block output control device may perform step S102 after each node of the second blockchain network has completed the current round of consensus and before the block output operation is to be performed, so as to query more trusted user identities as much as possible.
In some embodiments, when it is monitored that each node of the second blockchain network determines the block to be released based on the consensus mechanism, the block release control device may query, for each data deposit transaction in the block, whether a user identity that submits the data deposit transaction is registered in the first blockchain network.
In some embodiments, the block leaving control device may start timing when it is monitored that each node of the second blockchain network determines a block to be removed based on the consensus mechanism, and after a specified time period elapses, query, for each data deposit transaction in the block, whether a user identity for submitting the data deposit transaction is registered in the first blockchain network.
The specified duration can be set according to actual needs.
In some embodiments, the out-of-block control device may deploy a trusted execution environment (e.g., TEE) that may include out-of-block control logic to implement the functionality of the out-of-block control device (i.e., steps S100-S104). In this way it is ensured that the control instructions issued by the out-of-block control device are generated by authentic control logic.
Further, the trusted execution environment may also include a private key. The sending, by the block output control device, the control instruction to each node of the second blockchain network may specifically include: and the block output control device uses the private key to sign the control instruction in a trusted execution environment, and then sends the control instruction to each node of the second block chain network. Correspondingly, each node of the second blockchain network can take out the data deposit transaction with the inquiry result of no from the block under the condition that the signature verification of the control instruction is passed.
The signature of the control instruction serves to provide a trusted endorsement of the trusted execution environment. Each node of the second blockchain network verifies the signature of the control instruction, meaning that the control instruction is issued by a trusted execution environment and is sufficiently trusted.
In addition, in some embodiments of the present description, each node of the second blockchain network writes the created block or a hash value of the created block to the created block, the hash value being assigned by the created block control logic or the created block. Since the block output operation of each node of the second blockchain network is controlled by the block output control device, the block output control logic can be written into the created block for evidence storage at the beginning of creation of the second blockchain network for trust requirement.
Fig. 2 is a schematic structural diagram of a data storage system provided in the present specification, including a first blockchain network, a second blockchain network, and an egress block control device; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network;
the block output control device acquires a block to be output, which is determined by each node of the second block chain network based on a consensus mechanism, and inquires whether a user identity for submitting the data storage transaction is registered in the first block chain network or not aiming at each data storage transaction in the block; then sending a control instruction to each node of the second block chain network;
and each node of the second block chain network takes out the data evidence transaction with the inquiry result of no from the block according to the control instruction, and then performs block-out operation on the block.
Fig. 3 is a schematic structural diagram of a block output device of a blockchain network, which is applied to a block output control device included in a data storage system, where the system further includes a first blockchain network and a second blockchain network; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network; the device comprises:
the control module 301 obtains a block to be released, which is determined by each node of the second block chain network based on a consensus mechanism, and queries, for each data deposit transaction in the block, whether a user identity for submitting the data deposit transaction is registered in the first block chain network, and then sends a control instruction to each node of the second block chain network; and taking out the data evidence transaction with the inquiry result of no from the block by each node of the second block chain network according to the control instruction, and then executing block outlet operation on the block.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present description to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of one or more embodiments herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The above description is only for the purpose of illustrating the preferred embodiments of the one or more embodiments of the present disclosure, and is not intended to limit the scope of the one or more embodiments of the present disclosure, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the one or more embodiments of the present disclosure should be included in the scope of the one or more embodiments of the present disclosure.
Claims (11)
1. A block output method of a block chain network is applied to a data storage and certification system, and the system comprises a first block chain network, a second block chain network and block output control equipment; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network; the method comprises the following steps:
the block output control equipment acquires a block to be output, which is determined by each node of the second block chain network based on a consensus mechanism, and inquires whether a user identity for submitting the data storage transaction is registered in the first block chain network or not aiming at each data storage transaction in the block; then sending a control instruction to each node of the second block chain network;
and each node of the second block chain network takes out the data evidence transaction with the inquiry result of no from the block according to the control instruction, and then performs block-out operation on the block.
2. The method of claim 1, wherein a trusted execution environment is deployed on the out-of-block control device; the trusted execution environment includes block control logic for implementing the functionality of the block control device.
3. The method of claim 2, the trusted execution environment further comprising a private key;
the method for sending the control instruction to each node of the second blockchain network by the block outlet control device comprises the following steps:
the block output control device uses the private key to sign the control instruction in a trusted execution environment, and then sends the control instruction to each node of the second block chain network;
each node of the second block chain network takes out the data evidence transaction with the inquiry result of no from the block according to the control instruction, and the method comprises the following steps:
and under the condition that the signature verification of the control command is passed, each node of the second block chain network takes out the data evidence transaction with the inquiry result of negative from the block.
4. The method of claim 1, further comprising:
and each node of the second block chain network discards the data evidence storing transaction with the negative query result, or returns the data evidence storing transaction with the negative query result to the cache.
5. The method of claim 1, wherein querying, for each data credentialing transaction in the tile, whether a user identity in the first blockchain network has registered to submit the data credentialing transaction comprises:
when it is monitored that each node of the second blockchain network determines the block to be taken out based on the consensus mechanism, whether the user identity for submitting the data deposit transaction is registered in the first blockchain network or not is inquired for each data deposit transaction in the block.
6. The method of claim 1, wherein querying, for each data credentialing transaction in the tile, whether a user identity in the first blockchain network has registered to submit the data credentialing transaction comprises:
when it is monitored that each node of the second block chain network determines a block to be taken out based on a consensus mechanism, timing is started, and after a specified time length, whether a user identity for submitting the data deposit transaction is registered in the first block chain network or not is inquired for each data deposit transaction in the block.
7. The method of claim 1, wherein each node of the second blockchain network writes the chunking control logic executed by the chunking control device or the hash value of the chunking control logic to the chunking block when creating the chunking block.
8. A block output method of a block chain network is applied to a block output control device included in a data storage system, and the system also comprises a first block chain network and a second block chain network; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network; the method comprises the following steps:
acquiring a block to be taken out which is determined by each node of a second block chain network based on a consensus mechanism, inquiring whether a user identity for submitting data storage transaction is registered in a first block chain network or not aiming at each data storage transaction in the block, and then sending a control instruction to each node of the second block chain network; and taking out the data evidence transaction with the inquiry result of no from the block by each node of the second block chain network according to the control instruction, and then executing block outlet operation on the block.
9. A data storage system comprises a first block chain network, a second block chain network and a block outlet control device; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network;
the block output control device acquires a block to be output, which is determined by each node of the second block chain network based on a consensus mechanism, and inquires whether a user identity for submitting the data storage transaction is registered in the first block chain network or not aiming at each data storage transaction in the block; then sending a control instruction to each node of the second block chain network;
and each node of the second block chain network takes out the data evidence transaction with the inquiry result of no from the block according to the control instruction, and then performs block-out operation on the block.
10. A block output device of a block chain network is applied to a block output control device included in a data storage system, and the system also comprises a first block chain network and a second block chain network; the first blockchain network is to: registering the user identity; the second blockchain network is to: storing data evidence storing transaction submitted by user identity registered in a first block chain network; the device comprises:
the control module is used for acquiring a block to be taken out which is determined by each node of the second block chain network based on a consensus mechanism, inquiring whether a user identity for submitting data storage transaction is registered in the first block chain network or not aiming at each data storage transaction in the block, and then sending a control instruction to each node of the second block chain network; and taking out the data evidence transaction with the inquiry result of no from the block by each node of the second block chain network according to the control instruction, and then executing block outlet operation on the block.
11. A computing device comprising a memory, a processor; the memory for storing computer instructions executable on the processor for implementing the method of claim 8 when executing the computer instructions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111039651.8A CN113495926A (en) | 2021-09-06 | 2021-09-06 | Block output method of block chain network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111039651.8A CN113495926A (en) | 2021-09-06 | 2021-09-06 | Block output method of block chain network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113495926A true CN113495926A (en) | 2021-10-12 |
Family
ID=77997036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111039651.8A Pending CN113495926A (en) | 2021-09-06 | 2021-09-06 | Block output method of block chain network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113495926A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109508563A (en) * | 2018-12-11 | 2019-03-22 | 南京大学 | Electronic document authenticity guarantee method based on block chain |
CN110278246A (en) * | 2019-05-23 | 2019-09-24 | 阿里巴巴集团控股有限公司 | It is a kind of to deposit card service transfer method, device and equipment for alliance's chain |
CN111182525A (en) * | 2019-12-25 | 2020-05-19 | 中国联合网络通信集团有限公司 | Method and device for storing data |
CN113256417A (en) * | 2021-05-14 | 2021-08-13 | 杭州链网科技有限公司 | Transaction sharing-based consensus block method and system |
CN113297561A (en) * | 2021-05-27 | 2021-08-24 | 复旦大学 | College entrance examination qualification authentication system based on SGX and block chain |
-
2021
- 2021-09-06 CN CN202111039651.8A patent/CN113495926A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109508563A (en) * | 2018-12-11 | 2019-03-22 | 南京大学 | Electronic document authenticity guarantee method based on block chain |
CN110278246A (en) * | 2019-05-23 | 2019-09-24 | 阿里巴巴集团控股有限公司 | It is a kind of to deposit card service transfer method, device and equipment for alliance's chain |
CN111182525A (en) * | 2019-12-25 | 2020-05-19 | 中国联合网络通信集团有限公司 | Method and device for storing data |
CN113256417A (en) * | 2021-05-14 | 2021-08-13 | 杭州链网科技有限公司 | Transaction sharing-based consensus block method and system |
CN113297561A (en) * | 2021-05-27 | 2021-08-24 | 复旦大学 | College entrance examination qualification authentication system based on SGX and block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110457875B (en) | Data authorization method and device based on block chain | |
CN110471984B (en) | Service processing method and device based on block chain and electronic equipment | |
CN107395557B (en) | Service request processing method and device | |
CN110471986B (en) | Bill real name getting method and device based on block chain and electronic equipment | |
CN111159307B (en) | Cross-link data subscription method and device | |
CN111026789B (en) | Block chain-based electronic bill query method and device and electronic equipment | |
CN110163590B (en) | Payment withholding method and device based on block chain, electronic equipment and storage medium | |
CN111818185B (en) | Method and device for starting intelligent contract, electronic equipment and storage medium | |
CN110189122B (en) | Method and device for anchoring time for data on block chain and electronic equipment | |
CN113327165A (en) | Transaction method based on block chain | |
CN111192146B (en) | Correction method and device for block chain data | |
CN112200567A (en) | Resource management method and device based on block chain and electronic equipment | |
US20240078551A1 (en) | Blockchain-based user element authorization methods and apparatuses | |
CN111047327A (en) | Intelligent contract execution method, device and equipment | |
CN114710507A (en) | Consensus method and block link point | |
CN110443612B (en) | Block chain-based reimbursement expense segmentation method and device and electronic equipment | |
CN113206893B (en) | Method for block synchronization and node joining block chain network | |
CN114529415A (en) | Transaction verification method and device based on block chain and electronic equipment | |
CN113935737A (en) | Random number generation method and device based on block chain | |
CN112258188B (en) | Processing method, device, equipment and system for block chain transaction | |
CN112291321B (en) | Service processing method, device and system | |
CN113495926A (en) | Block output method of block chain network | |
CN115018499A (en) | Block chain-based digital certificate issuing method, device and system | |
CN111383008B (en) | Block chain transfer method and device based on account model | |
CN113761496A (en) | Identity verification method and device based on block chain and electronic equipment |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240918 Address after: Room 803, floor 8, No. 618 Wai Road, Huangpu District, Shanghai 200010 Applicant after: Ant blockchain Technology (Shanghai) Co.,Ltd. Country or region after: China Address before: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province Applicant before: Alipay (Hangzhou) Information Technology Co.,Ltd. Country or region before: China |