Mechanisms of Blockchains Integration with Each Other
Keywords
Abstract
This paper considers the need for blockchain integration and the problems that arise along the way. The idea of transporting bitcoins by destroying them on one blockchain and creating a corresponding value on another blockchain is considered.
A brief description of such concepts as bitcoin transaction and bitcoin block is given. The Merkle Tree data structure, its internal organization, and its benefits are described in detail. The algorithm for constructing a “Merkle Tree” for a block of transactions and the principle of constructing and verifying a “Merkle Path” for a given transaction are presented. Describes what is behind the concept of "proof of work" (Proof of Work) from both a technical and economic point of view.
For the first time, a detailed algorithm for transporting bitcoins from one blockchain to another was proposed, which is mostly based on the data structure of the "Merkle tree" and the idea of "proof of work". The four main stages of this algorithm are given and explained. The scheme of the transaction destroying one bitcoin is resulted, its locking script is considered. A real example illustrates the creation and verification proof of existence of a transaction based on the Merkle tree. Given the detailed scheme of the transaction on the auxiliary blockchain, with its basic elements, namely: a chain of block headers, proof of existence based on the Merkle tree, encoded transaction from bitcoin blockchain. The connections between these elements are given and the algorithm of formation of the above-mentioned transaction is considered. The algorithm of transaction validation on the auxiliary blockchain from the point of view of the smart contract is considered step by step.
The disadvantages of the idea of integrating blockchains with each other are described.
