CN110033271B - Cross-chain transaction method, system and computer readable storage medium - Google Patents

Cross-chain transaction method, system and computer readable storage medium Download PDF

Info

Publication number
CN110033271B
CN110033271B CN201910225549.3A CN201910225549A CN110033271B CN 110033271 B CN110033271 B CN 110033271B CN 201910225549 A CN201910225549 A CN 201910225549A CN 110033271 B CN110033271 B CN 110033271B
Authority
CN
China
Prior art keywords
transaction
chain
blockchain
cross
block
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.)
Active
Application number
CN201910225549.3A
Other languages
Chinese (zh)
Other versions
CN110033271A (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.)
Hunan Tianhe Guoyun Technology Co Ltd
Original Assignee
Hunan Tianhe Guoyun 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 Hunan Tianhe Guoyun Technology Co Ltd filed Critical Hunan Tianhe Guoyun Technology Co Ltd
Priority to CN201910225549.3A priority Critical patent/CN110033271B/en
Publication of CN110033271A publication Critical patent/CN110033271A/en
Application granted granted Critical
Publication of CN110033271B publication Critical patent/CN110033271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention discloses a cross-chain transaction method, a system and a computer readable storage medium, wherein the cross-chain transaction method is characterized by aiming at 2 blockchains based on DPoS consensus: 2 blockchains have a common block producer; a user in one of the blockchains initiates a transaction that, after being reviewed and voted by the blockproducer, can transfer funds in an account on one blockchain across the chain to an account on the other blockchain. The method, the system and the computer readable storage medium for the cross-chain transaction are easy to implement, and the cross-chain transaction is simple and convenient.

Description

