CN112950183B - Cross-chain data interchange method, system, device and electronic equipment - Google Patents

Cross-chain data interchange method, system, device and electronic equipment Download PDF

Info

Publication number
CN112950183B
CN112950183B CN202110203462.3A CN202110203462A CN112950183B CN 112950183 B CN112950183 B CN 112950183B CN 202110203462 A CN202110203462 A CN 202110203462A CN 112950183 B CN112950183 B CN 112950183B
Authority
CN
China
Prior art keywords
proposal
details
initiator
amount
chain
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
CN202110203462.3A
Other languages
Chinese (zh)
Other versions
CN112950183A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110203462.3A priority Critical patent/CN112950183B/en
Publication of CN112950183A publication Critical patent/CN112950183A/en
Application granted granted Critical
Publication of CN112950183B publication Critical patent/CN112950183B/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems

Abstract

The application provides a method, a system, a device and electronic equipment for interchanging cross-chain data, wherein the method comprises the following steps: if proposal data sent by a client is received, the proposal data is sent to a blockchain node of a bracelet; the proposal data comprises the details of the proposal of the initiator and the details of the proposal of the opposite party; judging whether to store the proposal details of the initiating party in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract; after the completion of the uplink of the proposal details of the initiator and the proposal details of the opposite party, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator; the proposal completion result of the proposal details of the initiator is stored in a uplink mode, and a proposal completion message of the proposal details of the initiator is sent to a block chain link point of the bracelet; and if a proposal completion message for proposal details of the parties is received within a preset time, determining that the asset interchange is successful. The scheme improves asset interchange efficiency.

Description

