CN113469689A - Block chain cross-chain transaction method and system - Google Patents

Block chain cross-chain transaction method and system Download PDF

Info

Publication number
CN113469689A
CN113469689A CN202110837493.4A CN202110837493A CN113469689A CN 113469689 A CN113469689 A CN 113469689A CN 202110837493 A CN202110837493 A CN 202110837493A CN 113469689 A CN113469689 A CN 113469689A
Authority
CN
China
Prior art keywords
transaction
cross
chain
verification
blockchain
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
CN202110837493.4A
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.)
Jiaqiao Shenzhen Investment Co ltd
Original Assignee
Yongqi Beijing Technology 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 Yongqi Beijing Technology Co Ltd filed Critical Yongqi Beijing Technology Co Ltd
Priority to CN202110837493.4A priority Critical patent/CN113469689A/en
Publication of CN113469689A publication Critical patent/CN113469689A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a block chain cross-chain transaction method and a system, wherein the method comprises the following steps: a first blockchain sends a cross-chain transaction request, wherein the cross-chain transaction request comprises transaction information and a verification protocol of cross-chain transaction; verifying the verification protocol according to a preset verification rule, and if the verification is passed, confirming the cross-link transaction; acquiring a position index of the current cross-chain transaction in the blockchain transaction from the confirmed cross-chain transaction, and determining a transaction state of the current cross-chain transaction stored in an identification storage unit according to the position index, wherein the transaction state comprises an unscheduled transaction and a transacted transaction; judging whether the cross-chain transaction is packaged or not according to the transaction state, and if the transaction state is not transaction, packaging transaction information of the cross-chain transaction; and sending the packaged transaction information to a second blockchain. The invention ensures accurate transaction by verifying the verification protocol, improves the duplicate removal efficiency by judging the transaction state and ensures the transaction efficiency.

Description