Cross-chain transaction method, system and computer readable storage medium
Technical Field
The invention relates to a cross-chain transaction method, a system and a computer readable storage medium, which can be applied to block chain cross-chain based on DPoS consensus.
Background
Interpretation of technical terms
Proxy benefit attestation (Delegated Proof of Stake, DPoS): DPoS is a system in which a fixed number of selected entities, called chunk producers or witness, are chosen to create chunks in a recurring order.
Block producers are determined by network user votes, each of which gets a vote proportional to the number of tokens they have (their shares) on the network.
Alternatively, the election may choose to delegate their equity to another election, the delegated election will vote on the block producer's representative blockchain system EOS using the DPoS consensus on behalf of them.
Cross-chain
Refers to transferring digital assets from one blockchain to another blockchain.
The currently mainstream cross-chain technology includes:
1. notary schemes (Notary schemes);
2. side chains/relays (sidichains/relays);
3. hash-locking (Hash-locking);
smart contract: is a computer protocol that aims to propagate, verify or execute contracts in an informative manner. Smart contracts allow trusted transactions to be made without third parties, which transactions are traceable and irreversible. The smart contract concept was first proposed by Nick Szabo in 1995. The purpose of smart contracts is to provide a security approach that is superior to traditional contracts and to reduce other transaction costs associated with the contracts. At present, various blockchains provide intelligent contracts capable of being safely operated, and representative ones are: ethernet, EOS.
In the prior art, for cross-chain transactions, there are the following mechanisms:
(1) Notary mechanism: third party relay needs to be relied upon. Is a centralized approach and the idea violation of blockchain de-centering.
(2) Side chain/relay: one chain depends on the other chain, and the validity of the transaction can be determined by acquiring all transaction information of the other chain. Occasionally, the two chains are too strong.
(3) Hash locking: two user sides which need to cross the chain mutually transmit the information of the hash, need to know each other, and have strong limitation.
Accordingly, there is a need for a new cross-chain transaction method, system, and computer-readable storage medium.
Disclosure of Invention
The invention aims to provide a cross-chain transaction method, a system and a computer readable storage medium, which are easy to implement.
The technical proposal of the invention is as follows:
a cross-chain transaction method for 2 blockchains based on DPoS consensus: 2 blockchains have a common block producer;
a user in one blockchain initiates a transaction that, after being audited and voted by a blockproducer, can transfer tokens in accounts on one blockchain across the chain to accounts on the other blockchain.
The transaction flow is as follows:
the 2 blockchains are blockchain a and blockchain B; the process by which a user on blockchain a transfers a token on account a1 of blockchain a to account B1 on blockchain B is as follows:
step 1: user initiates a transaction with the name atobtx of a cross-chain transaction in blockchain a;
elements of the transaction:
account a1 on blockchain a;
account B1 on blockchain B;
transaction amount x;
step 2: the block producer of blockchain a verifies transaction atobtx, specifically verifies if usera has enough tokens in the a-chain and if usera has the authority of the a1 account in the a-chain;
step 3: in blockchain a, validating and voting on the transaction;
when the block producer exceeding 2/3 passes the verification and votes, executing the transaction in the cross-link contract of the block chain A, and deducting the token of the corresponding transaction amount of the user a1 account on the block chain A, namely deducting x;
step 4: a block producer initiates a cross-link transaction to a cross-link contract of block chain B, carrying the following information:
named atobtx transaction id;
transaction payee account number for blockchain B;
transaction token amount.
Step 5: the block producer of the block chain B votes for the transaction, and after the contract judges that 2/3 of the block producer votes pass, the medal x enters the B1 account of the block chain B;
the cross-chain transaction is completed so far.
All block producers are both block producers of blockchain A and block producers of blockchain B, both the personnel involved in managing blockchain A and the personnel involved in managing blockchain B.
A cross-chain transaction system comprising 2 blockchains and a plurality of nodes on the blockchains, each node having a corresponding account on the blockchain for storing tokens;
also included on each blockchain is a cross-link contract module; the cross-link contract module is used for auditing and voting the cross-link transaction and deducting the medal from the account number of the node or transferring the medal into the account of the node based on the cross-link transaction;
each transaction node is provided with a cross-link transaction initiating module for initiating a cross-link transaction;
and implementing the cross-chain transaction by adopting the cross-chain transaction method.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, enables the aforementioned cross-chain transaction.
The beneficial effects are that:
according to the cross-chain transaction method, the system and the computer readable storage medium, in a public chain based on DPoS consensus, no notary participation is needed, all transaction information of the other chain is not needed to be acquired by a block chain party of the cross-chain, and the validity of the transaction is not verified on the chain. Nor does it require that the cross-chain must have two parties to operate. After the user initiates a transaction of the asset across the chain at chain a. A transaction is automatically generated in the B chain by voting by the block producer of the DPoS consensus, and coins are placed for the user in the B chain. The invention realizes a convenient cross-chain transaction scheme.
The invention designs a method for performing cross-chain by using a block producer generating DPoS consensus as a verification executor of a transaction. The method can effectively utilize the block producer of the block chain using the DPoS consensus, and ensure the real-time reliability and the public transparency of the cross-chain transaction.
The invention has the following characteristics:
1. the invention adopts the block producer based on DPoS block chain to carry out the cross-chain, thereby ensuring the smooth transfer of the asset among various chains. The safety of the block chain system is ensured, and the disclosure is transparent.
2. By adopting the cross-chain method, the performance of the blockchain can be effectively expanded, the transfer of assets among the chains is not worried, a set of blockproducers can deploy a plurality of chains, the transaction number of each transaction is improved, and the blockchain is expanded to a larger application field.
Detailed Description
The invention will be described in further detail with reference to the following examples:
example 1:
1) Blockchain use DPoS consensus
Using DPoS consensus, the number of voted out block producers is determined, e.g., 21, not exceeding this number. The normal operation of the blockchain requires fewer than 1/3 of the nodes to be disliked. Normal operation of the producer node depending on more than 2/3 ensures normal operation of the chain.
The same block producer that is used across both chains of the chain, i.e., the block producer that the a chain election produced, is required, as well as the block producer of the B chain. The block producer list generated by the a-chain may be sent to the B-chain over the network. I.e., the a-chain and the B-chain share a set of block producers.
The block producer can determine the behavior on the blockchain by only passing more than 2/3 votes. The block producer has rights to manage the blockchain. Contract upgrades such as EOS require over 2/3 of the block producers to vote through.
That is, all block producers are both block producers of the A chain and block producers of the B chain, both the personnel involved in the management of the A chain and the personnel involved in the management of the B chain. And simultaneously, the node of the A chain is required to be operated, and the node of the B chain is also required to be operated. The block producer can verify whether the transaction on the a-chain is correct or not, and can also verify whether the transaction occurring on the B-chain is correct or not.
2) Cross-chain transaction processing using contracts
User initiates a cross-chain transaction atobtx (transaction name) in A chain
Factor of transaction
From acount a: : a1 (a 1 account on the A chain) toaccount: b: : b1 (B1 Account on chain B)
Amount:100token. token is a token for a blockchain item.
This is the case for the transaction initiated by the user.
Usera transfers a token from himself on the a1 account of the a chain to the B1 account of userb B on the B chain, the transfer amount being 100token.
First usera constructs this transaction atobtx and then signs, initiating transaction chaining.
This transaction is stored in the cross-link contract of the A-chain, and then validated by the block producer in the A-chain, if usera has sufficient money in the A-chain, if usera has the authority of the a1 account in the A-chain.
The block producer marks that the transaction is normal and votes for it if the verification is passed.
When more than 2/3 of the block producers verify and vote. That is, the transaction is performed in the cross-link contract for the A-link, deducting the 100token for the user's a1 account on the A-link.
Because the block producer of the A chain is also the block producer of the B chain, it knows that the A chain has undergone a transaction that usera is to transfer across chains. And the transaction has been validated.
A block producer initiates a cross-link transaction into the cross-link contract of the B-chain, carrying the following information.
Information element
Named atobtx transaction id;
B:b1,amount;
the block producer of the B-chain then votes for the transaction, and since at least 2/3 of the block producers are honest, more than 2/3 of the votes pass through the transaction. After the contract judges that 2/3 votes are met, a token is generated for the B1 account of the B chain. The cross-chain transaction is completed so far.