Cross-chain data interchange method, system, device and electronic equipment
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a method for interchanging cross-chain data, a system for interchanging cross-chain data, an apparatus for interchanging cross-chain data, an electronic device, and a computer readable storage medium.
Background
Blockchain refers to a brand new distributed infrastructure and computing paradigm that utilizes a blockchain data structure to validate and store data, a distributed node consensus algorithm to generate and update data, a cryptographic way to secure data transmission and access, and an intelligent contract consisting of automated script code to program and manipulate data.
The cross-chain refers to exchanging and circulating information and values on originally different and independent blockchains through technical means. In a narrow sense, the process of performing asset Interoperability (Interoperability) between two relatively independent blockchain ledgers; in a broad sense, the process of interoperating assets and data between two independent ledgers. The cross-chain technology provides a good medicine for saving blockchains from scattered islands, whether for public or private chains, and is a bridge for expanding and connecting blockchains outwards.
Hash Time Lock Contracts (HTLCs) are a technique for exchanging assets between blockchain networks. In the asset exchange process, in order to ensure the asset security of each blockchain, asset transfer is either completely completed or not completed, and no intermediate state exists. The hash time locking is realized based on a hash algorithm and a timeout mechanism, and the user A and the user B are in asset exchange, and the two-stage asset transfer steps are needed to be locked and transferred: firstly, a user A and a user B both lock assets to an intelligent contract, and unlock the locked assets to a target account again respectively, wherein the process is slow and the efficiency is low although the aim of safety is achieved.
Disclosure of Invention
The embodiment of the application provides a cross-chain data exchange method, which is used for improving exchange efficiency and shortening exchange time.
The above embodiments of the present application provide a method for interchanging cross-chain data, the method being performed by a block link point, the method comprising:
if proposal data sent by a client is received, the proposal data is sent to a blockchain node of a bracelet; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal;
judging whether to store the proposal details of the initiator in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract;
after the completion of the uplink of the proposal details of the initiator and the proposal details of the opposite party, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator;
the proposal completion result of the proposal details of the initiator is stored in a uplink mode, and a proposal completion message of the proposal details of the initiator is sent to the blockchain node of the opposite bracelet;
and if the proposal completion message for proposal details of the mobile terminal is received within the preset time, determining that the asset interchange is successful.
In an embodiment, the determining whether to save the initiating party proposal details in a uplink manner according to the authorized amount and the mortgage amount indicated by the asset contract includes:
Judging whether the authorized amount corresponding to the transaction account is greater than or equal to the transfer amount according to the transfer amount and the transaction account;
if the authorized amount is greater than or equal to the transfer amount, judging whether the mortgage amount corresponding to the transaction account is greater than or equal to the transfer amount;
and if the mortgage amount is greater than or equal to the transfer amount, storing the proposal details of the initiator in a link mode.
In an embodiment, before the determining, according to the transfer amount and the transaction account, whether the authorized amount corresponding to the transaction account is greater than or equal to the transfer amount, the method further includes:
and judging whether the sender account contained in the transaction account is an account corresponding to the client.
In an embodiment, the determining, according to the transfer amount and the transaction account, whether the authorized amount corresponding to the transaction account is greater than or equal to the transfer amount includes:
and judging whether the authorized amount corresponding to the sender account is larger than or equal to the transfer amount or not according to the sender account and the receiver account contained in the transaction account, and judging whether the authorized amount corresponding to the receiver account is larger than or equal to the transfer amount or not.
In one embodiment, after the completion of the uplink of the initiator proposal details and the opposite party proposal details, asset transfer is performed according to the transfer amount and the transaction account contained in the initiator proposal details, including:
if the uplink completion message of the proposal details of the opposite party is received, judging whether the uplink of the proposal details of the initiating party corresponding to the proposal details of the opposite party is completed;
if the starting party proposal details are finished in the uplink, judging whether the starting party proposal details exceed the preset time;
and if the preset time is not exceeded, transferring the transfer amount from the sender account to the receiver account.
In an embodiment, the step of storing the proposal completion result of the proposal details of the initiator in a uplink manner, and sending a proposal completion message of the proposal details of the initiator to the blockchain node of the opposite bracelet includes:
the proposal completion result of the proposal details of the initiator is stored in a uplink manner, and a proposal completion block identification of the proposal details of the initiator is obtained;
and sending a proposal completion message containing proposal identification of the proposal details of the initiator, uplink block identification of the proposal details of the initiator and proposal completion block identification to a blockchain node of the opposite hand chain.
In an embodiment, the method further includes:
and if the proposal completion message of the proposal details of the opposite party is not received within the preset time, transferring the transfer amount from the receiver account back to the sender account according to the sender account and the receiver account contained in the transaction account.
In an embodiment, the method further includes:
if the transfer amount is failed to be transferred back to the sender account from the receiver account, the corresponding transfer amount is returned to the sender account from the mortgage account corresponding to the sender account.
In an embodiment, the method further includes:
if the transfer amount fails to be transferred from the receiver account back to the sender account, the receiver account is blacklisted or blocked by an asset contract.
In an embodiment, the method further includes:
if proposal data sent by a block chain node of an initiating chain is received; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal;
judging whether to store the details of the proposal of the opposite party in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract;
After receiving the proposal completion message of the proposal details of the initiator, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator;
the proposal completion result of the proposal details of the opposite party is stored in a uplink manner; and sending the proposal completion message for proposal details of the party to a blockchain node of the initiating chain.
In an embodiment, the determining whether to save the details of the proposal of the opposite party in a uplink manner according to the authorized amount and the mortgage amount indicated by the asset contract includes:
judging whether the authorized amount and the mortgage amount are both larger than or equal to the transfer amount, and if so, performing uplink storage of the details of the proposal of the opposite party;
and after the uplink of the proposal details of the opposite party is completed, sending an uplink completion message of the proposal details of the opposite party to a blockchain node of the initiating chain.
The embodiment of the application also provides a cross-chain data interchange system, which comprises:
the block chain node of the initiating chain is used for receiving proposal data sent by the client; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal; sending the proposal data to a blockchain node of a bracelet; judging whether to store the proposal details of the initiator in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract;
After the completion of the uplink of the proposal details of the initiator and the receipt of the uplink completion message of the proposal details of the opposite party, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator; the proposal completion result of the proposal details of the initiator is stored in a uplink mode, and a proposal completion message of the proposal details of the initiator is sent to a block chain link point of a bracelet; if a proposal completion message for proposal details of the parties is received within a preset time, determining that the asset interchange is successful;
the blockchain node of the bracelet is used for receiving proposal data sent by the blockchain node of the initiating chain and judging whether to uplink and save the proposal details of the opposite parties according to the authorized amount and mortgage amount indicated by the asset contract;
after receiving the proposal completion message of the proposal details of the initiator, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator; the proposal completion result of the proposal details of the opposite party is stored in a uplink manner; and sending the proposal completion message of the proposal details of the opposite party to a blockchain node of the initiating chain;
and the cross-chain platform is connected with the blockchain node of the initiating chain and the blockchain node of the opposite hand chain and is used for realizing interaction between the blockchain node of the initiating chain and the blockchain node of the opposite hand chain.
The embodiment of the application also provides a cross-chain data interchange device, which is applied to the blockchain node and comprises:
the proposal sending module is used for sending proposal data to a blockchain node of a bracelet if the proposal data sent by the client is received; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal;
the uplink saving module is used for judging whether to save the proposal details of the initiating party in an uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract;
the asset transfer module is used for performing asset transfer according to the transfer amount and the transaction account contained in the initiator proposal details after the initiator proposal details and the opposite proposal details are both uplink;
the result uplink module is used for uplink saving the proposal completion result of the proposal details of the initiator and sending the proposal completion message of the proposal details of the initiator to the blockchain node of the opposite bracelet;
and the message receiving module is used for determining that the asset interchange is successful if the proposal completion message of the proposal details of the opposite parties is received within the preset time.
The embodiment of the application also provides electronic equipment, which comprises:
A processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the above-described cross-chain data interchange method.
Embodiments of the present application also provide a computer readable storage medium storing a computer program executable by a processor to perform the above-described cross-chain data interchange method.
According to the technical scheme provided by the embodiment of the application, whether the asset transfer is performed or not is determined based on the authorized amount and the mortgage amount indicated by the asset contract, so that the safety of asset exchange is ensured. The initiator and the opponent accomplish the asset transfer within the preset time, and the asset exchange is considered successful, and the asset exchange efficiency is improved because the asset transfer is directly performed without locking the assets of the two parties and then the asset transfer.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings that are required to be used in the embodiments of the present application.
FIG. 1 is a schematic diagram of a cross-link data interchange system according to an embodiment of the disclosure;
FIG. 2 is a block diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for interchanging cross-link data according to an embodiment of the present disclosure;
FIG. 4 is a flow chart of a method for interchanging cross-chain data according to another embodiment of the present application;
FIG. 5 is a timing diagram of a cross-chain data interchange method according to an embodiment of the disclosure;
FIG. 6 is a timing diagram of another method of cross-chain data interchange provided herein;
fig. 7 is a block diagram of a cross-link data interchange device according to an embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a schematic architecture diagram of a cross-link data interchange system according to an embodiment of the disclosure. As shown in fig. 1, the system includes: client 110, blockchain node 120 of the initiating chain, blockchain node 130 of the opponent chain, and cross-chain platform 140. Wherein, the client 110 may be a smart phone, a tablet computer, or a desktop computer. The cross-chain platform 140 may include a plurality of cross-link points 141, the blockchain node 120 of the initiating chain, the blockchain node 130 of the opposing chain, and the cross-link points 141 may be computers, servers, or miners. The client is communicatively connected to the blockchain node 120 of the initiating chain, and the blockchain node 120 of the initiating chain and the blockchain node 130 of the adversary chain are communicatively connected to the cross-chain platform 140, respectively.
Wherein, the blockchain node of the initiating chain refers to the blockchain node of the initiating party proposal detail uplink. The blockchain node of the opposite hand chain refers to the blockchain node of the opposite hand proposal detail uplink. For example, assume that user A (account accountA 1) needs to transfer 20 coins to user B (account accountB 1) in chain A, in exchange, user B (account accountB 2) needs to transfer 100 coins to user A (account accountA 2) in chain B. The account number of user A (accountA 1) is the initiator of this asset exchange event, so the blockchain node of chain A may be referred to as the blockchain node of the initiating chain. Accordingly, the blockchain node of chain B may be referred to as a blockchain node of the opposite hand chain.
The initiator proposal details of chain A include "proposal id: t1, sender accountA1, receiver accountB1, transfer amount 20 count (coin), hash contract requires mortgage lower limit 200 count, timeout time: no+30 minutes, whether the initiator: user a is the initial initiator ";
the proposal details of the opposite party of the chain B comprise' proposal identification t1, sender accountB2, receiver accountA2, transfer amount 10 count in, lower limit of amount of the hash contract required mortgage 100 count in, timeout time: no+30 minutes, whether the initiator: and no (2).
The account accountA1 of the user A completes the uplink of the proposal details of the initiator in the chain A, and the account accountB2 of the user B completes the uplink of the proposal details of the opposite party in the chain B.
In an embodiment, the client 110 may act as an initiator, sending proposal data to the blockchain node 120 of the initiating chain. The proposal data may include both originating proposal details and opposite proposal details.
The cross-chain platform 140 connects the blockchain node 120 of the initiating chain and the blockchain node 130 of the pair of bracelets for enabling interaction between the blockchain node 120 of the initiating chain and the blockchain node 130 of the pair of bracelets.
The blockchain node 120 that initiates the chain receives proposal data sent by the client 110; the proposal data is sent to blockchain nodes 130 of the opposite bracelet through a cross-chain platform 140. The blockchain node 120 of the initiating chain determines whether to store the initiating party proposal details in a uplink manner according to the authorized amount and mortgage amount indicated by the asset contract.
Meanwhile, the blockchain node 130 of the bracelet receives proposal data sent by the blockchain node 120 of the initiating chain through the cross-chain platform 140, and judges whether to store the proposal details of the opposite parties in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract.
The blockchain node 120 of the initiating chain completes the uplink of the proposal details of the initiating party, and after receiving the uplink completion message of the proposal details of the opposite party sent by the blockchain node 130 of the bracelet through the cross-chain platform 140, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiating party; and (3) storing the proposal completion result of the proposal details of the initiator in a uplink manner, and sending a proposal completion message of the proposal details of the initiator to the blockchain node 130 of the opposite chain through the cross-chain platform 140.
After receiving a proposal completion message of proposal details of the initiator sent by the blockchain node 120 of the initiating chain through a cross-chain platform, the blockchain node 130 of the bracelet performs asset transfer according to the transfer amount and the transaction account contained in the proposal details of the initiator; the proposal completion result of the proposal details of the opposite party is stored in a uplink manner; and sending the proposal completion message of the proposal details of the opposite party to the blockchain node of the initiating chain through a cross-chain platform.
If the block chain link point of the initiating chain receives a proposal completion message of proposal details of a hand party sent by the block chain node of the bracelet through a cross-chain platform within preset time, the asset interchange is determined to be successful.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device may be used as the blockchain node, and the electronic device 200 may be used to execute the cross-chain data interchange method provided in the embodiments of the present application. As shown in fig. 2, the electronic device 200 includes: one or more processors 202, one or more memories 204 storing processor-executable instructions. Wherein the processor 202 is configured to perform the cross-chain data interchange method provided in the embodiments described below.
The processor 202 may be a device comprising a Central Processing Unit (CPU), an image processing unit (GPU) or other form of processing unit having data processing and/or instruction execution capabilities, may process data from other components in the electronic device 200, and may also control other components in the electronic device 200 to perform desired functions.
The memory 204 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that may be executed by the processor 202 to implement the cross-chain data interchange method described below. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer readable storage medium.
In one embodiment, the electronic device 200 shown in FIG. 2 may also include an input device 206, an output device 208, and a data acquisition device 210, which are interconnected by a bus system 212 and/or other form of connection mechanism (not shown). It should be noted that the components and structures of the electronic device 200 shown in fig. 2 are exemplary only and not limiting, as the electronic device 200 may have other components and structures as desired.
The input device 206 may be a device used by a user to input instructions and may include one or more of a keyboard, mouse, microphone, touch screen, and the like. The output device 208 may output various information (e.g., images or sounds) to the outside (e.g., a user), and may include one or more of a display, a speaker, and the like. The data acquisition device 210 may acquire images of the subject and store the acquired images in the memory 204 for use by other components. The data acquisition device 210 may be a camera, for example.
In an embodiment, the devices in the example electronic apparatus 100 for implementing the cross-chain data exchange method of the embodiments of the present application may be integrated or may be distributed, such as integrating the processor 202, the memory 204, the input device 206, and the output device 208, and separately setting the data acquisition device 210.
In an embodiment, the example electronic device 200 for implementing the cross-chain data interchange method of embodiments of the present application may be implemented as a smart device such as a computer, server, mining machine, or the like.
Fig. 3 is a flow chart of a cross-link data interchange method according to an embodiment of the present application. The method may be performed by block link points. As shown in fig. 3, the flow includes steps S310 to S340.
Step S310: and if the proposal data sent by the client is received, the proposal data is sent to a blockchain node of the opposite bracelet. The proposal data includes originating proposal details and opposite proposal details.
The block link point receives proposal data sent by the client. The blockchain node may be considered a blockchain node of the initiating chain at this point. The blockchain link point of the initiating chain may send proposal data to blockchain nodes of the opposite bracelet through a cross-chain platform. The initiating chain and the opponent chain may be considered two different blockchain networks for asset interchange.
Assuming that user a and user B perform asset interchange, transfer details of initiating a transfer first may be referred to as initiator proposal details, and transaction details of transferring later may be referred to as opposite proposal details. The initiator proposal details may include proposal identification, sender account, recipient account, transfer finance. The initiator proposal details may also include a lower limit of the amount of mortgage required by the hash contract, a preset timeout time, and an identification of whether the initiator is the initiator, as desired.
The proposal details of the hands may include: proposal id, sender account, recipient account, transfer amount. The details of the proposal of the hand can also comprise the lower limit of the amount of mortgage required by the hash contract, the preset timeout time and the identification of whether the party is an initiator or not according to the requirement.
Referring to the above listing, user A and user B perform asset exchanges in chain A and chain B, and the initiator proposal details may include "proposal id: t1, sender accountA1, receiver accountB1, transfer amount 20 count, hash contract requires mortgage lower limit 200 count, timeout time: no+30 minutes, whether the initiator: user a is the initial initiator ";
the proposal details of the opposite party of chain B may include "proposal id: t1, sender accountB2, receiver accountA2, transfer amount 10coi, lower limit 100coi for hash contract needed mortgage, timeout time: no+30 minutes, whether the initiator: and no (2).
Step S320: and judging whether to store the proposal details of the initiator in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract.
The asset contract is used to specify the asset address, mortgage amount, authorized amount, etc. of the asset owner. Note that, before the asset exchange starts, contract deployment and initialization may be performed. Specifically, the cross-chain platform can deploy hash time lock contracts on the chain A and the chain B respectively, input parameters include an address of an asset contract (an a1 asset contract address of the chain A and an a2 asset contract address of the chain B) and an asset address of the cross-chain platform-hash contract (namely, an asset address used for mortgage: a c1 asset address of the chain A and a c2 asset address of the chain B), and the contract address of the hash time lock contract is obtained after deployment is completed.
Thereafter, the cross-chain platform mortgage assets (mortgageToken (uint amount)) on chain A and chain B, respectively. Mortgage is a blockchain transaction initiated by a cross-chain platform with an own asset account, the transaction calling method is mortgageToken (uint amount), the mortgage is executed on the blockchain to transfer the own amount to the admin account, and the total amount of the mortgage is recorded. The mortgage is similar to a certificate which can carry out cross-chain transaction by a cross-chain platform, and the mortgage amount can be compensated. Specifically, the cross-chain platform uses a c1 asset address to mortgage a certain asset (amont) in the k1 contract and a c2 asset address to mortgage a certain asset in the k2 contract. The asset here can be used for problems with subsequent rollbacks. Meanwhile, the c1 asset address and the c2 asset address must have assets on the a1 asset contract and the a2 asset contract respectively, and the more the mortgage assets are, the greater the probability of success of the subsequent cross-chain proposal application is. Such as contract c1 asset account mortgage 1000coin, contract c2 asset account mortgage 800coin.
A user of the client may enter a specified value of the amount and authorize (approveContract (uint amount)) the hash-time lock contract to operate on the amount of the asset. Specifically, user a (account of chain a is accountA1, account of chain B is accountA 2), user B (account of chain a is accountB1, account of chain B is accountB 2). The user A account accountA1 and the user B account accounB1 can perform asset operation at the k1 contract address of the chain A authorization chain A, and the user A account accountA2 and the user B account accounB2 can perform asset operation at the k2 contract address of the chain B authorization chain B. The authorized assets herein may be provided with multiple points to facilitate subsequent proposal passing rates. Meanwhile, if the account accountA2 of the user a of the chain B is a receiver of the details of the proposal of the hand, the asset authorization may not be set. Such as accountA1 grant 100 count, accountb2 grant 80 count. It should be noted that only the hash contract is authorized to operate on the user's assets.
Mortgage and authorization may be considered a pre-preparation phase. After the client generates the proposal data, the blockchain node of the initiating chain receives the proposal data, and can finish the uplink of proposal details of the initiating chain in the chain A by using the user A account accountA1, and the blockchain node of the opponent can finish the uplink of proposal details of the opponent in the chain B by using the user B account accountB 2.
In an embodiment, the blockchain node of the initiating chain may make a determination as to whether the initiator proposal details are to be uplink or not according to the authorized amount and mortgage amount indicated by the asset contract. The specific judging steps are as follows: (1) The proposal must be initiated by the user himself (initiator initiation). Namely judging whether the sender account contained in the transaction account is an account corresponding to the client;
(2) The amount authorized by the initiator must be sufficient to transfer (3) if the amount authorized by the recipient is sufficient (to prevent subsequent rollback failures) if it is the initiator.
That is, whether the authorized amount corresponding to the transaction account is greater than or equal to the transfer amount is judged according to the transfer amount and the transaction account. Specifically, whether the authorized amount corresponding to the sender account is greater than or equal to the transfer amount or not is judged according to the sender account and the receiver account contained in the transaction account, and whether the authorized amount corresponding to the receiver account is greater than or equal to the transfer amount or not is judged.
(4) The amount of the contract mortgage needs to be sufficient (to facilitate compensation in the event of rollback, so the more funds account mortgages of the contract, the higher the proposal success rate). (5) save initiator proposal details. That is, if the authorized amount is greater than or equal to the transfer amount, it is further necessary to determine whether the mortgage amount corresponding to the transaction account is greater than or equal to the transfer amount; and if the mortgage amount is greater than or equal to the transfer amount, storing the proposal details of the initiator in a link mode.
For example, the block number of the initiator proposal details on the proposal of chain a may be bNumber1, and the block number of the initiator proposal details on the proposal of chain B may be bNumber2.
Step S330: and after the completion of the uplink of the proposal details of the initiator and the proposal details of the opposite party, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator.
After the details of the proposal are finished in the uplink, the blockchain node of the opposite chain can send the uplink finishing message to the blockchain node of the initiating chain through the cross-chain platform.
And (3) finishing the uplink of the initiator proposal detail in the chain A, finishing the uplink of the initiator proposal detail in the chain B, and performing asset transfer by a blockchain node of the initiator chain according to the transfer amount and the transaction account contained in the initiator proposal detail. The specific process is that (1) the judgment proposal must exist. Specifically, if the blockchain node of the initiating chain receives the uplink completion message of the proposal details of the opposite party, the blockchain node can determine whether the proposal details of the initiating party corresponding to the proposal details of the opposite party are uplink completed, and the uplink completion indicates that the proposal exists. (2) proposal transfer non-timeout (timelock). Specifically, if the initiator proposal details are completed in the uplink, it may be determined whether the initiator proposal details exceed a preset time (for example, 30 minutes). (3) Chain a contract k1 transfers the amount authorized by accountA1 to accountB1. I.e., if the preset time is not exceeded, the transfer amount is transferred from the sender account to the receiver account. (4) The proposal-completed block number of the current chain's initiator proposal details is updated (for ease of recording). (5) The initiator proposal details are deleted from the proposal to be completed.
Step S340: and storing the proposal completion result of the proposal details of the initiator in a uplink manner, and sending a proposal completion message of the proposal details of the initiator to the blockchain node of the opposite bracelet.
The proposal completion result may include a transfer amount, a transaction account, a transfer time, etc. For example, the block number of the transfer completion uplink of the chain a may be bNumber3. The proposal completion message may include a proposal identification t1 of the proposal details of the initiator, an uplink block identification bNumber1 of the proposal details of the initiator, and the proposal completion block identification bNumber3. Thereafter, the blockchain node of the initiating chain may send a proposal complete message to the blockchain link of the adversary chain to send proposal details of the initiator.
In an embodiment, a block link point of an initiating chain stores a proposal completion result of proposal details of an initiating chain in a uplink manner, and obtains proposal completion block identification of the proposal details of the initiating chain. Such as bNumber3. And sending a proposal completion message containing proposal identification of the proposal details of the initiator, uplink block identification of the proposal details of the initiator and proposal completion block identification to a blockchain node of the opposite hand chain.
The proposal identifier may be considered as a number carried together with the details of the initiator proposal and the details of the opposite proposal, for example t1. The uplink block identification may be considered as the block number of the initiating chain uplink to which the initiating party proposal details are linked. The proposal completion block identification may be considered as the block number of the uplink of proposal completion results of the initiator proposal details.
On the other side, after receiving a proposal completion message of the proposal details of the initiator, the blockchain node of the bracelet can transfer assets according to the transfer amount and the transaction account contained in the proposal details of the initiator; the proposal completion result of the proposal details of the opposite party is stored in a uplink manner; and sending a proposal completion message to proposal details of the party to the block link point of the initiating chain.
Step S350: and if the proposal completion message for proposal details of the mobile terminal is received within the preset time, determining that the asset interchange is successful.
The proposal completion message may include a proposal identifier common to the proposal details of the party and the proposal details of the originating party. After the initiator proposes, if the mobile terminal proposes to complete within a preset time, it indicates that the asset interchange is successful.
So far, under normal conditions, user A and user B have completed the exchange of the cross-chain assets; the next cross-chain asset interchange may be performed. Meanwhile, when asset transfer is performed, a certain fee can be charged at the same time in the chain A and the chain B, and the fee is taken as income of a cross-chain platform. If accountA1 is assigned to accountB1 100 count, a1 count fee is charged.
Conversely, if the proposal completion message for proposal details of the party is not received within the preset time, indicating that user B has not transferred the asset to user a in chain B, the transfer amount is transferred from the recipient account back to the sender account according to the sender account and the recipient account contained in the transaction account since user a has transferred the asset to user B in chain a.
Wherein the asset is transferred from user a to user B, the account of user a may be considered the sender account and the account of user B may be considered the receiver account, so if user B does not transfer the asset to user a in chain B, an asset return is required in chain a. The transfer amount is returned from user B (recipient account) to user a (sender account), i.e., a rollback operation. Rollback is typically required for the following cases: when the sender accountB2 in the counter-side chain B transfers the asset, the time is overtime; the accountB2 asset in the opponent chain B is insufficient (e.g., accountB2 of user B has made other transactions, resulting in an actual amount less than the amount authorized to the hash contract, resulting in a transaction failure when the hash contract transfers the amount authorized by the user).
In one embodiment, if the transfer amount fails to be transferred from the receiver account back to the sender account, the corresponding transfer amount is returned from the mortgage account corresponding to the sender account. For example, if the account B fails to be transferred back to the account a, the mortgage account refunds to the user a for the corresponding transfer amount. Thus, the assets must be mortgage first for rollback, and the higher the mortgage, the higher the rollback success rate and the higher the user's desire to propose. In one embodiment, if the cross-link platform is no longer acting as a cross-link channel for the asset contract, the deposit may be refunded by a reduction (address tokenOwner, customer keys) method, specifically by the asset contract administrator transferring mortgage funds to user a's account. In one embodiment, if the transfer of the transfer amount from the recipient account back to the sender account fails, the recipient account may also be blacklisted or blocked by an asset contract. Freezing may be considered as the inability of the recipient account to transfer assets for a period of time.
On the other hand, if the blockchain node is used as the blockchain node of the opposite hand chain, as shown in fig. 4, the blockchain node of the opposite hand chain may perform the following steps:
Step S410: receiving proposal data sent by a blockchain node of an initiating chain; the proposal data includes originating proposal details and opposite proposal details.
Step S420: and judging whether to store the details of the proposal of the opposite party in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract.
The step S420 specifically includes: and judging whether the authorized amount and the mortgage amount are both larger than or equal to the transfer amount. In one embodiment, it is determined whether the authorization of the sender account and the mortgage amount are equal to or greater than the transfer amount based on the sender account and the recipient account for the proposal details. If the transfer amount is equal to or greater than the transfer amount, carrying out uplink storage on the details of the proposal of the mobile phone; and after the uplink of the proposal details of the opposite party is completed, sending an uplink completion message of the proposal details of the opposite party to a blockchain node of the initiating chain. The uplink completion message may include, among other things, a proposal id and a block number (e.g., bNumber 2) of the uplink to the bracelet for proposal details.
The blockchain node of the bracelet (a-chain) upon receiving a uplink completion message to proposal details of the party, may transfer user a's asset to user B at the a-chain and send a proposal completion message to the blockchain link of the initiating chain upon completion of the transfer.
Step S430: and after receiving the proposal completion message of the proposal details of the initiator, carrying out asset transfer according to the transfer amount and the transaction account contained in the proposal details of the initiator.
The blockchain node to the bracelet (B-chain) upon receiving the proposal completion message of the initiator proposal details may transfer the user B's asset to user a at the B-chain. The proposal completion message of the initiator proposal details may include: the proposal number t1 and the chain a proposal the block number bNumber1 of the uplink, and the chain a transfers the block number bNumber3 of the completed uplink. The transfer process comprises the following steps: (1) Judging that the proposal must exist (2) a proposal transfer non-timeout (timelock); (3) Block number of update current chain to completion of proposal details of the party (4) chain B contract k2 transfers the amount authorized by account accountB2 of user B to account accountA2 of user a. (5) The pair of proposal details are deleted from the proposal list to be completed.
Step S440: the proposal completion result of the proposal details of the opposite party is stored in a uplink manner; and sending the proposal completion message for proposal details of the party to a blockchain node of the initiating chain.
The proposal completion result of proposal details may include information such as proposal identification, transaction account, transfer amount, and transfer time. For example, the uplink block of proposal completion results for proposal details of a party may be denoted as bNumber4. The proposal completion message for proposal details of the mobile terminal may include a proposal identification, an identification bNumber4 of the uplink block for proposal details of the mobile terminal. And the blockchain node of the initiating chain receives a proposal completion message for proposal details in a preset time, and the proposal completion message indicates that the round of asset interchange is successful. And otherwise, indicating that the asset transfer of the opposite party is unsuccessful, and the initiator needs to perform rollback operation to perform asset rollback.
FIG. 5 is a timing diagram of cross-chain data interchange according to an embodiment of the present application. As shown in fig. 5, cross-link slave node a may be considered a blockchain node of the initiating chain and cross-link slave node B may be considered a blockchain node of the opponent chain. Chain A is the initiating chain and chain B is the opposite hand chain. The specific process is as follows:
1. initializing a cross-link by the node A and a cross-link by the node B, and performing capital mortgages;
2. the user a of chain a and the user B of chain B perform asset authorization operations.
3. Generating proposal data by the node A across links and sending the proposal data to the node B across links;
4. transferring, by node a, user a's asset in chain a across the link to user B's target account;
5. transferring, by node B, user B's asset to user a's target account in chain B across the link;
6. if at time T0, chain B has not yet completed transferring user B's asset to user A, then rollback: the asset transferred to user B is returned to user a's account in chain a.
To fully embody the technical effects of the cross-chain data exchange method provided by the embodiment of the application, fig. 6 shows a cross-chain asset exchange flow based on hash time lock.
Background: chain a account: user A holds account number 1, asset 1000, user B holds account number 2; chain B account: user B holds account 3, asset 800, and user a holds account 4.
The object is: through the cross-chain platform, account number 1 transfers 500 to account number 2 in chain A, account number 3 transfers 300 to account number 4 in chain B, and cross-chain asset interchange is achieved in sequence.
Specifically, the hash time lock cross-chain transfer flow is as follows:
1. the user A firstly selects a secret key random number S, calculates a hash value H of the S by using a hash algorithm, uses the hash value H as a proposal number, and sends the H to the B, and simultaneously, the A and the B negotiate two time points T0 and T1 to ensure that T0> T1. (proposal flow)
2. The cross-chain platform locks the asset (1000) of user a to a hash time lock contract (htlclock. Sol) based on the H proposal, and the intelligent synthetic date locks the asset of user a, can be transferred to user B in time T0 using key S, and can automatically unlock if not unlocked before T0, without any asset transfer. (Lock flow)
3. The cross-chain platform locks the user B 'S asset (800) to a hash time lock contract (htlclock. Sol) based on the H proposal, which locks the user B' S asset, can be transferred to user a during time T1 using key S, and automatically revokes the lock if not yet unlocked before T1, without any asset transfer. (Lock flow)
4. After both parties complete locking at the same time, the asset (800) is transferred to A using the random number S of A across the link points, invoking the hash time lock smart contract on B. (transfer flow)
5. Through the steps, the key random number S is obtained by the B, the S obtained by the B is used across the link points, the asset (1000) is transferred to the B, and the asset exchange is completed. (transfer flow)
6. If either A or B has timed out and not operated, then the B asset will be unlocked after time point T1, and the A asset will be unlocked after time T0, and the initial state will be restored. (rollback procedure)
The above process, user a and user B, asset interchange, requires a two-stage asset transfer step by locking, transfer: firstly, a user A and a user B both lock assets to an intelligent contract, and unlock the locked assets to a target account again respectively, wherein the process is slow and the efficiency is low although the aim of safety is achieved.
According to the method and the system, based on the Hash time lock contract, through asset mortgage and asset authorization, the user A directly transfers the asset to the user B, and meanwhile, the user B also directly transfers the asset to the user A, so that one-stage cross-chain asset interchange is achieved. The method reduces the two-stage (locking and transferring) to one-stage (direct transferring), improves the cross-chain efficiency and does not lose the safety.
The following is an embodiment of the apparatus of the present application, which may be used to execute the above-described embodiment of the cross-link data exchange method of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the cross-link data exchange method of the present application.
Fig. 7 is a block diagram of a cross-chain data interchange device according to an embodiment of the disclosure. As shown in fig. 7, the apparatus includes: proposal send module 710, ul save module 720, asset transfer module 730, result ul module 740, and message receive module 750.
A proposal sending module 710, configured to send proposal data sent by a client to a blockchain node of a bracelet if the proposal data is received; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal;
the uplink saving module 720 is configured to determine whether to save the details of the proposal of the initiator in a uplink manner according to the authorized amount and the mortgage amount indicated by the asset contract;
the asset transfer module 730 is configured to perform asset transfer according to the transfer amount and the transaction account included in the initiator proposal details after the initiator proposal details and the opposite party proposal details are both uplink completed;
the result uplink module 740 is configured to store a proposal completion result of the proposal details of the initiator, and send a proposal completion message of the proposal details of the initiator to the blockchain node of the opposite bracelet;
and the message receiving module 750 is configured to determine that the asset interchange is successful if the proposal completion message for the proposal details of the mobile terminal is received within a preset time.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above cross-link data exchange method, and will not be repeated here.
In the several embodiments provided in the present application, the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (14)

1. A method of interchanging cross-chain data, the method performed by a block link point, the method comprising:
If proposal data sent by a client is received, the proposal data is sent to a blockchain node of a bracelet; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal;
judging whether to store the proposal details of the initiator in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract;
after the completion of the uplink of the proposal details of the initiator and the proposal details of the opposite party, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator;
the proposal completion result of the proposal details of the initiator is stored in a uplink mode, and a proposal completion message of the proposal details of the initiator is sent to the blockchain node of the opposite bracelet;
if the proposal completion message of the proposal details of the parties is received within the preset time, determining that the asset interchange is successful;
the determining whether to store the initiator proposal details in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract comprises the following steps:
judging whether the authorized amount corresponding to the transaction account is greater than or equal to the transfer amount according to the transfer amount and the transaction account;
if the authorized amount is greater than or equal to the transfer amount, judging whether the mortgage amount corresponding to the transaction account is greater than or equal to the transfer amount;
And if the mortgage amount is greater than or equal to the transfer amount, storing the proposal details of the initiator in a link mode.
2. The method of claim 1, wherein before the determining, based on the transfer amount and the transaction account, whether the authorized amount corresponding to the transaction account is greater than or equal to the transfer amount, the method further comprises:
and judging whether the sender account contained in the transaction account is an account corresponding to the client.
3. The method according to claim 1, wherein the determining whether the authorized amount corresponding to the transaction account is greater than or equal to the transfer amount according to the transfer amount and the transaction account comprises:
and judging whether the authorized amount corresponding to the sender account is larger than or equal to the transfer amount or not according to the sender account and the receiver account contained in the transaction account, and judging whether the authorized amount corresponding to the receiver account is larger than or equal to the transfer amount or not.
4. The method of claim 1, wherein asset transfer according to the transfer amount and transaction account contained in the initiator proposal details after the completion of both the uplink to the initiator proposal details and the opposite party proposal details comprises:
If the uplink completion message of the proposal details of the opposite party is received, judging whether the uplink of the proposal details of the initiating party corresponding to the proposal details of the opposite party is completed;
if the starting party proposal details are finished in the uplink, judging whether the starting party proposal details exceed the preset time;
and if the preset time is not exceeded, transferring the transfer amount from the sender account to the receiver account.
5. The method of claim 1, wherein the step of uplink saving the proposal completion result of the proposal details of the initiator and sending the proposal completion message of the proposal details of the initiator to the blockchain node of the pair bracelet comprises:
the proposal completion result of the proposal details of the initiator is stored in a uplink manner, and a proposal completion block identification of the proposal details of the initiator is obtained;
and sending a proposal completion message containing proposal identification of the proposal details of the initiator, uplink block identification of the proposal details of the initiator and proposal completion block identification to a blockchain node of the opposite hand chain.
6. The method as recited in claim 1, further comprising:
and if the proposal completion message of the proposal details of the opposite party is not received within the preset time, transferring the transfer amount from the receiver account back to the sender account according to the sender account and the receiver account contained in the transaction account.
7. The method as recited in claim 6, further comprising:
if the transfer amount is failed to be transferred back to the sender account from the receiver account, the corresponding transfer amount is returned to the sender account from the mortgage account corresponding to the sender account.
8. The method as recited in claim 6, further comprising:
if the transfer amount fails to be transferred from the receiver account back to the sender account, the receiver account is blacklisted or blocked by an asset contract.
9. The method as recited in claim 1, further comprising:
if proposal data sent by a block chain node of an initiating chain is received; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal;
judging whether to store the details of the proposal of the opposite party in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract;
after receiving the proposal completion message of the proposal details of the initiator, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator;
the proposal completion result of the proposal details of the opposite party is stored in a uplink manner; and sending the proposal completion message for proposal details of the party to a blockchain node of the initiating chain.
10. The method of claim 9, wherein the determining whether to save the proposal details of the opposite party in a chain based on the authorized amount and mortgage amount indicated by the asset contract comprises:
judging whether the authorized amount and the mortgage amount are both larger than or equal to the transfer amount, and if so, performing uplink storage of the details of the proposal of the opposite party;
and after the uplink of the proposal details of the opposite party is completed, sending an uplink completion message of the proposal details of the opposite party to a blockchain node of the initiating chain.
11. A cross-chain data interchange system, comprising:
the block chain node of the initiating chain is used for receiving proposal data sent by the client; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal; sending the proposal data to a blockchain node of a bracelet; judging whether to store the proposal details of the initiator in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract; the determining whether to store the initiator proposal details in a uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract comprises the following steps: judging whether the authorized amount corresponding to the transaction account is greater than or equal to the transfer amount according to the transfer amount and the transaction account; if the authorized amount is greater than or equal to the transfer amount, judging whether the mortgage amount corresponding to the transaction account is greater than or equal to the transfer amount; if the mortgage amount is greater than or equal to the transfer amount, the initiator proposal details are stored in a link;
After the completion of the uplink of the proposal details of the initiator and the receipt of the uplink completion message of the proposal details of the opposite party, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator; the proposal completion result of the proposal details of the initiator is stored in a uplink mode, and a proposal completion message of the proposal details of the initiator is sent to a block chain link point of a bracelet; if a proposal completion message for proposal details of the parties is received within a preset time, determining that the asset interchange is successful;
the blockchain node of the bracelet is used for receiving proposal data sent by the blockchain node of the initiating chain and judging whether to uplink and save the proposal details of the opposite parties according to the authorized amount and mortgage amount indicated by the asset contract;
after receiving the proposal completion message of the proposal details of the initiator, asset transfer is carried out according to the transfer amount and the transaction account contained in the proposal details of the initiator; the proposal completion result of the proposal details of the opposite party is stored in a uplink manner; and sending the proposal completion message of the proposal details of the opposite party to a blockchain node of the initiating chain;
and the cross-chain platform is connected with the blockchain node of the initiating chain and the blockchain node of the opposite hand chain and is used for realizing interaction between the blockchain node of the initiating chain and the blockchain node of the opposite hand chain.
12. A cross-chain data interchange apparatus, the apparatus being applied to a blockchain node, the apparatus comprising:
the proposal sending module is used for sending proposal data to a blockchain node of a bracelet if the proposal data sent by the client is received; the proposal data comprises the details of an initiating party proposal and the details of a counter party proposal;
the uplink saving module is used for judging whether to save the proposal details of the initiating party in an uplink mode according to the authorized amount and the mortgage amount indicated by the asset contract;
the asset transfer module is used for performing asset transfer according to the transfer amount and the transaction account contained in the initiator proposal details after the initiator proposal details and the opposite proposal details are both uplink;
the result uplink module is used for uplink saving the proposal completion result of the proposal details of the initiator and sending the proposal completion message of the proposal details of the initiator to the blockchain node of the opposite bracelet;
the message receiving module is used for determining that the asset interchange is successful if the proposal completion message of the proposal details of the opposite parties is received within the preset time;
the uplink saving module is specifically configured to determine, according to the transfer amount and the transaction account, whether an authorized amount corresponding to the transaction account is greater than or equal to the transfer amount;
If the authorized amount is greater than or equal to the transfer amount, judging whether the mortgage amount corresponding to the transaction account is greater than or equal to the transfer amount;
and if the mortgage amount is greater than or equal to the transfer amount, storing the proposal details of the initiator in a link mode.
13. An electronic device, the electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the cross-chain data interchange method of any of claims 1-10.
14. A computer readable storage medium, wherein the storage medium stores a computer program executable by a processor to perform the cross-chain data interchange method according to any of claims 1-10.
CN202110203462.3A 2021-02-23 2021-02-23 Cross-chain data interchange method, system, device and electronic equipment Active CN112950183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110203462.3A CN112950183B (en) 2021-02-23 2021-02-23 Cross-chain data interchange method, system, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110203462.3A CN112950183B (en) 2021-02-23 2021-02-23 Cross-chain data interchange method, system, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112950183A CN112950183A (en) 2021-06-11
CN112950183B true CN112950183B (en) 2023-06-30

