CN114553429A - Chameleon hash-based block chain cross-chain transaction method and device and storage medium - Google Patents

Chameleon hash-based block chain cross-chain transaction method and device and storage medium Download PDF

Info

Publication number
CN114553429A
CN114553429A CN202210034060.XA CN202210034060A CN114553429A CN 114553429 A CN114553429 A CN 114553429A CN 202210034060 A CN202210034060 A CN 202210034060A CN 114553429 A CN114553429 A CN 114553429A
Authority
CN
China
Prior art keywords
cross
information
chain
target
link
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.)
Pending
Application number
CN202210034060.XA
Other languages
Chinese (zh)
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.)
Yancheng Matrix Operation Management Co ltd
Original Assignee
Yancheng Matrix Operation Management 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 Yancheng Matrix Operation Management Co ltd filed Critical Yancheng Matrix Operation Management Co ltd
Priority to CN202210034060.XA priority Critical patent/CN114553429A/en
Publication of CN114553429A publication Critical patent/CN114553429A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/062Network architectures or network communication protocols for network security for supporting key management in a packet data network for key distribution, e.g. centrally by trusted party
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Power Engineering (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a chameleon hash-based block chain cross-chain transaction method and device, a storage medium and computer equipment, wherein the method comprises the following steps: when a first cross-link gateway of a source blockchain system monitors cross-link transaction modification information, determining original transaction information of the cross-link transaction modification information, an original public key, an original random number and an original hash value from a source blockchain; acquiring an original private key of original transaction information, and determining an updated random number corresponding to the original hash value; the method comprises the steps of digitally signing cross-chain transaction modification information through an original private key, packaging the signed cross-chain transaction modification information, an updated random number, an original public key and an original hash value to generate target cross-chain modification information, sending the target cross-chain modification information to a target relay chain through a first cross-chain gateway to enable the target relay chain to forward the target cross-chain modification information to a target block chain, and modifying the original transaction information through the target block chain based on modified content information and a modified position identifier in the cross-chain transaction modification information.

Description

Chameleon hash-based block chain cross-chain transaction method and device and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain cross-chain transaction method and apparatus based on chameleon hashing, a storage medium, and a computer device.
Background
With the rapid development of blockchain technology, more blockchain systems begin to adopt cross-chain technology to implement cross-chain transactions. Cross-chain transactions refer to transactions between nodes in a blockchain system that are homogeneous or heterogeneous. When the transaction is successful, the transaction information may be stored in the blockchain that receives the transaction information.
However, in the cross-chain transaction, there may be a situation that a user performs an operation error on the source blockchain, which causes an error to be initiated, or a situation that inappropriate content exists in the cross-chain transaction content is discovered afterwards, and the like, and the cross-chain transaction content needs to be modified afterwards.
Disclosure of Invention
In view of this, the present application provides a chameleon hash-based blockchain cross-chain transaction method and apparatus, a storage medium, and a computer device, where an updated random number corresponding to cross-chain transaction modification information is generated through a chameleon hash function, so that cross-chain transactions can be edited, error information can be effectively corrected, and a blockchain network environment is improved.
According to one aspect of the application, a blockchain cross-chain transaction method based on chameleon hash is provided, and is applied to a source blockchain system, and the method comprises the following steps:
when a first cross-link gateway of a source block chain system monitors cross-link transaction modification information, determining original transaction information of the cross-link transaction modification information, and an original public key, an original random number and an original hash value corresponding to the original transaction information from a source block chain, wherein the cross-link transaction modification information comprises modification position identification and modification content information of a destination block chain, and the original transaction information is transaction information written into the destination block chain;
acquiring an original private key of the original transaction information, and determining an updated random number corresponding to the original hash value through a chameleon hash function based on the cross-chain transaction modification information, the original random number, the original transaction information and the original private key;
performing digital signature on the cross-chain transaction modification information through the original private key, packaging the cross-chain transaction modification information after signature, the updated random number, the original public key and the original hash value to generate target cross-chain modification information, sending the target cross-chain modification information to a target relay chain through the first cross-chain gateway, so that the target relay chain transmits the target cross-chain modification information to the target block chain through the target cross-chain modification information, and the target block chain modifies the original transaction information corresponding to the modification position identifier based on the modification content information and feeds back cross-chain feedback information to the target relay chain;
and receiving the cross-link feedback information sent by the target relay link based on the first cross-link gateway, and storing the cross-link feedback information into a cross-link contract.
Optionally, before obtaining the original private key of the original transaction information, the method further includes:
dividing an original private key of the original transaction information into a first sub private key with a first preset number based on a preset key distribution algorithm, and distributing the first sub private key and the cross-chain transaction modification information to the first cross-chain gateways with the first preset number in the source blockchain system;
when the first cross-link gateway exceeding a first quantity threshold value modifies information through the cross-link transaction, restoring the original private key based on a preset key recovery algorithm and the first sub-private key corresponding to the first cross-link gateway which modifies information through the cross-link transaction.
Optionally, the receiving, by the first inter-link gateway, the inter-link feedback information sent by the target relay link, and storing the inter-link feedback information in an inter-link contract includes:
receiving the cross-link feedback information sent by the target relay link system through the first cross-link gateway, verifying whether a target hash value corresponds to change notification information or not based on a hash verification algorithm and the cross-link feedback information, and when the target hash value corresponds to the change notification information, obtaining a first private key and a first public key of the first cross-link gateway, performing secondary digital signature on the signed change notification information through the first private key, and sending the secondarily signed change notification information, the first public key and the target public key to a first verification node of the source block link system, wherein the cross-link feedback information comprises the signed change notification information, a target random number, the target public key and the target hash value;
and based on the first verification node, performing source verification on the change notification information subjected to the secondary signature through the first public key and the target public key, and storing the cross-link feedback information into the cross-link contract when the number of the first verification nodes passing verification and consensus passes exceeds a first preset number threshold.
According to another aspect of the application, a blockchain cross-chain transaction method based on chameleon hashing is provided, and is applied to a target relay chain system, and the method includes:
receiving target cross-link modification information sent by a first cross-link gateway in a source block chain system through a second verification node of the target relay chain system, verifying whether an original hash value corresponds to cross-link transaction modification information or not based on a hash verification algorithm and the target cross-link modification information, and identifying the cross-link transaction modification information when the original hash value corresponds to the cross-link transaction modification information, wherein the target cross-link modification information comprises signed cross-link transaction modification information, an updated random number, an original public key and the original hash value, and the cross-link transaction modification information comprises a modification position identifier and modification content information of a target block chain;
when the number of the second verification nodes passing through the cross-chain transaction modification information exceeds a second preset number threshold value, forwarding the target cross-chain modification information to the target block chain, so that the target block chain modifies the original transaction information corresponding to the modification position identifier based on the modification content information, and generates cross-chain feedback information;
receiving, by the second verification node, the cross-link feedback information sent by the destination blockchain, verifying whether a target hash value corresponds to change notification information in the cross-link feedback information based on the hash verification algorithm and the cross-link feedback information, and recognizing the change notification information when the target hash value corresponds to the change notification information, where the cross-link feedback information includes the change notification information after signature, a target random number, a target public key, and the target hash value;
when the number of the second verification nodes passing through the change notification information exceeds the second preset number threshold, forwarding the cross-chain feedback information to the source block chain, so that the source block chain stores the cross-chain feedback information into a cross-chain contract of the source block chain.
According to another aspect of the present application, there is provided a chameleon hash-based blockchain cross-chain transaction method, applied to a destination blockchain system, including:
receiving target cross-link modification information sent by a target relay link system through a second cross-link gateway of a target blockchain system, verifying whether an original hash value corresponds to cross-link transaction modification information or not based on a hash verification algorithm and the target cross-link modification information, and acquiring a second private key and a second public key of the second cross-link gateway when the original hash value corresponds to the cross-link transaction modification information, performing secondary digital signature on the signed cross-chain transaction modification information through the second private key, and the cross-chain transaction modification information after the secondary signature, the second public key and the original public key are sent to a third verification node of the target blockchain system, wherein the target cross-chain modification information comprises signed cross-chain transaction modification information, an updated random number, an original public key and the original hash value, the cross-chain transaction modification information comprises modification position identification and modification content information of the target block chain;
based on the third verification node, performing source verification on the cross-chain transaction modification information subjected to secondary signature through the second public key and the original public key, and modifying the original transaction information corresponding to the modification position identifier based on the modification content information when the verification is passed and the number of the third verification nodes passing consensus exceeds a third preset number threshold value, and generating modification notification information;
after the second inter-link gateway monitors the change notification information, determining a target hash value based on a hash generation algorithm and a target public key, the change notification information and a target random number, wherein the target public key and a target private key are generated based on a key generation algorithm;
the change notification information is digitally signed through the target private key, the signed change notification information, the target random number, the target public key and the target hash value are packaged to generate cross-link feedback information, the cross-link feedback information is sent to the target relay chain through the second cross-link gateway, so that the target relay chain transmits the cross-link feedback information to the source block chain through the cross-link feedback information, and the source block chain stores the cross-link feedback information into a cross-link contract of the source block chain.
Optionally, before obtaining the second private key and the second public key of the second cross-chain gateway, the method further includes:
determining the second public key and the second private key based on a preset key generation algorithm;
the obtaining a second private key and a second public key of the second cross-link gateway specifically includes:
dividing the second private key into a second sub private key with a second preset number based on a preset key distribution algorithm, and distributing the second sub private key and the cross-chain transaction modification information to the second cross-chain gateways with the second preset number in the target blockchain system;
when the second interlinkage gateway exceeding a second quantity threshold value modifies information through interlinkage transaction, restoring the second private key based on a preset key recovery algorithm and the second sub private key corresponding to the second interlinkage gateway which modifies information through interlinkage transaction.
According to another aspect of the present application, there is provided a chameleon hash-based blockchain cross-chain transaction apparatus, applied to a source blockchain system, including:
the monitoring module is used for determining original transaction information of the cross-chain transaction modification information, and an original public key, an original random number and an original hash value corresponding to the original transaction information from a source block chain when a first cross-chain gateway of a source block chain system monitors the cross-chain transaction modification information, wherein the cross-chain transaction modification information comprises a modification position identifier and modification content information of a destination block chain, and the original transaction information is transaction information written into the destination block chain;
the acquisition module is used for acquiring an original private key of the original transaction information, and determining an updated random number corresponding to the original hash value through a chameleon hash function based on the cross-chain transaction modification information, the original random number, the original transaction information and the original private key;
a packing module, configured to digitally sign the cross-chain transaction modification information through the original private key, and pack the signed cross-chain transaction modification information, the updated random number, the original public key, and the original hash value to generate target cross-chain modification information, and send the target cross-chain modification information to a target relay chain through the first cross-chain gateway, so that the target relay chain forwards the target cross-chain modification information to the target block chain through the target cross-chain modification information, where the target block chain modifies the original transaction information corresponding to the modification location identifier based on the modification content information, and feeds back cross-chain feedback information to the target relay chain;
a receiving module, configured to receive the cross-link feedback information sent by the target relay link based on the first cross-link gateway, and store the cross-link feedback information in a cross-link contract.
Optionally, the apparatus further comprises:
the distribution module is used for dividing the original private key of the original transaction information into a first sub private key with a first preset number based on a preset key distribution algorithm before the original private key of the original transaction information is obtained, and distributing the first sub private key and the cross-chain transaction modification information to the first cross-chain gateways with the first preset number in the source block chain system;
the restoring module is configured to restore the original private key based on a preset key recovery algorithm and the first sub-private key corresponding to the first cross-link gateway that passes through the cross-link transaction modification information when the first cross-link gateway that exceeds the first quantity threshold passes through the cross-link transaction modification information.
Optionally, the receiving module is specifically configured to:
receiving the cross-link feedback information sent by the target relay link system through the first cross-link gateway, verifying whether a target hash value corresponds to change notification information or not based on a hash verification algorithm and the cross-link feedback information, and when the target hash value corresponds to the change notification information, obtaining a first private key and a first public key of the first cross-link gateway, performing secondary digital signature on the signed change notification information through the first private key, and sending the secondarily signed change notification information, the first public key and the target public key to a first verification node of the source block link system, wherein the cross-link feedback information comprises the signed change notification information, a target random number, the target public key and the target hash value;
and based on the first verification node, performing source verification on the change notification information subjected to the secondary signature through the first public key and the target public key, and storing the cross-link feedback information into the cross-link contract when the number of the first verification nodes passing verification and consensus passes exceeds a first preset number threshold.
According to another aspect of the present application, there is provided a blockchain cross-chain transaction apparatus based on chameleon hash, applied to a target relay chain system, including:
the verification module is used for receiving target cross-link modification information sent by a first cross-link gateway in a source blockchain system through a second verification node of the target relay chain system, verifying whether an original hash value corresponds to the cross-link transaction modification information or not based on a hash verification algorithm and the target cross-link modification information, and identifying the cross-link transaction modification information when the original hash value corresponds to the cross-link transaction modification information, wherein the target cross-link modification information comprises signed cross-link transaction modification information, an updated random number, an original public key and the original hash value, and the cross-link transaction modification information comprises a modification position identifier and modification content information of a target blockchain;
a first forwarding module, configured to forward the target cross-chain modification information to the destination blockchain when the number of the second verification nodes passing through the cross-chain transaction modification information exceeds a second preset number threshold, so that the destination blockchain modifies, based on the modification content information, the original transaction information corresponding to the modification location identifier, and generates cross-chain feedback information;
a consensus module, configured to receive the cross-chain feedback information sent by the destination blockchain through the second verification node, verify whether a target hash value corresponds to change notification information in the cross-chain feedback information based on the hash verification algorithm and the cross-chain feedback information, and perform consensus on the change notification information when the target hash value corresponds to the change notification information, where the cross-chain feedback information includes the change notification information after signature, a target random number, a target public key, and the target hash value;
a second forwarding module, configured to forward the cross-chain feedback information to the source blockchain when the number of the second verification nodes passing the change notification information exceeds the second preset number threshold, so that the source blockchain stores the cross-chain feedback information into a cross-chain contract of the source blockchain.
According to another aspect of the present application, there is provided a chameleon hash-based blockchain cross-chain transaction apparatus, applied to a destination blockchain system, including:
a signature module, configured to receive, by a second inter-link gateway of a destination blockchain system, target inter-link modification information sent by a target relay chain system, verify whether an original hash value corresponds to inter-link transaction modification information based on a hash verification algorithm and the target inter-link modification information, and obtain, when the original hash value corresponds to the inter-link transaction modification information, a second private key and a second public key of the second inter-link gateway, performing secondary digital signature on the signed cross-chain transaction modification information through the second private key, and the cross-chain transaction modification information after the secondary signature, the second public key and the original public key are sent to a third verification node of the target blockchain system, wherein the target cross-chain modification information comprises signed cross-chain transaction modification information, an updated random number, an original public key and the original hash value, the cross-chain transaction modification information comprises modification position identification and modification content information of the target block chain;
the modification module is used for performing source verification on the cross-link transaction modification information subjected to secondary signature through the second public key and the original public key based on the third verification node, modifying the original transaction information corresponding to the modification position identifier based on the modification content information when the number of the third verification nodes which pass verification and pass consensus exceeds a third preset number threshold value, and generating modification notification information;
a determining module, configured to determine a target hash value based on a hash generation algorithm and a target public key, the change notification information, and a target random number after the second inter-link gateway monitors the change notification information, where the target public key and the target private key are generated based on a key generation algorithm;
a feedback module, configured to digitally sign the change notification information through the target private key, package the signed change notification information, the target random number, the target public key, and the target hash value to generate cross-link feedback information, send the cross-link feedback information to the target relay chain through the second cross-link gateway, so that the target relay chain forwards the cross-link feedback information to the source block chain through the cross-link feedback information, and the source block chain stores the cross-link feedback information in a cross-link contract of the source block chain.
Optionally, the apparatus further comprises:
a generating module, configured to generate a second public key and a second private key based on a preset key generation algorithm before obtaining the second private key and the second public key of the second inter-link gateway;
the generation module is specifically configured to:
dividing the second private key into a second sub private key with a second preset number based on a preset key distribution algorithm, and distributing the second sub private key and the cross-chain transaction modification information to the second cross-chain gateways with the second preset number in the target blockchain system;
when the second interlinkage gateway exceeding a second quantity threshold value modifies information through interlinkage transaction, restoring the second private key based on a preset key recovery algorithm and the second sub private key corresponding to the second interlinkage gateway which modifies information through interlinkage transaction.
According to yet another aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described chameleon hash-based blockchain cross-chain transaction method.
According to yet another aspect of the present application, there is provided a computer device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, where the processor executes the program to implement the above chameleon hash-based blockchain cross-chain transaction method.
By means of the technical scheme, according to the chameleon hash-based block chain cross-chain transaction method and device, the storage medium and the computer device, the first cross-chain gateway can monitor cross-chain transaction modification information, and after the cross-chain transaction modification information is monitored, original transaction information of the cross-chain transaction modification information can be determined from the source block chain, and in addition, an original public key, an original random number and an original hash value corresponding to the original transaction information can be determined. Here, the cross-chain transaction modification information may include a modification location identifier corresponding to a location where the information to be modified is located in the destination blockchain, and may further include specific modification content information. Besides the original transaction information, the original public key, the original random number and the original hash value of the cross-chain transaction modification information are determined from the source block chain, the original private key corresponding to the original transaction information can be obtained from the original transaction initiating node at the last time. After the original private key of the original transaction information is obtained, the updated random number can be further determined through a chameleon hash function according to the cross-chain transaction modification information, the original random number, the original transaction information and the original private key, so that the chameleon hash value obtained on the basis of the cross-chain transaction modification information and the updated random number is the same as the original hash value. After the updated random number is obtained, the original private key can be further used for digitally signing the cross-chain transaction modification information so as to ensure that the source correctness of the cross-chain transaction modification information can be verified subsequently. Then, the signed cross-chain transaction modification information, the updated random number, the original public key and the original hash value can be packaged to generate target cross-chain modification information. The first cross-link gateway can send the target cross-link modification information to the target relay link, and the target cross-link modification information is forwarded to the target block chain through the relay function of the target relay link, so that the target block chain can modify original transaction information in a block corresponding to the modification position identifier in the target block chain according to the modification position identifier in the cross-link transaction modification information. After the target block chain is successfully modified, cross-chain feedback information corresponding to the cross-chain transaction modification result can be called back to the target relay chain so as to inform whether the original transaction information of the target relay chain is successfully modified. After receiving the cross-link feedback information sent by the target relay link, the first cross-link gateway may further store the cross-link feedback information in the cross-link contract, so that the modification of the original transaction information is completed. According to the embodiment of the application, the updated random number corresponding to the cross-chain transaction modification information is generated through the chameleon hash function, so that the cross-chain transaction can be edited, error information can be effectively corrected, and the block chain network environment is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 shows a schematic flowchart of a blockchain cross-chain transaction method based on chameleon hash according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating another method for a blockchain cross-chain transaction based on chameleon hash according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating another method for a blockchain cross-chain transaction based on chameleon hash according to an embodiment of the present application;
fig. 4 is a schematic structural diagram illustrating a blockchain cross-chain transaction apparatus based on chameleon hash according to an embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating another chameleon hash-based blockchain cross-chain transaction apparatus according to an embodiment of the present application;
fig. 6 shows a schematic structural diagram of another chameleon hash-based blockchain cross-chain transaction apparatus according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In this embodiment, a chameleon hash-based blockchain cross-chain transaction method is provided, which is applied to a source blockchain system, and as shown in fig. 1, the method includes:
step 101, when a first cross-link gateway of a source blockchain system monitors cross-link transaction modification information, determining original transaction information of the cross-link transaction modification information, and an original public key, an original random number and an original hash value corresponding to the original transaction information from a source blockchain, wherein the cross-link transaction modification information includes a modification position identifier and modification content information of a destination blockchain, and the original transaction information is transaction information written into the destination blockchain;
the chameleon hash-based block chain cross-chain transaction method provided by the embodiment of the application can be based on a chameleon hash function. The traditional encryption hash function is difficult to find the collision, but the chameleon hash function can artificially set a 'weakness' or a 'threshold', and the chameleon hash function can easily find the collision by mastering the chameleon hash function, so that the editability of a block chain is realized. Through the chameleon hash function, the content in the target block chain can be modified, and the editability of cross-chain transaction is improved. The chameleon hash-based blockchain cross-chain transaction method provided by the embodiment of the application can comprise a source blockchain system, a target relay chain system and a target blockchain system, wherein the source blockchain system, the target relay chain system and the target blockchain system can all comprise a plurality of nodes, and information connection can exist among the nodes. The source block chain is a block chain for initiating a cross-chain transaction, the destination block chain is a block chain for receiving the cross-chain transaction, and the target relay chain is a block chain for forwarding the cross-chain transaction. The node in the source blockchain system may initiate cross-chain transaction modification information, the first cross-chain gateway may monitor the cross-chain transaction modification information, and after monitoring the cross-chain transaction modification information, may determine original transaction information of the cross-chain transaction modification information from the source blockchain, and may also determine an original public key, an original random number, and an original hash value corresponding to the original transaction information, where the original public key, the original private key, the original random number, and the original hash value may all be generated by a chameleon hash function, and specifically may be determined when the original transaction information is stored in the destination blockchain in the cross-chain transaction process. Here, the cross-chain transaction modification information may include a modification location identifier corresponding to a location where the information to be modified is located in the destination blockchain, and may further include specific modification content information. For example, the information to be modified is the information in the a-height block in the destination block chain, the modification position identifier may be the a-height block, and the modified content information may be how to modify the original information.
102, acquiring an original private key of the original transaction information, and determining an updated random number corresponding to the original hash value through a chameleon hash function based on the cross-chain transaction modification information, the original random number, the original transaction information and the original private key;
in this embodiment, in addition to determining the original transaction information, the original public key, the original random number, and the original hash value of the cross-chain transaction modification information from the source blockchain, an original private key corresponding to the original transaction information may be obtained from the previous original transaction initiating node, and the original private key may not be broadcasted to other nodes of the source blockchain system. After the original private key of the original transaction information is obtained, the updated random number can be further determined according to the cross-chain transaction modification information, the original random number, the original transaction information and the original private key, so that the chameleon hash value obtained on the basis of the cross-chain transaction modification information and the updated random number is the same as the original hash value. A chameleon hash function consists of four parts: cham _ Hash ═ (Setup, KeyGen, Hash, Forge). Setup (λ): inputting a security parameter lambda and outputting a public parameter pp; KeyGen (pp): inputting a public parameter pp, and outputting a public and private key pair (HK, CK), wherein HK is a public key, CK is a private key and is also called a threshold; hash (HK, m, r): inputting a public key HK, a message m and a random number r, and outputting a hash value CH of the chameleon; forge (CK, m, r, m'): inputting a private key CK, a message m, a random number r, a message m ', and outputting another random number r', wherein CH (Hash (HK, m, r) ═ Hash (HK, m ', r') is satisfied. Here, the cross-link transaction modification information corresponds to a message m ', the original transaction information corresponds to a message m, the original private key corresponds to a private key CK, the original public key corresponds to a public key HK, the original random number corresponds to a random number r, and the updated random number corresponds to another random number r'.
103, digitally signing the cross-chain transaction modification information through the original private key, packaging the signed cross-chain transaction modification information, the updated random number, the original public key and the original hash value to generate target cross-chain modification information, sending the target cross-chain modification information to a target relay chain through the first cross-chain gateway, so that the target relay chain forwards the target cross-chain modification information to the target block chain through the target cross-chain modification information, and the target block chain modifies the original transaction information corresponding to the modification position identifier based on the modification content information and feeds back cross-chain feedback information to the target relay chain;
in this embodiment, after the updated random number is obtained, the original private key may be further used to digitally sign the cross-link transaction modification information, so as to ensure that the source correctness can be verified when the target relay link and the target block link receive the cross-link transaction modification information. Then, the signed cross-chain transaction modification information, the updated random number, the original public key and the original hash value can be packaged to generate target cross-chain modification information, so that the block chain which subsequently receives the cross-chain transaction modification information can verify the cross-chain transaction modification information according to the cross-chain transaction modification information, the updated random number, the original public key and the original hash value in the target cross-chain modification information. After the target cross-link modification information is generated, the first cross-link gateway can send the target cross-link modification information to the target relay link, and the relay function is realized through the target relay link, and here, after the target relay link receives the target cross-link modification information, the target cross-link modification information can be forwarded to the target block link, so that the target block link can modify the original transaction information in the block corresponding to the modification position identifier in the target block link according to the modification position identifier in the cross-link transaction modification information, and can specifically modify according to the modification content information in the cross-link transaction modification information. After the target block chain is successfully modified, cross-chain feedback information corresponding to a cross-chain transaction modification result can be called back to inform whether the original transaction information of the source block chain is successfully modified. Specifically, the destination block chain may send the inter-chain transaction modification information to the target relay chain, and then the target relay chain forwards the inter-chain transaction modification information to the source block chain.
And 104, receiving the cross-link feedback information sent by the target relay link based on the first cross-link gateway, and storing the cross-link feedback information into a cross-link contract.
In this embodiment, after the first cross-link gateway receives the cross-link feedback information sent by the target relay link, the cross-link feedback information may be further stored in the cross-link contract, so that the modification of the original transaction information is completed.
By applying the technical scheme of the embodiment, the first cross-link gateway can monitor the cross-link transaction modification information, and after the cross-link transaction modification information is monitored, the original transaction information of the cross-link transaction modification information can be determined from the source block chain, and in addition, an original public key, an original random number and an original hash value corresponding to the original transaction information can be determined. Here, the cross-chain transaction modification information may include a modification location identifier corresponding to a location where the information to be modified is located in the destination blockchain, and may further include specific modification content information. Besides the original transaction information, the original public key, the original random number and the original hash value of the cross-chain transaction modification information are determined from the source block chain, the original private key corresponding to the original transaction information can be obtained from the original transaction initiating node at the last time. After the original private key of the original transaction information is obtained, the updated random number can be further determined through a chameleon hash function according to the cross-chain transaction modification information, the original random number, the original transaction information and the original private key, so that the chameleon hash value obtained on the basis of the cross-chain transaction modification information and the updated random number is the same as the original hash value. After the updated random number is obtained, the original private key can be further used for digitally signing the cross-chain transaction modification information so as to ensure that the source correctness of the cross-chain transaction modification information can be verified subsequently. Then, the signed cross-chain transaction modification information, the updated random number, the original public key and the original hash value can be packaged to generate target cross-chain modification information. The first cross-link gateway can send the target cross-link modification information to the target relay link, and the target cross-link modification information is forwarded to the target block chain by the relay function of the target relay link, so that the target block chain can modify the original transaction information in the block corresponding to the modification position identifier in the target block chain according to the modification position identifier in the cross-link transaction modification information. After the target block chain is successfully modified, cross-chain feedback information corresponding to the cross-chain transaction modification result can be called back to the target relay chain so as to inform whether the original transaction information of the target relay chain is successfully modified. After receiving the cross-link feedback information sent by the target relay link, the first cross-link gateway may further store the cross-link feedback information in the cross-link contract, so that the modification of the original transaction information is completed. According to the embodiment of the application, the updated random number corresponding to the cross-chain transaction modification information is generated through the chameleon hash function, so that the cross-chain transaction can be edited, error information can be effectively corrected, and the block chain network environment is improved.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully illustrate the implementation process of the embodiment, another blockchain cross-chain transaction method based on chameleon hash is provided, and is applied to a source blockchain system, and the method includes:
step 201, when a first cross-link gateway of a source blockchain system monitors cross-link transaction modification information, determining original transaction information of the cross-link transaction modification information, and an original public key, an original random number and an original hash value corresponding to the original transaction information from a source blockchain, wherein the cross-link transaction modification information includes a modification position identifier and modification content information of a destination blockchain, and the original transaction information is transaction information written into the destination blockchain;
in this embodiment, the first cross-link gateway may monitor the cross-link transaction modification information, and after monitoring the cross-link transaction modification information, may determine original transaction information of the cross-link transaction modification information from the source block chain, and may also determine an original public key, an original random number, and an original hash value corresponding to the original transaction information, where the cross-link transaction modification information may include a modification location identifier corresponding to a location where the information that is desired to be modified is located in the destination block chain, and may also include specific modification content information.
Step 202, based on a preset key distribution algorithm, dividing the original private key of the original transaction information into a first sub private key of a first preset number, and distributing the first sub private key and the cross-chain transaction modification information to the first cross-chain gateways of the first preset number in the source blockchain system;
in this embodiment, a plurality of first cross-link gateways may be included in the source blockchain system. In order to avoid the disclosure of the private key, the original private key of the original transaction information may be divided into a plurality of shares, specifically, the original private key may be divided into a first preset number of first sub-private keys, and each first sub-private key and the cross-chain transaction modification information are distributed to one corresponding first cross-chain gateway, and each first cross-chain gateway neither knows the complete original private key nor can restore the original private key through one first sub-private key, thereby ensuring the security of the original private key.
Step 203, when the first cross-link gateway exceeding a first quantity threshold value modifies information through the cross-link transaction, restoring the original private key based on a preset key recovery algorithm and the first sub-private key corresponding to the first cross-link gateway which modifies information through the cross-link transaction;
in this embodiment, when the first inter-link gateway that exceeds the first number threshold agrees with the inter-link transaction modification information, the original private key may be obtained by recovering the first sub-private key distributed by the first inter-link gateway that agrees with the inter-link transaction modification information according to the preset key recovery algorithm. Likewise, each node in the source block chain cannot know the original private key.
Step 204, obtaining an original private key of the original transaction information, and determining an updated random number corresponding to the original hash value through a chameleon hash function based on the cross-chain transaction modification information, the original random number, the original transaction information and the original private key;
in this embodiment, in addition to determining the original transaction information, the original public key, the original random number, and the original hash value of the cross-chain transaction modification information from the source blockchain, an original private key corresponding to the original transaction information may be obtained from the previous original transaction initiating node, and the original private key may not be broadcasted to other nodes of the source blockchain system. After the original private key of the original transaction information is obtained, the updated random number can be further determined through a chameleon hash function according to the cross-chain transaction modification information, the original random number, the original transaction information and the original private key, so that the chameleon hash value obtained on the basis of the cross-chain transaction modification information and the updated random number is the same as the original hash value.
Step 205, digitally signing the cross-chain transaction modification information by using the original private key, packaging the signed cross-chain transaction modification information, the updated random number, the original public key, and the original hash value to generate target cross-chain modification information, sending the target cross-chain modification information to a target relay chain by using the first cross-chain gateway, so that the target relay chain forwards the target cross-chain modification information to the target block chain through the target cross-chain modification information, where the target block chain modifies the original transaction information corresponding to the modification location identifier based on the modification content information, and feeds back cross-chain feedback information to the target relay chain;
in this embodiment, after the updated random number is obtained, the original private key may be further used to digitally sign the cross-link transaction modification information, so as to ensure that the source correctness can be verified when the target relay link and the target block link receive the cross-link transaction modification information. Then, the signed cross-chain transaction modification information, the updated random number, the original public key and the original hash value can be packaged to generate target cross-chain modification information. The first cross-link gateway can send the target cross-link modification information to the target relay link, and the target cross-link modification information is forwarded to the target block chain by the relay function of the target relay link, so that the target block chain can modify the original transaction information in the block corresponding to the modification position identifier in the target block chain according to the modification position identifier in the cross-link transaction modification information. After the target block chain is successfully modified, cross-chain feedback information corresponding to the cross-chain transaction modification result can be called back to the target relay chain so as to inform whether the original transaction information of the source block chain is successfully modified. Specifically, the destination block chain may send the inter-chain transaction modification information to the target relay chain, and then the target relay chain forwards the inter-chain transaction modification information to the source block chain.
Step 206, receiving the cross-link feedback information sent by the target relay link system through the first cross-link gateway, verifying whether a target hash value corresponds to change notification information based on a hash verification algorithm and the cross-link feedback information, and when the target hash value corresponds to the change notification information, obtaining a first private key and a first public key of the first cross-link gateway, performing secondary digital signature on the signed change notification information through the first private key, and sending the change notification information, the first public key and a target public key which are subjected to secondary signature to a first verification node of the source block link system, wherein the cross-link feedback information includes the signed change notification information, a target random number, the target public key and the target hash value;
in this embodiment, after receiving the cross-link feedback information, the target relay link may further send the cross-link feedback information to the first cross-link gateway in the source blockchain system. Here, the cross-chain feedback information may include the signed change notification information, the target random number and the target public key, and the target hash value. The target hash value is obtained by the target block chain through a hash generation algorithm based on the change notification information, the target random number and the target public key. After receiving the cross-link feedback information, the first cross-link gateway can verify whether the hash value of the change notification information is the same as the target hash value or not through the change notification information, the target random number and the target public key in the cross-link feedback information based on a hash verification algorithm, and when the hash value is the same as the target hash value, the first private key and the first public key of the first cross-link gateway are further obtained, then, the signed change notification information can be digitally signed through the first private key again, the reliability of changing the source of the notification information is improved, and the notification information is prevented from being tampered in the forwarding process. After the change notification information after the signature is subjected to secondary digital signature to obtain the change notification information after the secondary signature, the first public key and the target public key may be sent to a first verification node of the source block chain system.
And step 207, based on the first verification node, performing source verification on the change notification information subjected to the secondary signature through the first public key and the target public key, and storing the cross-link feedback information into the cross-link contract when the number of the first verification nodes passing the verification and the consensus passes exceeds a first preset number threshold.
In this embodiment, after receiving the change notification information, the first public key, and the target public key after the secondary signature, the first verification node in the source blockchain system may respectively verify two digital signatures in the change notification information through the first public key and the target public key, when the two digital signatures are successfully verified, the change notification information may be identified by the first verification nodes, and when the number of the first verification nodes that agree to pass the change notification information is greater than the first preset number threshold, it may be stated that the change notification information passes the identification, so that the cross-link feedback information may be stored in the cross-link contract.
In this embodiment, a chameleon hash-based blockchain cross-chain transaction method is provided, and is applied to a target relay chain system, as shown in fig. 2, the method includes:
step 301, receiving, by a second verification node of a target relay chain system, target cross-chain modification information sent by a first cross-chain gateway in a source blockchain system, verifying whether an original hash value corresponds to cross-chain transaction modification information based on a hash verification algorithm and the target cross-chain modification information, and recognizing the cross-chain transaction modification information when the original hash value corresponds to the cross-chain transaction modification information, where the target cross-chain modification information includes signed cross-chain transaction modification information, an updated random number, an original public key, and the original hash value, and the cross-chain transaction modification information includes a modification position identifier of a target blockchain and modification content information;
in this embodiment of the present application, after a source block chain system generates target cross-chain modification information by packaging, the target cross-chain modification information may be sent to a second verification node of a target relay chain through a first cross-chain gateway in the source block chain. After receiving target cross-link modification information sent by a first cross-link gateway in a source block chain system, a second verification node of a target relay chain can input an original public key, cross-link transaction modification information, an original hash value and an updated random number in the target cross-link modification information on the basis of a hash verification algorithm, if an output value is 1, it can be shown that the original hash value in the target cross-link modification information and the cross-link transaction modification information are corresponding, and then the cross-link transaction modification information can be commonly identified through the second verification node in the target relay chain. Here, the target cross-chain modification information may include the following information: and the signed cross-link transaction modification information comprises a modification position identifier of the target block chain and modification content information, an updated random number, an original public key and an original hash value. The position of the information to be modified in the destination block chain can be seen from the modified position information, and how to modify the information of the position, namely, what information to modify the original information can be seen from the modified content information.
Step 302, when the number of the second verification nodes passing through the cross-chain transaction modification information exceeds a second preset number threshold, forwarding the target cross-chain modification information to the target block chain, so that the target block chain modifies the original transaction information corresponding to the modification position identifier based on the modification content information, and generates cross-chain feedback information;
in this embodiment, when the number of second verification nodes that commonly identify modified information passing through the cross-link transaction exceeds a second preset number threshold, it indicates that the target cross-link modified information passes verification in the target relay chain, and then the target cross-link modified information may be forwarded to the target block chain, so that the target block chain may modify the original transaction information in the block corresponding to the modified position identifier in the target block chain according to the modified position identifier in the cross-link transaction modified information, and specifically may modify according to modified content information in the cross-link transaction modified information. After the target block chain is modified successfully, cross-chain feedback information corresponding to a cross-chain transaction modification result can be generated.
Step 303, receiving, by the second verification node, the cross-chain feedback information sent by the destination blockchain, verifying whether a target hash value corresponds to change notification information in the cross-chain feedback information based on the hash verification algorithm and the cross-chain feedback information, and recognizing the change notification information when the target hash value corresponds to the change notification information, where the cross-chain feedback information includes the change notification information after signature, a target random number, a target public key, and the target hash value;
in this embodiment, after the destination block chain generates the cross-link feedback information, the cross-link feedback information may be fed back to the second verification node of the target relay chain, and after the second verification node receives the cross-link feedback information, the target public key, the change notification information, the target hash value, and the target random number in the cross-link feedback information may be input based on a hash verification algorithm, and if the output value is 1, it may be stated that the target hash value and the change notification information in the cross-link feedback information are corresponding, and then the change notification information may be commonly identified by the second verification nodes.
Step 304, when the number of the second verification nodes passing through the change notification information exceeds the second preset number threshold, forwarding the cross-chain feedback information to the source block chain, so that the source block chain stores the cross-chain feedback information into a cross-chain contract of the source block chain.
In this embodiment, the change notification information may be consensus-acquired through the second verification node, and when the number of second verification nodes agreeing to pass the change notification information is greater than a second preset number threshold, it may be stated that the change notification information passes the consensus, and thus the cross-link feedback information may be fed back to the source blockchain, so that the source blockchain may store the cross-link feedback information in a cross-link contract of the source blockchain system, and a cross-link transaction modification is completed.
In this embodiment, a chameleon hash-based blockchain cross-chain transaction method is provided, which is applied to a destination blockchain system, and as shown in fig. 3, the method includes:
step 401, receiving target cross-link modification information sent by a target relay link system through a second cross-link gateway of a target blockchain system, verifying whether an original hash value corresponds to cross-link transaction modification information based on a hash verification algorithm and the target cross-link modification information, and if so, acquiring a second private key and a second public key of the second cross-link gateway, performing secondary digital signature on the signed cross-chain transaction modification information through the second private key, and the cross-chain transaction modification information after the secondary signature, the second public key and the original public key are sent to a third verification node of the target blockchain system, wherein the target cross-chain modification information comprises signed cross-chain transaction modification information, an updated random number, an original public key and the original hash value, the cross-chain transaction modification information comprises modification position identification and modification content information of a target block chain;
in this embodiment, after the second verification node of the target relay chain passes the target cross-chain modification information, the target cross-chain modification information may be forwarded to the second cross-chain gateway of the target blockchain system. After receiving the target cross-link modification information forwarded by the source target relay link system, the second cross-link gateway may input an original public key, cross-link transaction modification information, an original hash value, and an updated random number in the target cross-link modification information based on a hash verification algorithm, and if an output value is 1, it may be indicated that the original hash value in the target cross-link modification information and the cross-link transaction modification information are corresponding, and then a second private key and a second public key of the second cross-link gateway may be obtained, and then, the signed cross-link transaction modification information may be digitally signed again by the second private key, so as to increase reliability of a source of the cross-link transaction modification information and avoid being tampered in a forwarding process. After the second digital signature is performed on the signed cross-chain transaction modification information to obtain the cross-chain transaction modification information after the second signature, the second public key and the original public key can be sent to a third verification node of the target blockchain system. Here, the target cross-chain modification information may include signed cross-chain transaction modification information, an updated random number and an original public key, and an original hash value. The cross-chain transaction modification information comprises modification position identification of the destination block chain and modification content information. The position of the information to be modified in the destination block chain can be seen from the modified position information, and how to modify the information of the position, namely, what information to modify the original information can be seen from the modified content information.
Step 402, based on the third verification node, performing source verification on the cross-link transaction modification information after the secondary signature through the second public key and the original public key, and when the number of the third verification nodes which pass verification and are identified together exceeds a third preset number threshold, modifying the original transaction information corresponding to the modification position identifier based on the modification content information, and generating modification notification information;
in this embodiment, after receiving the cross-link transaction modification information, the second public key, and the original public key after the secondary signature, the third verification node in the target blockchain system may respectively verify two digital signatures in the cross-link transaction modification information through the second public key and the original public key, when the two digital signatures are successfully verified, the cross-link transaction modification information may be identified through the third verification nodes, and when the number of the third verification nodes that agree to pass through the cross-link transaction modification information is greater than a third preset number threshold, it may be indicated that the cross-link transaction modification information passes through the common identification, and then the original transaction information in the block corresponding to the modification position identifier in the target blockchain may be modified according to the modification content information according to the modification position identifier in the cross-link transaction modification information. After the destination block chain is successfully modified, change notification information can be generated.
Step 403, after the second inter-link gateway monitors the change notification information, determining a target hash value based on a hash generation algorithm and a target public key, the change notification information, and a target random number, where the target public key and the target private key are generated based on a key generation algorithm;
in this embodiment, after the second inter-link gateway monitors the change notification information, a target hash value corresponding to the change notification information may be determined according to the target public key, the change notification information, and the target random number based on a hash generation algorithm. Here, the target public key and the target private key are generated based on a key generation algorithm.
Step 404, digitally signing the change notification information by the target private key, packaging the signed change notification information, the target random number, the target public key and the target hash value to generate cross-link feedback information, sending the cross-link feedback information to the target relay chain by the second cross-link gateway, so that the target relay chain forwards the cross-link feedback information to the source block chain by passing through the cross-link feedback information, and the source block chain stores the cross-link feedback information into a cross-link contract of the source block chain.
In this embodiment, the change notification information may be digitally signed by the target private key, increasing the reliability of the source of the change notification information. After the change notification information is signed, the signed change notification information, the target random number, the target public key and the target hash value can be packaged, cross-link feedback information is generated after packaging, then the cross-link feedback information can be further sent to the target relay chain through the second cross-link gateway, after the target relay chain receives the cross-link feedback information, the cross-link feedback information can be forwarded to the source block chain, and therefore the source block chain can store the cross-link feedback information in a cross-link contract after receiving the cross-link feedback information.
In this embodiment of the application, optionally, before "obtaining the second private key and the second public key of the second cross-chain gateway" in step 201, the method further includes: generating the second public key and the second private key based on a preset key generation algorithm; the step 201 of "obtaining the second private key and the second public key of the second cross-link gateway" specifically includes: dividing the second private key into a second preset number of second sub private keys based on a preset key distribution algorithm, and distributing the second sub private keys and the cross-chain transaction modification information to a second preset number of second cross-chain gateways in the target blockchain system; when the second interlinkage gateway exceeding a second quantity threshold value modifies information through interlinkage transaction, restoring the second private key based on a preset key recovery algorithm and the second sub private key corresponding to the second interlinkage gateway which modifies information through interlinkage transaction.
In this embodiment, a plurality of second cross-chain gateways may be included in the destination blockchain system. Before the second private key and the second public key of the second cross-link gateway are obtained, the second public key and the second private key can be determined through a preset key generation algorithm. In order to avoid leakage of the second private key, the second private key may be divided into a plurality of shares, specifically, the second private key may be divided into a second preset number of second sub-private keys, and each second sub-private key and the cross-chain transaction modification information are distributed to one corresponding second cross-chain gateway, and each second cross-chain gateway cannot know the complete second private key or cannot restore the second private key through one second sub-private key, so that the security of the second private key can be ensured. When the second inter-chain gateway which exceeds the second quantity threshold agrees with the inter-chain transaction modification information, the second private key can be obtained by restoring the second sub-private key which is distributed by the second inter-chain gateway agreeing with the inter-chain transaction modification information according to the preset key recovery algorithm. Likewise, each node in the destination block chain cannot know the second private key.
Further, as a specific implementation of the method in fig. 1, an embodiment of the present application provides a blockchain cross-chain transaction apparatus based on chameleon hash, which is applied to a source blockchain system, and as shown in fig. 4, the apparatus includes:
the monitoring module is used for determining original transaction information of the cross-chain transaction modification information, and an original public key, an original random number and an original hash value corresponding to the original transaction information from a source block chain when a first cross-chain gateway of a source block chain system monitors the cross-chain transaction modification information, wherein the cross-chain transaction modification information comprises a modification position identifier and modification content information of a destination block chain, and the original transaction information is transaction information written into the destination block chain;
the acquisition module is used for acquiring an original private key of the original transaction information, and determining an updated random number corresponding to the original hash value through a chameleon hash function based on the cross-chain transaction modification information, the original random number, the original transaction information and the original private key;
a packing module, configured to digitally sign the cross-chain transaction modification information through the original private key, and pack the signed cross-chain transaction modification information, the updated random number, the original public key, and the original hash value to generate target cross-chain modification information, and send the target cross-chain modification information to a target relay chain through the first cross-chain gateway, so that the target relay chain forwards the target cross-chain modification information to the target block chain through the target cross-chain modification information, where the target block chain modifies the original transaction information corresponding to the modification location identifier based on the modification content information, and feeds back cross-chain feedback information to the target relay chain;
a receiving module, configured to receive the cross-link feedback information sent by the target relay link based on the first cross-link gateway, and store the cross-link feedback information into a cross-link contract.
Optionally, the apparatus further comprises:
the distribution module is used for dividing the original private key of the original transaction information into a first sub private key with a first preset number based on a preset key distribution algorithm before the original private key of the original transaction information is obtained, and distributing the first sub private key and the cross-chain transaction modification information to the first cross-chain gateways with the first preset number in the source block chain system;
the restoring module is configured to restore the original private key based on a preset key recovery algorithm and the first sub-private key corresponding to the first cross-link gateway that passes through the cross-link transaction modification information when the first cross-link gateway that exceeds the first quantity threshold passes through the cross-link transaction modification information.
Optionally, the receiving module is specifically configured to:
receiving the cross-link feedback information sent by the target relay link system through the first cross-link gateway, verifying whether a target hash value corresponds to change notification information or not based on a hash verification algorithm and the cross-link feedback information, and when the target hash value corresponds to the change notification information, obtaining a first private key and a first public key of the first cross-link gateway, performing secondary digital signature on the signed change notification information through the first private key, and sending the secondarily signed change notification information, the first public key and the target public key to a first verification node of the source block link system, wherein the cross-link feedback information comprises the signed change notification information, a target random number, the target public key and the target hash value;
and based on the first verification node, performing source verification on the change notification information subjected to the secondary signature through the first public key and the target public key, and storing the cross-link feedback information into the cross-link contract when the number of the first verification nodes passing verification and consensus passes exceeds a first preset number threshold.
Further, as a specific implementation of the method in fig. 2, an embodiment of the present application provides a blockchain cross-chain transaction apparatus based on chameleon hash, which is applied to a target relay chain system, and as shown in fig. 5, the apparatus includes:
the verification module is used for receiving target cross-link modification information sent by a first cross-link gateway in a source blockchain system through a second verification node of the target relay chain system, verifying whether an original hash value corresponds to the cross-link transaction modification information or not based on a hash verification algorithm and the target cross-link modification information, and identifying the cross-link transaction modification information when the original hash value corresponds to the cross-link transaction modification information, wherein the target cross-link modification information comprises signed cross-link transaction modification information, an updated random number, an original public key and the original hash value, and the cross-link transaction modification information comprises a modification position identifier and modification content information of a target blockchain;
a first forwarding module, configured to forward the target cross-chain modification information to the destination block chain when the number of the second verification nodes passing through the cross-chain transaction modification information exceeds a second preset number threshold, so that the destination block chain modifies, based on the modification content information, the original transaction information corresponding to the modification location identifier, and generates cross-chain feedback information;
a consensus module, configured to receive the cross-chain feedback information sent by the destination blockchain through the second verification node, verify whether a target hash value corresponds to change notification information in the cross-chain feedback information based on the hash verification algorithm and the cross-chain feedback information, and perform consensus on the change notification information when the target hash value corresponds to the change notification information, where the cross-chain feedback information includes the change notification information after signature, a target random number, a target public key, and the target hash value;
a second forwarding module, configured to forward the cross-chain feedback information to the source blockchain when the number of the second verification nodes passing the change notification information exceeds the second preset number threshold, so that the source blockchain stores the cross-chain feedback information into a cross-chain contract of the source blockchain.
Further, as a specific implementation of the method in fig. 3, an embodiment of the present application provides a blockchain cross-chain transaction apparatus based on chameleon hash, which is applied to a target relay chain system, and as shown in fig. 6, the apparatus includes:
a signature module, configured to receive, by a second inter-link gateway of a destination blockchain system, target inter-link modification information sent by a target relay chain system, verify whether an original hash value corresponds to inter-link transaction modification information based on a hash verification algorithm and the target inter-link modification information, and obtain, when the original hash value corresponds to the inter-link transaction modification information, a second private key and a second public key of the second inter-link gateway, performing secondary digital signature on the signed cross-chain transaction modification information through the second private key, and the cross-chain transaction modification information after the secondary signature, the second public key and the original public key are sent to a third verification node of the target blockchain system, wherein the target cross-chain modification information comprises signed cross-chain transaction modification information, an updated random number, an original public key and the original hash value, the cross-chain transaction modification information comprises modification position identification and modification content information of the target block chain;
the modification module is used for performing source verification on the cross-link transaction modification information subjected to secondary signature through the second public key and the original public key based on the third verification node, modifying the original transaction information corresponding to the modification position identifier based on the modification content information when the number of the third verification nodes which pass verification and pass consensus exceeds a third preset number threshold value, and generating modification notification information;
a determining module, configured to determine a target hash value based on a hash generation algorithm and a target public key, the change notification information, and a target random number after the second inter-link gateway monitors the change notification information, where the target public key and the target private key are generated based on a key generation algorithm;
a feedback module, configured to digitally sign the change notification information through the target private key, package the signed change notification information, the target random number, the target public key, and the target hash value to generate cross-link feedback information, send the cross-link feedback information to the target relay chain through the second cross-link gateway, so that the target relay chain forwards the cross-link feedback information to the source block chain through the cross-link feedback information, and the source block chain stores the cross-link feedback information in a cross-link contract of the source block chain.
Optionally, the apparatus further comprises:
a generating module, configured to generate a second public key and a second private key based on a preset key generation algorithm before obtaining the second private key and the second public key of the second inter-link gateway;
the generation module is specifically configured to:
dividing the second private key into a second sub private key with a second preset number based on a preset key distribution algorithm, and distributing the second sub private key and the cross-chain transaction modification information to the second cross-chain gateways with the second preset number in the target blockchain system;
when the second interlinkage gateway exceeding a second quantity threshold value modifies information through interlinkage transaction, restoring the second private key based on a preset key recovery algorithm and the second sub private key corresponding to the second interlinkage gateway which modifies information through interlinkage transaction.
It should be noted that other corresponding descriptions of the functional units involved in the blockchain cross-chain transaction device based on chameleon hash provided in the embodiment of the present application may refer to the corresponding descriptions in the methods of fig. 1 to fig. 3, and are not described herein again.
Based on the method shown in fig. 1 to 3, correspondingly, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the above-mentioned cliksink cross-chain transaction method based on chameleon hash shown in fig. 1 to 3.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, or the like), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, or the like) to execute the method described in the implementation scenarios of the present application.
Based on the method shown in fig. 1 to fig. 3 and the virtual device embodiment shown in fig. 4 to fig. 6, in order to achieve the above object, the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, and the like, where the computer device includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing a computer program to implement the chameleon hash based blockchain cross-chain transaction method as described above with reference to fig. 1 to 3.
Optionally, the computer device may also include a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, sensors, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., a bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the present embodiment provides a computer device architecture that is not limiting of the computer device, and that may include more or fewer components, or some components in combination, or a different arrangement of components.
The storage medium may further include an operating system and a network communication module. An operating system is a program that manages and maintains the hardware and software resources of a computer device, supporting the operation of information handling programs, as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and other hardware and software in the entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. The first cross-link gateway can monitor the cross-link transaction modification information, and after monitoring the cross-link transaction modification information, can determine the original transaction information of the cross-link transaction modification information from the source block chain, and can also determine an original public key, an original random number and an original hash value corresponding to the original transaction information. Here, the cross-chain transaction modification information may include a modification location identifier corresponding to a location where the information to be modified is located in the destination blockchain, and may further include specific modification content information. Besides the original transaction information, the original public key, the original random number and the original hash value of the cross-chain transaction modification information are determined from the source block chain, the original private key corresponding to the original transaction information can be obtained from the original transaction initiating node at the last time. After the original private key of the original transaction information is obtained, the updated random number can be further determined through a chameleon hash function according to the cross-chain transaction modification information, the original random number, the original transaction information and the original private key, so that the chameleon hash value obtained on the basis of the cross-chain transaction modification information and the updated random number is the same as the original hash value. After the updated random number is obtained, the original private key can be used for further carrying out digital signature on the cross-chain transaction modification information so as to ensure that the source correctness of the cross-chain transaction modification information can be verified subsequently. Then, the signed cross-chain transaction modification information, the updated random number, the original public key and the original hash value can be packaged to generate target cross-chain modification information. The first cross-link gateway can send the target cross-link modification information to the target relay link, and the target cross-link modification information is forwarded to the target block chain by the relay function of the target relay link, so that the target block chain can modify the original transaction information in the block corresponding to the modification position identifier in the target block chain according to the modification position identifier in the cross-link transaction modification information. After the target block chain is successfully modified, cross-chain feedback information corresponding to a cross-chain transaction modification result can be called back to the target relay chain so as to inform whether the original transaction information of the target relay chain is successfully modified or not. After receiving the cross-link feedback information sent by the target relay link, the first cross-link gateway may further store the cross-link feedback information in the cross-link contract, so that the modification of the original transaction information is completed. According to the embodiment of the application, the updated random number corresponding to the cross-chain transaction modification information is generated through the chameleon hash function, so that the cross-chain transaction can be edited, error information can be effectively corrected, and the block chain network environment is improved.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. A blockchain cross-chain transaction method based on chameleon hash is applied to a source blockchain system and is characterized by comprising the following steps:
when a first cross-link gateway of a source block chain system monitors cross-link transaction modification information, determining original transaction information of the cross-link transaction modification information, and an original public key, an original random number and an original hash value corresponding to the original transaction information from a source block chain, wherein the cross-link transaction modification information comprises modification position identification and modification content information of a destination block chain, and the original transaction information is transaction information written into the destination block chain;
acquiring an original private key of the original transaction information, and determining an updated random number corresponding to the original hash value through a chameleon hash function based on the cross-chain transaction modification information, the original random number, the original transaction information and the original private key;
performing digital signature on the cross-chain transaction modification information through the original private key, packaging the cross-chain transaction modification information after signature, the updated random number, the original public key and the original hash value to generate target cross-chain modification information, sending the target cross-chain modification information to a target relay chain through the first cross-chain gateway, so that the target relay chain transmits the target cross-chain modification information to the target block chain through the target cross-chain modification information, and the target block chain modifies the original transaction information corresponding to the modification position identifier based on the modification content information and feeds back cross-chain feedback information to the target relay chain;
and receiving the cross-link feedback information sent by the target relay link based on the first cross-link gateway, and storing the cross-link feedback information into a cross-link contract.
2. The method of claim 1, wherein prior to obtaining the original private key of the original transaction information, the method further comprises:
dividing an original private key of the original transaction information into a first sub private key with a first preset number based on a preset key distribution algorithm, and distributing the first sub private key and the cross-chain transaction modification information to the first cross-chain gateways with the first preset number in the source blockchain system;
when the first cross-link gateway exceeding a first quantity threshold value modifies information through the cross-link transaction, restoring the original private key based on a preset key recovery algorithm and the first sub-private key corresponding to the first cross-link gateway which modifies information through the cross-link transaction.
3. The method according to claim 1, wherein the receiving, by the first inter-link gateway, the inter-link feedback information sent by the target relay link and storing the inter-link feedback information in an inter-link contract comprises:
receiving the cross-link feedback information sent by the target relay link system through the first cross-link gateway, verifying whether a target hash value corresponds to change notification information or not based on a hash verification algorithm and the cross-link feedback information, and when the target hash value corresponds to the change notification information, obtaining a first private key and a first public key of the first cross-link gateway, performing secondary digital signature on the signed change notification information through the first private key, and sending the secondarily signed change notification information, the first public key and the target public key to a first verification node of the source block link system, wherein the cross-link feedback information comprises the signed change notification information, a target random number, the target public key and the target hash value;
and based on the first verification node, performing source verification on the change notification information subjected to the secondary signature through the first public key and the target public key, and storing the cross-link feedback information into the cross-link contract when the number of the first verification nodes passing verification and consensus passes exceeds a first preset number threshold.
4. A block chain cross-chain transaction method based on chameleon hashing is applied to a target relay chain system and is characterized by comprising the following steps:
receiving target cross-link modification information sent by a first cross-link gateway in a source block chain system through a second verification node of the target relay chain system, verifying whether an original hash value corresponds to cross-link transaction modification information or not based on a hash verification algorithm and the target cross-link modification information, and identifying the cross-link transaction modification information when the original hash value corresponds to the cross-link transaction modification information, wherein the target cross-link modification information comprises signed cross-link transaction modification information, an updated random number, an original public key and the original hash value, and the cross-link transaction modification information comprises a modification position identifier and modification content information of a target block chain;
when the number of the second verification nodes passing through the cross-chain transaction modification information exceeds a second preset number threshold value, forwarding the target cross-chain modification information to the target block chain, so that the target block chain modifies the original transaction information corresponding to the modification position identifier based on the modification content information, and generates cross-chain feedback information;
receiving, by the second verification node, the cross-link feedback information sent by the destination blockchain, verifying whether a target hash value corresponds to change notification information in the cross-link feedback information based on the hash verification algorithm and the cross-link feedback information, and recognizing the change notification information when the target hash value corresponds to the change notification information, where the cross-link feedback information includes the change notification information after signature, a target random number, a target public key, and the target hash value;
when the number of the second verification nodes passing through the change notification information exceeds the second preset number threshold, forwarding the cross-chain feedback information to the source block chain, so that the source block chain stores the cross-chain feedback information into a cross-chain contract of the source block chain.
5. A blockchain cross-chain transaction method based on chameleon hash is applied to a target blockchain system and is characterized by comprising the following steps:
receiving target cross-link modification information sent by a target relay link system through a second cross-link gateway of a target blockchain system, verifying whether an original hash value corresponds to cross-link transaction modification information or not based on a hash verification algorithm and the target cross-link modification information, and acquiring a second private key and a second public key of the second cross-link gateway when the original hash value corresponds to the cross-link transaction modification information, performing secondary digital signature on the signed cross-chain transaction modification information through the second private key, and the cross-chain transaction modification information after the secondary signature, the second public key and the original public key are sent to a third verification node of the target blockchain system, wherein the target cross-chain modification information comprises signed cross-chain transaction modification information, an updated random number, an original public key and the original hash value, the cross-chain transaction modification information comprises modification position identification and modification content information of the target block chain;
based on the third verification node, performing source verification on the cross-chain transaction modification information subjected to secondary signature through the second public key and the original public key, and modifying the original transaction information corresponding to the modification position identifier based on the modification content information when the verification is passed and the number of the third verification nodes passing consensus exceeds a third preset number threshold value, and generating modification notification information;
after the second inter-link gateway monitors the change notification information, determining a target hash value based on a hash generation algorithm and a target public key, the change notification information and a target random number, wherein the target public key and a target private key are generated based on a key generation algorithm;
the change notification information is digitally signed through the target private key, the signed change notification information, the target random number, the target public key and the target hash value are packaged to generate cross-link feedback information, the cross-link feedback information is sent to the target relay chain through the second cross-link gateway, so that the target relay chain transmits the cross-link feedback information to the source block chain through the cross-link feedback information, and the source block chain stores the cross-link feedback information into a cross-link contract of the source block chain.
6. The method of claim 5, wherein before obtaining the second private key and the second public key of the second cross-chain gateway, the method further comprises:
generating the second public key and the second private key based on a preset key generation algorithm;
the obtaining of the second private key and the second public key of the second cross-link gateway specifically includes:
dividing the second private key into a second sub private key with a second preset number based on a preset key distribution algorithm, and distributing the second sub private key and the cross-chain transaction modification information to the second cross-chain gateways with the second preset number in the target blockchain system;
when the second interlinkage gateway exceeding a second quantity threshold value modifies information through interlinkage transaction, restoring the second private key based on a preset key recovery algorithm and the second sub private key corresponding to the second interlinkage gateway which modifies information through interlinkage transaction.
7. A blockchain cross-chain transaction device based on chameleon hashing is applied to a source blockchain system and is characterized by comprising:
the monitoring module is used for determining original transaction information of the cross-chain transaction modification information, and an original public key, an original random number and an original hash value corresponding to the original transaction information from a source block chain when a first cross-chain gateway of a source block chain system monitors the cross-chain transaction modification information, wherein the cross-chain transaction modification information comprises a modification position identifier and modification content information of a destination block chain, and the original transaction information is transaction information written into the destination block chain;
the acquisition module is used for acquiring an original private key of the original transaction information, and determining an updated random number corresponding to the original hash value through a chameleon hash function based on the cross-chain transaction modification information, the original random number, the original transaction information and the original private key;
a packing module, configured to digitally sign the cross-chain transaction modification information through the original private key, and pack the signed cross-chain transaction modification information, the updated random number, the original public key, and the original hash value to generate target cross-chain modification information, and send the target cross-chain modification information to a target relay chain through the first cross-chain gateway, so that the target relay chain forwards the target cross-chain modification information to the target block chain through the target cross-chain modification information, where the target block chain modifies the original transaction information corresponding to the modification location identifier based on the modification content information, and feeds back cross-chain feedback information to the target relay chain;
a receiving module, configured to receive the cross-link feedback information sent by the target relay link based on the first cross-link gateway, and store the cross-link feedback information into a cross-link contract.
8. A blockchain cross-chain transaction device based on chameleon hash is applied to a target blockchain system and is characterized by comprising:
a signature module, configured to receive, by a second inter-link gateway of a destination blockchain system, target inter-link modification information sent by a target relay chain system, verify whether an original hash value corresponds to inter-link transaction modification information based on a hash verification algorithm and the target inter-link modification information, and obtain, when the original hash value corresponds to the inter-link transaction modification information, a second private key and a second public key of the second inter-link gateway, performing secondary digital signature on the signed cross-chain transaction modification information through the second private key, and the cross-chain transaction modification information after the secondary signature, the second public key and the original public key are sent to a third verification node of the target blockchain system, wherein the target cross-chain modification information comprises signed cross-chain transaction modification information, an updated random number, an original public key and the original hash value, the cross-chain transaction modification information comprises modification position identification and modification content information of a target block chain;
the modification module is used for performing source verification on the cross-link transaction modification information subjected to secondary signature through the second public key and the original public key based on the third verification node, modifying the original transaction information corresponding to the modification position identifier based on the modification content information when the number of the third verification nodes which pass verification and pass consensus exceeds a third preset number threshold value, and generating modification notification information;
a determining module, configured to determine a target hash value based on a hash generation algorithm and a target public key, the change notification information, and a target random number after the second inter-link gateway monitors the change notification information, where the target public key and the target private key are generated based on a key generation algorithm;
a feedback module, configured to digitally sign the change notification information through the target private key, package the signed change notification information, the target random number, the target public key, and the target hash value to generate cross-link feedback information, send the cross-link feedback information to the target relay chain through the second cross-link gateway, so that the target relay chain forwards the cross-link feedback information to the source block chain through the cross-link feedback information, and the source block chain stores the cross-link feedback information in a cross-link contract of the source block chain.
9. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 6.
10. A computer device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any one of claims 1 to 6 when executing the computer program.
CN202210034060.XA 2022-01-12 2022-01-12 Chameleon hash-based block chain cross-chain transaction method and device and storage medium Pending CN114553429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210034060.XA CN114553429A (en) 2022-01-12 2022-01-12 Chameleon hash-based block chain cross-chain transaction method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210034060.XA CN114553429A (en) 2022-01-12 2022-01-12 Chameleon hash-based block chain cross-chain transaction method and device and storage medium