Claims (4)

1. A cross-chain transaction method, characterized by for 2 blockchains based on DPoS consensus: the 2 blockchains are blockchain a and blockchain B;2 blockchains have a common block producer;
a user in one blockchain initiates a transaction, and after the transaction is audited and voted by a blockproducer, tokens in accounts on one blockchain can be transferred to accounts of the other blockchain across chains;
the block producer can verify whether the transaction of the A chain is correct or not, and can also verify whether the transaction occurring on the B chain is correct or not;
the transaction flow is as follows:
the process by which a user on blockchain a transfers a token on account a1 of blockchain a to account B1 on blockchain B is as follows:
step 1: user initiates a transaction with the name atobtx of a cross-chain transaction in blockchain a;
elements of the transaction: account a1 on blockchain a; account B1 on blockchain B; transaction amount x;
step 2: the block producer of blockchain a verifies transaction atobtx, specifically verifies if usera has enough tokens in the a-chain and if usera has the authority of the a1 account in the a-chain;
step 3: in blockchain a, validating and voting on the transaction;
when the block producer exceeding 2/3 passes the verification and votes, executing the transaction in the cross-link contract of the block chain A, and deducting the token of the corresponding transaction amount of the user a1 account on the block chain A, namely deducting x;
step 4: a block producer initiates a cross-link transaction to a cross-link contract of block chain B, carrying the following information: named atobtx transaction id; transaction payee account number for blockchain B; a transaction token amount;
step 5: the block producer of the block chain B votes for the transaction, and after the contract judges that 2/3 of the block producer votes pass, the medal x enters the B1 account of the block chain B;
the cross-chain transaction is completed so far.
2. The cross-chain transaction method of claim 1 wherein all block producers are both block producers of blockchain a and block producers of blockchain B, both personnel involved in managing blockchain a and personnel involved in managing blockchain B.
3. A cross-chain transaction system comprising 2 blockchains and a plurality of nodes on the blockchains, each node having a corresponding account on the blockchain for storing tokens;
also included on each blockchain is a cross-link contract module; the cross-link contract module is used for auditing and voting the cross-link transaction and deducting the medal from the account number of the node or transferring the medal into the account of the node based on the cross-link transaction;
each transaction node is provided with a cross-link transaction initiating module for initiating a cross-link transaction;
implementing a cross-chain transaction using the cross-chain transaction method of any one of claims 1-2.
4. A computer readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, enables a cross-chain transaction according to any of claims 1-2.
CN201910225549.3A 2019-03-22 2019-03-22 Cross-chain transaction method, system and computer readable storage medium Active CN110033271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910225549.3A CN110033271B (en) 2019-03-22 2019-03-22 Cross-chain transaction method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910225549.3A CN110033271B (en) 2019-03-22 2019-03-22 Cross-chain transaction method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110033271A CN110033271A (en) 2019-07-19
CN110033271B true CN110033271B (en) 2023-12-22

Family