Family

ID=76245779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110203462.3A Active CN112950183B (en) 2021-02-23 2021-02-23 Cross-chain data interchange method, system, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112950183B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115439249B (en) * 2022-09-01 2023-09-26 国网区块链科技(北京)有限公司 Method, device and system for realizing business service of cross-region block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110288344A (en) * 2019-06-25 2019-09-27 中国工商银行股份有限公司 The assets transfer method and device of transregional piece of chain
CN110992164A (en) * 2019-11-21 2020-04-10 支付宝(杭州)信息技术有限公司 Transaction processing method, device, system and equipment based on block chain
CN111402049A (en) * 2020-03-11 2020-07-10 北京价值互联科技有限公司 Mining method based on block chain mortgage transaction
TWM607838U (en) * 2020-07-06 2021-02-21 陳哲斌 Financial Service System

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190318424A1 (en) * 2018-04-13 2019-10-17 Moneygram International, Inc. Systems and methods for implementing a blockchain-based money transfer
SG11202003794UA (en) * 2019-09-11 2020-05-28 Advanced New Technologies Co Ltd System and method for digital asset transfer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110288344A (en) * 2019-06-25 2019-09-27 中国工商银行股份有限公司 The assets transfer method and device of transregional piece of chain
CN110992164A (en) * 2019-11-21 2020-04-10 支付宝(杭州)信息技术有限公司 Transaction processing method, device, system and equipment based on block chain
CN111402049A (en) * 2020-03-11 2020-07-10 北京价值互联科技有限公司 Mining method based on block chain mortgage transaction
TWM607838U (en) * 2020-07-06 2021-02-21 陳哲斌 Financial Service System

