CN111047445A - Completely decentralized side chain crossing method - Google Patents

Completely decentralized side chain crossing method Download PDF

Info

Publication number
CN111047445A
CN111047445A CN201911266455.7A CN201911266455A CN111047445A CN 111047445 A CN111047445 A CN 111047445A CN 201911266455 A CN201911266455 A CN 201911266455A CN 111047445 A CN111047445 A CN 111047445A
Authority
CN
China
Prior art keywords
chain
transaction
cross
side chain
plug
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911266455.7A
Other languages
Chinese (zh)
Other versions
CN111047445B (en
Inventor
黄春
刘一兰
崔超
陈诗
宁丰东
郑坚业
张维超
杨金仿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Blockcontinent Technology Co ltd
Original Assignee
Shenzhen Blockcontinent 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 Shenzhen Blockcontinent Technology Co ltd filed Critical Shenzhen Blockcontinent Technology Co ltd
Priority to CN201911266455.7A priority Critical patent/CN111047445B/en
Publication of CN111047445A publication Critical patent/CN111047445A/en
Application granted granted Critical
Publication of CN111047445B publication Critical patent/CN111047445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1059Inter-group management mechanisms, e.g. splitting, merging or interconnection of groups
    • 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/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Technology Law (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to the technical field of side chain crossing, and discloses a completely decentralized side chain crossing method, which has the advantage of completely decentralized, wherein a light client is realized in an intelligent contract, when correct initial block information is initialized, the contract can completely and autonomously verify the validity of all subsequent blocks, the light client does not need to continuously synchronize all block heads of an original chain, a credible block can be obtained for verification transaction only according to a part of segments of a block chain needing to be synchronized, the fast cross-chain transaction is realized, only less than 3 minutes are needed for generating corresponding transaction on a target chain from generation of one cross-chain transaction, the cross-chain transactions are parallel, different cross-chain transactions are not influenced mutually and can be executed in parallel, so that great concurrency is supported, the safety is realized, and the self correctness of the light client can be ensured due to the adoption of signature verification of a producer and strict logic check, can not be attacked maliciously, so the authenticity of the transaction can be safely verified.

Description

Completely decentralized side chain crossing method
Technical Field
The invention relates to the technical field of side chain crossing, in particular to a completely decentralized side chain crossing method.
Background
According to Chinese patent CN108256864B and Chinese patent CN103755842A, the chain-crossing technology is as follows: the simple payment verification technology is used for verifying that one transaction exists in a block chain, an SPV client stores a continuous block head but does not have a block body, so that only a small storage space is occupied, and after one transaction and a Merkle path of the transaction are obtained, whether the transaction exists on the block chain can be verified, and a light client, namely the SPV client, namely a light-weight chain consisting of the block heads, a Mercker path: the new BP schedule is a technology for determining the right of producing blocks by an EOSIO system public link based on a DPOS mechanism, the Block Producers contained in the previous BP schedule are authenticated and then take effect to ensure strict BP right handover, and the BP schedule following a corresponding main network in a light client is a core technology of IBC system logic.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a completely decentralized side chain crossing method, which has the advantage of complete decentralized and solves the problem of low efficiency of the traditional side chain crossing.
(II) technical scheme
In order to achieve the purpose of complete decentralization, the invention provides the following technical scheme: a method of fully decentralised side chain crossing comprising the steps of:
first we initiate cross-chain transaction start data on the main chain through cross-chain contract and record in the start data table S01.
S02 the backbone cross-chain plug-in listens for cross-chain transactions initiated on the backbone.
And S03, when the main chain cross-chain plug-in receives the success of the cross-chain transaction, the main chain cross-chain plug-in sends the cross-chain transaction to the side chain cross-chain plug-in.
S04, when the side chain cross-link plug-in receives the main chain transaction information, the side chain cross-link is called to use the light client to verify the transaction.
And S05, when the light client transaction verification of the side chain cross-link contract operation is passed, calling a currency transaction function to initiate the side chain transaction to issue a corresponding token.
The sidechain jumper will listen for transactions initiated on the sidechain S06.
And S07, the side chain cross-chain plug-in unit sends the token to the main chain cross-chain plug-in unit after receiving the token issuing transaction success.
And S08, when the main chain cross-link plug-in receives the side chain transaction information, calling the main chain cross-link contract currency transaction determination interface to verify the transaction.
S09, when the main chain cross-link contract passes the transaction verification of the light client, the original transaction start data is deleted from the start data table, so that a complete cross-link transaction is completed.
Preferably, the light client is mainly used for collecting block information of the blocks, and does not include the block bodies, so that the light client occupies a small space.
Preferably, concept nodes are introduced in the cross-link contract, one node records a continuous section of block header information, and the node structure does not store specific block header information.
Preferably, the light client operates the steps of: the method comprises the steps of firstly, verifying whether the latest node can be connected or not through a block number, secondly, judging whether the fork needs to be processed or not, deleting old data, not simultaneously storing a plurality of branches in a contract, but realizing the fork processing in a mode that the former is replaced by the latter, thirdly, verifying whether the latest node can be connected or not through a block id, and fourthly, constructing a block header and verifying a BP signature.
Preferably, the successful cross-link transaction can only execute one currency transaction, otherwise it will result in repeated currency transactions.
(III) advantageous effects
Compared with the prior art, the invention provides a completely decentralized side chain crossing method, which has the following beneficial effects:
the fully decentralized side chain crossing method has the advantages of being completely decentralized, the light client is realized in an intelligent contract, when correct initial block information is initialized, the contract can completely and autonomously verify the validity of all subsequent blocks without relying on trust of plug-in or contract external information, the light client is light in weight, the light client does not need to continuously synchronize all block heads of an original chain, the trusted blocks can be obtained for verification transaction only according to partial segments of a synchronous block chain, the fast crossing transaction is realized, only less than 3 minutes are needed for generating corresponding transaction on a target chain from generation of one crossing transaction, the crossing transaction is parallel, different crossing transactions are not influenced mutually and can be executed in parallel, so great concurrency is supported, the safety is realized, and the self correctness of the light client can be ensured due to the adoption of signature verification of a producer and strict logic check, can not be attacked maliciously, so the authenticity of the transaction can be safely verified.
Drawings
FIG. 1 is a flow chart of the system of the present 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.
Referring to FIG. 1, a method for fully decentralized side chain crossing includes the following steps:
and S01, initiating cross-chain transaction starting data through cross-chain contract on the main chain and recording the data in a starting data table.
S02 the backbone cross-chain plug-in listens for cross-chain transactions initiated on the backbone.
And S03, when the main chain cross-chain plug-in receives the success of the cross-chain transaction, the main chain cross-chain plug-in sends the cross-chain transaction to the side chain cross-chain plug-in.
S04, when the side chain cross-link plug-in receives the main chain transaction information, the side chain cross-link is called to use the light client to verify the transaction.
And S05, when the light client transaction verification of the side chain cross-link contract operation is passed, calling a currency transaction function to initiate the side chain transaction to issue a corresponding token.
The sidechain jumper will listen for transactions initiated on the sidechain S06.
And S07, the side chain cross-chain plug-in unit sends the token to the main chain cross-chain plug-in unit after receiving the token issuing transaction success.
And S08, when the main chain cross-link plug-in receives the side chain transaction information, calling the main chain cross-link contract currency transaction determination interface to verify the transaction.
S09, when the main chain cross-link contract passes the transaction verification of the light client, the original transaction start data is deleted from the start data table, so that a complete cross-link transaction is completed.
The light client is mainly used for collecting block information of a block, does not include the block body, so the light client only occupies a small space, and a Markle path using the SPV technology is used for proving whether a transaction exists in a certain block, the light client does not need to synchronize full block header information, when a BP above 2/3 normally runs, the light client is directly verified from irreversible block data, only when the BP is replaced or subjected to cross-chain transaction, the light client cannot be confirmed by the BP above 2/3, a synchronization block is needed, a concept node is introduced into a cross-chain contract, a node records a segment of continuous block header information, a node structure does not store specific block header information, but records a first block number (first) and a last block number (last) of the segment of block header, the specific block header information is stored in a chain database, and each node has a valid value, when there is no bpschedule replacement, as long as 2/3 active BP is in the block, the block can be considered as irreversible, cross-chain transaction can be verified, when BP replacement is encountered, the valid value of the node becomes an error value, transaction verification is no longer accepted, the completion of replacement is known, when the valid value becomes a correct value again, cross-chain transaction is continuously verified, and the light client executes the steps of: firstly, verifying whether the current node can be connected to the latest node through the block number, secondly, verifying whether the current node needs to be processed and deleting old data, and not simultaneously saving a plurality of branches in a contract, but realizing the processing of the branch in a mode that a later replaces the former, thirdly, verifying whether the current node can be connected to the latest node through the block id, fourthly, constructing a block head and verifying a BP signature, and in order to ensure the integrity and the reliability of cross-link transaction, firstly, the successful cross-link transaction can only execute one time of money transaction, otherwise, repeated money transaction can be caused, secondly, for each money transaction, related information of the money transaction must be transmitted back to an original chain to execute money transaction determination so as to eliminate transaction information recorded in the contract, otherwise, a token is issued to a user on a destination chain and returned to the user, and a money transaction function is the core logic of the cross-link contract, the original transaction id, i.e. origtrxid, and the block number of origtrx of the new currency transaction must be greater than or equal to the block number of all origtrx, that is, the currency transaction must be performed in the sequence of the original transaction in the original chain block (when the currency transaction is executed, the cross-chain transaction sequence of a certain block of the original chain is irrelevant), and then, in combination with trxid check, can ensure that one-time currency transaction is intelligently executed during one-time cross-chain transaction, if the calling of the currency transaction interface fails, the transaction which fails to be successfully cross-chain can be rolled back, i.e., returning the user's assets, the currency transaction determination interface will check the sequence of the currency transactions' numbers, which must be incremented one by one, to ensure that all monetary transactions on the destination chain delete the original transaction record on the original chain, thereby ensuring that double-flower situations do not occur.
The main function of the contract is to initiate a transaction and run a light client adopting a transaction verification technology (collect transaction information and verify), and the plug-in is used for transmitting the transaction information.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (5)

1. A method for completely decentralized side chain crossing, characterized in that: the method comprises the following steps:
s01, initiating the cross-chain transaction starting data on the main chain through cross-chain contract and recording the data in the starting data table;
s02, the main chain cross-chain plug-in monitors the cross-chain transaction initiated on the main chain;
s03, when the main chain cross-chain plug-in receives the success of the cross-chain transaction, the main chain cross-chain plug-in sends the cross-chain transaction to the side chain cross-chain plug-in;
s04, when the side chain cross-link plug-in receives the main chain transaction information, the side chain cross-link is called to contract and use the light client to verify the transaction;
s05, when the light client transaction verification of the side chain cross-link contract operation is passed, the currency transaction function is called to initiate the side chain transaction to issue the corresponding token;
s06, the side chain cross-chain plug-in monitors the transaction initiated on the side chain;
s07, when the side chain cross-chain plug-in receives the success of the token issuing transaction, the side chain cross-chain plug-in sends the token to the main chain cross-chain plug-in;
s08, when the main chain cross-link plug-in receives the side chain transaction information, the main chain cross-link contract currency transaction determining interface is called to verify the transaction;
and S09, deleting the original transaction initial data from the initial data table after the main chain cross-link contract uses the light client transaction verification to pass.
2. A method of fully decentralised side chain crossing according to claim 1, wherein: the light client is mainly used for collecting block information of the blocks, the block bodies are not included, and the light client occupies a small space.
3. A method of fully decentralised side chain crossing according to claim 1, wherein: concept nodes are introduced in the cross-link contract, one node records a continuous section of block header information, and the node structure does not store specific block header information.
4. A method of fully decentralised side chain crossing according to claim 1, wherein: the light client side operates the steps of: the method comprises the steps of firstly, verifying whether the latest node can be connected or not through a block number, secondly, judging whether the fork needs to be processed or not, deleting old data, not simultaneously storing a plurality of branches in a contract, but realizing the fork processing in a mode that the former is replaced by the latter, thirdly, verifying whether the latest node can be connected or not through a block id, and fourthly, constructing a block header and verifying a BP signature.
5. A method of fully decentralised side chain crossing according to claim 1, wherein: the successful cross-link transaction can only execute one currency transaction, otherwise, repeated currency transactions can be caused.
CN201911266455.7A 2019-12-11 2019-12-11 Completely decentralized side chain crossing method Active CN111047445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911266455.7A CN111047445B (en) 2019-12-11 2019-12-11 Completely decentralized side chain crossing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911266455.7A CN111047445B (en) 2019-12-11 2019-12-11 Completely decentralized side chain crossing method

Publications (2)

Publication Number Publication Date
CN111047445A true CN111047445A (en) 2020-04-21
CN111047445B CN111047445B (en) 2023-04-07

Family

ID=70235644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911266455.7A Active CN111047445B (en) 2019-12-11 2019-12-11 Completely decentralized side chain crossing method

Country Status (1)

Country Link
CN (1) CN111047445B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508571A (en) * 2020-12-17 2021-03-16 平安国际智慧城市科技股份有限公司 Data processing method and device based on block chain, computer equipment and storage medium
CN113064764A (en) * 2021-04-19 2021-07-02 支付宝(杭州)信息技术有限公司 Method and apparatus for performing blocks in a blockchain system
CN113114759A (en) * 2021-04-09 2021-07-13 杭州链网科技有限公司 Chain-crossing method and system for realizing multi-chain intercommunication
CN113163001A (en) * 2021-04-08 2021-07-23 南京数字星球科技有限公司 Building method of block chain main and sub chains and chain crossing method thereof
CN113157809A (en) * 2021-04-28 2021-07-23 杭州丽冠科技有限公司 Traversal method and device based on block chain side chain and computer readable storage medium
CN114598533A (en) * 2022-03-10 2022-06-07 昆明理工大学 Block chain side chain cross-chain identity trusted authentication and data encryption transmission method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108154366A (en) * 2017-12-25 2018-06-12 丁江 Across chain digital asset transfer method and terminal device
WO2019019074A1 (en) * 2017-07-27 2019-01-31 杭州复杂美科技有限公司 Cross-chain exchange method on block chain
CN109685489A (en) * 2018-12-28 2019-04-26 杭州云象网络技术有限公司 A kind of assets across chain method of commerce between block chain
CN110033271A (en) * 2019-03-22 2019-07-19 湖南天河国云科技有限公司 Across the chain method of commerce of one kind, system and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019019074A1 (en) * 2017-07-27 2019-01-31 杭州复杂美科技有限公司 Cross-chain exchange method on block chain
CN108154366A (en) * 2017-12-25 2018-06-12 丁江 Across chain digital asset transfer method and terminal device
CN109685489A (en) * 2018-12-28 2019-04-26 杭州云象网络技术有限公司 A kind of assets across chain method of commerce between block chain
CN110033271A (en) * 2019-03-22 2019-07-19 湖南天河国云科技有限公司 Across the chain method of commerce of one kind, system and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
魏昂: "一种改进的区块链跨链技术", 《网络空间安全》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112508571A (en) * 2020-12-17 2021-03-16 平安国际智慧城市科技股份有限公司 Data processing method and device based on block chain, computer equipment and storage medium
CN113163001A (en) * 2021-04-08 2021-07-23 南京数字星球科技有限公司 Building method of block chain main and sub chains and chain crossing method thereof
CN113114759A (en) * 2021-04-09 2021-07-13 杭州链网科技有限公司 Chain-crossing method and system for realizing multi-chain intercommunication
CN113064764A (en) * 2021-04-19 2021-07-02 支付宝(杭州)信息技术有限公司 Method and apparatus for performing blocks in a blockchain system
CN113064764B (en) * 2021-04-19 2023-10-27 支付宝(杭州)信息技术有限公司 Method and apparatus for executing blocks in a blockchain system
CN113157809A (en) * 2021-04-28 2021-07-23 杭州丽冠科技有限公司 Traversal method and device based on block chain side chain and computer readable storage medium
CN113157809B (en) * 2021-04-28 2021-12-31 广东省机场集团物流有限公司 Traversal method and device based on block chain side chain and computer readable storage medium
CN114598533A (en) * 2022-03-10 2022-06-07 昆明理工大学 Block chain side chain cross-chain identity trusted authentication and data encryption transmission method
CN114598533B (en) * 2022-03-10 2024-04-26 昆明理工大学 Block chain side chain cross-chain identity trusted authentication and data encryption transmission method

Also Published As

Publication number Publication date
CN111047445B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111047445B (en) Completely decentralized side chain crossing method
CN110493148B (en) Block processing, block consensus and block synchronization method and device
US11177962B2 (en) Optimizations for verification of interactions system and method
CN107169865B (en) Asset data processing system based on block chain technology
Sonnino et al. Replay attacks and defenses against cross-shard consensus in sharded distributed ledgers
CN109242500A (en) Block chain transaction validation verification method, apparatus and storage medium
CN111585767B (en) Data exchange method and device for main chain and side chain
CN112651724A (en) Cross-chain interaction method, device and system
CN109118230A (en) Information processing method and device based on block chain
CN109951547A (en) Transactions requests method for parallel processing, device, equipment and medium
CN113592475B (en) Cross-chain asset transfer method, computer device, and storage medium
CN110930152B (en) Data processing method based on block chain and related equipment
CN111161078A (en) One-to-many block chain transfer realization method
CN111640018B (en) Block chain transaction existence verification method and device
CN111552991A (en) Block chain transaction method and device
CN113362068A (en) Method for verifying block chain state transfer by light node
KR102376783B1 (en) The blockchain-based transaction history confirmation system
CN113269543A (en) Multilayer mixed transaction capacity expansion system and method for block chain
WO2019024631A1 (en) Blockchain lightweight processing method, blockchain node and storage medium
CN114266665B (en) Contract multi-main chain crossing method, equipment and storage medium
CN112258184B (en) Method, apparatus, electronic device and readable storage medium for freezing blockchain network
CN111768194B (en) Novel alliance chain with light account book as characteristic
CN114785776A (en) Block chain-based clearing system and block chain-based clearing method
CN111179524A (en) ATM (automatic Teller machine) card retaining and retrieving method and device
CN114155081B (en) Consensus and transaction separation system and method based on five Merkle tree structures

Legal Events

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