Storage Splitting and Merging
By processing split and merge channel transactions in the blockchain system, the single point of failure and insufficient data redundancy problems of centralized databases are solved, and decentralized, secure data management and data splitting on the blockchain are achieved. Merged, improving system reliability and accessibility.
Patent Information
- Application Number
- CN202010534916.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-12
- Filing Date
- 2020-06-12
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-06-12
AI Technical Summary
Centralized databases make it difficult to effectively manage and recover data due to issues such as single points of failure, network dependencies, and insufficient data redundancy, and data/assets and their history cannot be easily split or merged in permissioned blockchains.
By implementing split and merge channel transactions in the blockchain system, generating split or merge blocks, allowing data/assets and their history to be copied or moved from one blockchain to another, utilizing smart contracts to manage asset status , and ensure data immutability and security through hash chaining.
It solves the problems of single point of failure and insufficient data redundancy of centralized databases, provides decentralized and secure data storage and management, realizes data splitting and merging on the blockchain, and improves the reliability and availability of the system. Accessibility.
Smart Images

Figure CN112084187B_ABST
Abstract
Description
Technical Field
[0001] The present application relates generally to database storage systems, and more particularly to storage splitting and merging. Background Art
[0002] A centralized database stores and maintains data in a single database (e.g., a database server) at one location. The location is typically a central computer, such as a desktop central processing unit (CPU), a server CPU, or a mainframe computer. Information stored in a centralized database can typically be accessed from multiple different points. Multiple users or client workstations can work simultaneously on a centralized database, for example based on a client / server configuration. Because it is located in a single location, a centralized database is easy to manage, maintain, and control, particularly for security purposes. In a centralized database, data redundancy is minimized because a single storage location for all data means that a given set of data has only one master record.
[0003] However, centralized databases suffer from significant drawbacks. For example, centralized databases have only one point of failure. In particular, if fault tolerance is not considered and a failure occurs (e.g., hardware, firmware, and / or software failure), all data in the database will be lost and the work of all users will be interrupted. In addition, centralized databases are highly dependent on network connections. As a result, the slower the connection, the longer it takes to access the database each time. Another disadvantage is that bottlenecks occur when centralized databases experience high traffic due to a single location. In addition, since the database maintains only one copy of the data, centralized databases provide limited access to the data. As a result, multiple devices cannot access the same piece of data at the same time without causing serious problems or risks of overwriting the stored data. In addition, since the database storage system has little or no data redundancy, it is difficult to recover accidentally lost data except through manual operations of backup storage.
[0004] Therefore, there is a need for a blockchain-based solution that overcomes these shortcomings and limitations. Permissionless blockchains keep all data residing in a single blockchain. Current and future applications using permissionless blockchains can share data / assets as well as the complete history of assets as needed. However, permissioned blockchains are set up for a single application or a group of applications. Therefore, the initial design of asset-to-blockchain mapping cannot be changed in a permissioned blockchain. Assets cannot be moved from one blockchain to another while preserving history. Although cross-channel transactions can be performed, the history of assets cannot be preserved.
[0005] Therefore, it is desirable to allow copying / moving data / assets and their history from one blockchain to another when merging or splitting blockchains. Summary of the invention
[0006] An example embodiment provides a system including a processor and a memory, wherein the processor is configured to perform one or more of the following: receiving a split transaction including a configuration transaction for a new channel; generating a split block including a split transaction payload and a block header, and sending the split block to a participant node to form a new channel based on the contents of the split block.
[0007] Another example embodiment provides a system including a processor and a memory, wherein the processor is configured to perform one or more of: receiving a merge channel transaction of multiple channels including a modification policy for the multiple channels, validating the merge channel transaction according to the modification policy, executing the merge channel transaction to generate a merge block, and providing the merge block to a participant node to merge the multiple channels into a new channel.
[0008] Another example embodiment provides a method comprising one or more of: receiving, by a subscriber, a split transaction comprising a configuration transaction for a new channel, generating, by the subscriber, a split block comprising the split transaction payload and a block header, and sending, by the subscriber, the split block to a participant node to form a new channel based on the contents of the split block.
[0009] Another example embodiment provides a method comprising one or more of: receiving, by a subscriber node, a merge channel transaction for multiple channels including a modification policy for the multiple channels, validating, by the subscriber node, the merge channel transaction according to the modification policy, executing, by the subscriber node, the merge channel transaction to generate a merge block, and providing, by the subscriber node, the merge block to a participant node to merge the multiple channels into a new channel.
[0010] Another example embodiment provides a non-transitory computer-readable medium comprising instructions that, when read by a processor, cause the processor to perform one or more of the following: receiving a split transaction comprising a configuration transaction for a new channel; generating a split block comprising a split transaction payload and a block header, and sending the split block to a participant node to form a new channel based on the contents of the split block.
[0011] Another example embodiment provides a non-transitory computer-readable medium including instructions that, when read by a processor, cause the processor to perform one or more of the following: receiving a merge channel transaction for a plurality of channels including a modification policy for the plurality of channels, validating the merge channel transaction according to the modification policy, executing the merge channel transaction to generate a merge block, and providing the merge block to a participant node to merge the plurality of channels into a new channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1A A network diagram of a system including a database according to an example embodiment is shown.
[0013] Figure 1B A network diagram of a system including a database according to an example embodiment is shown.
[0014] Figure 2A An example blockchain architecture configuration is shown according to an example embodiment.
[0015] Figure 2B A blockchain transaction flow is shown according to an example embodiment.
[0016] Figure 3A A licensed network according to an example embodiment is shown.
[0017] Figure 3B Another licensed network according to an example embodiment is shown.
[0018] Figure 4A A flow chart according to an example embodiment is shown.
[0019] Figure 4B Another flow chart according to an example embodiment is shown.
[0020] Figure 4C A flow chart according to an example embodiment is shown.
[0021] Figure 4D Another flow chart according to an example embodiment is shown.
[0022] Figure 5A An example system configured to perform one or more operations described herein is shown according to an example embodiment.
[0023] Figure 5B Another example system configured to perform one or more operations described herein is shown according to an example embodiment.
[0024] Figure 5C Another example system configured to utilize smart contracts according to an example embodiment is shown.
[0025] Figure 5D Yet another example system configured to utilize blockchain according to an example embodiment is shown.
[0026] Fig. 6A A process for adding a new block to a distributed ledger is shown according to an example embodiment.
[0027] Figure 6B The content of a new data block according to an example embodiment is shown.
[0028] Figure 6C A blockchain for digital content according to an example embodiment is shown.
[0029] Fig.6D Blocks are shown that may represent the structure of blocks in a blockchain according to example embodiments.
[0030] Figure 7 An example system is shown that supports one or more example embodiments. DETAILED DESCRIPTION
[0031] It will be readily appreciated that the instant components, as generally described and illustrated in the figures herein, may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of embodiments of at least one of the methods, devices, non-transitory computer-readable media, and systems, as illustrated in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments.
[0032] The instant features, structures, or characteristics described throughout the specification may be combined or eliminated in any suitable manner in one or more embodiments. For example, the use of the phrases "example embodiments," "some embodiments," or other similar language throughout the specification refers to the fact that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment. Thus, the appearance of the phrases "example embodiments," "in some embodiments," "in other embodiments," or other similar language throughout the specification does not necessarily all refer to the same set of embodiments, and the described features, structures, or characteristics may be combined or eliminated in any suitable manner in one or more embodiments.
[0033] In addition, although the term "message" may have been used in the description of the embodiment, the application can be applied to various types of networks and data. In addition, although certain types of connections, messages and signaling can be depicted in exemplary embodiments, the application is not limited to certain types of connections, messages and signaling.
[0034] Example embodiments provide methods, systems, components, non-transitory computer-readable media, devices, and / or networks that provide for splitting and merging of blockchains.
[0035] In one embodiment, the application utilizes a decentralized database (e.g., blockchain) as a distributed storage system, which includes multiple nodes that communicate with each other. The decentralized database includes an immutable data structure that can only be appended, similar to a distributed ledger, and can maintain records between mutually untrusted parties. Untrusted parties are referred to as peers or peer nodes in this article. Each peer maintains a copy of the database record, and no peer can modify the database record without reaching a consensus between the distributed peers. For example, peers can execute a consensus protocol to verify blockchain storage transactions, group storage transactions into blocks, and build hash chains on these blocks. To maintain consistency, this process forms an account book by sorting storage transactions. In various embodiments, permissioned and / or permissionless blockchains can be used. In a public or permissionless blockchain, anyone can participate without a specific identity. Public blockchains can involve native cryptocurrencies and can use consensus based on various protocols (e.g., proof of work (PoW)). On the other hand, a permissioned blockchain database provides secure interactions between a group of entities that have a common goal but do not fully trust each other, such as businesses that exchange funds, goods, information, etc.
[0036] Applications can leverage blockchains to arbitrarily manipulate programmable logic tailored for decentralized storage solutions and called “smart contracts” or “chaincodes.” In some cases, there may be dedicated chaincodes for managing functionality and parameters, called system chaincodes. Applications can further leverage smart contracts, which are trusted distributed applications that leverage the tamper-proof properties of the blockchain database and the underlying protocol between nodes, which is called endorsements or endorsement policies. Blockchain transactions associated with an application can be “endorsed” before being submitted to the blockchain, while unendorsed transactions are ignored. Endorsement policies allow chaincodes to specify endorsers of transactions in the form of a set of peer nodes required for endorsement. When a client sends a transaction to the peers specified in the endorsement policy, the transaction is executed to validate the transaction. After validation, the transaction enters the ordering phase, where a consensus protocol is used to generate an ordered sequence of endorsed transactions grouped into blocks.
[0037] Applications can utilize nodes that are communication entities of a blockchain system. A "node" can perform a logical function in the sense that multiple nodes of different types can run on the same physical server. Nodes are grouped in trust domains and are associated with logical entities that control them in various ways. Nodes can include different types, such as client or submitting client nodes, which submit transaction calls to endorsers (e.g., peers) and broadcast transaction proposals to ordering services (e.g., ordering nodes). Another type of node is a peer node, which can receive transactions submitted by clients, submit transactions and maintain a copy of the state and blockchain transaction ledger. Although not required, peers can also play the role of endorsers. Ordering service nodes or orderers are nodes that run communication services for all nodes and implement delivery guarantees, such as broadcasting to every peer node in the system when submitting transactions and modifying the world state of the blockchain, which is another name for the initial genesis block that usually contains control and setup information.
[0038] Applications can utilize a ledger that is an ordered, tamper-proof record of all state transitions of a blockchain. State transitions can be caused by chaincode invocations (i.e., transactions) submitted by participants (e.g., client nodes, ordering nodes, endorser nodes, peer nodes, etc.). Each participant (e.g., peer node) can maintain a copy of the ledger. A transaction may result in a set of asset key-value pairs being submitted to the ledger as one or more operands (e.g., create, update, delete, etc.). The ledger includes a blockchain (also called a chain) that stores immutable, ordered records in blocks. The ledger also includes a state database that maintains the current state of the blockchain.
[0039] Applications can utilize chains as transaction logs, structured as hash-linked blocks, and each block contains a sequence of N transactions, where N is equal to or greater than 1. The block header includes the hash of the block transaction, as well as the hash of the previous block header. In this way, all transactions on the ledger can be ordered and cryptographically linked together. Therefore, it is impossible to tamper with the ledger data without breaking the hash link. The hash of the most recently added blockchain block represents every transaction that occurred previously on the chain, thereby ensuring that all peer nodes are in a consistent and trusted state. The chain can be stored on the peer node file system (i.e. local, attached storage, cloud, etc.), effectively supporting the append-only nature of blockchain workloads.
[0040] The current state of the immutable ledger represents the latest values for all keys included in the chain's transaction log. Because the current state represents the latest key values known to the channel, it is sometimes referred to as the world state. Chaincode invocations execute transactions against the current state data of the ledger. To make these chaincode interactions efficient, the latest values of the keys can be stored in a state database. The state database may be just an indexed view of the chain's transaction log, so it can be regenerated from the chain at any time. The state database can be automatically restored (or generated on demand) at peer startup and before accepting transactions.
[0041] Some benefits of the instant solution described herein include methods and systems for splitting and merging blockchains. Exemplary embodiments solve the problems of time and trust by extending the properties of databases (e.g., immutability, digital signatures) and a single source of truth. Exemplary embodiments provide solutions for splitting and merging blockchains. Blockchain networks may be homogenous based on asset types and rules for managing assets based on smart contracts.
[0042] Blockchain differs from traditional databases in that blockchain is not a central storage, but a decentralized, immutable and secure storage, where nodes must share changes to records in the storage. Certain properties inherent to blockchain that contribute to the realization of blockchain include, but are not limited to, immutable ledgers, smart contracts, security, privacy, decentralization, consensus, endorsement, accessibility, etc., which will be further described herein. According to various aspects, due to the inherent and unique immutable reliability, security, privacy, allowed decentralization, availability of smart contracts, endorsement and accessibility of blockchain, a system for splitting and merging blockchains is implemented. In particular, blockchain ledger data is immutable and provides an efficient method for splitting and merging blockchains. In addition, the use of encryption in blockchain provides security and establishes trust. Smart contracts manage the state of assets to complete the life cycle. The example blockchain is permissioned and decentralized. Therefore, each end user can have his own copy of the ledger for access. Multiple organizations (and peers) can join the blockchain network. Key organizations can act as endorsement peers to verify smart contract execution results, read sets, and write sets. In other words, the inherent characteristics of blockchain provide an efficient implementation of methods for splitting and merging blockchains.
[0043] One of the benefits of the example embodiments is to improve the functionality of a computing system by implementing a method for splitting and merging blockchains. Through the blockchain system described herein, a computing system can perform functions for splitting and merging blockchains by providing access to distributed ledgers, peers, encryption technology, MSP, event processing, and other functions. In addition, blockchains can also create business networks and allow any user or organization to participate in them. Therefore, blockchains are more than just a database. Blockchains have the ability to create business networks of users and internal / external organizations to collaborate and execute service processes in the form of smart contracts.
[0044] Example embodiments provide numerous benefits over traditional databases. For example, through blockchain, embodiments provide blockchain's inherent and unique immutable reliability, security, privacy, allowed decentralization, availability, endorsement, and accessibility of smart contracts.
[0045] At the same time, traditional databases cannot be used to implement example embodiments because they do not bring all parties onto the business network, do not create trusted collaboration, and do not provide efficient storage of digital assets. Traditional databases do not provide tamper-proof storage or preservation of stored digital assets. Therefore, the proposed blockchain splitting and merging method cannot be implemented in traditional databases.
[0046] At the same time, if a traditional database is used to implement the example embodiment, the example embodiment will suffer from unnecessary defects, such as low search capabilities, lack of security, and slow transaction speed. In addition, an automated method for blockchain splitting and merging will not be possible at all.
[0047] Thus, example embodiments provide specific solutions to problems in the art / area of managing blockchain networks.
[0048] Example embodiments also change how data is stored within the block structure of the blockchain. For example, digital asset data can be securely stored within a specific portion of a data block (i.e., in a header, data segment, or metadata). By storing digital asset data in a data block of the blockchain, the digital asset data can be attached to an immutable blockchain ledger through a hash-linked chain of blocks. In some embodiments, the data block can be different from a traditional data block by not storing personal data associated with the digital asset in the traditional block structure of the blockchain with the digital asset. By removing personal data associated with the digital asset, the blockchain can provide the benefits of anonymity based on immutable reliability and security.
[0049] According to an exemplary embodiment, a method and system for splitting or merging blockchains is provided. According to an exemplary embodiment, two special blocks can be used to merge and split blockchains. The merge and split blocks can record:
[0050] - Current network consensus for merge / split;
[0051] - Network membership of the new blockchain; and
[0052] - Asset partitioning of the new blockchain (i.e. only one asset exists in one of the new blockchains).
[0053] The merge block may include k previous hashes and configuration metadata. The split block may include a predicate for splitting assets between blockchains and configuration metadata. According to an exemplary embodiment, the split block may split the blockchain into k new blockchains (or channels). The split block is semantically similar to other configuration blocks. The split block may include a predicate that maps each asset in the original blockchain to one of the new blockchains - i.e., assetBelongsToasset(1;k). The split block is agreed upon by the original member nodes. The split block may have a header including information about the previous block on the original channel (e.g., block number, signature, previous hash timestamp, etc.). The split block may include a split transaction payload associated with the asset. The split block may also contain a split configuration transaction for the channel (e.g., C1...Ck), and a signature of the split transaction payload. The split configuration may be included in the split transaction. The split block serves as the origin block of k new channels / blockchains. According to an exemplary embodiment, the split operation may be implemented as follows. The submitter (i.e., one of the channel members) creates a split transaction payload using a configuration transaction for k new channels (e.g., C1...Ck). The submitter can obtain the split transaction payload signature based on the configuration policy of the channel transaction, and can aggregate the split transactions together. If there is no pending transaction, the orderer can immediately receive and execute the split transaction. The orderer can then create a split block, and the split block can be sent to the participant node. The node verifies and accepts the split block. Then, a new channel / blockchain is formed based on the split block content. After the channel is split, all nodes now have the split block. Each node can investigate the configuration to get details about which channels the node now belongs to. Each node can apply the assetBelongsTo method to get the data that needs to be retained and the data to be removed for each channel. Moreover, the node can determine which smart contracts to retain / remove for each channel. Channels are independent and can be modified over time.
[0054] According to an exemplary embodiment, a merge block can merge k blockchains (channels) into one channel C. The header of the merge block can include a block number, a signature, and a timestamp. The merge block can include a hash of the previous blocks of all blockchain channels to be merged. The merge block can also include a configuration transaction and a merge transaction signature for the new channel C. The merge block serves as the origin block of the new channel / blockchain. According to an exemplary embodiment, all channels to be merged must share the same subscriber. A single representative of the k channels can put the merge transaction payload together. The representative can obtain a signature of the merge transaction payload from each of the k channels. The transaction payload for each channel can be generated based on the channel configuration containing the modification policy. The representative can put the transaction of the merged channel together and provide the transaction to the subscriber. The subscriber can verify the correctness of the transaction and can end all pending transactions at this time. The subscriber can then create a merge block (as described above) and send the merge block to all blockchain nodes. The nodes can verify and accept the merge block, and then the channel is merged.
[0055] Late-merge of blockchain channels, each node (among the late-merge members) looks at the list of channels being merged. Each node can get the blockchain for each channel that was not originally in the merged block and can apply those blocks. Each node can then create a mapping to the old data and smart contracts under the new channel namespace.
[0056] Figure 1A A logical network diagram for splitting a blockchain according to an example embodiment is shown.
[0057] refer to Figure 1A , the example network 100 includes a subscriber node 102 connected to a participant node 105. The subscriber node 102 can be connected to a blockchain 106. Although this example only describes one subscriber node 102 in detail, multiple such nodes can be connected to the blockchain 106. It should be understood that the subscriber node 102 may include additional components, and some components described herein may be removed and / or modified without departing from the scope of the subscriber node 102 disclosed herein. The subscriber node 102 may be a computing device or a server computer, etc., and may include a processor 104, which may be a semiconductor-based microprocessor, a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), and / or other hardware devices. Although a single processor 104 is shown, it should be understood that the subscriber node 102 may include multiple processors, multiple cores, etc. without departing from the scope of the subscriber node 102 system.
[0058] The subscriber node 102 may also include a non-transitory computer-readable medium 112 on which machine-readable instructions executable by the processor 104 may be stored. Examples of machine-readable instructions are shown as 114-118 and will be discussed further below. Examples of non-transitory computer-readable media 112 may include electronic, magnetic, optical, or other physical storage devices containing or storing executable instructions. For example, the non-transitory computer-readable medium 112 may be a random access memory (RAM), an electrically erasable programmable read-only memory (EEPROM), a hard disk, an optical disk, or other type of storage device.
[0059] Processor 104 may retrieve, decode, and execute machine-readable instructions 114 to receive a split transaction including a configuration transaction for a new channel. Blockchain 106 network may be configured to manage transactions for multiple participant nodes using one or more smart contracts. Sorter 102 may provide split blocks to node 105. Processor 104 may retrieve, decode, and execute machine-readable instructions 116 to generate a split block including a split transaction payload and a block header. Processor 104 may retrieve, decode, and execute machine-readable instructions 118 to send the split block to participant node 105 based on the content of the split block to form a new channel 107-108.
[0060] Figure 1B A logical network diagram for merging blockchains according to an example embodiment is shown.
[0061] refer to Figure 1B , the example network 110 includes a subscriber node 102 connected to a participant node 105. The subscriber node 102 can be connected to a blockchain / channel 107-108. Although this example only describes one subscriber node 102 in detail, multiple such nodes can be connected to the blockchain / channel 107-108. It should be understood that the subscriber node 102 may include additional components, and some components described herein may be removed and / or modified without departing from the scope of the subscriber node 102 disclosed herein. The subscriber node 102 may be a computing device or a server computer, etc., and may include a processor 104, which may be a semiconductor-based microprocessor, a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), and / or other hardware devices. Although a single processor 104 is shown, it should be understood that the subscriber node 102 may include multiple processors, multiple cores, etc. without departing from the scope of the subscriber node 102 system.
[0062] The subscriber node 102 may also include a non-transitory computer-readable medium 112 on which machine-readable instructions executable by the processor 104 may be stored. Examples of machine-readable instructions are shown as 114-120 and will be discussed further below. Examples of non-transitory computer-readable media 112 may include electronic, magnetic, optical, or other physical storage devices containing or storing executable instructions. For example, the non-transitory computer-readable medium 112 may be a random access memory (RAM), an electrically erasable programmable read-only memory (EEPROM), a hard disk, an optical disk, or other type of storage device.
[0063] The processor 104 may acquire, decode, and execute machine-readable instructions 114 to receive a merge channel transaction of multiple channels including a modification policy for multiple channels 107-108. The modification policy may include a modification policy for all merged channels 107-108. The blockchain / channel 107-108 may be configured to manage transactions of multiple participant nodes 105 using one or more smart contracts. The subscriber 102 may provide a merge block to the participant node 105. The processor 104 may acquire, decode, and execute machine-readable instructions 116 to verify the merge channel transaction based on the modification policy. The processor 104 may acquire, decode, and execute machine-readable instructions 118 to perform the merge channel transaction to generate a merge block. The processor 104 may acquire, decode, and execute machine-readable instructions 120 to provide the merge block to the participant node 105 to merge multiple channels 107-108 into a new channel 106.
[0064] Figure 2A A blockchain architecture configuration 200 is shown according to an example embodiment. Figure 2A, the blockchain architecture 200 may include certain blockchain units, such as a set of blockchain nodes 202. The blockchain nodes 202 may include one or more nodes 204-210 (these four nodes are shown by way of example only). These nodes participate in a variety of activities, such as blockchain transaction addition and verification processes (consensus). One or more of the blockchain nodes 204-210 may endorse transactions based on endorsement policies and may provide subscription services for all blockchain nodes in the architecture 200. The blockchain node may initiate a blockchain authentication and attempt to write a copy of the blockchain immutable ledger stored in the blockchain layer 216 that may also be stored on the underlying physical infrastructure 214. The blockchain configuration may include one or more applications 224, linked to an application programming interface (API) 222 to access and execute stored program / application code 220 (e.g., chain code, smart contracts, etc.) that can be created according to the customized configuration sought by the participants and can maintain its own state, control its own assets, and receive external information. It can be deployed as a transaction and installed on all blockchain nodes 204-210 by attaching it to the distributed ledger.
[0065] The blockchain foundation or platform 212 may include various layers of blockchain data, services (e.g., cryptographic trust services, virtual execution environments, etc.), and underlying physical infrastructure that may be used to receive and store new transactions and provide access to auditing parties seeking access to data entries. The blockchain layer 216 may expose interfaces that provide access to the virtual execution environment necessary to process program code and use the physical infrastructure 214. Cryptographic trust services 218 may be used to verify transactions such as asset exchange transactions and keep information private.
[0066] Figure 2A The blockchain architecture configuration can process and execute program / application code 220 via one or more interfaces exposed by the blockchain platform 212 and the services provided. Code 220 can control blockchain assets. For example, code 220 can store and transmit data and can be executed by nodes 204-210 in the form of smart contracts and related chain codes with their execution conditions or other code units. As a non-limiting example, smart contracts can be created to perform reminders, updates, and / or notifications of other changes, updates, etc. The smart contract itself can be used to identify rules related to authorization and access requirements and ledger usage. For example, split / merge transaction data 226 can be processed by one or more processing entities (e.g., virtual machines) included in the blockchain layer 216. Result 228 can include data blocks reflecting split or merged blocks. Physical infrastructure 214 can be used to retrieve any data or information described herein.
[0067] Smart contracts can be created through high-level applications and programming languages and then written to blocks in the blockchain. Smart contracts can include executable code that is registered, stored, and / or replicated by a blockchain (e.g., a distributed network of blockchain peers). A transaction is the execution of smart contract code that can be executed in response to the satisfaction of a condition associated with a smart contract. The execution of a smart contract can trigger trusted modifications to the state of a digital blockchain ledger. Modifications to the blockchain ledger caused by the execution of a smart contract can be automatically replicated throughout the distributed network of blockchain peers through one or more consensus protocols.
[0068] Smart contracts can write data to the blockchain in the format of key-value pairs. In addition, smart contract code can read values stored in the blockchain and use them in application operations. Smart contract code can write the output of various logical operations to the blockchain. The code can be used to create temporary data structures in a virtual machine or other computing platform. The data written to the blockchain can be public and / or can be encrypted and kept private. Temporary data used / generated by smart contracts is kept in memory by the provided execution environment and deleted once the data is identified as needed for the blockchain.
[0069] Chaincode may include a code interpretation of a smart contract with additional features. As described herein, chaincode may be a program code deployed on a computing network that is executed on-chain and validated by a chain validator during a consensus process. The chaincode receives the hash and retrieves from the blockchain a hash associated with a data template created using a previously stored feature extractor. If the hash value of the hashed identifier matches the hash value created from the stored identifier template data, the chaincode sends the authorization key to the requesting service. The chaincode may write data associated with the cryptographic details to the blockchain.
[0070] Figure 2B An example of a blockchain transaction flow 250 between nodes of a blockchain is shown according to an example embodiment. Figure 2B, a transaction flow may include a transaction proposal 291 sent by an application client node 260 to an endorsing peer node 281. The endorsing peer node 281 may verify the client signature and execute the chaincode function to initiate the transaction. The output may include a chaincode result, a set of key / value versions read in the chaincode (read set), and a set of key / values written in the chaincode (write set). If approved, a proposal response 292 is sent back to the client 260 along with the endorsement signature. The client 260 assembles the endorsement into a transaction payload 293 and broadcasts it to the ordering service node 284. The ordering service node 284 then delivers the ordered transaction as a block to all peers 281-283 on the channel. Each peer 281-283 may validate the transaction before committing to the blockchain. For example, a peer may check the endorsement policy to ensure that the correct assignment of the specified peer has signed the result and verified the signature against the transaction payload 293.
[0071] Reference again Figure 2B , the client node 260 initiates a transaction 291 by constructing a request and sending it to the peer node 281 acting as an endorser. The client 260 may include an application utilizing a supported software development kit (SDK) to generate a transaction proposal using the available APIs. The proposal is a request to invoke a chaincode function so that data can be read and / or written to the ledger (i.e., write a new key-value pair for an asset). The SDK may act as a shim, packaging the transaction proposal into an appropriate schema format (e.g., protocol buffers over remote procedure calls (RPCs)) and generating a unique signature for the transaction proposal using the client's cryptographic credentials.
[0072] In response, the endorsing peer 281 may verify that (a) the transaction proposal is formatted correctly, (b) the transaction has not been submitted in the past (replay attack protection), (c) the signature is valid, and (d) the submitter (in this example, client 260) is properly authorized to perform the proposed operation on the channel. The endorsing peer 281 may input the transaction proposal as a parameter to the invoked chaincode function. The chaincode is then executed against the current state database to produce a transaction result including a response value, a read set, and a write set. However, no updates have been made to the ledger at this point. In 292, the set of values is passed back to the SDK of client 260 along with the signature of the endorsing peer 281 as a proposal response 292, and the SDK of client 260 parses the payload for consumption by the application.
[0073] In response, the client 260 application checks / verifies the signature of the endorsing peer and compares the proposal response to determine if the proposal responses are the same. If the chaincode only queries the ledger, the application will check the query response and typically will not submit the transaction to the ordering node service 284. If the client application intends to submit the transaction to the ordering node service 284 to update the ledger, the application determines whether the specified endorsement policy has been implemented (i.e., whether all peer nodes required for the transaction endorse the transaction) before submitting. Here, the client may include only one of the multiple parties to the transaction. In this case, each client may have its own endorsing node, and each endorsing node is required to endorse the transaction. The architecture is such that even if the application chooses not to check the response or otherwise forward unendorsed transactions, the endorsement policy will still be enforced by the peers and maintained during the submission verification phase.
[0074] After successful checks, in step 293, client 260 assembles the endorsements into a transaction and broadcasts the transaction proposal and response within a transaction message to ordering nodes 284. The transaction may contain read / write sets, signatures of endorsing peers, and channel IDs. Ordering nodes 284 do not need to check the entire contents of a transaction in order to perform their operations, but rather ordering nodes 284 may simply receive transactions from all channels in the network, order them chronologically by channel, and create a transaction block for each channel.
[0075] The block of transactions is passed from the ordering node 284 to all peer nodes 281-283 on the channel. Transactions within the block 294 are validated to ensure that any endorsement policies are satisfied and that the ledger state of the read set variables has not changed since the transaction execution generated the read set. The transactions in the block are marked as valid or invalid. In addition, in step 295, each peer node 281-283 appends the block to the channel's chain and, for each valid transaction, commits the write set to the current state database. An event is emitted to notify the client application that the transaction (call) has been immutably attached to the chain and notifies whether the transaction was validated or invalid.
[0076] Figure 3A An example of a permissioned blockchain network 300 is shown, featuring a distributed, decentralized peer-to-peer architecture. In this example, a blockchain user 302 can initiate a transaction to a permissioned blockchain 304. In this example, a transaction can be a deployment, call, or query, and can be issued directly by a client application utilizing an SDK. The network can provide access to regulators such as auditors 306. The blockchain network operator 308 manages member permissions, such as registering regulators 306 as "auditors" and registering blockchain users 302 as "clients." Auditors may be limited to querying the ledger, while clients may be authorized to deploy, call, and query certain types of chaincodes.
[0077] Blockchain developers 310 can write chaincodes and client applications. Blockchain developers 310 can deploy chaincodes directly to the network through an interface. In order to include credentials from traditional data sources 312 in the chaincode, developers 310 can use out-of-band connections to access the data. In this example, blockchain user 302 connects to the permissioned blockchain 304 through peer node 314. Before conducting any transactions, peer node 314 retrieves the user's registration and transaction certificates from the certificate authority 316 that manages user roles and permissions. In some cases, blockchain users must have these digital certificates in order to conduct transactions on the permissioned blockchain 304. At the same time, users who attempt to use the chaincode may be required to verify their credentials on the traditional data source 312. In order to confirm the user's authorization, the chaincode can use an out-of-band connection to this data through the traditional processing platform 318.
[0078] Figure 3B Another example of a permissioned blockchain network 320 is shown, featuring a distributed, decentralized peer-to-peer architecture. In this example, a blockchain user 322 can submit a transaction to a permissioned blockchain 324. In this example, a transaction can be a deployment, call, or query, and can be issued directly through an API or the like by a client application utilizing an SDK. The network can provide access to regulators 326 such as auditors. The blockchain network operator 328 manages member permissions, such as registering regulators 326 as "auditors" and registering blockchain users 322 as "clients." Auditors may be limited to querying the ledger, while clients may be authorized to deploy, call, and query certain types of chaincodes.
[0079] Blockchain developers 330 write chaincodes and client applications. Blockchain developers 330 can deploy chaincodes directly to the network through an interface. To include credentials from a traditional data source 332 in the chaincode, developers 330 can use out-of-band connections to access the data. In this example, blockchain user 322 connects to the network through peer node 334. Before conducting any transactions, peer node 334 retrieves the user's registration and transaction certificates from certificate authority 336. In some cases, blockchain users must possess these digital certificates in order to conduct transactions on the permissioned blockchain 324. At the same time, users attempting to use the chaincode may be required to verify their credentials on the traditional data source 332. To confirm the user's authorization, the chaincode can use an out-of-band connection to this data through a traditional processing platform 338.
[0080] Figure 4A A flowchart 400 of an example method of splitting a blockchain according to an example embodiment is shown. Figure 4A , method 400 may include one or more steps described below.
[0081] Figure 4A The subscriber node 102 (see Figure 1A ) is a flowchart of an example method performed. It should be understood that Figure 4A The method 400 depicted in the embodiment may include additional operations, and some of the operations described therein may be removed and / or modified without departing from the scope of the method 400. For illustrative purposes, the description of the method 400 also refers to Figure 1A In particular, the processor 104 of the subscriber node 102 may perform some or all of the operations included in the method 400.
[0082] refer to Figure 4A At block 412, the processor 104 may receive a split transaction including a configuration transaction for a new channel. At block 414, the processor 104 may generate a split block including a split transaction payload and a block header. At block 416, the processor 104 may send the split block to the participant nodes to form a new channel based on the contents of the split block.
[0083] Figure 4B A flowchart 450 of an example method of splitting a blockchain according to an example embodiment is shown. Figure 4B , the method 450 may also include one or more of the following steps. At block 452, the processor 104 may check pending transactions. At block 454, the processor 104 may generate a split block after all pending transactions have been completed.
[0084] Figure 4C A flowchart 410 of an example method of merging blockchains according to an example embodiment is shown. Figure 4C , method 410 may include one or more steps described below.
[0085] Figure 4C The subscriber node 102 (see Figure 1B ) is performed. It should be understood that the method 410 depicted in FIG. 4 may include additional operations, and some of the operations described therein may be removed and / or modified without departing from the scope of the method 410. For illustrative purposes, the description of the method 410 also refers to Figure 1B In particular, the processor 104 of the subscriber node 102 may perform some or all of the operations included in the method 410.
[0086] refer to Figure 4CAt block 413, the processor 104 may receive a merge channel transaction for the plurality of channels including a modification policy for the plurality of channels. At block 415, the processor 104 may verify the merge channel transaction based on the modification policy. At block 417, the processor 104 may execute the merge channel transaction to generate a merge block. At block 419, the processor 104 may provide the merge block to the participant node to merge the plurality of channels into a new channel.
[0087] Figure 4D A flowchart 460 of an example method of merging blockchains according to an example embodiment is shown. Figure 4D , method 460 may also include one or more of the following steps. At box 462, the processor 104 may terminate the pending transaction before executing the merge channel transaction. The merging of multiple channels into a new channel may be performed based on the contents of the merge block. At box 464, the processor 104 may check the pending transactions. At box 466, after all pending transactions have been completed, the processor 104 may generate a merge block. At box 468, the processor 104 may generate a namespace for the new channel based on the configuration derived from the merge block. At box 470, the processor 104 may create a mapping of data and smart contracts from multiple channels under the namespace of the new channel.
[0088] Figure 5A An example system 510 is shown, including a physical infrastructure 510 configured to perform various operations according to an example embodiment. Figure 5A , the physical infrastructure 510 includes a module 512 and a module 514. The module 514 includes a blockchain 520 and a smart contract 530 (which may reside on the blockchain 520), and may perform any operation step 508 (in the module 512) included in any example embodiment. The step / operation 508 may include one or more embodiments described or depicted, and may represent output or written information written or read from one or more smart contracts 530 and / or blockchain 520. The physical infrastructure 510, the module 512, and the module 514 may include one or more computers, servers, processors, memories, and / or wireless communication devices. In addition, the module 512 and the module 514 may be the same module.
[0089] Figure 5B Another example system 540 is shown that is configured to perform various operations according to an example embodiment. Figure 5B, system 540 includes module 512 and module 514. Module 514 includes blockchain 520 and smart contract 530 (which may reside on blockchain 520), and may perform any operation step 508 (in module 512) included in the example embodiment. Step / operation 508 may include one or more embodiments described, and may represent output or written information written or read from one or more smart contracts 530 and / or blockchain 520. Physical infrastructure 510, module 512, and module 514 may include one or more computers, servers, processors, memories, and / or wireless communication devices. In addition, module 512 and module 514 may be the same module.
[0090] Figure 5C An example system configured to utilize a smart contract between contracting parties and an intermediary server configured to enforce the terms of the smart contract on a blockchain are shown in accordance with an example embodiment. Figure 5C , configuration 550 may represent a communication session, asset transfer session, or process driven by a smart contract 530, which explicitly identifies one or more user devices 552 and / or 556. The results of the execution of the smart contract may be managed by a server 554. The contents of the smart contract 530 may need to be digitally signed by one or more of the entities 552 and 556 that are parties to the smart contract transaction. The results of the execution of the smart contract may be written to the blockchain 520 as a blockchain transaction. The smart contract 530 resides on the blockchain 520, which may reside on one or more computers, servers, processors, memories, and / or wireless communication devices.
[0091] Figure 5D A system 560 including a blockchain is shown according to an example embodiment. Figure 5D In the example of , an application programming interface (API) gateway 562 provides a public interface for accessing blockchain logic (e.g., smart contracts 530 or other chaincodes) and data (e.g., distributed ledgers, etc.). In this example, the API gateway 562 is a public interface for executing transactions (calls, queries, etc.) on the blockchain by connecting one or more entities 552 and 556 to blockchain peers (i.e., servers 554). Here, the server 554 is a blockchain network peer component that holds a copy of the world state and the distributed ledger, allowing clients 552 and 556 to query data about the world state and submit transactions to the blockchain network, where, depending on the smart contract 530 and the endorsement policy, the endorsement peer will run the smart contract 530.
[0092] The above embodiments may be implemented in hardware, a computer program executed by a processor, firmware, or a combination thereof. The computer program may be embodied on a computer-readable medium such as a storage medium, for example, the computer program may reside in a random access memory ("RAM"), flash memory, read-only memory ("ROM"), erasable programmable read-only memory ("EPROM"), electrically erasable programmable read-only memory ("EEPROM"), registers, a hard disk, a removable disk, a compact disk read-only memory ("CD-ROM"), or any other form of storage medium known in the art.
[0093] An exemplary storage medium may be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Alternatively, the storage medium may be integrated with the processor. The processor and the storage medium may reside in an application specific integrated circuit ("ASIC"). In an alternative, the processor and the storage medium may reside as discrete components.
[0094] Fig. 6A A process 600 for adding a new block to a distributed ledger 620 is shown according to an example embodiment, and Figure 6B The content of a new data block structure 630 for a blockchain according to an example embodiment is shown. Fig. 6A , a client (not shown) can submit a transaction to blockchain nodes 611, 612, and / or 613. A client can be an instruction received from any source for enacting an activity on blockchain 620. As an example, a client can be an application that proposes a transaction for a blockchain on behalf of a requester (e.g., a device, an individual, or an entity). Multiple blockchain peers (e.g., blockchain nodes 611, 612, and 613) can maintain the state of the blockchain network and a copy of the distributed ledger 620. Different types of blockchain nodes / peers can exist in the blockchain network, including endorsement peers that simulate and endorse transactions proposed by clients and submission peers that verify endorsements, verify transactions, and submit transactions to the distributed ledger 620. In this example, blockchain nodes 611, 612, and 613 can act as endorser nodes, submitter nodes, or both.
[0095] The distributed ledger 620 includes a blockchain that stores immutable, sequential records in blocks and a state database 624 (current world state) that maintains the current state of the blockchain 622. There can be one distributed ledger 620 per channel, and each peer maintains a copy of its own distributed ledger 620 for each channel it belongs to. The blockchain 622 is a transaction log structured as hash-linked blocks, where each block contains a sequence of N transactions. A block may include Figure 6B The various components shown. Links to blocks ( Fig. 6A) can be generated by adding the hash value of the previous block header in the block header of the current block. In this way, all transactions on the blockchain 622 are ordered and cryptographically linked together to prevent tampering of the blockchain data without breaking the hash link. In addition, due to the link, the latest block in the blockchain 622 represents every transaction that came before it. The blockchain 622 can be stored on a peer-to-peer file system (local or attached storage), which supports append-only blockchain workloads.
[0096] The current state of the blockchain 622 and the distributed ledger 622 may be stored in a state database 624. Here, the current state data represents the latest values of all keys ever included in the chain transaction log of the blockchain 622. Chaincode invocations execute transactions against the current state in the state database 624. In order to make these chaincode interactions very efficient, the latest values of all keys are stored in the state database 624. The state database 624 may include an indexed view into the transaction log of the blockchain 622, so it can be regenerated from the chain at any time. The state database 624 may be automatically restored (or generated when needed) at the initiation of a peer before accepting a transaction.
[0097] The endorsing node receives the transaction from the client and endorses the transaction based on the simulation results. The endorsing node holds the smart contract that simulates the transaction proposal. When the endorsing node endorses the transaction, the endorsing node creates a transaction endorsement that is a signed response from the endorsing node to the client application, indicating the endorsement of the simulated transaction. The method of endorsing the transaction depends on the endorsement policy that can be specified in the chaincode. An example of an endorsement policy is "a majority of endorsing peers must endorse the transaction". Different channels may have different endorsement policies. The client application forwards the endorsed transaction to the ordering service 610.
[0098] The ordering service 610 accepts endorsed transactions, orders them into a block, and delivers these blocks to commit peers. For example, when a transaction threshold has been reached, a timer has expired, or other conditions, the ordering service 610 can initiate a new block. Fig. 6A In the example of , blockchain node 612 is a submitting peer that has received new data new data block 630 for storage on blockchain 620. The first block in a blockchain can be called a genesis block, including information about the blockchain, its members, data stored therein, etc.
[0099] The ordering service 610 may consist of a cluster of subscribers. The ordering service 610 does not process transactions, smart contracts, or maintain a shared ledger. Instead, the ordering service 610 may accept endorsed transactions and specify the order in which these transactions are submitted to the distributed ledger 620. The architecture of the blockchain network may be designed to make "ordering" (e.g., Solo, Kafka, BFT, etc.) a pluggable component.
[0100] Transactions are written to the distributed ledger 620 in a consistent order. The order of transactions is established to ensure that updates to the state database 624 are valid when submitted to the network. Unlike cryptocurrency blockchain systems (e.g., Bitcoin, etc.) where ordering is performed by solving cryptographic puzzles or mining, in this example, the parties to the distributed ledger 620 can choose the ordering mechanism that best suits the network.
[0101] When the ordering service 610 initializes a new data block 630, the new data block 630 may be broadcast to the submitting peers (e.g., blockchain nodes 611, 612, and 613). In response, each submitting peer verifies the transaction in the new data block 630 by checking to ensure that the read set and the write set still match the current world state in the state database 624. Specifically, the submitting peer may determine whether the read data that existed when the endorser simulated the transaction is the same as the current world state in the state database 624. When the submitting peer verifies the transaction, the transaction is written to the blockchain 622 on the distributed ledger 620, and the state database 624 is updated with the write data in the read-write set. If the transaction fails, that is, if the submitting peer finds that the read-write set does not match the current world state in the state database 624, the transaction ordered into the block will still be included in the block but it will be marked as invalid, and the state database 624 will not be updated.
[0102] refer to Figure 6B , a new data block 630 (also referred to as a data block) stored on the blockchain 622 of the distributed ledger 620 may include multiple data segments, such as a block header 640, block data 650, and block metadata 660. It should be understood that Figure 6B The various blocks and their contents shown in the figure, such as new data block 630 and its contents, are merely examples and are not meant to limit the scope of the example embodiments. New data block 630 may store transaction information for N (e.g., 1, 10, 100, 500, 1000, 2000, 3000, etc.) transactions within block data 650. New data block 630 may also include a link to a previous block (e.g., in Fig. 6A In particular, the block header 640 may include a hash of a previous block header. The block header 640 may also include a unique block number, a hash of the block data 650 of the new data block 630, and the like. The block number of the new data block 630 may be unique and may be assigned in various sequences, such as increments / sequentially starting from zero.
[0103] The block data 650 may store transaction information for each transaction recorded within the new data block 630. For example, the transaction data may include one or more of the following: transaction type, version, timestamp, channel ID of the distributed ledger 620, transaction ID, epoch, payload visibility, chaincode path (deploy tx), chaincode name, chaincode version, inputs (chaincode and function), client (creator) and other identification public keys and certificates, client signatures, endorser identities, endorser signatures, proposal hashes, chaincode events, response statuses, namespaces, read sets (a list of keys and versions read by a transaction, etc.), write sets (a list of keys and values, etc.), start keys, end keys, key lists, Merkel tree query digests, etc. Transaction data may be stored for each of the N transactions.
[0104] In some embodiments, block data 650 may also store new data 662 that adds additional information to the chain of hash-linked blocks in blockchain 622. The additional information includes one or more of the steps, features, processes, and / or actions described herein. Thus, new data 662 may be stored in an immutable log of blocks on distributed ledger 620. Some benefits of storing such new data 662 are reflected in the various embodiments disclosed and described herein. Although in Figure 6B , the new data 662 is described in the block data 650 , but may also be located in the block header 640 or the block metadata 660 .
[0105] The block metadata 660 may store multiple fields of metadata (e.g., as a byte array, etc.). The metadata fields may include a signature at the time of block creation, a reference to the last configuration block, a transaction filter that identifies valid and invalid transactions within the block, a last offset duration of an ordering service that orders blocks, etc. The signature, the last configuration block, and the subscriber metadata may be added by the ordering service 610. Meanwhile, the submitter of the block (e.g., blockchain node 612) may add validity / invalidity information based on endorsement policies, verification of read / write sets, etc. The transaction filter may include a byte array of size equal to the number of transactions in the block data 650 and a verification code that identifies whether the transaction is valid / invalid.
[0106] Figure 6CAn embodiment of a blockchain 670 for digital content according to embodiments described herein is shown. Digital content may include one or more files and related information. Files may include media, images, video, audio, text, links, graphics, animations, web pages, documents, or other forms of digital content. The immutable, append-only aspect of the blockchain may serve as a safeguard to protect the integrity, validity, and authenticity of the digital content, making it suitable for use in legal proceedings subject to admissibility rules, or in other contexts where it is desirable to present and use digital information in cases of evidence or otherwise. In such cases, the digital content may be referred to as digital evidence.
[0107] The blockchain can be formed in a variety of ways. In one embodiment, digital content can be included in the blockchain and can be accessed from it. For example, each block of the blockchain can store a hash value of reference information (e.g., header, value, etc.) along with the associated digital content. The hash value and the associated digital content can then be encrypted together. Therefore, the digital content of each block can be accessed by decrypting each block in the blockchain, and the hash value of each block can be used as a basis for referencing the previous block. It can be illustrated as follows:
[0108] Block 1 Block 2 … Block N
[0109] Hash value 1 Hash value 2 Hash value N
[0110] Digital content 1 Digital content 2 Digital content N
[0111] In one embodiment, the digital content may not be included in the blockchain. For example, the blockchain may store a cryptographic hash of the content of each block without any digital content. The digital content may be stored in another storage area or memory address in association with the hash value of the original file. The other storage area may be the same storage device used to store the blockchain, or it may be a different storage area, or even a separate relational database. The digital content of each block may be referenced or accessed by obtaining or querying the hash value of the block of interest, and then looking up a value with a value in the storage area stored corresponding to the actual digital content. For example, a database gatekeeper may be implemented. It may be illustrated as follows:
[0112]
[0113] exist Figure 6C In the example embodiment of FIG. 670 , blockchain 670 includes a plurality of blocks 678 1 , 678 2 , . . . , 678 3 that are cryptographically linked in an ordered sequence. N, where N ≥ 1. Used to link blocks 6781, 6782, ..., 678 N The encryption of can be any one of a number of keyed or non-keyed hash functions. In one embodiment, blocks 6781, 6782, ..., 678 N Processing is performed using a hash function that produces an n-bit alphanumeric output (where n is 256 or another number) from an input based on the information in the block. Examples of such hash functions include, but are not limited to, SHA-type (SHA stands for Secure Hash Algorithm) algorithms, Merkle-Damgard algorithms, HAIFA algorithms, Merkle-tree algorithms, random number-based algorithms, and non-collision-resistant PRF algorithms. In another embodiment, blocks 6781, 6782, ..., 6783 may be cryptographically linked by a function other than a hash function. N For purposes of illustration, the following description is made with reference to a hash function such as SHA-2.
[0114] Each block in the blockchain is 6781, 6782, ..., 678 N Includes a header, a file version, and a value. Due to the hashing operation in the blockchain, the header and value are different for each block. In one embodiment, the value may be included in the header. As described in more detail below, the version of the file may be the original file or a different version of the original file.
[0115] The first block 6781 in the blockchain is called the genesis block and includes a header 6721, an original file 6741, and an initial value 6761. The hashing scheme used in the genesis block and in fact in all subsequent blocks can vary. For example, all the information in the first block 6781 can be hashed together at once, or each piece of information or a portion of the information in the first block 6781 can be hashed separately, and then the separately hashed portions can be hashed.
[0116] The header 6721 may include one or more initial parameters, such as a version number, timestamp, random number, root information, difficulty level, consensus protocol, duration, media format, source, descriptive keywords, and / or other information related to the original file 6741 and / or the blockchain. The header 6721 may be generated automatically (e.g., by blockchain network management software) or may be manually generated by a blockchain participant. N Unlike the header in , header 6721 in the genesis block does not reference a previous block, simply because there is no previous block.
[0117] The original file 6741 in the origin block can be, for example, data captured by a device, which may or may not be processed before the device is included in the blockchain. The original file 6741 is received from a device, a media source, or a node through an interface of the system. The original file 6741 is associated with metadata, which can be generated manually or automatically by a user, a device, and / or a system processor, for example. The metadata can be included in the first block 6781 in association with the original file 6741.
[0118] The value 6761 in the origin block is an initial value generated based on one or more unique attributes of the original file 6741. In one embodiment, the one or more unique attributes may include a hash value of the original file 6741, metadata of the original file 6741, and other information associated with the file. In one embodiment, the initial value 6761 may be based on the following unique attributes:
[0119] 1) SHA-2 calculates the hash value of the original file
[0120] 2) Originating device ID
[0121] 3) The start timestamp of the original file
[0122] 4) The original storage location of the original file
[0123] 5) The blockchain network member ID for the software that currently controls the original file and associated metadata
[0124] Other blocks in the blockchain 6782 to 678 N It also has a header, file, and value. However, unlike the first block 6721, the headers 6722 to 672 N Each of the blocks includes the hash value of the immediately preceding block. The hash value of the preceding block may be just the hash of the header of the preceding block, or may be the hash value of the entire preceding block. By including the hash value of the preceding block in each of the remaining blocks, it is possible to go back from the Nth block to the origin block (and the associated original file) block by block, as shown by arrow 680, to establish an auditable and unchangeable chain of custody.
[0125] Headers 6722 to 672 in other blocks N Each of the may also include other information, such as a version number, a timestamp, a random number, root information, a difficulty level, a consensus protocol, and / or other parameters or information associated with the corresponding file and / or the general blockchain.
[0126] Files 6742 to 674 in other blocks NThe original file may be equal to the original file, or may be a modified version of the original file in the originating block, for example, depending on the type of processing performed. The type of processing performed may vary from block to block. The processing may include, for example, any modification of the file in a previous block, such as editing information or otherwise changing the contents of the file, taking information away from the file, or adding or appending information to the file.
[0127] Additionally or alternatively, processing may include merely copying a file from a previous block, changing a storage location of a file, analyzing a file from one or more previous blocks, moving a file from one storage or memory location to another, or performing operations relative to the blockchain file and / or its associated metadata. Processing involving analyzing a file may include, for example, appending, including, or otherwise associating various analytical, statistical, or other information associated with the file.
[0128] Each of the other blocks 6762 to 676 N The values in a block are unique values and are all different due to the processing performed. For example, the value in any one block corresponds to an updated version of the value in the previous block. The update is reflected in the hash of the block to which the value is assigned. The value of the block thus provides an indication of what processing was performed in the block and also allows tracing back to the original file through the blockchain. This tracking confirms the chain of custody of the file throughout the blockchain.
[0129] For example, consider a situation where portions of a file in a previous block are redacted, masked, or pixelated to protect the identity of the person appearing in the file. In this case, the block that includes the redacted file will include metadata associated with the redacted file, such as how the redaction was performed, who performed the redaction, a timestamp of when the redaction was performed, etc. The metadata may be hashed to form a value. Because the metadata for this block is different than the information that was hashed to form the value in the previous block, the values are distinct from one another and can be recovered upon decryption.
[0130] In one embodiment, when any one or more of the following occurs, the value of the previous block can be updated (e.g., a new hash value is calculated) to form the value of the current block. In this example embodiment, a new hash value can be calculated by hashing all or part of the information described below.
[0131] a) The new SHA-2 calculated hash value, if the file has been manipulated in any way (for example, if the file has been edited, copied, changed, accessed, or other actions have been taken)
[0132] b) New storage location for the file
[0133] c) Determine new metadata associated with the file
[0134] d) Transferring access to or control of a file from one blockchain participant to another
[0135] Fig.6D An embodiment of a block that can represent the structure of a block in blockchain 690 is shown, according to one embodiment. i Including head 672 i 、File 674 i Total value 676 i .
[0136] Head 672 i Including the previous block Blocki i-1 The hash value and additional reference information of the previous block, which can be any type of information discussed in this article (e.g., header information including references, features, parameters, etc.). Of course, all blocks except the origin block reference the hash of the previous block. The hash value of the previous block can be just the hash of the previous block header, or it can be the hash of all or part of the information in the previous block, including files and metadata.
[0137] File 674 i The system includes a plurality of data, such as data 1, data 2, ..., data N. The data are marked with metadata metadata 1, metadata 2, ..., metadata N, which describe the content and / or characteristics associated with the data. For example, the metadata of each data may include a timestamp indicating the data, processing data, keywords indicating a person or persons described in the data or other content, and / or other characteristics that may be helpful in determining the validity and content of the entire file, especially using digital evidence, for example, as described in the embodiments discussed below. In addition to the metadata, each data may be marked with reference REF1, REF2, ..., REF N Marking to previous data to prevent tampering, gaps in the file, and sequential reference through the file.
[0138] Once metadata is assigned to data (e.g., by a smart contract), it cannot be changed without changing the hash, which can be easily identified as invalid. Metadata thus creates a data log of information that can be accessed by participants in the blockchain for use.
[0139] Value 676 i is a hash value or other value calculated based on any of the types of information discussed previously. For example, for any given block i, the value of the block can be updated to reflect the processing performed on the block, such as a new hash value, a new storage location, new metadata for the associated file, a transfer of control or access rights, an identifier, or other operations or information to be added. Although the value in each block is shown separate from the metadata for the file and header data, in another embodiment, the value can be based in part or in whole on the metadata.
[0140] Once the blockchain 670 is formed, at any point in time, an immutable chain of custody for a file can be obtained by querying the blockchain for the transaction history of values across blocks. The query or tracking process can begin by decrypting the value of the currently included block (e.g., the last (Nth) block), and then continue to decrypt the values of other blocks until the origin block is reached and the original file is restored. Decryption can also include decrypting the header and file and associated metadata at each block.
[0141] Decryption is performed based on the type of encryption that occurs in each block. This may involve the use of private keys, public keys, or public-private key pairs. For example, when asymmetric encryption is used, a blockchain participant or processor in the network can use a predetermined algorithm to generate a public and private key pair. The public and private keys are related to each other through some mathematical relationship. The public key can be publicly distributed to be used as an address to receive messages from other users, for example, an IP address or a home address. The private key is kept secret and is used to digitally sign messages sent to other blockchain participants. The signature is included in the message so that the recipient can verify it using the sender's public key. In this way, the recipient can be sure that only the sender can send this message.
[0142] Generating a key pair can be similar to creating an account on the blockchain, but without having to actually register anywhere. In addition, the sender uses the private key to digitally sign each transaction performed on the blockchain. The signature ensures that only the account owner can track and process (if within the scope of permission determined by the smart contract) the blockchain file.
[0143] Figure 7 An example system 700 is shown that supports one or more example embodiments described herein. The system 700 includes a computer system / server 702 that can operate with many other general or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and / or configurations that may be suitable for the computer system / server 702 include, but are not limited to, personal computer systems, server computer systems, thin clients, fat clients, handheld or portable devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.
[0144] Computer system / server 702 may be described in the general context of computer system executable instructions (e.g., program modules) executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. Computer system / server 702 may be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in local and remote computer system storage media including memory storage devices.
[0145] like Figure 7 As shown, a computer system / server 702 in a cloud computing node 700 is shown in the form of a general-purpose computing device. Components of the computer system / server 702 may include, but are not limited to, one or more processors or processing units 704, a system memory 706, and a bus that couples various system components including the system memory 706 to the processor 704.
[0146] Bus refers to any one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0147] Computer system / server 702 generally includes various computer system readable media. Such media can be any available media accessible to computer system / server 702, and include volatile and non-volatile media, removable and non-removable media. In one embodiment, system memory 706 implements the flow charts of other figures. System memory 706 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 710 and / or cache memory 712. Computer system / server 702 can further include other removable / non-removable, volatile / non-volatile computer system storage media. As an example only, a storage system 714 can be provided for reading and writing non-removable non-volatile magnetic media (not shown and generally referred to as "hard drive"). Although not shown, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading or writing a removable non-volatile optical disk can provide a disk such as a CD-ROM, DVD-ROM or other optical media. In this case, each can be connected to the bus through one or more data media interfaces. As will be further depicted and described below, memory 706 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present application.
[0148] A program / utility 716 having a set (at least one) of program modules 718 and an operating system, one or more application programs, other program modules, and program data may be stored in the memory 706 by way of example and not limitation. Each of the operating system, one or more application programs, other program modules, and program data, or some combination thereof, may include an implementation of a networking environment. The program modules 718 generally perform the functions and / or methods of various embodiments of the present application as described herein.
[0149] As will be appreciated by those skilled in the art, various aspects of the present application may be embodied as a system, method or computer program product. Therefore, various aspects of the present application may take the following forms: a complete hardware embodiment, a complete software embodiment (including firmware, resident software, microcode, etc.) or an embodiment combining all software and hardware aspects that can be generally mentioned. Referred to herein as "circuit", "module" or "system". In addition, various aspects of the present application may take the form of a computer program product embodied in one or more computer-readable media on which a computer-readable program code is embodied.
[0150] The computer system / server 702 may also communicate with one or more external devices 720, such as a keyboard, a pointing device, a display 722, etc., one or more devices that enable a user to interact with the computer system / server 702, and / or any device that enables the computer system / server 702 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may occur via an I / O interface 724. However, the computer system / server 702 may still communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), and / or a public network (e.g., the Internet) through a network adapter 726. As shown, the network adapter 726 communicates with other components of the computer system / server 702 via a bus. It should be understood that, although not shown, other hardware and / or software components may be used in conjunction with the computer system / server 702. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drives, arrays, RAID systems, tape drives, and data archive storage systems.
[0151] Although exemplary embodiments of at least one of the systems, methods, and non-transitory computer-readable media are shown in the accompanying drawings and described in the foregoing detailed description, it should be understood that the present application is not limited to the disclosed embodiments, but can be rearranged, modified, and replaced as described and defined in the appended claims. For example, the capabilities of the systems of the various drawings can be performed by one or more of the modules or components described herein or in a distributed architecture, and can include a transmitter, a receiver, or both. For example, all or part of the functions performed by each module can be performed by one or more of these modules. In addition, the functions described herein can be performed at various times inside or outside a module or a module or component and in relation to various events. Moreover, the information sent between various modules can be sent between various modules and / or by multiple protocols via at least one of the following: data network, Internet, voice network, Internet protocol network, wireless device, wired device. Moreover, messages sent or received by any module can be sent or received directly and / or via one or more other modules.
[0152] Those skilled in the art will appreciate that a "system" may be embodied as a personal computer, server, console, personal digital assistant (PDA), cell phone, tablet computing device, smart phone, or any other suitable computing device or combination of devices. Presenting the above functions as being performed by a "system" is not intended to limit the scope of the present application in any way, but is intended to provide an example of many embodiments. In fact, the methods, systems, and apparatus disclosed herein may be implemented in local and distributed forms consistent with computing technology.
[0153] It should be noted that some of the system features described in this specification have been presented as modules in order to more specifically emphasize their implementation independence. For example, a module may be implemented as a hardware circuit, including a custom very large scale integrated circuit (VLSI) circuit or gate array, an off-the-shelf semiconductor such as a logic chip, a transistor, or other discrete components. A module may also be implemented in a programmable hardware device such as a field programmable gate array, a programmable array logic, a programmable logic device, a graphics processing unit, etc.
[0154] Modules may also be implemented at least in part in software to be executed by various types of processors. The identified executable code unit may, for example, include one or more physical or logical blocks of computer instructions, which may, for example, be organized as objects, processes, or functions. However, the executable files of the identified modules do not need to be physically located together, but may include different instructions stored in different locations, which, when logically combined together, include the modules and achieve the described purpose of the modules. In addition, modules may be stored on a computer-readable medium, which may be, for example, a hard drive, a flash memory device, a random access memory (RAM), a magnetic tape, or any other such medium for storing data.
[0155] In practice, a module of executable code may be a single or multiple instructions, and may even be distributed across multiple different code segments, between different programs, and across multiple storage devices. Similarly, operational data may be identified and shown herein within a module, and may be embodied in any suitable form and may be organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed across different locations including different storage devices, and may exist, at least in part, only as electronic signals on a system or network.
[0156] It will be easily understood that the components of the present application can be arranged and designed in a variety of different configurations as generally described and shown in the drawings herein. Therefore, the detailed description of the embodiments is not intended to limit the scope of the claimed application, but only represents the selected embodiments of the present application.
[0157] Those skilled in the art will readily appreciate that the above content may be practiced with steps in a different order and / or with hardware elements in a configuration different from that disclosed. Therefore, although the present application has been described based on these preferred embodiments, it will be apparent to those skilled in the art that certain modifications, variations, and alternative constructions will be apparent.
[0158] Although preferred embodiments of the present application have been described, it should be understood that the described embodiments are merely exemplary and that the scope of the present application is limited solely by the appended claims when considering the scope of all equivalents and modifications (e.g., protocols, hardware devices, software platforms, etc.).
Claims
1. A method comprising: receiving, by the subscriber, a split transaction comprising a configuration transaction for a new channel; generating, by the orderer, a split block including a split transaction payload and a block header; and The subscriber sends the split block to the participant node to form a new channel based on the content of the split block; The split blocks are generated after all pending transactions are completed.
2. The method according to claim 1, wherein: The split block is used as the origin block for the new channel.
3. The method according to claim 1, wherein: The participant nodes execute configuration transactions from the split block to configure the new channel.
4. The method according to claim 1, further comprising: Check for pending transactions.
5. The method according to claim 1, wherein: The participant node allocates assets to the new channel based on the split transaction payload derived from the split block.
6. The method according to claim 1, wherein: The participant node verifies the split block based on a header of the split block.
7. A system comprising: The processor of the orderer node; A memory storing machine-readable instructions which, when executed by a processor, cause the processor to perform the steps of the method according to any one of claims 1 to 6.
8. A computer program product comprising a computer readable medium storing instructions which, when read by a processor, cause the processor to perform the steps of the method according to any one of claims 1 to 6.
9. An apparatus comprising means for performing the steps of the method according to any one of claims 1 to 6.