Also Published As

Publication number Publication date
CN112950183A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN109087080B (en) Cross-chain transaction method, device and storage medium
JP7461417B2 (en) Secure off-chain blockchain transactions
CN106899698B (en) Cross-chain interoperation method between block chains
EP3639468B1 (en) Systems and methods for avoiding or reducing cryptographically stranded resources on a blockchain network
US20230421355A1 (en) Systems and methods for storage, generation and verification of tokens used to control access to a resource
Robinson et al. Atomic crosschain transactions for ethereum private sidechains
US7233926B2 (en) Electronic wallet system with secure inter-purses operations
CN111160913B (en) Block chain account balance deposit certificate and recovery method and device
US20210142318A1 (en) Mapping system and corresponding method to realize digital assets on the mapping chain based on distributed technology
EP3200167A1 (en) Information transaction infrastructure
US20190108498A1 (en) Decentralized pooled mining for enabling proof-of-work on blockchains
WO2020224235A1 (en) Cross-chain transaction method and apparatus, device, and storage medium
CN114255031A (en) System for executing cross block chain of transaction, cross chain transaction method and equipment
CN111160881A (en) Method and system for decentralized side-chain issuance of anchored backbone tokens
CN111652618A (en) Decentralized unlinked cross-chain atomic transaction method
CN111932233A (en) Resource transfer method, device and equipment
JP2022525551A (en) Preventing erroneous transmission of copies of data records to distributed ledger systems
CN112950183B (en) Cross-chain data interchange method, system, device and electronic equipment
CN113689216A (en) Cross-chain transaction processing method and device, equipment, storage medium and program product
CN112927073A (en) Cross-link data interchange method, system, device and electronic equipment
CN109685659B (en) Method for supporting offline transaction of block chain hard wallet and hard wallet
CN112699136B (en) Cross-link certificate storage method and related device
US20230063548A1 (en) Cross-chain transaction method and system based on hash locking and sidechain technology and storable medium
CN113228075A (en) Computer-implemented system and method for controlling or enforcing transfers made on a blockchain
CN115345729A (en) Credit card issuing method and device, electronic equipment and storage medium

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