Block chain cross-chain transaction method and system
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain cross-chain transaction method and system.
Background
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. In order to meet the requirements of various application scenarios, information interaction is required between blockchains. The block chains are all independent blocks, and as the types of the block chains are richer and richer, the structures of the block chains of different types are different, the block chains generally do not support the transmission of transactions in the block chains of different types, the transactions are troublesome, the cross-chain transactions cannot be realized, and the transaction intercommunication cannot be realized. The chain crossing is a complex process, which requires separate verification capability for nodes in the chain, decentralized input and acquisition and verification of information of the world outside the chain. The investigation and improvement of cross-link transactions between block chains is an important subject direction for those skilled in the art.
Disclosure of Invention
The invention aims to provide a block chain cross-chain transaction method and a block chain cross-chain transaction system, which ensure accurate transaction by verifying a verification protocol, improve the deduplication efficiency by judging the transaction state and ensure the transaction efficiency.
In order to achieve the purpose, the invention provides the following scheme:
a blockchain cross-chain transaction method comprises the following steps:
s1, the first blockchain sends a cross-chain transaction request, wherein the cross-chain transaction request comprises transaction information and a verification protocol of the cross-chain transaction;
s2, verifying the verification protocol according to a preset verification rule, and if the verification is passed, confirming the cross-link transaction;
s3, obtaining a position index of the present cross-chain transaction in the blockchain transaction from the confirmed cross-chain transaction, and determining a transaction state of the present cross-chain transaction stored in the identification storage unit according to the position index, wherein the transaction state comprises an unscheduled transaction and a transacted transaction;
s4, judging whether to pack the cross-chain transaction according to the transaction state, and if the transaction state is not transaction, packing the transaction information of the cross-chain transaction;
and S5, sending the packaged transaction information to a second block chain.
Further, in step S2, verifying the verification protocol according to a preset verification rule specifically includes:
acquiring a verification rule registered by a first block chain, wherein the verification rule is a verification code for verifying zero knowledge proof;
running the verification code, and verifying the zero knowledge proof;
the transaction information comprises a transaction ciphertext, a transaction plaintext and a zero knowledge proof, the zero knowledge proof is the verification protocol generated by a first block chain by using the transaction ciphertext as public input and the transaction plaintext as private input and running a preset zero knowledge proof generation code.
Further, the step S4 further includes:
and if the transaction state is the transaction, not packaging the cross-chain transaction, and feeding back a repeated transaction prompt.
Further, the step S4 further includes: and after the transaction information of the current cross-chain transaction is packaged, updating the transaction state stored in the identification storage unit into the packaged transaction state.
The invention also provides a blockchain cross-chain transaction system which is applied to the blockchain cross-chain transaction method, wherein the first blockchain comprises a sending module for sending a cross-chain transaction request and a first storage module for storing transaction information and a verification protocol of the cross-chain transaction; the second blockchain comprises a receiving module for receiving cross-chain transaction information and a second storage module for storing the cross-chain transaction information; the system further comprises a relay block chain, wherein the relay block chain comprises a verification module used for verifying the verification protocol according to a preset verification rule, an identification storage unit used for storing the transaction state of the cross-chain transaction, and a packaging identification module used for judging whether to package the cross-chain transaction according to the transaction state.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects: according to the block chain cross-chain transaction method and system provided by the invention, the cross-chain transaction comprises the verification protocol, and the relay block chain does not need to verify the target chain again after the verification protocol passes, so that the cross-chain gateway keeps a lightweight level; meanwhile, the verification of cross-link transaction by the relay link is more reliable; the transaction state is used for monitoring the transaction, the completed transaction is prevented from occupying a packaging storage space, the deduplication efficiency is improved, the limitation of a cross-chain transaction sending or receiving sequence is avoided, and the flexibility and the reliability are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a blockchain cross-chain transaction method according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a block chain cross-chain transaction method and a block chain cross-chain transaction system, which ensure accurate transaction by verifying a verification protocol, improve the deduplication efficiency by judging the transaction state and ensure the transaction efficiency.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a schematic flow chart of a blockchain cross-chain transaction method according to an embodiment of the present invention, and as shown in fig. 1, the blockchain cross-chain transaction method according to the embodiment of the present invention includes the following steps:
s1, the first blockchain sends a cross-chain transaction request, wherein the cross-chain transaction request comprises transaction information and a verification protocol of the cross-chain transaction;
s2, verifying the verification protocol according to a preset verification rule, and if the verification is passed, confirming the cross-link transaction;
s3, obtaining a position index of the present cross-chain transaction in the blockchain transaction from the confirmed cross-chain transaction, and determining a transaction state of the present cross-chain transaction stored in the identification storage unit according to the position index, wherein the transaction state comprises an unscheduled transaction and a transacted transaction;
s4, judging whether to pack the cross-chain transaction according to the transaction state, and if the transaction state is not transaction, packing the transaction information of the cross-chain transaction;
and S5, sending the packaged transaction information to a second block chain.
In step S2, verifying the verification protocol according to a preset verification rule specifically includes:
acquiring a verification rule registered by a first block chain, wherein the verification rule is a verification code for verifying zero knowledge proof;
running the verification code, and verifying the zero knowledge proof;
the transaction information comprises a transaction ciphertext, a transaction plaintext and a zero knowledge proof, the zero knowledge proof is the verification protocol generated by a first block chain by using the transaction ciphertext as public input and the transaction plaintext as private input and running a preset zero knowledge proof generation code.
In step S4, the method further includes:
and if the transaction state is the transaction, not packaging the cross-chain transaction, and feeding back a repeated transaction prompt.
In step S4, the method further includes: and after the transaction information of the current cross-chain transaction is packaged, updating the transaction state stored in the identification storage unit into the packaged transaction state.
The invention also provides a blockchain cross-chain transaction system which is applied to the blockchain cross-chain transaction method, wherein the first blockchain comprises a sending module for sending a cross-chain transaction request and a first storage module for storing transaction information and a verification protocol of the cross-chain transaction; the second blockchain comprises a receiving module for receiving cross-chain transaction information and a second storage module for storing the cross-chain transaction information; the system further comprises a relay block chain, wherein the relay block chain comprises a verification module used for verifying the verification protocol according to a preset verification rule, an identification storage unit used for storing the transaction state of the cross-chain transaction, and a packaging identification module used for judging whether to package the cross-chain transaction according to the transaction state.
According to the block chain cross-chain transaction method and system provided by the invention, the cross-chain transaction comprises the verification protocol, and the relay block chain does not need to verify the target chain again after the verification protocol passes, so that the cross-chain gateway keeps a lightweight level; meanwhile, the verification of cross-link transaction by the relay link is more reliable; the transaction state is used for monitoring the transaction, the completed transaction is prevented from occupying a packaging storage space, the deduplication efficiency is improved, the limitation of a cross-chain transaction sending or receiving sequence is avoided, and the flexibility and the reliability are improved.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (5)

1. A block chain cross-chain transaction method is applied between a first block chain and a second block chain, and is characterized by comprising the following steps:
s1, the first blockchain sends a cross-chain transaction request, wherein the cross-chain transaction request comprises transaction information and a verification protocol of the cross-chain transaction;
s2, verifying the verification protocol according to a preset verification rule, and if the verification is passed, confirming the cross-link transaction;
s3, obtaining a position index of the present cross-chain transaction in the blockchain transaction from the confirmed cross-chain transaction, and determining a transaction state of the present cross-chain transaction stored in the identification storage unit according to the position index, wherein the transaction state comprises an unscheduled transaction and a transacted transaction;
s4, judging whether to pack the cross-chain transaction according to the transaction state, and if the transaction state is not transaction, packing the transaction information of the cross-chain transaction;
and S5, sending the packaged transaction information to a second block chain.
2. The blockchain inter-chain transaction method according to claim 1, wherein in the step S2, verifying the verification protocol according to a preset verification rule specifically includes:
acquiring a verification rule registered by a first block chain, wherein the verification rule is a verification code for verifying zero knowledge proof;
running the verification code, and verifying the zero knowledge proof;
the transaction information comprises a transaction ciphertext, a transaction plaintext and a zero knowledge proof, the zero knowledge proof is the verification protocol generated by a first block chain by using the transaction ciphertext as public input and the transaction plaintext as private input and running a preset zero knowledge proof generation code.
3. The blockchain cross-chain transaction method according to claim 1, wherein the step S4 further includes:
and if the transaction state is the transaction, not packaging the cross-chain transaction, and feeding back a repeated transaction prompt.
4. The blockchain cross-chain transaction method according to claim 1, wherein the step S4 further includes: and after the transaction information of the current cross-chain transaction is packaged, updating the transaction state stored in the identification storage unit into the packaged transaction state.
5. A blockchain cross-chain transaction system applied to the blockchain cross-chain transaction method of any one of claims 1 to 4, wherein the first blockchain comprises a sending module for sending a cross-chain transaction request, and a first storage module for storing transaction information and a verification protocol of the cross-chain transaction; the second blockchain comprises a receiving module for receiving cross-chain transaction information and a second storage module for storing the cross-chain transaction information; the system further comprises a relay block chain, wherein the relay block chain comprises a verification module used for verifying the verification protocol according to a preset verification rule, an identification storage unit used for storing the transaction state of the cross-chain transaction, and a packaging identification module used for judging whether to package the cross-chain transaction according to the transaction state.
CN202110837493.4A 2021-07-23 2021-07-23 Block chain cross-chain transaction method and system Pending CN113469689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110837493.4A CN113469689A (en) 2021-07-23 2021-07-23 Block chain cross-chain transaction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110837493.4A CN113469689A (en) 2021-07-23 2021-07-23 Block chain cross-chain transaction method and system

Publications (1)

Publication Number Publication Date
CN113469689A true CN113469689A (en) 2021-10-01

Family

ID=77882190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110837493.4A Pending CN113469689A (en) 2021-07-23 2021-07-23 Block chain cross-chain transaction method and system

Country Status (1)

Country Link
CN (1) CN113469689A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862216A (en) * 2017-10-13 2018-03-30 布比(北京)网络技术有限公司 Method for secret protection, device and the storage medium merchandised for anonymity across chain
CN112579599A (en) * 2020-12-18 2021-03-30 北京链飞未来科技有限公司 Block chain cross-chain transaction duplication removal method and device
CN112822181A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Verification method of cross-chain transaction, terminal device and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862216A (en) * 2017-10-13 2018-03-30 布比(北京)网络技术有限公司 Method for secret protection, device and the storage medium merchandised for anonymity across chain
CN112579599A (en) * 2020-12-18 2021-03-30 北京链飞未来科技有限公司 Block chain cross-chain transaction duplication removal method and device
CN112822181A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Verification method of cross-chain transaction, terminal device and readable storage medium

Similar Documents

Publication Publication Date Title
CN112003703B (en) Method and device for transmitting authenticatable message across chains
CN110442652B (en) Cross-chain data processing method and device based on block chain
CN110033243B (en) Main chain evidence storing method, system and storage medium based on block chain intelligent contract
CN111159293B (en) Cross-chain information verification method based on light node technology
CN109118230B (en) Information processing method and device based on block chain
CN112000730B (en) Tracing information writing and tracing information verification method and system based on block chain
CN112487011B (en) Block chain-based Internet of things terminal data uplink method and system
JP7279904B2 (en) Chain data verification system and method
CN111177225B (en) Account state existence proving method and device and state inquiring method and device
CN109656778A (en) Data capture method, device, computer equipment and storage medium
CN110659905B (en) Transaction verification method, device, terminal equipment and storage medium
CN108898490A (en) Execution method, node, system, electronic equipment and the storage medium of intelligent contract
CN111327676B (en) Block data processing method and device
CN111314309B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN111224782B (en) Data verification method based on digital signature, intelligent device and storage medium
CN111640018A (en) Block chain transaction existence verification method and device
CN109743133A (en) Data account checking method and device
CN113469689A (en) Block chain cross-chain transaction method and system
CN111738853A (en) Transaction optimization method and device based on block chain distributed system
CN110322350A (en) Cut method, apparatus, equipment and the storage medium of the common recognition hollow block of network
WO2022205957A1 (en) Method and apparatus for transferring message across chains on basis of relay device
CN113411198B (en) Communication method and device based on dual channels and RSSP-I, electronic equipment and storage medium
CN109587237A (en) It records and the method for data, network node and network is provided
CN113760909A (en) Method and system for cross-chain transaction and verification based on UTXO
CN113408003B (en) Block chain cross-chain method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20220926

Address after: Room 305, No. 188, Zhugu Shi Road, Wulian, Central City, Longgang Street, Longgang District, Shenzhen, Guangdong 518000

Applicant after: Jiaqiao (Shenzhen) Investment Co.,Ltd.

Address before: D-1908, 19th floor, building 222, Wangjing Xiyuan, Chaoyang District, Beijing

Applicant before: Yongqi (Beijing) Technology Co.,Ltd.

TA01 Transfer of patent application right