CN115955317B - Cross-blockchain resource storage method and device - Google Patents

Cross-blockchain resource storage method and device Download PDF

Info

Publication number
CN115955317B
CN115955317B CN202310195466.0A CN202310195466A CN115955317B CN 115955317 B CN115955317 B CN 115955317B CN 202310195466 A CN202310195466 A CN 202310195466A CN 115955317 B CN115955317 B CN 115955317B
Authority
CN
China
Prior art keywords
blockchain
domain name
data
signature
ticket information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310195466.0A
Other languages
Chinese (zh)
Other versions
CN115955317A (en
Inventor
江边
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bright Technology Beijing Co ltd
Original Assignee
Bright Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bright Technology Beijing Co ltd filed Critical Bright Technology Beijing Co ltd
Priority to CN202310195466.0A priority Critical patent/CN115955317B/en
Publication of CN115955317A publication Critical patent/CN115955317A/en
Application granted granted Critical
Publication of CN115955317B publication Critical patent/CN115955317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for storing resources of a cross-region block chain, wherein the method comprises the following steps: distributing appointed internet domain names for signature ticket information of the first blockchain and corresponding signature resource data; transcoding the plaintext ticket information and the resource data of the first blockchain into domain name data through a preset coding mode according to the registration information of the internet domain name; DNSSEC signature is carried out on the domain name data by adopting a first blockchain private key, so that signed domain name data is obtained; when plaintext ticket information and resources of a first blockchain are stored in a cross-region blockchain, signing domain name data, signing ticket information and signing resource data are respectively signed by adopting a first blockchain public key; verifying the clear text ticket information, the resource data and the domain name data obtained after the signing removal; and (3) checking, namely importing plaintext ticket information and resource data of the first blockchain ticket into a second blockchain for storage. The invention can realize the verification and storage of the blockchain ticket information of the cross-blockchain.

Description

Cross-blockchain resource storage method and device
Technical Field
The invention relates to the technical field of blockchains and the Internet, in particular to a method and a device for storing resources of a cross-region blockchain.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
For the blockchain ticket and the corresponding resource, the user needs to query, backup and store or check the related information of the blockchain ticket, so as to acquire the corresponding resource of the blockchain ticket. At present, a block chain ticket chain is used for providing a ticket storage and a ticket collection service of an electronic evidence ticket for a user, and the block chain ticket chain adopts techniques of block chain, data encryption, secure cloud storage and the like, so that the electronic evidence is ensured to be complete and reliable and not tampered, and the weight maintenance efficiency is effectively improved. Because the current blockchain ticket is identified by the hash value of the blockchain, the hash value of the electronic evidence ticket stored in the blockchain ticket can be uplink, namely the authenticity of the evidence can be checked online, and after the verification is passed, the resource corresponding to the electronic evidence ticket can be obtained.
Although the hash value can uniquely mark the blockchain ticket, there are a great number of blockchains at present, and each blockchain is provided with a hash generation algorithm, so that the generated hash value is difficult to unify, the hash value does not have any rule semantics, the blockchain ticket and the corresponding resource between the blockchains cannot be well communicated, and the verification and storage of the blockchain ticket information and the corresponding resource data of the blockchains cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a method for storing resources of a cross-regional blockchain, which is used for realizing the verification and storage of blockchain ticket information of the cross-regional blockchain and the acquisition of resources and promoting the interconnection and intercommunication of blockchain tickets of different blockchains and corresponding resources, and comprises the following steps:
distributing a pre-designated internet domain name for signature ticket information of the first blockchain and corresponding signature resource data; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain;
signing the signature ticket information of the first blockchain and the corresponding signature resource data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain and the corresponding resource data; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode;
performing domain name system security extension DNSSEC signing on the domain name data by adopting a first blockchain private key to obtain signed domain name data;
acquiring signature ticket information of a first blockchain, signature resource data corresponding to the signature ticket information and signature domain name data when the plaintext ticket information of the first blockchain and the corresponding resource data are stored in the inter-blockchain; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain.
The embodiment of the invention also provides a device for storing the resources of the cross-regional blockchain, which is used for realizing the verification and storage of the blockchain ticket information of the cross-regional blockchain and the acquisition of the resources and promoting the interconnection and intercommunication of the blockchain ticket of different blockchains and the corresponding resources, and comprises the following steps:
the domain name distribution module is used for distributing a pre-designated internet domain name for the signature ticket information of the first blockchain and the corresponding signature resource data; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain;
the transcoding module is used for signing the signature ticket information of the first blockchain and the corresponding signature resource data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain and the corresponding resource data; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode;
the signature module is used for carrying out domain name system security extension DNSSEC signature on the domain name data by adopting a first blockchain private key to obtain signed domain name data;
the verification and storage module is used for acquiring signature ticket information of the first blockchain, signature resource data corresponding to the signature ticket information and signature domain name data when the plaintext ticket information of the first blockchain and the corresponding resource data are stored in the inter-blockchain; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the resource storage method of the cross-region block chain when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the method for storing resources of the cross-region block chain when being executed by a processor.
The embodiment of the invention also provides a computer program product, which comprises a computer program, wherein the computer program realizes the method for storing resources of the cross-region block chain when being executed by a processor.
In the embodiment of the invention, a pre-designated Internet domain name is allocated for the signature ticket information of the first blockchain and the corresponding signature resource data thereof; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain; signing the signature ticket information of the first blockchain and the corresponding signature resource data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain and the corresponding resource data; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode; performing domain name system security extension DNSSEC signing on the domain name data by adopting a first blockchain private key to obtain signed domain name data; acquiring signature ticket information of a first blockchain, signature resource data corresponding to the signature ticket information and signature domain name data when the plaintext ticket information of the first blockchain and the corresponding resource data are stored in the inter-blockchain; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain. In this way, the plaintext weight information of the first blockchain weight and the corresponding resource data are transcoded into the domain name data, and the domain name data is used for representing the weight information of the blockchain and the corresponding resource data, so that interconnection and intercommunication of the blockchain weights of different blockchains and the corresponding resources can be promoted; and the domain name system security extension DNSSEC technology sharing public and private keys is adopted to realize signature authentication of the ticket information independent of the blockchain, so that verification, storage and resource acquisition of the blockchain ticket information crossing the blockchain can be realized.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flowchart of a method for storing resources of a cross-block chain provided in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a method for storing resources of a cross-block chain provided in an embodiment of the present invention;
FIG. 3 is a flowchart of a method for storing resources based on the cross-block chain of FIG. 2, provided in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a resource storage device of a cross-block chain provided in an embodiment of the present invention;
fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are open-ended terms, meaning including, but not limited to. Reference to the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is used to schematically illustrate the practice of the present application, and is not limited thereto and may be appropriately adjusted as desired.
At present, the blockchain ticket and the corresponding resource between the blockchains cannot be well communicated, and a unified method for storing the resources of the cross-block chains is lacked to realize verification and storage of ticket information of the cross-block chains and acquisition of the resources.
In view of the above problems, it has been found through research that an internet domain name is used as a basic resource of the global internet, and through the internet domain name, a networked computer and a device can identify themselves and communicate with other networked devices, and because of its indispensable nature, the internet domain name is further utilized to an internet resource mark, and through the mutual mapping between the internet domain name and the internet resource, the global accessibility of the internet resource can be achieved. Therefore, the identification of the unified blockchain ticket of the cross-region blockchain can be realized through the mutual mapping of the internet domain name and the blockchain ticket information, and further, the verification and the storage of the blockchain ticket information and the acquisition of resources are realized. Based on the above, the embodiment of the invention provides a method for storing resources of a cross-block chain.
As shown in FIG. 1, a flowchart of a method for storing resources across blockchains in an embodiment of the invention may include:
step 101, distributing a pre-designated internet domain name for signature ticket information of a first blockchain and corresponding signature resource data thereof; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain;
step 102, signing the signature ticket information of the first blockchain and the corresponding signature resource data by adopting the public key of the first blockchain to obtain plaintext ticket information of the first blockchain and the corresponding resource data; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode;
step 103, adopting a first blockchain private key to carry out domain name system security extension DNSSEC signature on domain name data to obtain signed domain name data;
104, when the block chain is crossed, the plaintext weight information of the first block chain and the corresponding resource data are stored, the signature weight information of the first block chain, the corresponding signature resource data and the signature domain name data are obtained; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain.
In the embodiment of the invention, a pre-designated Internet domain name is allocated for the signature ticket information of the first blockchain and the corresponding signature resource data thereof; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain; signing the signature ticket information of the first blockchain and the corresponding signature resource data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain and the corresponding resource data; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode; performing domain name system security extension DNSSEC signing on the domain name data by adopting a first blockchain private key to obtain signed domain name data; acquiring signature ticket information of a first blockchain, signature resource data corresponding to the signature ticket information and signature domain name data when the plaintext ticket information of the first blockchain and the corresponding resource data are stored in the inter-blockchain; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain. In this way, the plaintext weight information of the first blockchain weight and the corresponding resource data are transcoded into the domain name data, and the domain name data is used for representing the weight information of the blockchain and the corresponding resource data, so that interconnection and intercommunication of the blockchain weights of different blockchains and the corresponding resources can be promoted; and the domain name system security extension DNSSEC technology sharing public and private keys is adopted to realize signature authentication of the ticket information independent of the blockchain, so that verification, storage and resource acquisition of the blockchain ticket information crossing the blockchain can be realized.
In step 101, a pre-specified internet domain name is assigned to the signature ticket information of the first blockchain and its corresponding signature resource data.
The signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain. The internet domain name may be pre-specified by an internet domain name operator.
In specific implementation, an internet domain name is allocated to the ticket of the first blockchain and the corresponding resource thereof to uniquely mark the ticket information of the first blockchain and the corresponding resource data thereof, wherein the ticket information of the first blockchain uniquely corresponds to the resource data, and the corresponding resource data can be obtained through the ticket information of the first blockchain. Specifically, the ticket identifier of the first blockchain may be mapped to the internet domain name through the internet domain name operator, and the ticket identifier of the first blockchain may be a ticket name or number of the first blockchain, or the like.
It should be noted that, the process of assigning the pre-specified internet domain name to the signature ticket information of the first blockchain and the corresponding resource data thereof may be understood as follows: and registering the domain name, and establishing a mapping relation, namely registering an internet domain name, and establishing mapping with the ticket identifier of the first blockchain by taking the internet domain name as a designated internet domain name.
In step 102, plaintext ticket information for a first blockchain and corresponding resource data is transcoded.
In the implementation, a first blockchain public key can be adopted to sign the signature ticket information of the first blockchain and the corresponding signature resource data thereof, so as to obtain the plaintext ticket information of the first blockchain and the corresponding resource data thereof; and transcoding the plaintext ticket information of the first blockchain and the corresponding resource data into domain name data through a preset coding mode according to the registration information of the pre-designated internet domain name.
In one embodiment, the plaintext ticket information may include one or any combination of a release time, a blockchain where the plaintext ticket information is located, a ticket feature value, a ticket picture, a ticket owner, and a ticket creator;
the resource data includes one or any combination of audio data, video data, text data, and image data.
For example, the asset data may be music, a novel txt text, dance video, scenic pictures, and the like.
In one embodiment, the preset encoding mode may be Base64.Base64 coded strings are more suitable for transmission of different platforms and different languages.
In particular, when registering an internet domain name, corresponding registration information, for example abc. In the embodiment of the invention, plaintext ticket information of a first blockchain and corresponding resource data thereof are transcoded into domain name data through Base64 according to the designated registration information of the internet domain name. That is, the plaintext ticket information and the corresponding resource data thereof are reorganized according to the registration information format of the internet domain name, so that the plaintext ticket information of the first blockchain and the corresponding resource data thereof become unreadable.
In a specific implementation, the plaintext weight information of the first blockchain and the corresponding resource data thereof may be (Key, value) data, when the plaintext weight information and the Value of the corresponding resource data thereof are transcoded by Base64, the transcoded domain name data may be a= (Key, base64 (Value)).
For example, table 1 is an example of plaintext ticket information; table 2 is a comparison table of plaintext right information and transcoded domain name data.
Figure SMS_1
Figure SMS_2
In step 103, a first blockchain private key is adopted to conduct domain name system security extension DNSSEC signature on domain name data, and signed domain name data is obtained.
In particular, the first blockchain private key is also a private key for identifying Wen Quan certificate information and corresponding resource data signature in the first blockchain. For example, the first blockchain private Key is a PrivateKey, and DNSSEC signing is performed on domain name data a= (Key, base64 (Value)) to obtain signed domain name data b= (Key, privateKey (Base 64 (Value))).
In an embodiment, after step 103, the method may further include:
the signed domain name data is written to the domain name zone file and the first blockchain.
In particular implementations, for example, b= (Key, privateKey (Base 64 (Value)) is written to the domain name region file and the first blockchain.
In an embodiment, after writing the signed domain name data to the domain name zone file and the first blockchain, the method may further include:
establishing a ticket management webpage of a pre-designated Internet domain name;
performing DNS analysis on the domain name zone file to obtain signature domain name data;
and displaying the signature domain name data on a ticket management webpage of the pre-designated Internet domain name.
In the implementation, the page construction of the ticket management webpage can be carried out aiming at the pre-designated internet domain name, signature domain name data corresponding to the internet domain name is displayed in the ticket management webpage, and the signature domain name data can be obtained by carrying out DNS analysis on the domain name zone file.
Therefore, the signature domain name data can be stored in a non-blockchain distributed mode through the ticket management webpage, direct access to the ticket management webpage through the Internet domain name is achieved, and further the blockchain ticket and corresponding resources can be safely acquired outside the blockchain, so that safety is ensured, and meanwhile convenience in resource acquisition is improved.
It should be noted that, the steps 101-103 are a process of identifying the signature ticket information of the first blockchain and the corresponding signature resource data by using the internet domain name, and lay a cushion for the subsequent cross-regional blockchain verification, the ticket information of the stored blockchain and the acquired resource.
In step 104, the cross-block chain check and the plaintext ticket information of the first block chain and the corresponding resource data are stored.
First, signature ticket information of a first blockchain and signature resource data and signature domain name data corresponding to the signature ticket information are acquired.
In an embodiment, obtaining the signature ticket information of the first blockchain and the signature resource data and the signature domain name data corresponding to the signature ticket information may include:
acquiring signature domain name data from a pre-designated ticket management webpage of an Internet domain name when clear text ticket information of a first blockchain and corresponding resource data thereof are stored in a cross-regional blockchain; signature ticket information and corresponding signature resource data are acquired from the first blockchain.
In specific implementation, for example, the browser may input the internet domain name abc. Cn corresponding to the ticket of the first blockchain, access the ticket management webpage of abc. Cn, and further obtain signature domain name data, i.e., b= (Key, privateKey (Base 64 (Value)). And acquiring signature ticket information of the first blockchain and corresponding signature resource data thereof from the first blockchain.
And secondly, the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data can be respectively signed by adopting the public key of the first blockchain, so that the plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data can be obtained.
In specific implementation, for example, signed domain name data b= (Key, privateKey (Value))) is signed to obtain c= (Key, base64 (Value)); if the signature domain name data of the first blockchain is not tampered with, then C is the same as A described above. The signing ticket information of the first blockchain and the corresponding signature resource data are signed to obtain the plaintext ticket information and the corresponding resource data thereof are (Key, value 1), and similarly, the signing ticket information of the first blockchain and the corresponding signature resource data are signed to obtain the plaintext ticket information and the corresponding resource data thereof, which are theoretically the same as the plaintext ticket information of the first blockchain and the corresponding resource data thereof in the step 102.
And then, verifying the plaintext ticket information of the first blockchain and the corresponding resource data and domain name data thereof.
In an embodiment, verifying the plaintext right information of the first blockchain and the corresponding resource data and domain name data thereof may specifically include:
transcoding plaintext ticket information of a first blockchain and corresponding resource data into reference domain name data through a preset coding mode according to registration information of a pre-designated internet domain name;
comparing the reference domain name data with the domain name data; if the reference domain name data and the domain name data are consistent, the verification is passed, and if the reference domain name data and the domain name data are inconsistent, the verification is not passed.
In the implementation, in the same manner as step 102, the plaintext weight information of the first blockchain and Value1 of the corresponding resource data are transcoded by Base64 to obtain Base64 (Value 1), i.e. reference domain name data (Key, base64 (Value 1)); the reference domain name data (Key, base64 (Value 1)) and c= (Key, base64 (Value)) are compared, and if the reference domain name data and the domain name data are identical, the verification is passed, and if the reference domain name data and the domain name data are not identical, the verification is not passed.
And finally, after verification passes, generating cross-chain storage information, and associating the cross-chain storage information, plaintext ticket information of the first blockchain and corresponding resource data (Key, value 1) thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain.
In particular implementations, the cross-chain storage information may include cross-chain storage time, source information of the ticket (e.g., derived from the first blockchain), and so forth.
In summary, by the method for storing the resources of the cross-blockchain, verification and storage of blockchain ticket information of the cross-blockchain and acquisition of resources can be realized, and interconnection and intercommunication of blockchain tickets of different blockchains and corresponding resources are promoted.
In order to more clearly understand the method for storing resources of a cross-block chain according to the present invention, fig. 2 is a schematic diagram of the method for storing resources of a cross-block chain according to the embodiment of the present invention; fig. 3 is a flow chart of a resource storage method based on the inter-block chain of fig. 2. The following is a description with reference to fig. 2 and 3.
The metadata of the blockchain A ticket (plaintext ticket information of the first blockchain) and the corresponding resource can be subjected to Base64 transcoding to obtain domain name registration information (domain name data); then, carrying out DNSSEC signature on the domain name registration information by utilizing a private key B of the blockchain A; because the signed domain name registration information (signed domain name data) is stored in the domain name zone file, the domain name zone file is resolved by DNS resolution, and the signed domain name registration information obtained after the resolution is input into a ticket management page for display (ticket management web page).
When the blockchain A ticket and the corresponding resource are required to be stored in the blockchain B, the blockchain A ticket and the corresponding resource (signature ticket information of a first blockchain and corresponding signature resource data thereof) and domain name registration information are respectively acquired from the blockchain A and the ticket management page, the public key A of the blockchain A is utilized for signing and comparing and checking, and after the verification is passed, the cross-chain storage information, the metadata of the blockchain A ticket and the corresponding resource are written into the blockchain B and are uplink.
The embodiment of the invention also provides a resource storage device of the inter-block chain, which is described in the following embodiment. Because the principle of the device for solving the problem is similar to that of the above-mentioned cross-block chain resource storage method, the implementation of the method can refer to the implementation of the cross-block chain resource storage method, and the repetition is omitted.
As shown in fig. 4, a schematic diagram of a resource storage device of a cross-block chain according to an embodiment of the present invention may include the following steps:
a domain name allocation module 401, configured to allocate a pre-specified internet domain name to the signature ticket information of the first blockchain and the signature resource data corresponding to the signature ticket information; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain;
the transcoding module 402 is configured to perform signing decomposition on the signature ticket information of the first blockchain and the signature resource data corresponding to the signature ticket information by using the first blockchain public key to obtain plaintext ticket information of the first blockchain and the resource data corresponding to the plaintext ticket information; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode;
a signature module 403, configured to perform domain name system security extension DNSSEC signature on domain name data by using a first blockchain private key, to obtain signed domain name data;
the verification and storage module 404 is configured to obtain signature ticket information of the first blockchain and signature resource data and signature domain name data corresponding to the signature ticket information when the block chain is stored with plaintext ticket information of the first blockchain and corresponding resource data; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain.
In an embodiment, the plaintext ticket information may include one or any combination of a release time, a located blockchain, a ticket feature value, a ticket picture, a ticket owner, and a ticket creator;
the resource data may include one or any combination of audio data, video data, text data, and image data.
In an embodiment, the system further includes a domain name data storage module, configured to, after the signature module uses the first blockchain private key to sign the domain name data by performing domain name system security extension, obtain signed domain name data:
the signed domain name data is written to the domain name zone file and the first blockchain.
In an embodiment, the method may further include, after the domain name data storage module writes the signed domain name data to the domain name zone file and the first blockchain, a management module:
establishing a ticket management webpage of a pre-designated Internet domain name;
performing DNS analysis on the domain name zone file to obtain signature domain name data;
and displaying the signature domain name data on a ticket management webpage of the pre-designated Internet domain name.
In one embodiment, the verification and storage module may be specifically configured to:
acquiring signature domain name data from a pre-designated ticket management webpage of an Internet domain name when clear text ticket information of a first blockchain and corresponding resource data thereof are stored in a cross-regional blockchain; signature ticket information and corresponding signature resource data are acquired from the first blockchain.
In an embodiment, the check-up storage module may be further configured to:
transcoding plaintext ticket information of a first blockchain and corresponding resource data into reference domain name data through a preset coding mode according to registration information of a pre-designated internet domain name;
comparing the reference domain name data with the domain name data; if the reference domain name data and the domain name data are consistent, the verification is passed, and if the reference domain name data and the domain name data are inconsistent, the verification is not passed.
In an embodiment, the preset encoding mode may be Base64.
An embodiment of the present invention further provides a computer device, and fig. 5 is a schematic diagram of a computer device in the embodiment of the present invention, where the computer device 500 includes a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and capable of running on the processor 520, and the processor 520 implements the method for storing resources of the block-crossing chain when executing the computer program 530.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the method for storing resources of the cross-region block chain when being executed by a processor.
The embodiment of the invention also provides a computer program product, which comprises a computer program, wherein the computer program realizes the method for storing resources of the cross-region block chain when being executed by a processor.
In the embodiment of the invention, a pre-designated Internet domain name is allocated for the signature ticket information of the first blockchain and the corresponding signature resource data thereof; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain; signing the signature ticket information of the first blockchain and the corresponding signature resource data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain and the corresponding resource data; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode; performing domain name system security extension DNSSEC signing on the domain name data by adopting a first blockchain private key to obtain signed domain name data; acquiring signature ticket information of a first blockchain, signature resource data corresponding to the signature ticket information and signature domain name data when the plaintext ticket information of the first blockchain and the corresponding resource data are stored in the inter-blockchain; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain. In this way, the plaintext weight information of the first blockchain weight and the corresponding resource data are transcoded into the domain name data, and the domain name data is used for representing the weight information of the blockchain and the corresponding resource data, so that interconnection and intercommunication of the blockchain weights of different blockchains and the corresponding resources can be promoted; and the domain name system security extension DNSSEC technology sharing public and private keys is adopted to realize signature authentication of the ticket information independent of the blockchain, so that verification, storage and resource acquisition of the blockchain ticket information crossing the blockchain can be realized.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (12)

1. A method for storing resources of a cross-block chain, comprising:
distributing a pre-designated internet domain name for signature ticket information of the first blockchain and corresponding signature resource data; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain;
signing the signature ticket information of the first blockchain and the corresponding signature resource data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain and the corresponding resource data; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode;
performing domain name system security extension DNSSEC signing on the domain name data by adopting a first blockchain private key to obtain signed domain name data;
acquiring signature ticket information of a first blockchain, signature resource data corresponding to the signature ticket information and signature domain name data when the plaintext ticket information of the first blockchain and the corresponding resource data are stored in the inter-blockchain; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain.
2. The method of claim 1, wherein the plaintext ticket information comprises one or any combination of a time of release, a blockchain in which the ticket information is located, a ticket feature value, a ticket picture, a ticket owner, and a ticket creator;
the resource data includes one or any combination of audio data, video data, text data, and image data.
3. The method of claim 1, wherein signing the domain name data with the first blockchain private key is performed with a domain name system security extension, and further comprising, after obtaining the signed domain name data:
the signed domain name data is written to the domain name zone file and the first blockchain.
4. The method of claim 3, wherein after writing the signed domain name data to the domain name zone file and the first blockchain, further comprising:
establishing a ticket management webpage of a pre-designated Internet domain name;
performing DNS analysis on the domain name zone file to obtain signature domain name data;
and displaying the signature domain name data on a ticket management webpage of the pre-designated Internet domain name.
5. The method of claim 4, wherein when the inter-blockchain stores plaintext ticket information for the first blockchain and corresponding resource data thereof, obtaining signature ticket information for the first blockchain and corresponding signature resource data thereof, and signature domain name data, comprises:
acquiring signature domain name data from a pre-designated ticket management webpage of an Internet domain name when clear text ticket information of a first blockchain and corresponding resource data thereof are stored in a cross-regional blockchain; signature ticket information and corresponding signature resource data are acquired from the first blockchain.
6. The method of claim 5, wherein verifying plaintext ticket information for a first blockchain and corresponding resource data and domain name data comprises:
transcoding plaintext ticket information of a first blockchain and corresponding resource data into reference domain name data through a preset coding mode according to registration information of a pre-designated internet domain name;
comparing the reference domain name data with the domain name data; if the reference domain name data and the domain name data are consistent, the verification is passed, and if the reference domain name data and the domain name data are inconsistent, the verification is not passed.
7. The method of any one of claims 1-6, wherein the predetermined coding mode is Base64.
8. A resource storage device of a cross-block chain, comprising:
the domain name distribution module is used for distributing a pre-designated internet domain name for the signature ticket information of the first blockchain and the corresponding signature resource data; the signature ticket information of the first blockchain and the corresponding signature resource data are obtained by signing the plaintext ticket information of the first blockchain and the corresponding resource data by adopting a private key of the first blockchain;
the transcoding module is used for signing the signature ticket information of the first blockchain and the corresponding signature resource data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain and the corresponding resource data; according to the registration information of the pre-designated Internet domain name, the plaintext ticket information of the first blockchain and the corresponding resource data are transcoded into domain name data in a preset coding mode;
the signature module is used for carrying out domain name system security extension DNSSEC signature on the domain name data by adopting a first blockchain private key to obtain signed domain name data;
the verification and storage module is used for acquiring signature ticket information of the first blockchain, signature resource data corresponding to the signature ticket information and signature domain name data when the plaintext ticket information of the first blockchain and the corresponding resource data are stored in the inter-blockchain; respectively signing the signature ticket information of the first blockchain, the corresponding signature resource data and the signature domain name data by adopting the first blockchain public key to obtain plaintext ticket information of the first blockchain, the corresponding resource data and the domain name data; verifying plaintext ticket information of a first blockchain and corresponding resource data and domain name data thereof; after the verification is passed, generating cross-chain storage information, and associating the cross-chain storage information, the plaintext ticket information of the first blockchain and the corresponding resource data thereof, and storing the cross-chain storage information and the plaintext ticket information of the first blockchain in the second blockchain.
9. The apparatus of claim 8, further comprising a domain name data storage module to sign domain name data with a domain name system security extension using a first blockchain private key after the signing module obtains the signed domain name data:
the signed domain name data is written to the domain name zone file and the first blockchain.
10. The apparatus of claim 9, further comprising a management module to, after the domain name data storage module writes the signed domain name data to the domain name zone file and the first blockchain:
establishing a ticket management webpage of a pre-designated Internet domain name;
performing DNS analysis on the domain name zone file to obtain signature domain name data;
and displaying the signature domain name data on a ticket management webpage of the pre-designated Internet domain name.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 7 when executing the computer program.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 7.
CN202310195466.0A 2023-03-03 2023-03-03 Cross-blockchain resource storage method and device Active CN115955317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310195466.0A CN115955317B (en) 2023-03-03 2023-03-03 Cross-blockchain resource storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310195466.0A CN115955317B (en) 2023-03-03 2023-03-03 Cross-blockchain resource storage method and device

Publications (2)

Publication Number Publication Date
CN115955317A CN115955317A (en) 2023-04-11
CN115955317B true CN115955317B (en) 2023-05-26

Family

ID=85892917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310195466.0A Active CN115955317B (en) 2023-03-03 2023-03-03 Cross-blockchain resource storage method and device

Country Status (1)

Country Link
CN (1) CN115955317B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046998A (en) * 2019-01-31 2019-07-23 阿里巴巴集团控股有限公司 Across chain use weighs system and method, device, electronic equipment, storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200118092A1 (en) * 2018-03-13 2020-04-16 Paul Gauvreau Built by Blockchain: A Universal API for Nonnative Cross Chain Smart Contracts
CN109886036B (en) * 2019-01-02 2020-12-01 广州大学 Domain name distributed authentication method and device based on block chain and block chain network
CN112070499B (en) * 2020-09-14 2023-08-11 天津理工大学 Asset and data cross-chain method and system based on blockchain
CN112380294B (en) * 2020-12-31 2021-04-06 支付宝(杭州)信息技术有限公司 Block chain cross-chain access method and device
CN114338666A (en) * 2021-12-03 2022-04-12 杭州趣链科技有限公司 Method, device, equipment and medium for verifying Fabric block chain cross-chain transaction

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046998A (en) * 2019-01-31 2019-07-23 阿里巴巴集团控股有限公司 Across chain use weighs system and method, device, electronic equipment, storage medium

Also Published As

Publication number Publication date
CN115955317A (en) 2023-04-11

Similar Documents

Publication Publication Date Title
US9855785B1 (en) Digitally encoded seal for document verification
CN110490004B (en) Processing method of electronic signature file, client, computer equipment and medium
CN107943996B (en) Learning calendar query method and device based on block chain
CN107194266B (en) Method for verifying whether paper certificate is tampered
CN109740317A (en) A kind of digital finger-print based on block chain deposits card method and device
CN105335667B (en) Innovate creative data processing method, device, system and deposit card equipment
US9600690B2 (en) Secure access for sensitive digital information
CN111740841B (en) Verification method and device for tracing codes
CN104734851A (en) Electronic seal method and system
CN111259439B (en) Intangible asset management service platform based on block chain and implementation method thereof
CN113112252B (en) Resource transfer method and device based on block chain, electronic equipment and storage medium
CN116433425A (en) Case setting method based on alliance chain and related equipment
CN111460524B (en) Method, apparatus and computer readable storage medium for detecting data integrity
Barclay et al. Certifying provenance of scientific datasets with self-sovereign identity and verifiable credentials
CN113158207A (en) Block chain based report generation method and device, electronic equipment and storage medium
CN113961956A (en) Method, device, equipment and medium for generating and applying tagged network information service
CN111859431A (en) Electronic file signature method and device, electronic equipment and storage medium
CN110324343B (en) Information monitoring and broadcasting method and device, electronic equipment and storage medium
CN114626079A (en) File viewing method, device, equipment and storage medium based on user permission
EA035937B1 (en) Secure item identification based on physical label properties
CN115955317B (en) Cross-blockchain resource storage method and device
CN111490870B (en) Seal registration method, verification method and anti-counterfeiting system based on blockchain
CN111311179A (en) Object processing method and device, electronic equipment and computer readable storage medium
CN115643090A (en) Longitudinal federal analysis method, device, equipment and medium based on privacy retrieval
CN113918517A (en) Multi-type file centralized management method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant