CN115955317A - Cross-block-chain resource storage method and device - Google Patents

Cross-block-chain resource storage method and device Download PDF

Info

Publication number
CN115955317A
CN115955317A CN202310195466.0A CN202310195466A CN115955317A CN 115955317 A CN115955317 A CN 115955317A CN 202310195466 A CN202310195466 A CN 202310195466A CN 115955317 A CN115955317 A CN 115955317A
Authority
CN
China
Prior art keywords
domain name
signature
block chain
ticket information
data
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.)
Granted
Application number
CN202310195466.0A
Other languages
Chinese (zh)
Other versions
CN115955317B (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a resource storage method and a device of a cross-block chain, wherein the method comprises the following steps: distributing a designated internet domain name for the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information; transcoding the plaintext ticket information and the resource data of the first block chain into domain name data in a preset coding mode according to the registration information of the Internet domain name; performing DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data; when the plaintext ticket information and resources of the first block chain are stored in the cross-block chain, the signature domain name data, the signature ticket information and the signature resource data are respectively subjected to label release by adopting a first block chain public key; verifying the plaintext ticket information, the resource data and the domain name data obtained after the label is removed; and if the verification is passed, importing the plaintext ticket information and the resource data of the first blockchain ticket into a second blockchain for storage. The invention can realize the check and storage of the block chain ticket information of the cross-block chain.

Description

Cross-block-chain resource storage method and device
Technical Field
The invention relates to the technical field of block chains and the Internet, in particular to a resource storage method and device of a cross-block chain.
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 block chain ticket and the corresponding resource, the user needs to perform related information query, backup storage or verification on the block chain ticket, so as to obtain the resource corresponding to the block chain ticket. At present, evidence storage and evidence obtaining services of electronic evidence certificates are provided for users through a block chain certificate chain, the block chain certificate chain adopts the technologies of block chain, data encryption, safe cloud storage and the like, the electronic evidence is ensured to be complete and credible and not to be tampered, and the right maintaining efficiency is effectively improved. Because what the block chain ticket adopted more at present is that the hash value of block chain itself comes the sign, consequently, can link the hash value of the electron evidence ticket that the block chain ticket chain exists, can be on-line verification evidence authenticity, after the verification passes, can acquire the resource that the electron evidence ticket corresponds.
Although the hash value can uniquely mark the blockchain ticket, there are currently a large number of blockchains, and each blockchain has its own hash generation algorithm, so that it is difficult to unify the generated hash values and the hash values themselves have no regular semantics, the blockchain tickets between blockchains and their corresponding resources are not well intercommunicated, and check and storage of the blockchain ticket information across blockchains and their corresponding resource data cannot be implemented.
Disclosure of Invention
The embodiment of the invention provides a cross-block chain resource storage method, which is used for verifying and storing cross-block chain ticket information and acquiring resources and promoting the interconnection and intercommunication of block chain tickets of different block chains and corresponding resources, and comprises the following steps:
allocating a pre-specified internet domain name for the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data;
adopting a first block chain public key to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; transcoding the plaintext certificate information of the first block chain and corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified internet domain name;
performing domain name system security extension DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data;
when the plaintext ticket information of the first block chain and the corresponding resource data are stored in the cross-block chain, acquiring signature ticket information of the first block chain, the corresponding signature resource data and signature domain name data; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; verifying the plaintext ticket information of the first block chain, the corresponding resource data of the plaintext ticket information and the domain name data of the first block chain; and after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data, and storing the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data in the second block chain.
The embodiment of the present invention further provides a resource storage device across block chains, which is used to implement verification and storage of block chain ticket information across block chains and acquisition of resources, and promote interconnection and intercommunication of block chain tickets and corresponding resources of different block chains, and the device includes:
the domain name distribution module is used for distributing a pre-specified internet domain name for the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data;
the transcoding module is used for adopting a first block chain public key to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; transcoding the plaintext certificate information of the first block chain and corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified internet domain name;
the signature module is used for carrying out domain name system safety extension DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data;
the check-transfer storage module is used for acquiring the signature ticket information of the first block chain, the signature resource data corresponding to the signature ticket information and the signature domain name data when the plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information are stored in the cross-block chain; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data; and after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data, and storing the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data in the second block chain.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the resource storage method of the cross-block chain is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for storing resources across block chains is implemented.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when executed by a processor, the computer program implements the resource storage method of the cross-block chain.
In the embodiment of the invention, a preassigned internet domain name is allocated to the signature ticket information of the first block chain and the corresponding signature resource data; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data; adopting a first block chain public key to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name; performing domain name system safety extension DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data; when the plaintext ticket information of the first block chain and the corresponding resource data are stored in the cross-block chain, the signature ticket information of the first block chain, the corresponding signature resource data of the first block chain and the signature domain name data of the first block chain are obtained; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data; and after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data, and storing the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data in the second block chain. In this way, the plaintext ticket information of the first blockchain ticket and the corresponding resource data are transcoded into domain name data, and the domain name data is adopted to represent the ticket information of the blockchain and the corresponding resource data, so that the interconnection and intercommunication of the blockchain tickets of different blockchains and the corresponding resources can be promoted; moreover, the domain name system security extension DNSSEC technology which shares public and private keys is adopted to realize the signature authentication of the block chain-independent certificate information, so that the verification and storage of the block chain-crossing certificate information of the block chain and the acquisition of resources can be realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts. In the drawings:
fig. 1 is a flowchart of a resource storage method across block chains according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a method for cross-blockchain resource storage according to an embodiment of the present invention;
FIG. 3 is a flowchart of a resource storage method based on the cross-block chain of FIG. 2 according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a resource storage device across block chains provided in an embodiment of the present invention;
fig. 5 is a schematic diagram of a computer device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are used in an open-ended fashion, i.e., to mean including but not limited to. Reference to the description of 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 application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. 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 various embodiments is provided to illustrate the practice of the present application, and the sequence of steps is not limited thereto and can be adjusted as needed.
At present, the block chain ticket and the corresponding resources between the block chains cannot be well communicated, and a uniform resource storage method of the cross-block chain is lacked to realize the checking and storage of the ticket information of the cross-block chain and the 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. Therefore, the uniform identification of the block chain ticket crossing the block chain can be realized through the mutual mapping of the Internet domain name and the block chain ticket information, and further, the verification and storage of the block chain ticket information and the acquisition of resources are realized. Based on this, the embodiment of the present invention provides a resource storage method across a block chain.
As shown in fig. 1, which is a flowchart of a resource storage method across a block chain in an embodiment of the present invention, the method may include:
step 101, allocating a pre-specified internet domain name for the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data;
102, adopting a first block chain public key to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name;
103, performing domain name system security extension DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data;
104, when the plaintext ticket information of the first block chain and the corresponding resource data are stored in the cross-block chain, acquiring signature ticket information of the first block chain, corresponding signature resource data and signature domain name data; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data; after the verification is passed, cross-chain storage information is generated, the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data are associated, and the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data are stored in a second block chain.
In the embodiment of the invention, a preassigned internet domain name is allocated to the signature ticket information of the first block chain and the corresponding signature resource data; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data; adopting a first block chain public key to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name; performing domain name system security extension DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data; when the plaintext ticket information of the first block chain and the corresponding resource data are stored in the cross-block chain, acquiring signature ticket information of the first block chain, the corresponding signature resource data and signature domain name data; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data; and after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data, and storing the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data in the second block chain. In this way, the plaintext ticket information of the first block chain ticket and the corresponding resource data are transcoded into domain name data, and the ticket information of the block chain and the corresponding resource data are represented by the domain name data, so that the interconnection and the intercommunication of the block chain tickets of different block chains and the corresponding resources can be promoted; moreover, the domain name system security extension DNSSEC technology sharing public and private keys is adopted to realize the certificate information signature authentication independent of the block chain, so that the verification, storage and resource acquisition of the block chain certificate information of the cross-block chain can be realized.
In step 101, a pre-specified internet domain name is allocated to the signature ticket information of the first block chain and the corresponding signature resource data.
The signature ticket information of the first block chain and the signature resource data corresponding to the same are obtained by signing the plaintext ticket information of the first block chain and the corresponding resource data by using a first block chain private key. 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 block chain and the resource corresponding to the ticket of the first block chain to uniquely mark the ticket information of the first block chain and the resource data corresponding to the ticket information, wherein the ticket information of the first block chain uniquely corresponds to the resource data, and the corresponding resource data can be acquired through the ticket information of the first block chain. Specifically, the ticket identifier of the first blockchain may be mapped to the internet domain name through an internet domain name provider, and may be a ticket name or a serial number of the first blockchain.
It should be noted that, the process of allocating the pre-specified internet domain name for the signing ticket information of the first block chain and the corresponding resource data thereof may be understood as follows: and domain name registration, namely, a process of establishing a mapping relation, specifically, registering an internet domain name, using the internet domain name as a specified internet domain name, and establishing mapping with the ticket identification of the first block chain.
In step 102, the plaintext ticket information of the first block chain and the corresponding resource data are transcoded.
In specific implementation, the first block chain public key can be adopted to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information, so as to obtain the plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; and transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into domain name data in a preset coding mode according to the registration information of the pre-specified Internet domain name.
In one embodiment, the plaintext ticket information may include one or any combination of a release time, a block chain where the release time 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 resource data may be music, text of a novel txt, a dance video, a landscape picture, and so on.
In one embodiment, the preset encoding mode may be Base64. The character string coded by the Base64 is more suitable for transmission of different platforms and different languages.
In specific implementation, when the internet domain name is registered, registration information is generated correspondingly, for example, the abc. In the embodiment of the invention, according to the registration information of the specified Internet domain name, the plaintext certificate information of the first block chain and the corresponding resource data are transcoded into domain name data through Base64. Namely, the plaintext ticket information and the corresponding resource data are reorganized according to the registration information format of the internet domain name, so that the plaintext ticket information and the corresponding resource data of the first block chain become unreadable.
In specific implementation, the plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information may be data in a (Key, value) format, and when transcoding is performed through Base64, transcoding may be performed on the plaintext ticket information and the Value of the resource data corresponding to the plaintext ticket information, and the domain name data obtained after transcoding 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 ticket information and transcoded domain name data.
Figure SMS_1
Figure SMS_2
In step 103, a first blockchain private key is used to perform domain name system security extension DNSSEC signature on the domain name data to obtain signature domain name data.
In a specific implementation, the first block chain private key is also a private key for signing the plaintext ticket information and the corresponding resource data in the first block chain. For example, the first block chain private Key is PrivateKey, and DNSSEC signature is performed on domain name data a = (Key, base64 (Value)) to obtain signature domain name data B = (Key, privateKey (Base 64 (Value))).
In an embodiment, after step 103, the method may further include:
and writing the signature domain name data into the domain name area file and the first block chain.
In specific implementation, for example, B = (Key, privateKey (Base 64 (Value))) is written into the domain name zone file and the first block chain.
In an embodiment, after writing the signature domain name data into the domain name zone file and the first blockchain, the method may further include:
establishing a ticket management webpage of a pre-specified internet domain name;
performing DNS analysis on the domain name area file to obtain signature domain name data;
and displaying the signature domain name data on a ticket management webpage of a pre-specified Internet domain name.
In specific implementation, the page construction of the ticket management webpage can be performed for a pre-specified internet domain name, the 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 performing Domain Name System (DNS) analysis on a domain name area file.
Therefore, the signature domain name data can be stored in a non-blockchain distributed manner through the ticket management webpage, direct access to the ticket management page through the internet domain name is achieved, and therefore the blockchain ticket and the corresponding resource can be safely acquired outside the blockchain, and the convenience of resource acquisition is improved while safety is ensured.
It should be noted that, in the above steps 101 to 103, the process of identifying the signature ticket information of the first block chain and the signature resource data corresponding to the same by using the internet domain name is used to lay down the subsequent cross-block chain check and the ticket information and acquired resource of the storage block chain.
In the step 104, cross block chain checking and storing the plaintext ticket information of the first block chain and the corresponding resource data are performed.
First, signature ticket information of a first block chain, signature resource data corresponding to the signature ticket information, and signature domain name data are acquired.
In an embodiment, the obtaining the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information may include:
when cross-block chain is used for storing plaintext ticket information of a first block chain and corresponding resource data, signature domain name data are obtained from a ticket management webpage of a pre-specified internet domain name; and acquiring the signature ticket information and the corresponding signature resource data from the first block chain.
In a specific implementation, for example, the internet domain name abc.cn corresponding to the ticket of the first block chain may be input in the browser, the ticket management web page of the abc.cn is accessed, and the signed domain name data, that is, B = (Key, privateKey (Base 64 (Value))), is obtained. And acquiring the signature ticket information of the first block chain and the corresponding signature resource data from the first block chain.
Then, the first block chain public key may be adopted to respectively perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding thereto, and the signature domain name data, so as to obtain the plaintext ticket information of the first block chain and the resource data corresponding thereto, and the domain name data.
In specific implementation, for example, the signature domain name data B = (Key, privateKey (Base 64 (Value))) is de-signed, and C = (Key, base64 (Value)); c is the same as a described above if the signature domain name data of the first blockchain has not been tampered with. Similarly, the plaintext ticket information and the corresponding resource data obtained by the signing of the signature ticket information of the first block chain and the corresponding signature resource data are theoretically the same as the plaintext ticket information and the corresponding resource data of the first block chain in the step 102.
And then, checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data.
In an embodiment, the checking the plaintext ticket information of the first block chain and the corresponding resource data and domain name data may specifically include:
transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into reference domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name;
comparing the reference domain name data with the domain name data; if the reference domain name data is consistent with the domain name data, the verification is passed, and if the reference domain name data is inconsistent with the domain name data, the verification is not passed.
In specific implementation, in the same manner as in step 102, the plaintext ticket information of the first block chain and Value1 of the resource data corresponding to the plaintext ticket information may be transcoded by Base64 to obtain Base64 (Value 1), that is, refer to domain name data (Key, base64 (Value 1)); and comparing the reference domain name data (Key, base64 (Value 1)) with the reference domain name data (C = (Key, base64 (Value)), wherein if the reference domain name data is consistent with the domain name data, the check is passed, and if the reference domain name data is not consistent with the domain name data, the check is not passed.
And finally, after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext certificate information of the first block chain and the corresponding resource data (Key, value 1) thereof, and storing the cross-chain storage information, the plaintext certificate information of the first block chain and the corresponding resource data in the second block chain.
In particular implementations, the cross-chain storage information may include a cross-chain storage time, source information of the ticket (e.g., from the first blockchain), and so on.
In summary, by the resource storage method of the cross-block chain, checking, storage and resource acquisition of the block chain ticket information of the cross-block chain can be achieved, and interconnection and intercommunication of the block chain tickets of different block chains and corresponding resources thereof are promoted.
In order to more clearly understand the resource storage method across block chains of the present invention, fig. 2 is a schematic diagram of the resource storage method across block chains according to the embodiment of the present invention; fig. 3 is a flowchart of a resource storage method based on the cross-block chain of fig. 2. The following description is made with reference to fig. 2 and 3.
The metadata (plaintext ticket information of the first block chain) of the ticket of the block chain A 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 using a private key B of the block chain A; since the signed domain name registration information (signed domain name data) is stored in the domain name area file, the domain name area file is analyzed by DNS analysis, and the signed domain name registration information obtained by the analysis is input to a ticket management page for presentation (ticket management page).
When the ticket of the block chain A and the corresponding resource are required to be stored in the block chain B, the ticket of the block chain A and the corresponding resource (the signature ticket information of the first block chain and the corresponding signature resource data) and the domain name registration information are respectively acquired from the block chain A and the ticket management page, the public key A of the block chain A is used for de-signing and comparison and verification, and after the verification is passed, the cross-chain storage information, the metadata of the ticket of the block chain A and the corresponding resource are written into the block chain B and uplink is carried out.
The embodiment of the present invention further provides a resource storage device across block chains, which is described in the following embodiments. Because the principle of the device for solving the problems is similar to the resource storage method of the cross-block chain, the implementation of the method can refer to the implementation of the resource storage method of the cross-block chain, and repeated details are not repeated.
As shown in fig. 4, a schematic diagram of a resource storage device across a block chain according to an embodiment of the present invention may include the following steps:
a domain name allocating module 401, configured to allocate a pre-specified internet domain name for the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data;
a transcoding module 402, configured to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information by using the first block chain public key, to obtain plaintext ticket information of the first block chain and resource data corresponding to the plaintext ticket information; transcoding the plaintext certificate information of the first block chain and corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified internet domain name;
the signature module 403 is configured to perform domain name system security extension DNSSEC signature on the domain name data by using a first blockchain private key to obtain signature domain name data;
a check-transfer storage module 404, configured to obtain signature ticket information of the first block chain, signature resource data corresponding to the signature ticket information, and signature domain name data when the plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information are stored across block chains; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data; and after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data, and storing the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data in the second block chain.
In one embodiment, the plaintext ticket information may include one or any combination of a release time, a block chain where the release time is located, 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, image data.
In an embodiment, the system may further include a domain name data storage module, configured to, after the signature module performs domain name system security extension signature on the domain name data by using the first blockchain private key, to obtain signature domain name data:
and writing the signature domain name data into the domain name area file and the first block chain.
In an embodiment, the management module may be further configured to, after the domain name data storage module writes the signature domain name data to the domain name zone file and the first blockchain:
establishing a ticket management webpage of a pre-specified internet domain name;
performing DNS analysis on the domain name area file to obtain signature domain name data;
and displaying the signature domain name data on a ticket management webpage of a pre-specified Internet domain name.
In an embodiment, the check-transfer storage module may be specifically configured to:
when cross-block chain is used for storing plaintext ticket information of a first block chain and corresponding resource data, signature domain name data are obtained from a ticket management webpage of a pre-specified internet domain name; and acquiring the signature ticket information and the corresponding signature resource data from the first block chain.
In an embodiment, the check-transfer storage module may be further configured to:
transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into reference domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name;
comparing the reference domain name data with the domain name data; if the reference domain name data is consistent with the domain name data, the verification is passed, and if the reference domain name data is inconsistent with the domain name data, the verification is not passed.
In an embodiment, the preset encoding manner may be Base64.
Fig. 5 is a schematic diagram of a computer device in an 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 executable on the processor 520, and when the processor 520 executes the computer program 530, the method for storing resources across block chains is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for storing resources across block chains is implemented.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the method for storing resources across block chains is implemented.
In the embodiment of the invention, a preassigned internet domain name is allocated to the signature ticket information of the first block chain and the corresponding signature resource data; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data; adopting a first block chain public key to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name; performing domain name system security extension DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data; when the plaintext ticket information of the first block chain and the corresponding resource data are stored in the cross-block chain, acquiring signature ticket information of the first block chain, the corresponding signature resource data and signature domain name data; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data; and after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data, and storing the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data in the second block chain. In this way, the plaintext ticket information of the first blockchain ticket and the corresponding resource data are transcoded into domain name data, and the domain name data is adopted to represent the ticket information of the blockchain and the corresponding resource data, so that the interconnection and intercommunication of the blockchain tickets of different blockchains and the corresponding resources can be promoted; moreover, the domain name system security extension DNSSEC technology sharing public and private keys is adopted to realize the certificate information signature authentication independent of the block chain, so that the verification, storage and resource acquisition of the block chain certificate information of the cross-block chain can be realized.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been 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 above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A method for storing resources across block chains is characterized by comprising the following steps:
distributing a pre-specified internet domain name for the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data;
adopting a first block chain public key to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name;
performing domain name system security extension DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data;
when the plaintext ticket information of the first block chain and the corresponding resource data are stored in the cross-block chain, acquiring signature ticket information of the first block chain, the corresponding signature resource data and signature domain name data; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data; and after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data, and storing the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data in the second block chain.
2. The method of claim 1, wherein the plaintext ticket information comprises one or any combination of a publishing time, a block chain, 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 the performing domain name system security extension signing on the domain name data using the first blockchain private key to obtain signed domain name data further comprises:
and writing the signature domain name data into the domain name area file and the first block chain.
4. The method of claim 3, wherein writing the signed domain name data to the domain name zone file and the first blockchain further comprises:
establishing a ticket management webpage of a pre-specified 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 a pre-specified Internet domain name.
5. The method of claim 4, wherein obtaining the signature ticket information of the first blockchain and the corresponding signature resource data and the signature domain name data when storing the plaintext ticket information of the first blockchain and the corresponding resource data across the blockchains comprises:
when the plaintext ticket information of the first block chain and the corresponding resource data are stored in the cross-block chain, signature domain name data are acquired from a ticket management webpage of a pre-specified internet domain name; and acquiring the signature ticket information and the corresponding signature resource data from the first block chain.
6. The method of claim 5, wherein checking the plaintext ticket information for the first blockchain and its corresponding resource data and domain name data comprises:
transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into reference domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name;
comparing the reference domain name data with the domain name data; if the reference domain name data is consistent with the domain name data, the check is passed, and if the reference domain name data is inconsistent with the domain name data, the check is not passed.
7. The method of any of claims 1-6, wherein the predetermined encoding mode is Base64.
8. An apparatus for resource storage across a block chain, comprising:
the domain name distribution module is used for distributing a pre-specified internet domain name for the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information; the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information are obtained by adopting a first block chain private key to sign the plaintext ticket information of the first block chain and the corresponding resource data;
the transcoding module is used for adopting a first block chain public key to perform de-signing on the signature ticket information of the first block chain and the signature resource data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information; transcoding the plaintext ticket information of the first block chain and the corresponding resource data thereof into domain name data in a preset coding mode according to registration information of a pre-specified Internet domain name;
the signature module is used for carrying out domain name system safety extension DNSSEC signature on the domain name data by adopting a first block chain private key to obtain signature domain name data;
the check-transfer storage module is used for acquiring the signature ticket information of the first block chain, the signature resource data corresponding to the signature ticket information and the signature domain name data when the plaintext ticket information of the first block chain and the resource data corresponding to the plaintext ticket information are stored in the cross-block chain; adopting a first block chain public key to respectively perform label release on the signature ticket information of the first block chain and the signature resource data and the signature domain name data corresponding to the signature ticket information to obtain plaintext ticket information of the first block chain and the resource data and the domain name data corresponding to the plaintext ticket information; checking the plaintext ticket information of the first block chain, the corresponding resource data and the domain name data; and after the verification is passed, generating cross-chain storage information, associating the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data, and storing the cross-chain storage information, the plaintext ticket information of the first block chain and the corresponding resource data in the second block chain.
9. The apparatus of claim 8, further comprising a domain name data storage module, configured to, after the signature module performs domain name system security extension signature on the domain name data using the first blockchain private key to obtain the signed domain name data:
and writing the signature domain name data into the domain name area file and the first block chain.
10. The apparatus of claim 9, further comprising a management module to, after the domain name data storage module writes the signature domain name data to the domain name zone file and the first blockchain:
establishing a ticket management webpage of a pre-specified internet domain name;
performing DNS analysis on the domain name area file to obtain signature domain name data;
and displaying the signature domain name data on a ticket management webpage of a pre-specified 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, wherein the processor implements the method of any one 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.
13. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one 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 true CN115955317A (en) 2023-04-11
CN115955317B 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109886036A (en) * 2019-01-02 2019-06-14 广州大学 Domain name distributed authentication method, device and block chain network based on block chain
CN110046998A (en) * 2019-01-31 2019-07-23 阿里巴巴集团控股有限公司 Across chain use weighs system and method, device, electronic equipment, storage medium
US20200118092A1 (en) * 2018-03-13 2020-04-16 Paul Gauvreau Built by Blockchain: A Universal API for Nonnative Cross Chain Smart Contracts
CN112070499A (en) * 2020-09-14 2020-12-11 天津理工大学 Asset and data chain crossing method and system based on block chain
CN112380294A (en) * 2020-12-31 2021-02-19 支付宝(杭州)信息技术有限公司 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 (6)

* 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
CN109886036A (en) * 2019-01-02 2019-06-14 广州大学 Domain name distributed authentication method, device and block chain network based on block chain
CN110046998A (en) * 2019-01-31 2019-07-23 阿里巴巴集团控股有限公司 Across chain use weighs system and method, device, electronic equipment, storage medium
CN112070499A (en) * 2020-09-14 2020-12-11 天津理工大学 Asset and data chain crossing method and system based on block chain
CN112380294A (en) * 2020-12-31 2021-02-19 支付宝(杭州)信息技术有限公司 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

Also Published As

Publication number Publication date
CN115955317B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
US20220300956A1 (en) Secure management of data files using a blockchain
CN110535660B (en) Evidence obtaining service system based on block chain
TW202034654A (en) Systems and methods for efficient and secure processing, accessing and transmission of data via a blockchain network
CN1936780A (en) Information processing apparatus, verification processing apparatus, and control methods thereof
CN106921496A (en) A kind of digital signature method and system
CN111311258B (en) Block chain-based trusted transaction method, device, system, equipment and medium
US20150199540A1 (en) Secure access for sensitive digital information
US20100223469A1 (en) Method, System and Computer Program Product for Certifying Software Origination
CN109214146A (en) The endorsement method of application software, sign test method and apparatus
CN116433425A (en) Case setting method based on alliance chain and related equipment
CN110598433A (en) Anti-counterfeiting information processing method and device based on block chain
CN109427029A (en) A kind of method and device generating watermark
CN111460524B (en) Method, apparatus and computer readable storage medium for detecting data integrity
CN114500093A (en) Safe interaction method and system for message information
CN113094334A (en) Digital service method, device, equipment and storage medium based on distributed storage
CN111859431A (en) Electronic file signature method and device, electronic equipment and storage medium
CN109413099B (en) Certificate-based hybrid cloud encrypted communication method and device and electronic equipment
JP2997483B2 (en) Verification data generator
CN115955317A (en) Cross-block-chain resource storage method and device
WO2022205961A1 (en) Method and apparatus for updating blockchain domain name configuration
CN116015846A (en) Identity authentication method, identity authentication device, computer equipment and storage medium
CN113395281B (en) Verification method and device capable of verifying statement and electronic equipment
CN113726518B (en) Method and device for publishing works in network
CN106156625A (en) The method of a kind of plug-in unit signature and electronic equipment
CN111222170B (en) Block chain electronic version certificate system based on public chain, and certification storing flow and verification method thereof

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