ID=67236564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910225549.3A Active CN110033271B (en) 2019-03-22 2019-03-22 Cross-chain transaction method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110033271B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111144883B (en) * 2019-12-06 2023-05-16 深圳前海微众银行股份有限公司 Processing performance analysis method and device for blockchain network
CN111047445B (en) * 2019-12-11 2023-04-07 深圳区块大陆科技有限公司 Completely decentralized side chain crossing method
CN111010441B (en) * 2019-12-18 2022-12-13 深圳市迅雷网络技术有限公司 Block chain cross-chain method and system and electronic equipment
CN111242618B (en) * 2020-01-08 2023-05-30 成都库珀创新科技有限公司 Private key keeping method and device based on blockchain contract technology
CN111489161A (en) * 2020-04-20 2020-08-04 北京俩撇科技有限公司 Block chain system, registration and chain crossing method and device
CN111526211B (en) * 2020-05-06 2023-04-14 杭州复杂美科技有限公司 Asset transfer method, device and storage medium
CN111800463B (en) * 2020-05-29 2023-04-07 易联众信息技术股份有限公司 Inter-block chain cross-chain information interaction method, system, medium, equipment and application
CN111769948B (en) * 2020-06-15 2023-06-02 布比(北京)网络技术有限公司 Inter-chain interaction method, system, device and computer equipment based on block chain
CN112527893B (en) * 2020-11-26 2022-06-07 暨南大学 Safe and efficient cross-chain service operation method and system based on SGX
CN113065956A (en) * 2020-12-29 2021-07-02 上海能链众合科技有限公司 Block chain cross-chain asset transfer method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301600A (en) * 2017-06-23 2017-10-27 北京天德科技有限公司 A kind of core algorithm for the block chain the Internet model merchandised across chain
CN107679857A (en) * 2017-10-10 2018-02-09 马晶瑶 Across the chain method of commerce and storage medium of block chain
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
WO2018076759A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based multi-chain management method and system, electronic device, and storage medium
JP2018077714A (en) * 2016-11-10 2018-05-17 株式会社野村総合研究所 Transaction management program, transaction management system, and transaction management method
CA3047884A1 (en) * 2017-03-24 2018-09-27 Alibaba Group Holding Limited Method and device for sending transaction information and for consensus verification
CN109191124A (en) * 2018-08-16 2019-01-11 北京京东尚科信息技术有限公司 Block chain network, dispositions method and storage medium
CN109242456A (en) * 2018-09-04 2019-01-18 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, system and storage medium
CN109426949A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Across the chain method of commerce of one kind and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040585B (en) * 2017-02-22 2020-06-19 创新先进技术有限公司 Service checking method and device
US11030681B2 (en) * 2017-07-21 2021-06-08 International Business Machines Corporation Intermediate blockchain system for managing transactions

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076759A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based multi-chain management method and system, electronic device, and storage medium
JP2018077714A (en) * 2016-11-10 2018-05-17 株式会社野村総合研究所 Transaction management program, transaction management system, and transaction management method
CA3047884A1 (en) * 2017-03-24 2018-09-27 Alibaba Group Holding Limited Method and device for sending transaction information and for consensus verification
CN107301600A (en) * 2017-06-23 2017-10-27 北京天德科技有限公司 A kind of core algorithm for the block chain the Internet model merchandised across chain
CN109426949A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Across the chain method of commerce of one kind and device
CN107679857A (en) * 2017-10-10 2018-02-09 马晶瑶 Across the chain method of commerce and storage medium of block chain
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
CN109191124A (en) * 2018-08-16 2019-01-11 北京京东尚科信息技术有限公司 Block chain network, dispositions method and storage medium
CN109242456A (en) * 2018-09-04 2019-01-18 湖南宸瀚信息科技有限责任公司 Across the chain method of commerce of block chain, system and storage medium

Also Published As

Publication number Publication date
CN110033271A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN110033271B (en) Cross-chain transaction method, system and computer readable storage medium
US11669811B2 (en) Blockchain-based digital token utilization
US20230119636A1 (en) Blockchain methods, nodes, systems and products
CN111183445B (en) Method and apparatus for digital asset auto-promise settlement
CN109242675B (en) Asset publishing method and device based on block chain and electronic equipment
Tian et al. Enabling cross-chain transactions: A decentralized cryptocurrency exchange protocol
US20200313884A1 (en) Smart contract execution using distributed coordination
US11893583B2 (en) Settlement system, settlement method, user device, and settlement program
US20200193432A1 (en) Method and system for settling a blockchain transaction
US20200127813A1 (en) Method and system for creating a user identity
Gangwal et al. A survey of Layer-two blockchain protocols
CN108881187A (en) A kind of across chain data transferring method and equipment suitable for permitting chain scene
EP3488404A1 (en) Method for secure ledger distribution and computer system using secure distributed ledger technology
KR20180123709A (en) Method and system for recording multiple transactions in a block chain
US11381589B2 (en) Systems and methods for distributed extended common vulnerabilities and exposures data management
Avarikioti et al. Brick: Asynchronous payment channels
Yang et al. CVEM: A cross-chain value exchange mechanism
CN111598556A (en) Digital currency exchange method, device, equipment and medium
CN112400298B (en) Verification transaction system and method for adding to an electronic blockchain
CN114154969B (en) Large-scale trading and settlement method based on block chain
CN114930373A (en) Method and apparatus for managing spare letter of credit
Sheng et al. Proof of Diligence: Cryptoeconomic Security for Rollups
Zheng et al. An In-depth Guide to Cross-chain Protocols under a Multi-chain World
Chen et al. AtomCI: A New System for the Atomic Cross-Chain Smart Contract Invocation Spanning Heterogeneous Blockchains
EP4334872A1 (en) Method for registering an electronic coin data set in a coin register; a coin register; a subscriber unit and a computer program product

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