Disclosure of Invention
The invention aims to provide a block chain data cross-chain decoupling method and system, which can decouple data resources to operate in different systems, and effectively improve the execution efficiency of the systems.
In order to achieve the above object, the method for decoupling block chain data across chains of the present invention includes the following steps:
s1, respectively setting an owner identity and a user identity in a second chain;
s2, decoupling the data resources into an exchange and transfer attribute and an access and operation attribute;
s3, forming an exchange and transfer attribute token by the exchange and transfer attributes of the data resource, putting the exchange and transfer attribute token into a first chain, and managing the exchange and transfer attribute token through an on-chain address in the first chain;
s4, forming an access and operation attribute token by the access and operation attributes of the data resource and putting the access and operation attribute token into the second chain;
s5, performing identity verification on the on-chain address in the first chain, the owner identity in the second chain and the user identity to authorize each other to form a verifiable certificate;
and S6, after obtaining the address right on the first chain, generating a use right token of the data resource on the second chain, wherein the second chain freely uses the data resource through the use right token.
The invention has the beneficial effects that: according to the invention, data resources are decoupled into the exchange and transmission attributes and the access and operation attributes, the exchange and transmission attributes of the data resources form the exchange and transmission attribute token and are placed in the first chain, the access and operation attributes of the data resources form the access and operation attribute token and are placed in the second chain, and after the on-chain address authority of the first chain is obtained, the use right token of the data resources is generated on the second chain, and the second chain freely uses the data resources through the use right token, so that the exchange and transmission attributes and the access and operation attributes of the data resources are independently operated in different systems, the maintenance is convenient, and the execution efficiency of the system is improved.
Further, the first chain further includes a creator identity, and the creator identity is used to record creator information of the data resource. The beneficial effects are that: the creator information is recorded through the creator identity, so that identity comparison between the creator and the owner of the data resources is facilitated, and the exchange process of the data resources is determined.
Further, the owner id is used to indicate owner information of the data resource, and the user id is used to indicate user information of the data resource.
Further, the exchange and transfer attribute tokens are free to be transferred within different account addresses within the first chain. The beneficial effects are that: and enabling the data resource to be transferred in the first chain through the exchange and transfer attribute token so as to complete free exchange and transfer of the data resource value.
Further, the access and operation attribute token is used for managing the use and the authority of the data resource.
Further, in the step S6, the token authorization and response authority management is further included in a process that the second chain freely uses the data resource through the usage right token.
Further, the token authentication includes: and when the state of the use right token is available and the user ID information of the use right token is consistent with the expression of the owner identity, the use right token completes the right confirmation. The beneficial effects are that: the security of the use right token in use is ensured by the way of token right confirmation.
Further, the response right management comprises changing the state and the right of the usage right token after the usage right token uses the data resource. The beneficial effects are that: management of the usage rights token is facilitated by responding to rights management.
The invention discloses a block chain data cross-chain decoupling system, which comprises a first chain, a second chain, an identification module, a decoupling module, a first token module, a second token module, a verification module and a use module, wherein the identification module, the decoupling module, the first token module, the second token module, the verification module and the use module are sequentially in communication connection;
the identification module is used for respectively setting an owner identity and a user identity in the second chain;
the decoupling module is used for decoupling the data resource into an exchange and transmission attribute and an access and operation attribute;
the first token module forms an exchange and transfer attribute token from the exchange and transfer attributes of the data resource and puts the exchange and transfer attribute token into the first chain, and manages the exchange and transfer attribute token through an on-chain address in the first chain;
the second token module is used for forming an access and operation attribute token from the access and operation attribute of the data resource and placing the access and operation attribute token into the second chain;
the verification module is used for performing identity verification on the on-chain address in the first chain, the owner identity in the second chain and the user identity so as to authorize each other to form a verifiable certificate;
the usage module is configured to generate a usage right token of the data resource on the second chain after obtaining the address right on the first chain, and the second chain freely uses the data resource through the usage right token.
The invention also discloses an application of the block chain data cross-chain decoupling method, and the block chain data cross-chain decoupling method is applied to a centralized system or a block chain two-layer network system.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. Unless defined otherwise, technical or scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. As used herein, the word "comprising" and similar words are intended to mean that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items.
For solving the problems in the prior art, an embodiment of the present invention provides a method for decoupling block chain data across chains, as shown in fig. 1, including the following steps:
s1, respectively setting an owner identity and a user identity in a second chain.
Further, the owner id is used to indicate owner information of the data resource, and the user id is used to indicate user information of the data resource.
It should be noted that the identifiers in the first chain and the second chain are both distributed identifiers (hereinafter referred to as "DID"), and are used to represent the relevant user information of the data resource.
Further, the first chain can cover the wallet address information of the user asset in the form of an identity mark, namely, the identity mark comprises creator wallet address information, and the user asset is described by the identity mark; meanwhile, the asset wallet address of the user can be directly held and stored in a data identification mode, namely, the user asset is directly described by data, so that data description of the user asset by a first chain is realized, and selection is performed according to different conditions during actual use so as to meet use requirements under different scenes.
In some embodiments, a creator identity is further included on the first chain, and the creator identity is used for recording creator information of the data resource.
And S2, decoupling the data resources into exchange and transfer attributes and access and operation attributes.
In some embodiments, the data resources are decoupled into the switching and transfer attributes and the access and operation attributes by using a mathematical computation method in the prior art, which is not described herein again.
And S3, forming an exchange and transfer attribute token by the exchange and transfer attributes of the data resource, putting the exchange and transfer attribute token into a first chain, and managing the exchange and transfer attribute token through the on-chain address in the first chain.
In some embodiments, the exchange and transfer attribute token is freely transferred in different account addresses in the first chain, and on the first chain, since the exchange and transfer attribute of the data resource represents an asset or a certificate, when the exchange and transfer attribute token is circulated and used in the first chain, the exchange and transfer attribute token is directly transferred in different user account addresses according to the transaction condition so as to complete the transaction and transfer of the exchange and transfer attribute of the data resource on the first chain.
And S4, forming an access and operation attribute token by the access and operation attributes of the data resource and putting the access and operation attribute token into the second chain.
In still other embodiments, the access and operation attribute token is used to manage the use and permission of the data resource, including use permission, access permission, and modification permission, so that the use and permission management of the data resource is completed through the access and operation attribute token.
And S5, performing identity verification on the on-chain address in the first chain, the owner identity in the second chain and the user identity to authorize each other to form a verifiable certificate.
In other embodiments, since the same user has different address private keys and ID private keys on different chains, in order to verify the identity information of the data resource of the user on the first chain and the second chain, the above procedure is adopted to verify the identity information of the data resource, so as to prove that the account address on the first chain corresponds to the identity information, i.e. the identity identifier, on the second chain.
Furthermore, account addresses on a plurality of chains can be corresponding to identity information on the same chain, so that the consistency of exchange and transmission attributes and access and operation attributes of data resources on different chains is realized.
And S6, after obtaining the address right on the first chain, generating a use right token of the data resource on the second chain, wherein the second chain freely uses the data resource through the use right token.
Further, the determining right of the address on the first chain is an identity authentication process between the address on the first chain and the identity identifier on the second chain in step S5, and after the authentication is passed, a use right token can be generated, so that the access to the data resource and the use of the operation attribute token can be implemented on the second chain, that is, the access to the data resource and the use of the operation attribute can be implemented.
In still other embodiments, the use of the access and operation attribute token is completed through the use right token, and after the transfer or exchange of the data resource is realized, the ownership of the data resource changes, so that all rights of the data resource, that is, all rights of the exchange and transfer attributes of the data resource themselves change, but the exchange and transfer attribute token and the access and operation attribute token issued by the owner before the data resource are still executed by the user with the current ownership, so as to ensure that the previous obligation of the data resource can be normally processed.
In some embodiments, in step S6, token authority determination and response authority management are further included in the process that the second chain freely uses the data resource through the usage right token.
In some embodiments, the token validation comprises: and when the state of the use right token is available and the user ID information of the use right token is consistent with the expression of the owner identity, the use right token completes the right confirmation, thereby improving the safety of the data resource use process.
In some embodiments, the response rights management includes changing the state and rights of the usage rights token after the usage rights token uses the data resource, and managing the usage rights token is facilitated by the response rights management.
The method decouples the data resources on the chains to obtain the exchange and transmission attributes and the access and operation attributes, and the exchange and transmission attributes and the access and operation attributes respectively run on two independent chains independently, so that the maintenance is convenient, the processing efficiency of the data resources is improved, and the safety of the data resources is ensured.
In some embodiments, the first chain is a slow chain, and the second chain is a fast chain, so as to meet the use requirements in different scenarios.
Preferably, to ensure the security of the switching and transferring attributes, the first chain is a blockchain, and the second chain is not particularly limited, so that the use is more flexible and different application scenarios are satisfied.
Preferably, digital currency or traditional financial hosting services, etc., involving data exchange and transfer attributes are carried out on the first chain by exchange and transfer attribute tokens, while access and operational attributes for certain rental services, such as copyright or film copy, etc., may be carried out in conjunction with high-speed blockchains or conventional systems.
The embodiment of the invention discloses a block chain data cross-chain decoupling system, which comprises afirst chain 1, asecond chain 2, anidentification module 3, adecoupling module 4, a firsttoken module 5, a secondtoken module 6, averification module 7 and ause module 8 which are sequentially in communication connection, wherein theidentification module 3 is in communication connection with thesecond chain 2, the firsttoken module 5 is in communication connection with thefirst chain 1, the secondtoken module 5 is in communication connection with thesecond chain 2, and theverification module 7 and theuse module 8 are both in communication connection with thefirst chain 1 and thesecond chain 2;
theidentification module 3 is configured to set an owner identifier and a user identifier in thesecond chain 2, respectively;
thedecoupling module 4 is used for decoupling the data resource into an exchange and transmission attribute and an access and operation attribute;
the firsttoken module 5 forms an exchange and transfer attribute token from the exchange and transfer attributes of the data resource and puts the exchange and transfer attribute token into thefirst chain 1, and manages the exchange and transfer attribute token through an on-chain address in thefirst chain 1;
the secondtoken module 6 is configured to form access and operation attribute tokens from the access and operation attributes of the data resources and place the access and operation attribute tokens in thesecond chain 2;
theverification module 7 is configured to verify the on-chain address in thefirst chain 1, the owner identity in thesecond chain 2, and the user identity to authorize each other to form a verifiable credential;
theusage module 8 is configured to generate a usage right token of the data resource on thesecond chain 2 after obtaining the on-chain address right of thefirst chain 1, where thesecond chain 2 freely uses the data resource through the usage right token.
The embodiment of the invention also provides an application of the block chain data cross-chain decoupling method, and the block chain data cross-chain decoupling method is applied to a centralized system or a block chain two-layer network system, is not limited to the block chain system, can also be applied to other systems, is selected according to actual use scenes, and is not repeated herein.
Although the embodiments of the present invention have been described in detail hereinabove, it is apparent to those skilled in the art that various modifications and variations can be made to these embodiments. However, it is to be understood that such modifications and variations fall within the scope and spirit of the present invention as set forth in the following claims. Moreover, the invention as described herein is capable of other embodiments and of being practiced or of being carried out in various ways.