Publications (1)

Publication Number Publication Date
CN114553429A true CN114553429A (en) 2022-05-27

Family

ID=81672000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210034060.XA Pending CN114553429A (en) 2022-01-12 2022-01-12 Chameleon hash-based block chain cross-chain transaction method and device and storage medium

Country Status (1)

Country Link
CN (1) CN114553429A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102955A (en) * 2022-05-30 2022-09-23 电子科技大学 Off-chain data storage and updating method based on chameleon hash function
CN116132052A (en) * 2022-11-18 2023-05-16 杭州趣链科技有限公司 Cross-chain transaction method, device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102955A (en) * 2022-05-30 2022-09-23 电子科技大学 Off-chain data storage and updating method based on chameleon hash function
CN115102955B (en) * 2022-05-30 2023-08-01 电子科技大学 Method for storing and updating out-of-chain data based on chameleon hash function
CN116132052A (en) * 2022-11-18 2023-05-16 杭州趣链科技有限公司 Cross-chain transaction method, device, electronic equipment and storage medium
WO2024103854A1 (en) * 2022-11-18 2024-05-23 杭州趣链科技有限公司 Cross-chain transaction method and system, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
US11604633B2 (en) Trusted startup methods and apparatuses of blockchain integrated station
CN108492183B (en) Block chain account transaction method, system and computer readable storage medium
US11616636B2 (en) Hash updating methods and apparatuses of blockchain integrated station
CN111159306B (en) Information publishing method and device based on block chain and computer equipment
CN113726875B (en) Transaction processing method and device based on blockchain all-in-one machine
CN110766408A (en) Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN109905368B (en) Block chain cross-chain data interaction and verification method, block chain system and storage medium
CN114553429A (en) Chameleon hash-based block chain cross-chain transaction method and device and storage medium
CN113438219B (en) Playback transaction identification method and device based on blockchain all-in-one machine
CN113726751B (en) Weight management method, device and equipment in block chain type account book
CN114092252B (en) Block chain transaction execution method, device, equipment and readable storage medium
CN111669434B (en) Method, system, device and equipment for establishing communication group
CN112714158A (en) Transaction processing method, relay network, cross-link gateway, system, medium, and device
CN113259130B (en) Transaction data processing method, device, equipment and medium
CN111488372A (en) Data processing method, device and storage medium
CN111597567A (en) Data processing method, data processing device, node equipment and storage medium
CN111984735A (en) Data archiving method and device, electronic equipment and storage medium
CN116455572B (en) Data encryption method, device and equipment
CN115001719B (en) Private data processing system, method, device, computer equipment and storage medium
CN109389271B (en) Application performance management method and system
CN115052053A (en) Message processing method and simulator for bank system test
CN113609215A (en) Data processing method, device, equipment and computer readable storage medium
CN113806335A (en) Data migration method and device applied to block chain
CN111130788A (en) Data processing method and system, data reading method and iSCSI server
CN114928649B (en) Multi-platform service realization method, device and equipment based on block chain

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
CB02 Change of applicant information

Country or region after: China

Address after: No. 475 Zhimin Avenue, Xinzhou District, Shangrao City, Jiangxi Province (now Xinzhou Digital Economy Industrial Park), Building A, 3rd Floor, 1-07

Applicant after: Shangrao Sumai Digital Technology Co.,Ltd.

Address before: 224008 room 208-4, No. 9, Zijin Road, Nanyuan community, Huanghai sub district office, Yannan high tech Zone, Yancheng City, Jiangsu Province (CNH)

Applicant before: Yancheng matrix operation management Co.,Ltd.

Country or region before: China

CB02 Change of applicant information