Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a system for storing asset data, which can implement sharing of asset data among part of participants, improve transparency and reliability of asset data, and isolate other participants, thereby playing a role in privacy protection.
In a first aspect, an embodiment of the present invention provides an asset data storage method, which is applied to a sorting service node in a blockchain network, where the blockchain network includes the sorting service node, at least one peer node, and at least two channels corresponding to the sorting service node, where each peer node corresponds to at least one of the at least two channels, and the method includes:
acquiring at least one transaction and an identifier of a channel corresponding to each transaction, wherein the transaction comprises endorsed asset data;
generating at least one block according to the transaction and the identifier of the channel corresponding to the transaction, wherein each block corresponds to the identifier of one channel;
and sending the block and the identifier of the channel corresponding to the block to a peer node corresponding to the identifier of the channel, so that the peer node stores the block into a block chain account book corresponding to the identifier of the channel.
Optionally, the generating at least one block according to each transaction and the channel identifier corresponding to each transaction includes:
acquiring a transaction corresponding to the identifier of each channel;
and sequencing and packaging the transactions corresponding to the identifier of each channel to generate a block corresponding to the identifier of each channel.
Optionally, each peer node corresponds to a role; before the obtaining of the at least one transaction and the identifier of the channel corresponding to each transaction, the method further includes:
acquiring configuration transaction, wherein the configuration transaction is used for indicating the identifier of a channel to be created, the corresponding relation between the identifier of the channel to be created and each role, and the corresponding relation between each role and a Peer node;
creating each channel according to the identifier of the channel to be created;
and creating a corresponding relation between the identifier of each channel and each Peer node according to the corresponding relation between the identifier of the channel to be created and each role and the corresponding relation between each role and the Peer node.
Optionally, each peer node corresponds to any one of the following roles: plan managers, asset service organizations, management rows, investors.
Optionally, the blockchain network specifically includes a first channel and a second channel;
the peer nodes corresponding to the plan manager and the asset service organization respectively correspond to the first channel and the second channel; the peer node corresponding to the hosting line corresponds to the first channel, and the peer node corresponding to the investor corresponds to the second channel.
Optionally, the asset data is used to indicate asset detail information or asset statistics information;
when the asset data is used for indicating asset detail information, a channel corresponding to the asset data is a first channel; and when the asset data is used for indicating asset statistical information, the channel corresponding to the asset data is a second channel.
In a second aspect, an embodiment of the present invention provides an asset data storage method, which is applied to a peer node in a blockchain network, where the blockchain network includes a sequencing service node, at least one peer node, and at least two channels corresponding to the sequencing service node, where each peer node corresponds to at least one of the at least two channels, and the method includes:
receiving a block sent by a sequencing service node and an identifier of a channel corresponding to the block;
and storing the block into a block chain account book corresponding to the channel identifier.
Optionally, the peer node corresponds to any one of the following roles: plan managers, asset service organizations, management rows, investors.
In a third aspect, an embodiment of the present invention provides an asset data storage device, which is applied to a sorting service node in a blockchain network, where the blockchain network includes the sorting service node, at least one peer node, and at least two channels corresponding to the sorting service node, and each peer node corresponds to at least one of the at least two channels, where the device includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring at least one transaction and an identifier of a channel corresponding to each transaction, and the transaction comprises endorsed asset data;
the generating module is used for generating at least one block according to the transaction and the identification of the channel corresponding to the transaction, wherein each block corresponds to the identification of one channel;
and the sending module is used for sending the block and the identifier of the channel corresponding to the block to a peer node corresponding to the identifier of the channel, so that the peer node stores the block into a block chain account book corresponding to the identifier of the channel.
Optionally, the generating module is specifically configured to:
acquiring a transaction corresponding to the identifier of each channel;
and sequencing and packaging the transactions corresponding to the identifier of each channel to generate a block corresponding to the identifier of each channel.
Optionally, each peer node corresponds to a role; the device further comprises: a creation module;
the obtaining module is further configured to obtain a configuration transaction, where the configuration transaction is used to indicate an identifier of a channel to be created, a correspondence between the identifier of the channel to be created and each role, and a correspondence between each role and a Peer node;
the creation module is to: creating each channel according to the identifier of the channel to be created; and creating a corresponding relation between the identifier of each channel and each Peer node according to the corresponding relation between the identifier of the channel to be created and each role and the corresponding relation between each role and the Peer node.
Optionally, each peer node corresponds to any one of the following roles: plan managers, asset service organizations, management rows, investors.
Optionally, the blockchain network specifically includes a first channel and a second channel;
the peer nodes corresponding to the plan manager and the asset service organization respectively correspond to the first channel and the second channel; the peer node corresponding to the hosting line corresponds to the first channel, and the peer node corresponding to the investor corresponds to the second channel.
Optionally, the asset data is used to indicate asset detail information or asset statistics information;
when the asset data is used for indicating asset detail information, a channel corresponding to the asset data is a first channel; and when the asset data is used for indicating asset statistical information, the channel corresponding to the asset data is a second channel.
In a fourth aspect, an embodiment of the present invention provides an asset data storage device, which is applied to a peer node in a blockchain network, where the blockchain network includes a sequencing service node, at least one peer node, and at least two channels corresponding to the sequencing service node, where each peer node corresponds to at least one of the at least two channels, and the device includes:
a receiving module, configured to receive a block sent by a sequencing service node and an identifier of a channel corresponding to the block;
and the storage module is used for storing the block into a block chain account book corresponding to the identifier of the channel.
Optionally, the peer node corresponds to any one of the following roles: plan managers, asset service organizations, management rows, investors.
In a fifth aspect, an embodiment of the present invention provides an asset data storage device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of storing asset data according to any one of the first aspects.
In a sixth aspect, an embodiment of the present invention provides an asset data storage device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of storing asset data according to any of the second aspects.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, a storage method of asset data according to any one of the first aspect or the second aspect is implemented.
In an eighth aspect, an embodiment of the present invention provides an asset data storage system, including: a client, a storage device for asset data according to the fifth aspect and at least one storage device for asset data according to the sixth aspect.
According to the asset data storage method, device, equipment and system provided by the embodiment of the invention, at least two channels are divided in a block chain network, and each peer node corresponds to one or more of the at least two channels; when the sequencing service node obtains at least one transaction and an identifier of a channel corresponding to each transaction, wherein the transaction comprises endorsed asset data, at least one block is generated according to each transaction and the identifier of the channel corresponding to each transaction, each block corresponds to the identifier of one channel, and the block and the identifier of the channel corresponding to the block are sent to a peer node corresponding to the identifier of the channel, so that the peer node stores the block into a block chain account book corresponding to the identifier of the channel; therefore, asset data can be shared among the participants in the same channel, the transparency and the credibility of the asset data are improved, and meanwhile, the participants in other channels are isolated, so that the privacy protection effect is achieved.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Terms involved in the embodiments of the present invention are explained first:
an asset service organization: the system is a manager of securitized basic assets, and the main work of the system is to collect principal fund and interest cash flow generated by the basic assets, take charge of corresponding establishment and storage, give the collected assets due and the interest to a receiver, urge collection of overdue debt, ensure timely and proper funds and full amount and provide regular financial reports for the receiver and investors.
A plan manager: the main medium of the asset securitization project is responsible for hosting the basic assets and various related rights and interests and carrying out supervision and management on the assets.
A pipe supporting row: the fund collection system is a mechanism which is responsible for keeping and holding funds collected by investment institutions such as fund management companies from clients, supervising fund managers using the funds and externally disclosing information, and is generally operated by commercial banks.
An investor: investors refer to natural and legal persons who invest cash to purchase certain assets in the hope of obtaining benefits or profits.
Channel (Channel): a private sub-network for communication between two or more nodes in a blockchain network for transactions requiring data privacy.
Endorsement node (Endorser): and the endorsement node receives the generated blocks from the sequencing service node, and maintains and updates the local account book.
Ordering service node (Orderer): and the system is responsible for receiving endorsement transactions submitted by the client, sequencing the endorsement transactions and generating blocks.
Executive node (commit): and receiving the generated block from the sequencing service node, maintaining and updating a local ledger, but not participating in endorsements of transaction proposals.
As described above, in the prior art, the asset data of the ABS service only exists in the database of the asset service mechanism, and other participants can only indirectly obtain the asset data through the interface provided by the asset service mechanism, so that the transparency of the asset data is not high, and there is a risk of being tampered.
Embodiments of the present invention provide a method, an apparatus, a device, and a system for storing asset data, which can implement sharing of asset data among part of participants, improve transparency and reliability of asset data, and isolate other participants, thereby playing a role in privacy protection.
Fig. 1 is a schematic structural diagram of an asset data storage system according to an embodiment of the present invention, and as shown in fig. 1, the asset data storage system according to the embodiment employs a block chain network, where the asset data storage system includes: and ordering the service node and the at least one peer node.
The peer node is a basic node in the block chain network and is mainly responsible for executing a chain code and realizing reading and writing operations on the account book. The peer node can be divided into an endorsement node and an execution node according to whether an endorsement policy is set. The endorsement node can sign and endorse the transaction proposal according to the setting of the endorsement strategy, the endorsement node is in a dynamic role, the peer node is the endorsement node only when the client initiates an endorsement request to the peer node, and otherwise, the peer node is a common execution node.
The sequencing service node is used for receiving endorsement transactions containing endorsement signatures, sequencing and packaging the endorsement transactions, generating blocks, sending the blocks to each peer node, and storing the blocks in a local account book after each peer node receives the blocks. That is, in a blockchain network, each transaction is stored in the local ledger of each peer node. In a blockchain website, there is only one sequencing service node, and the sequencing service node may specifically be composed of a plurality of sequencing nodes.
In the embodiment of the invention, each participant of the ABS service can correspond to one or more peer nodes. The participants of the ABS business can realize the reading and writing of the asset data by connecting to one of the peer nodes or the sequencing service node.
Specifically, when a participant of the ABS service needs to update asset data, the participant may be connected to a peer node through a client (at this time, the peer node is an endorsement node), and send a transaction proposal to the peer node, where the transaction proposal includes the asset data to be updated, the peer node endorses the transaction proposal, and after the endorsement is completed, the peer node returns the endorsement transaction to the client, and the client sends the endorsement transaction to the ordering service node. The sequencing service node may receive endorsement transactions sent by a plurality of clients at the same time, sequence and package the received endorsement transactions to generate a block, and send the block to each peer node (at this time, the peer node is an execution node), and each peer node verifies the received block and stores the block in its local account book. Through the process, the transaction proposal submitted by the participant is finally stored in the local ledger of each peer node, and the distributed storage of the asset data is realized.
When the participants of the ABS service need to inquire the account book, the clients can be connected to the peer nodes, and the account book is inquired by executing the chain code.
In the embodiment of the invention, the asset data is stored in a distributed manner by adopting the block chain technology, so that the sharing of the asset data by all the participants can be realized, and the transparency and the credibility of the asset data are improved. The embodiment of the invention arranges a plurality of channels in the block chain network, can realize sharing of partial asset data among partial participants, plays roles of data isolation and privacy protection for other participants, and can further improve the credibility of the asset data.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a first flowchart of a method for storing asset data according to an embodiment of the present invention, and fig. 3 is an interactive flowchart of the method for storing asset data according to an embodiment of the present invention. The block chain network of this embodiment includes a sequencing service node, at least one peer node, and at least two channels corresponding to the sequencing service node, where each peer node corresponds to at least one of the at least two channels.
The peer nodes and the sequencing service nodes can correspond to computer equipment or servers, and the physical positions of the peer nodes and the sequencing service nodes can be located in a cloud end and can also be located locally. The user can be in communication connection with the peer node or the sequencing service node through the client.
In this embodiment, a channel may be understood as a blockchain sub-network composed of a client, a peer node, and a sequencing service node, and is specifically designed to protect data privacy of a participant. The transaction data for each channel constitutes a blockchain that is visible only to the channel internal members. It can be understood that one peer node can join multiple channels at the same time to develop different services with different participants.
It is understood that each peer node may be connected to the sequencing service node through one or more channels, so as to receive the block data transmitted on the one or more channels and maintain the ledger corresponding to the one or more channels.
Fig. 4 is a schematic structural diagram of a blockchain network with channels according to an embodiment of the present invention, and as shown in fig. 4, the blockchain network includes 4 peer nodes, which are E0, E1, E2, and E3, respectively, and the ordering service node corresponds to two channels, which are channel 1 and channel 2, respectively. The peer nodes (E0, E1, E2 and E3) are in the channel 1, so that the 4 peer nodes can read and write data in the channel 1; in addition, E0 and E2 constitute channel 2, and E0 and E2 can also read and write data in channel 2. That is, E0 and E2 can read and write data for channel 1 and channel 2, and E1 and E3 can only read and write data for channel 1.
It should be noted that, in the embodiment of the present invention, neither the number of channels nor the number of peer nodes is specifically limited, and may be reasonably selected according to an actual situation, and the example shown in fig. 4 is only an example.
The implementation subject of the asset data storage method provided by the embodiment may be the ranking service node in fig. 1 and 4.
As shown in fig. 2 and fig. 3, the method of the present embodiment may include:
s201: the method comprises the steps of obtaining at least one transaction and identification of a channel corresponding to each transaction, wherein the transaction comprises endorsed asset data.
It should be noted that the method for storing asset data according to the present embodiment is applicable to storing asset data in ABS service, but is not limited thereto. The present embodiment and the following embodiments are described by taking the storage of asset data in ABS service as an example.
Asset data should be understood to be any type of asset or fund related data generated in ABS traffic including, but not limited to: first purchase funds detail, recurring purchase and replacement funds detail, recurring purchase funds total, replacement funds total, and the like.
When a participant of the ABS service needs to upload asset data to the block chain, the participant may determine, according to the property of the asset data, a channel identifier corresponding to the asset data, that is, determine to which channel member the asset data is visible, for example, for a first class of asset data, only visible to a member in channel 1, the channel corresponding to the class of asset data is channel 1, and for a second class of asset data, only visible to a member in channel 2, the channel corresponding to the class of asset data is channel 2.
And then the participating party can send the asset data to an endorsement node corresponding to the participating party through the client, the endorsement node signs and endorses the asset data to obtain the endorsed asset data, the endorsed asset data is returned to the client, and the client sends the transaction comprising the endorsed asset data and the identifier of a channel corresponding to the transaction to the sequencing service node.
It will be appreciated that since a blockchain network includes a plurality of participants, each of which may correspond to one or more peer nodes, the ranking service node may receive a plurality of endorsed asset data.
S202: and generating at least one block according to the transaction and the identification of the channel corresponding to the transaction, wherein each block corresponds to the identification of one channel.
Specifically, after the sequencing service node obtains a plurality of transactions, at least one block is generated according to each transaction and the identifier of the channel corresponding to each transaction. It can be understood that, in the process of generating the block, the sequencing service node may generate the block according to the transactions corresponding to the same channel identifier, thereby implementing isolation of asset data of different types. That is, for each block generated, the transaction is stored in the block with the same channel identification.
In an optional implementation manner, the generating at least one block according to each of the transactions and a channel identifier corresponding to each of the transactions includes: acquiring a transaction corresponding to the identifier of each channel; and sequencing and packaging the transactions corresponding to the identifier of each channel to generate a block corresponding to the identifier of each channel.
For example, the ranking service node may obtain N transactions, each transaction includes endorsed asset data, a channel corresponding to M transactions is channel 1, and channels corresponding to the remaining transactions are channels 2, so that when the ranking service node generates a block, the ranking service node performs ranking and packaging on the M transactions whose corresponding channels are channels 1 to generate block 1, and performs ranking and packaging on the transactions whose corresponding channels are channels 2 to generate block 2. Thus, block 1 is a block in channel 1 and block 2 is a block in channel 2.
When the asset data is packaged, a block may be generated by packaging a preset number of transactions, or a block may be generated by packaging transactions according to a preset time interval.
S203: and sending the block and the identifier of the channel corresponding to the block to a peer node corresponding to the identifier of the channel, so that the peer node stores the block into a block chain account book corresponding to the identifier of the channel.
After the sequencing service node generates the block, the block and the identifier of the channel corresponding to the block are sent to the peer node corresponding to the identifier of the channel. After each peer node receives the block sent by the sequencing service node and the identifier of the channel corresponding to the block, the block is stored in the block chain account book corresponding to the identifier of the channel.
For example, the generated block 1 is sent to peer nodes corresponding to the channel 1, namely, E0, E1, E2 and E3 nodes; after receiving the block 1, the 4 nodes store the block 1 in the block chain account book corresponding to the respective channel 1. Sending the generated block 2 to peer nodes corresponding to the channel 2, namely E0 and E2 nodes; after receiving the block 2, the 2 nodes store the block 2 in the block chain ledger corresponding to each channel 2.
As can be seen from the above example, the nodes E0 and E2 can read and write the blockchain ledger corresponding to the channels 1 and 2, and the nodes E1 and E3 can read and write only the blockchain ledger corresponding to the channel 1. Therefore, when the ABS business participant stores the asset data, the identifier of the channel corresponding to the asset data may be set according to the type of the asset data, so that different types of asset data may be stored in the ledger corresponding to different channels, for example, if the first type of asset data is stored in the ledger corresponding to channel 1, the nodes E0, E1, E2 and E3 may all share the first type of asset data; and storing the second type of asset data into the ledger corresponding to the channel 2, wherein the second type of asset data is only visible to the nodes E0 and E2, but not visible to the nodes E1 and E3, so that the sharing and isolation of the asset data are realized.
According to the asset data storage method provided by the embodiment of the invention, at least two channels are divided in a block chain network, and each peer node corresponds to one or more of the at least two channels; when a sequencing service node obtains at least one transaction and an identifier of a channel corresponding to each transaction, wherein the transaction comprises endorsed asset data, at least one block is generated according to each transaction and the identifier of the channel corresponding to each transaction, each block corresponds to the identifier of one channel, and the block and the identifier of the channel corresponding to the block are sent to a peer node corresponding to the identifier of the channel, so that the peer node stores the block into a block chain account book corresponding to the identifier of the channel; therefore, asset data can be shared among the participants in the same channel, the transparency and the credibility of the asset data are improved, and meanwhile, the participants in other channels are isolated, so that the privacy protection effect is achieved.
The following describes a channel creation process in a blockchain network, with reference to a specific embodiment.
Fig. 5 is a second flowchart of the asset data storage method according to the embodiment of the present invention, where on the basis of the above embodiment, each peer node corresponds to a role. As shown in fig. 5, the method of this embodiment may further include:
s501: and acquiring configuration transaction, wherein the configuration transaction is used for indicating the identifier of the channel to be created, the corresponding relation between the identifier of the channel to be created and each role, and the corresponding relation between each role and the Peer node.
In the ABS service, the roles of each participant include, but are not limited to: the system comprises a plan manager, an asset service organization, a hosting bank and an investor, so that each peer node corresponds to any one of the following roles: plan managers, asset service organizations, management rows, investors.
Specifically, when a channel needs to be created, a configuration transaction may be sent to the ranking service node through the client, so that the ranking service node completes creation of the channel according to the configuration transaction.
In an optional implementation manner, after the participants of the ABS service agree, a configuration file may be generated, where the configuration file may indicate a correspondence between the identifier of the channel to be created and each role, and a correspondence between each role and the Peer node, that is, indicate which roles correspond to one channel. And then, generating a corresponding configuration transaction by the configuration file through the client, and sending the configuration transaction to the sequencing service node.
S502: and creating each channel according to the identifier of the channel to be created.
S503: and creating a corresponding relation between the identifier of each channel and each Peer node according to the corresponding relation between the identifier of the channel to be created and each role and the corresponding relation between each role and the Peer node.
After the sequencing service node creates each channel according to the identifier of the channel to be created, the sequencing service node can also create a corresponding relation between the identifier of each channel and each peer node. Optionally, the correspondence between the identifier of each channel and each peer node may also be sent to each peer node.
After the channel is created, the peer nodes belonging to the same channel synchronize the block data of the channel, and receive the block data newly generated subsequently by the channel from the sequencing service node.
The following describes a storage scheme of asset data in ABS service with reference to specific embodiments.
In ABS service, asset data can be classified into two categories, where one category is asset detail information and the other category is asset statistics information.
Wherein the asset detail information includes but is not limited to: detail information of the first purchase asset, detail information of the fund return of the asset, detail information of the circulating purchase, detail information of the replacement asset and the like.
The asset statistics may be further divided into fund summary information and asset summary information, wherein the fund summary information includes but is not limited to: summarizing daily repayment amount, summarizing circulating purchase amount, summarizing replacement amount and the like; asset summary information includes, but is not limited to: the method comprises the steps of carrying out pool principal amount distribution statistics, outstanding principal amount distribution statistics, contract deadline distribution statistics, asset overdue distribution statistics and the like.
Fig. 6 is a schematic diagram of a correspondence relationship between channels, asset data, and ABS service participants in the embodiment of the present invention, and as shown in fig. 6, in the embodiment, a first channel and a second channel are set in a blockchain network. When the asset data is used for indicating asset detail information, a channel corresponding to the asset data is a first channel; and when the asset data is used for indicating asset statistical information, the channel corresponding to the asset data is a second channel.
Each participant of an ABS service typically includes: plan managers, asset services, custody lines, and investors. The peer nodes corresponding to the plan manager and the asset service organization respectively correspond to the first channel and the second channel; the peer node corresponding to the hosting line corresponds to the first channel, and the peer node corresponding to the investor corresponds to the second channel.
That is, the asset detail information is only put into the first channel, so that only the asset service organization, the plan manager and the hosting bank have the read-write permission of the asset detail information; the asset statistical information is only put into the second channel, so that only the asset service organization, the plan manager and the investor have the read-write authority of the asset statistical information.
The storage process of the asset data is described below with respect to the asset detail information and the asset statistical information, respectively.
When the asset service organization needs to add new asset detail information, an endorsement request can be sent to an endorsement node through a client, the asset detail information after endorsement node signature endorsement is received, and then the transaction comprising the endorsed asset detail information is sent to a sequencing service node. The sequencing service node stores the transaction into a block corresponding to the first channel and sends the transaction to peer nodes (corresponding to the asset service organization, the plan manager and the management support bank) corresponding to the first channel, and each peer node stores the block data into an account book corresponding to the first channel of the peer node. Through the storage process of the asset detail information, the asset detail information is shared among a plan manager, an asset service mechanism and a hosting bank, and the transparency and the reliability of the asset detail information are improved. In addition, because the investor does not join the first channel, the asset detail information is invisible to the investor, and isolation of the asset detail information from the investor is achieved.
Based on the asset detail information, after the asset service organization generates asset statistical information, an endorsement request can be sent to an endorsement node through a client, the asset statistical information after endorsement node signature endorsement is received, and then a transaction comprising the endorsed asset statistical information is sent to a sequencing service node. The sequencing service node stores the transaction into the block corresponding to the second channel and sends the transaction to peer nodes (corresponding to the asset service organization, the plan manager and the investor) corresponding to the second channel, and each peer node stores the block data into an account book corresponding to the second channel. Through the storage process of the asset statistical information, the asset statistical information is shared among the plan manager, the asset service organization and the investor, and the transparency and the reliability of the asset statistical information are improved. In addition, the first channel is not added into the hosting line, so that the asset statistical information is invisible to the hosting line, and the isolation of the asset statistical information to the hosting line is realized.
It should be noted that, in the above example, the asset service organization updates the asset detail information and the asset statistical information, but the embodiment of the present invention is not limited thereto, and it can be understood that any ABS business participant (plan manager, asset service organization, and management authority) corresponding to the first channel can implement the storage of the asset detail information through the above process, and any ABS business participant (plan manager, asset service organization, and investor) corresponding to the second channel can implement the storage of the asset statistical information through the above process.
Optionally, an intelligent contract may be set in endorsement nodes corresponding to the plan administrator, the asset service organization and the investor, so as to realize statistics on asset statistical information and effectively improve the credibility of the asset statistical information.
In the embodiment, a first channel and a second channel are divided in a block chain network, peer nodes corresponding to a plan manager and an asset service mechanism respectively correspond to the first channel and the second channel, peer nodes corresponding to a hosting line correspond to the first channel, peer nodes corresponding to an investor correspond to the second channel, when asset data is stored, asset detail information is put into the first channel, asset statistical information is put into the second channel, access authority of the asset data is effectively controlled, and sharing of the asset detail information among the plan manager, the asset service mechanism and the hosting line is realized; and under the condition that the asset detail information is invisible to the investor, the investor can acquire asset statistical information through an intelligent contract, and the credibility of the asset statistical information is effectively improved.
Fig. 7 is a schematic structural diagram of an asset data storage device according to an embodiment of the present invention, where the device of this embodiment is applied to a sorting service node in a blockchain network, where the blockchain network includes the sorting service node, at least one peer node, and at least two channels corresponding to the sorting service node, and each peer node corresponds to at least one of the at least two channels.
As shown in fig. 7, the asset data storage device 700 provided in this embodiment includes: an obtaining module 701, a generating module 702 and a sending module 703.
The obtaining module 701 is configured to obtain at least one transaction and an identifier of a channel corresponding to each transaction, where the transaction includes endorsed asset data.
A generating module 702, configured to generate at least one block according to each transaction and an identifier of a channel corresponding to each transaction, where each block corresponds to an identifier of a channel.
A sending module 703, configured to send the block and the identifier of the channel corresponding to the block to a peer node corresponding to the identifier of the channel, so that the peer node stores the block in a block chain ledger corresponding to the identifier of the channel.
The apparatus of this embodiment may be configured to execute the scheme of ordering the service node side in the method embodiment shown in fig. 2, which has similar implementation principles and technical effects, and is not described herein again.
Fig. 8 is a schematic structural diagram of an asset data storage device according to an embodiment of the present invention. As shown in fig. 8, on the basis of the embodiment shown in fig. 7, the storage device 700 for asset data provided by this embodiment may further include a creating module 704.
Optionally, the generating module 702 is specifically configured to: acquiring a transaction corresponding to the identifier of each channel; and sequencing and packaging the transactions corresponding to the identifier of each channel to generate a block corresponding to the identifier of each channel.
Optionally, each peer node corresponds to a role; the obtaining module 701 is further configured to obtain a configuration transaction, where the configuration transaction is used to indicate an identifier of a channel to be created, a correspondence between the identifier of the channel to be created and each role, and a correspondence between each role and a Peer node.
The creating module 704 is configured to: creating each channel according to the identifier of the channel to be created; and creating a corresponding relation between the identifier of each channel and each Peer node according to the corresponding relation between the identifier of the channel to be created and each role and the corresponding relation between each role and the Peer node.
Optionally, each peer node corresponds to any one of the following roles: plan managers, asset service organizations, management rows, investors.
Optionally, the blockchain network specifically includes a first channel and a second channel; the peer nodes corresponding to the plan manager and the asset service organization respectively correspond to the first channel and the second channel; the peer node corresponding to the hosting line corresponds to the first channel, and the peer node corresponding to the investor corresponds to the second channel.
Optionally, the asset data is used to indicate asset detail information or asset statistics information; when the asset data is used for indicating asset detail information, a channel corresponding to the asset data is a first channel; and when the asset data is used for indicating asset statistical information, the channel corresponding to the asset data is a second channel.
The apparatus of this embodiment may be configured to execute the technical solution of the service node side in any of the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of a third storage device for asset data according to an embodiment of the present invention, where the storage device according to the present embodiment is applicable to a peer node in a blockchain network, where the blockchain network includes a sequencing service node, at least one peer node, and at least two channels corresponding to the sequencing service node, and each peer node corresponds to at least one of the at least two channels.
As shown in fig. 9, the storage apparatus 900 for asset data provided in this embodiment includes a receiving module 901 and a storage module 902.
The receiving module 901 is configured to receive a block sent by the sequencing service node and an identifier of a channel corresponding to the block.
A storage module 902, configured to store the block into a block chain ledger corresponding to the identifier of the channel.
Optionally, the peer node corresponds to any one of the following roles: plan managers, asset service organizations, management rows, investors.
The apparatus of this embodiment may be configured to execute the technical solution on the peer node side in any of the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of an asset data storage device according to an embodiment of the present invention, where the device according to this embodiment may be used as a sorting service node in a blockchain network. As shown in fig. 10, the storage device 1000 for asset data according to the present embodiment includes: at least one processor 1001 and memory 1002. The storage device 1000 of asset data further comprises a communication component 1003. The processor 1001, the memory 1002, and the communication unit 1003 are connected by a bus 1004.
In a specific implementation process, the at least one processor 1001 executes the computer-executable instructions stored in the memory 1002, so that the at least one processor 1001 executes a storage method for the asset data executed by the sequencing service node in any one of the above method embodiments.
The communication component 1003 may be used to communicate with clients and peer nodes.
For a specific implementation process of the processor 1001, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details of this embodiment are not described herein again.
Fig. 11 is a schematic structural diagram of an asset data storage device according to an embodiment of the present invention, where the device according to this embodiment may be used as a peer node in a block chain network. As shown in fig. 11, the storage device 1100 for asset data according to the present embodiment includes: at least one processor 1101 and memory 1102. The storage device 1100 of asset data further comprises a communication component 1103. The processor 1101, the memory 1102, and the communication unit 1103 are connected by a bus 1104.
In a specific implementation, the at least one processor 1101 executes the computer-executable instructions stored in the memory 1102, so that the at least one processor 1101 executes the method for storing asset data executed by the peer node in any one of the above-described method embodiments.
The communication component 1103 may be used to communicate with clients and sequencing service nodes.
For a specific implementation process of the processor 1101, reference may be made to the above method embodiments, which implement similar principles and technical effects, and details of this embodiment are not described herein again.
In the embodiments shown in fig. 10 and fig. 11, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the method for storing the asset data executed by the sequencing service node in the above method embodiments is implemented.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the method for storing the asset data executed by the peer node in the above method embodiments is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.