CN109409885A - Across chain method of commerce, device and storage medium on block chain - Google Patents
Across chain method of commerce, device and storage medium on block chain Download PDFInfo
- Publication number
- CN109409885A CN109409885A CN201811264357.5A CN201811264357A CN109409885A CN 109409885 A CN109409885 A CN 109409885A CN 201811264357 A CN201811264357 A CN 201811264357A CN 109409885 A CN109409885 A CN 109409885A
- Authority
- CN
- China
- Prior art keywords
- account
- chain
- contract account
- contract
- transaction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/36—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
- G06Q20/367—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
- G06Q20/3678—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes e-cash details, e.g. blinded, divisible or detecting double spending
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3827—Use of message hashing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q2220/00—Business processing using cryptography
Abstract
This application involves across chain method of commerce, device and the storage mediums on a kind of block chain, belong to block chain technical field, this method comprises: monitoring the second contract account on third party's public affairs chain by least two first contract accounts on mole chain;When mole chain listens to the second contract account and receives the transaction request of the first external account transmission, the second trading resources with the first trading resources equivalence of transaction request instruction are created in the target contract account of mole chain;Second trading resources are transferred to corresponding second external account of mole chain by target contract account;When the second external account initiates transaction request, the second trading resources are transferred to target contract account by the second external account;The second contract account is triggered to be traded according to the transaction record in target contract account;It can solve existing across chain transaction and need to consume additional tranaction costs, and the longer technical problem of exchange hour;The tranaction costs traded across chain are saved, the transaction duration traded across chain is shortened.
Description
Technical field
This application involves across chain method of commerce, device and the storage mediums on block chain, belong to block chain technical field.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Application model.Block chain is inherently the database of a decentralization.Block chain is a string related using cryptography method
The raw data block of coproduction contains the information of block chain network transaction in each data block, for verifying its information
Validity and the next block of generation.
Across chain transaction refers to the transactional operation carried out between multiple block chains, and across chain transaction is the block chain that will be scattered with
The bridge that isolated island connects.
Currently, the exchange that two block chains carry out when across chain transaction between logical card includes the following two kinds mode: the first: adopting
With the exchange of centralization, respective currency is supplemented with money exchange by user, and exchange records everyone inside its system
Remaining sum, then exchange and just carried out on the platform of exchange, until user is from the corresponding currency of exchange's taking-up.But
The problems such as exchange of this centralization diverts there may be insider trading, forgery transaction, fund, moreover, the transaction of centralization
The control of the be highly susceptible to third-party institution.
It is for second by the way of decentralization, one is found under user is online believable has other of inverse demand to buy
Family, such as: the logical card of A is given to second by first, and the logical card of corresponding B is given to first by second.Such method is very inefficient, also, is difficult to look for
Believable to family to one, the risk of execution is also very big.
Currently, people attempt to solve the problems, such as across chain transaction from the angle of decentralization, relatively typically with sudden strain of a muscle
The method of electric network realize between bit coin and Lai Te coin across chain, specific practice is with the Hash locking of lightning network and time
The safety to ensure Transaction Information is locked, Hash locking refers to the cryptographic Hash by locking a common ciphertext to realize two
The atom of logical card in a different blocks chain exchanges.
But existing across chain transaction needs to consume additional tranaction costs, and exchange hour is longer.
Summary of the invention
This application provides across chain method of commerce, device and the storage mediums on a kind of block chain, can solve existing
Across chain transaction needs to consume additional tranaction costs, and the longer problem of exchange hour.The application provides the following technical solutions:
In a first aspect, providing across the chain method of commerce on a kind of block chain, which comprises
Optionally, the second contract account on third party's public affairs chain is monitored by least two first contract accounts on mole chain
Family;
When described mole of chain listens to the second contract account and receives the transaction request of the first external account transmission,
Second of equal value with the first trading resources of transaction request instruction is created in the target contract account of described mole of chain to hand over
Easy resource;Wherein, the target contract account is a contract account in at least two first contract account;Described
The locking of two contract accounts has first trading resources;
Second trading resources are transferred to corresponding second external account of mole chain by the target contract account;
When second external account initiates transaction request, second external account turns second trading resources
Move to the target contract account;
The second contract account is triggered to be traded according to the transaction record in the target contract account.
Optionally, it is described described mole of chain listen to the second contract account receive the first external account transmission
When transaction request, the method also includes:
It is voted by the representative contract account on described mole of chain the Transaction Information carried in the transaction request;
The contract account that represents is at least one contract account in at least two first contract account;
When voting through, triggering executes described create in the target contract account of described mole of chain and asks with the transaction
The step of seeking the second trading resources of the first trading resources equivalence of instruction.
Optionally, the Transaction Information includes at least one of the following contents:
First trading resources locked in the second contract account;
The account address of the second contract account;
The remark information of transactional operation.
Optionally, the method also includes:
The target contract account generates the public key of second trading resources, and the public key is sent to described second and is closed
About account.
Optionally, after second trading resources are transferred to the target contract account by second external account,
The method also includes:
The target contract account generates described second according to second external account and second trading resources and hands over
The corresponding private key of easy resource, and the private key is sent to the second contract account;
The second contract account matches the private key with the public key;
When the private key and the public key match, triggers the second contract account and execute according to the target contract
The step of transaction record in account is traded.
Optionally, at least two first contract accounts by mole chain monitor the second conjunction on third party's public affairs chain
About before account, further includes:
Intelligence and about Orcalize are inherited on mole virtual machine, obtain the first contract account.
Second aspect, provides across the chain the transaction device on a kind of block chain, and described device includes:
Account monitors module, for being monitored on third party's public affairs chain by least two first contract accounts on mole chain
Second contract account;
Asset creation module receives the first external account for listening to the second contract account in described mole of chain
When the transaction request of transmission, the first transaction with transaction request instruction is created in the target contract account of described mole of chain
Second trading resources of resource equivalence;Wherein, the target contract account is one in at least two first contract account
A contract account;The second contract account locking has first trading resources;
Second trading resources are transferred to mole chain pair for the target contract account by the first shift module
The second external account answered;
Second shift module, for when second external account initiates transaction request, second external account will
Second trading resources are transferred to the target contract account;
Transaction execution module, for triggering the second contract account according to the transaction record in the target contract account
It trades.
The third aspect provides across the chain the transaction device on a kind of block chain, and described device includes processor and memory;Institute
It states and is stored with program in memory, described program is loaded as the processor and executed to realize block chain described in first aspect
On across chain method of commerce.
Fourth aspect provides a kind of computer readable storage medium, program, described program is stored in the storage medium
It is loaded as the processor and is executed to realize across the chain method of commerce on block chain described in first aspect.
The beneficial effects of the present application are as follows: it is public that third party is monitored by at least two first contract accounts on mole chain
The second contract account on chain;The transaction request that the second contract account receives the transmission of the first external account is listened in mole chain
When, second transaction of equal value with the first trading resources of transaction request instruction is created in the target contract account of mole chain to be provided
Source;Second trading resources are transferred to corresponding second external account of mole chain by target contract account;It is sent out in the second external account
When playing transaction request, the second trading resources are transferred to target contract account by the second external account;Trigger the second contract account root
It trades according to the transaction record in target contract account;It can solve existing across chain transaction and need to consume additional transaction fee
With, and the longer technical problem of exchange hour;Due to mole chain itself have exempt from tranaction costs (gas), exchange hour it is short, it is high simultaneously
Therefore the characteristic of hair by realizing that across chain transaction can save the tranaction costs across chain transaction on mole chain, shortens across chain friendship
Easy transaction duration improves the high concurrent traded across chain.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application,
And can be implemented in accordance with the contents of the specification, with the preferred embodiment of the application and cooperate attached drawing below detailed description is as follows.
Detailed description of the invention
Fig. 1 is the structural schematic diagram across chain transaction system on the block chain that the application one embodiment provides;
Fig. 2 is the flow chart across chain method of commerce on the block chain that the application one embodiment provides;
Fig. 3 is the block diagram across chain the transaction device on the block chain that the application one embodiment provides;
Fig. 4 is the block diagram across chain the transaction device on the block chain that the application one embodiment provides.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the application is described in further detail.Implement below
Example is not limited to scope of the present application for illustrating the application.
Firstly, to this application involves several nouns be introduced:
Public chain (or public block chain): refer to it is that anyone can be read, anyone can send transaction and transaction energy
Obtain effectively confirm, anyone can participate in it is therein common recognition verification process block chain.
Mole chain: exempt from directed acyclic graph (Directed Acyclic Graph, DAG) publicly-owned chain of transaction fee, transaction is most
Fast confirmation speed is limited to bandwidth and net up to 50 milliseconds (it is of course also possible to being the numerical value more larger or smaller than 50 millimeters)
Network delay.
Ether mill (Ethereum): refer to the public block platform chain for having intelligent contract function of an open source, pass through it
Virtual machine (the ether virtual machine Ethereum Virtual of dedicated encrypted currency ether coin (Ether) offer decentralization
Machine, EVM) handle point-to-point contract.
Intelligent contract (Smart contract): being a kind of to be intended to that contract is propagated, verified or executed in a manner of information-based
Computer protocol.Intelligent contract permission carries out credible transaction in no third-party situation, these transaction are traceable and can not
It reverses.
Ether mill virtual machine (EVM) is the running environment of intelligent contract in ether mill.The code operated in inside EVM cannot
Touch network, file system or other processes.
Have two class accounts in ether mill: external account and contract account, they share the same address space.
External account is by public-private key to control.The address of external account is determined by public key.
Contract account is stored in the control of the code in account.The address of contract account is determined when creating intelligent contract
's.Such as: contract address is calculated by the number of transaction that the address and the address of contract founder issued.Contract account is deposited
Code has been stored up, and external account does not have then.
Fig. 1 is the structural schematic diagram across chain transaction system on the block chain that the application one embodiment provides, such as Fig. 1 institute
Show, which includes at least: mole chain 110 and third party's public affairs chain 120.
Include at least two first contract accounts on mole chain 110, includes that at least one second is closed on third party's public affairs chain 120
About account.First contract account is used to monitor the second contract account on third party's public affairs chain 120.Such as: monitor the second contract account
Whether family receives the transaction request of the first external account transmission.Transaction request can be the pass of the first external account transmission
(token), which can include but is not limited at least one of the following contents: the address of the second contract account, first
The account identification of the first external account of trading resources.
Optionally, the first contract account can be additionally configuring to monitor the second contract account and be installed on and rub
Contract account in your virtual machine;Alternatively, it is also possible to the contract account that user has used on mole chain 110 originally, this reality
Example is applied not limit the set-up mode of the first contract account.
It should be added that when the second contract account receives the transaction request of the first external account transmission, second
Contract account needs to lock the first trading resources.
In the application, across chain request includes two parts: first part, third party's public affairs chain is to mole chain across chain;Second
Point, mole chain is across time third party's public affairs chain.
First part includes: to listen to the friendship that the second contract account receives the transmission of the first external account in mole chain 110
Easily request when, the of equal value with the first trading resources of transaction request instruction is created in the target contract account of mole chain 110
Two trading resources.
Wherein, target contract account is a contract account at least two first contract accounts, the target contract account
Family can be the randomly selected first contract account from least two first contract accounts;Alternatively, being also possible at least two
The the first contract account specified in a first contract account, the present embodiment do not limit the selection mode of target contract account.
At this point, the locking of the second contract account has the first trading resources.
Second trading resources are transferred to corresponding second external account of mole chain 110 by target contract account.
Second part includes: when the second external account initiates transaction request, and the second external account is by the second trading resources
It is transferred to target contract account;The second contract account is triggered to be traded according to the transaction record in target contract account.
In the following, across the chain method of commerce on block chain provided by the present application is introduced.
Fig. 2 be the application one embodiment provide block chain on the flow chart across chain method of commerce, the present embodiment with
It is illustrated in across the chain transaction system that this method is applied on block chain shown in FIG. 1.This method includes at least following
Several steps:
Step 201, the second contract on third party's public affairs chain is monitored by least two first contract accounts on mole chain
Account.
Optionally, the first contract account can be additionally configuring to monitor the second contract account and in a mole void
The contract account that intelligence and about Orcalize are obtained is inherited on quasi- machine;Alternatively, being the conjunction that user has used on mole chain originally
About account.
First contract account can be monitor the second contract account whether receive the first external account transmission transaction ask
It asks;Certainly, the first contract account may also listen for other contents of the second contract account, and the present embodiment is not construed as limiting this.
Step 202, when mole chain listens to the second contract account and receives the transaction request of the first external account transmission,
The second trading resources with the first trading resources equivalence of transaction request instruction are created in the target contract account of mole chain.
Wherein, target contract account is a contract account at least two first contract accounts;Second contract account
Locking has the first trading resources.
It should be added that when the second contract account receives the transaction request of the first external account transmission, second
Contract account needs to lock the first trading resources.
Optionally, when mole chain listens to the second contract account and receives the transaction request of the first external account transmission,
It is voted by the representative contract account on mole chain the Transaction Information carried in transaction request;It is rubbing when voting through
Second trading resources of creation and the first trading resources equivalence of transaction request instruction in the target contract account of your chain.
Representing contract account is at least one contract account at least two first contract accounts.Representing contract account can
Be from least two first contract accounts it is randomly selected;Alternatively, specified from least two first contract accounts,
The present embodiment does not limit the selection mode for representing contract account.
Wherein, Transaction Information includes at least one of the following contents: the first transaction money locked in the second contract account
Source;The account address of second contract account;The remark information of transactional operation.
Optionally, target contract account generates the public key of the second trading resources, and public key is sent to the second contract account.
Optionally, target contract account can generate public key when creating the second trading resources;Alternatively, being handed in creation second
The public key is generated after easy resource, the present embodiment does not limit the generation opportunity of public key.
Step 203, the second trading resources are transferred to corresponding second external account of mole chain by target contract account.
Step 204, when the second external account initiates transaction request, the second trading resources are transferred to by the second external account
Target contract account.
Step 205, the second contract account of triggering is traded according to the transaction record in target contract account.
Optionally, target contract account generates the second trading resources according to the second external account and the second trading resources and corresponds to
Private key, and private key is sent to the second contract account;Second contract account matches private key with public key;In private key and public affairs
When key matches, the second contract account checks transfer accounts record and remarks on mole chain, according to the transaction in target contract account
Record is traded.
In conclusion across the chain method of commerce on block chain provided in this embodiment, passes through at least two on mole chain
A first contract account monitors the second contract account on third party's public affairs chain;The second contract account is listened in a mole chain to receive
When the transaction request that the first external account is sent, first with transaction request instruction is created in the target contract account of mole chain
Second trading resources of trading resources equivalence;Second trading resources are transferred to outside mole chain corresponding second by target contract account
Portion's account;When the second external account initiates transaction request, the second trading resources are transferred to target contract by the second external account
Account;The second contract account is triggered to be traded according to the transaction record in target contract account;It can solve existing across chain
Transaction needs to consume additional tranaction costs, and the longer technical problem of exchange hour;It is exempted from easily since mole chain itself has
Expense (gas), exchange hour be short, high concurrent characteristic, therefore, by realizing that across chain transaction can be saved across chain on mole chain
The tranaction costs of transaction shorten the transaction duration traded across chain, improve the high concurrent traded across chain.
In addition, by the way that multiple first contract accounts the second contract accounts of monitoring are arranged and combine the side for representing account and voting
Formula can be monitored to avoid a first contract account, and corruption occurs in the first contract account, situations such as hacker attack is caused
The safety across chain transaction can be improved in the trustless problem of data.
In addition, triggering the second contract account according to target contract account by using the mode that public key and private key combine
Transaction record is traded, it is ensured that during shifting the second trading resources to the second contract account from the second external account
The safety of data.
Fig. 3 is the block diagram across chain the transaction device on the block chain that the application one embodiment provides, and the present embodiment is with this
It is illustrated in across the chain transaction system that device is applied on block chain shown in FIG. 1.The device includes at least following several
A module: account monitors module 310, asset creation module 320, the first shift module 330, the second shift module 340 and transaction
Execution module 350.
Account monitors module 310, for monitoring third party's public affairs chain by least two first contract accounts on mole chain
On the second contract account;
Asset creation module 320 receives outside first for listening to the second contract account in described mole of chain
When the transaction request that account is sent, first with transaction request instruction is created in the target contract account of described mole of chain
Second trading resources of trading resources equivalence;Wherein, the target contract account is in at least two first contract account
A contract account;The second contract account locking has first trading resources;
Second trading resources are transferred to described mole for the target contract account by the first shift module 330
Corresponding second external account of chain;
Second shift module 340 is used for when second external account initiates transaction request, second external account
Second trading resources are transferred to the target contract account;
Transaction execution module 350, for triggering the second contract account according to the transaction in the target contract account
Record is traded.
Correlative detail refers to above method embodiment.
Optionally, it is described described mole of chain listen to the second contract account receive the first external account transmission
When transaction request, described device further include: vote module.
Vote module, for the transaction by the representative contract account on mole chain to being carried in the transaction request
Information is voted;The contract account that represents is at least one contract account in at least two first contract account;
The asset creation module, for executing the target contract account in described mole of chain when voting through
The step of creation and the second trading resources of the first trading resources equivalence of transaction request instruction.
Optionally, the Transaction Information includes at least one of the following contents:
First trading resources locked in the second contract account;
The account address of the second contract account;
The remark information of transactional operation.
Optionally, described device further include: public key generation module.
Public key generation module generates the public key of second trading resources for the target contract account, by the public affairs
Key is sent to the second contract account.
Optionally, after second trading resources are transferred to the target contract account by second external account,
Described device further include: private key generation module and matching module.
Private key generation module is provided for the target contract account according to second external account and second transaction
Source generates the corresponding private key of second trading resources, and the private key is sent to the second contract account;
Matching module matches the private key with the public key for the second contract account;
The transaction execution module is also used to trigger second contract when the private key and the public key match
The step of account execution is traded according to the transaction record in the target contract account.
Optionally, at least two first contract accounts by mole chain monitor the second conjunction on third party's public affairs chain
About before account, described device further include:
Account configuration module obtains first contract for inheriting intelligence and about Orcalize on mole virtual machine
Account.
Correlative detail is referring to above-described embodiment.
It should be understood that across the chain the transaction device on the block chain provided in above-described embodiment is on carrying out block chain
When across chain transaction, only the example of the division of the above functional modules, in practical application, can according to need and will be upper
It states function distribution to be completed by different functional modules, i.e., the internal structure across chain the transaction device on block chain is divided into difference
Functional module, to complete all or part of the functions described above.In addition, on block chain provided by the above embodiment across
Across chain method of commerce embodiment in chain the transaction device and block chain belongs to same design, and specific implementation process is detailed in method reality
Example is applied, which is not described herein again.
Fig. 4 is the block diagram across chain the transaction device on the block chain that the application one embodiment provides, which can be
Comprising the device in across the chain transaction system on block chain shown in FIG. 1, such as: be logged in the first contract account device or
The device etc. of the second contract account is logged in, which can be smart phone, tablet computer, laptop, desktop computer
Or server.Across chain the transaction device on block chain is also possible to referred to as user equipment, portable terminal, laptop terminal, platform
Formula terminal, controlling terminal etc., the present embodiment is not construed as limiting this.The device includes at least processor 401 and memory 402.
Processor 401 may include one or more processing cores, such as: 4 core processors, 4 core processors etc..Place
Reason device 401 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 401 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 401 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 401 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 402 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 402 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 402 can
Storage medium is read for storing at least one instruction, at least one instruction performed by processor 401 for realizing this Shen
Please in embodiment of the method provide block chain on across chain method of commerce.
In some embodiments, across chain the transaction device on block chain is also optional to include: peripheral device interface and at least
One peripheral equipment.It can be connected by bus or signal wire between processor 401, memory 402 and peripheral device interface.Respectively
A peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface.Schematically, peripheral equipment includes
But it is not limited to: radio circuit, touch display screen, voicefrequency circuit and power supply etc..
Certainly, across the chain the transaction device on block chain can also include less or more component, the present embodiment to this not
It limits.
Optionally, the application is also provided with a kind of computer readable storage medium, in the computer readable storage medium
It is stored with program, described program is loaded by processor and executed across the chain transaction on the block chain to realize above method embodiment
Method.
Optionally, the application is also provided with a kind of computer product, which includes computer-readable storage medium
Matter is stored with program in the computer readable storage medium, and described program is loaded by processor and executed to realize above-mentioned side
Across chain method of commerce on the block chain of method embodiment.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (9)
1. across the chain method of commerce on a kind of block chain, which is characterized in that the described method includes:
The second contract account on third party's public affairs chain is monitored by least two first contract accounts on mole chain;
When described mole of chain listens to the second contract account and receive the transaction request of the first external account transmission, in institute
It states to create in the target contract account of mole chain and be provided with the second transaction of the first trading resources equivalence of transaction request instruction
Source;Wherein, the target contract account is a contract account in at least two first contract account;Described second closes
About account locking has first trading resources;
Second trading resources are transferred to corresponding second external account of mole chain by the target contract account;
When second external account initiates transaction request, second trading resources are transferred to by second external account
The target contract account;
The second contract account is triggered to be traded according to the transaction record in the target contract account.
2. the method according to claim 1, wherein described listen to the second contract account in described mole of chain
When family receives the transaction request of the first external account transmission, the method also includes:
It is voted by the representative contract account on described mole of chain the Transaction Information carried in the transaction request;It is described
Representing contract account is at least one contract account in at least two first contract account;
When voting through, triggering executes described create in the target contract account of described mole of chain and refers to the transaction request
The step of second trading resources of the first trading resources equivalence shown.
3. according to the method described in claim 2, it is characterized in that, the Transaction Information includes at least one in the following contents
Kind:
First trading resources locked in the second contract account;
The account address of the second contract account;
The remark information of transactional operation.
4. the method according to claim 1, wherein the method also includes:
The target contract account generates the public key of second trading resources, and the public key is sent to the second contract account
Family.
5. according to the method described in claim 4, it is characterized in that, second external account turns second trading resources
It moves to after the target contract account, the method also includes:
The target contract account generates second transaction according to second external account and second trading resources and provides
The corresponding private key in source, and the private key is sent to the second contract account;
The second contract account matches the private key with the public key;
When the private key and the public key match, triggers the second contract account and execute according to the target contract account
On transaction record the step of being traded.
6. method according to any one of claims 1 to 5, which is characterized in that at least two by mole chain
One contract account is monitored before the second contract account on third party's public affairs chain, further includes:
Intelligence and about Orcalize are inherited on mole virtual machine, obtain the first contract account.
7. across the chain the transaction device on a kind of block chain, which is characterized in that described device includes:
Account monitors module, for monitoring second on third party's public affairs chain by least two first contract accounts on mole chain
Contract account;
Asset creation module receives the transmission of the first external account for listening to the second contract account in described mole of chain
Transaction request when, in the target contract account of described mole of chain create with the transaction request instruction the first trading resources
Second trading resources of equal value;Wherein, the target contract account is a conjunction in at least two first contract account
About account;The second contract account locking has first trading resources;
It is corresponding to be transferred to mole chain for the target contract account by the first shift module for second trading resources
Second external account;
Second shift module, for when second external account initiates transaction request, second external account will be described
Second trading resources are transferred to the target contract account;
Transaction execution module is carried out for triggering the second contract account according to the transaction record in the target contract account
Transaction.
8. across the chain the transaction device on a kind of block chain, which is characterized in that described device includes processor and memory;It is described to deposit
Program is stored in reservoir, described program is loaded as the processor and executed to realize as described in any one of claim 1 to 6
Block chain on across chain method of commerce.
9. a kind of computer readable storage medium, which is characterized in that be stored with program in the storage medium, described program is located
It manages when device executes for realizing across the chain method of commerce on block chain such as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811264357.5A CN109409885A (en) | 2018-10-29 | 2018-10-29 | Across chain method of commerce, device and storage medium on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811264357.5A CN109409885A (en) | 2018-10-29 | 2018-10-29 | Across chain method of commerce, device and storage medium on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109409885A true CN109409885A (en) | 2019-03-01 |
Family
ID=65469434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811264357.5A Pending CN109409885A (en) | 2018-10-29 | 2018-10-29 | Across chain method of commerce, device and storage medium on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109409885A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857580A (en) * | 2019-03-12 | 2019-06-07 | 深圳市网心科技有限公司 | Across the chain contract call method of block chain, device and storage medium |
CN110135986A (en) * | 2019-04-23 | 2019-08-16 | 武汉大学 | It is a kind of to can search for encrypted file data method based on what block chain intelligence contract was realized |
CN110780945A (en) * | 2019-10-24 | 2020-02-11 | 杭州趣链科技有限公司 | Cross-chain bridging method, equipment and storage medium capable of plugging heterogeneous block chain |
CN111080275A (en) * | 2019-09-10 | 2020-04-28 | 腾讯科技(深圳)有限公司 | Cross-region resource transfer method, device, equipment and storage medium |
CN111090661A (en) * | 2019-12-10 | 2020-05-01 | 北京海益同展信息科技有限公司 | Block chain cross-chain data access method, device, adapter and system |
CN111161070A (en) * | 2019-12-30 | 2020-05-15 | 卓望数码技术(深圳)有限公司 | Alliance chain optimization method and device based on Ether house |
CN111260474A (en) * | 2020-02-12 | 2020-06-09 | 北京百度网讯科技有限公司 | Cross-block-chain asset transaction method, device, equipment, system and storage medium |
CN112258184A (en) * | 2020-10-28 | 2021-01-22 | 成都质数斯达克科技有限公司 | Method and device for freezing area block chain network, electronic equipment and readable storage medium |
CN112287029A (en) * | 2020-11-17 | 2021-01-29 | 北京物资学院 | Block chain multi-chain cross-chain system and implementation mechanism thereof |
CN112862612A (en) * | 2019-06-28 | 2021-05-28 | 创新先进技术有限公司 | Method and device for sending resources in cross-link mode |
CN113746922A (en) * | 2021-09-03 | 2021-12-03 | 杭州复杂美科技有限公司 | Node connection method, computer device, and storage medium |
WO2023024453A1 (en) * | 2021-08-27 | 2023-03-02 | 中国银联股份有限公司 | Transaction processing method and apparatus, and device and storage medium |
CN112862612B (en) * | 2019-06-28 | 2024-04-30 | 创新先进技术有限公司 | Method and device for transmitting resources across chains |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105656624A (en) * | 2016-02-29 | 2016-06-08 | 浪潮(北京)电子信息产业有限公司 | Client side, server and data transmission method and system |
US20160330034A1 (en) * | 2015-05-07 | 2016-11-10 | Blockstream Corporation | Transferring ledger assets between blockchains via pegged sidechains |
CN108074081A (en) * | 2017-12-08 | 2018-05-25 | 上海策赢网络科技有限公司 | The transfer method and device of a kind of virtual resource |
CN108197944A (en) * | 2017-11-22 | 2018-06-22 | 远光软件股份有限公司 | Resource transaction method and device based on block chain technology |
CN108389129A (en) * | 2018-02-27 | 2018-08-10 | 阿里巴巴集团控股有限公司 | Transaction based on block chain executes method and device, electronic equipment |
-
2018
- 2018-10-29 CN CN201811264357.5A patent/CN109409885A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160330034A1 (en) * | 2015-05-07 | 2016-11-10 | Blockstream Corporation | Transferring ledger assets between blockchains via pegged sidechains |
CN105656624A (en) * | 2016-02-29 | 2016-06-08 | 浪潮(北京)电子信息产业有限公司 | Client side, server and data transmission method and system |
CN108197944A (en) * | 2017-11-22 | 2018-06-22 | 远光软件股份有限公司 | Resource transaction method and device based on block chain technology |
CN108074081A (en) * | 2017-12-08 | 2018-05-25 | 上海策赢网络科技有限公司 | The transfer method and device of a kind of virtual resource |
CN108389129A (en) * | 2018-02-27 | 2018-08-10 | 阿里巴巴集团控股有限公司 | Transaction based on block chain executes method and device, electronic equipment |
Non-Patent Citations (1)
Title |
---|
ALEX QIAN等: "摩尔(MOL):移动互联的区块链经济", 《HTTPS://WWW.CHAINWHY.COM/UPLOAD/DEFAULT/20181130/3DC5C9427EF456D97F9D881F40EA1B2E.PDF》 * |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857580B (en) * | 2019-03-12 | 2022-06-07 | 深圳市迅雷网络技术有限公司 | Block chain cross-chain contract calling method and device and storage medium |
CN109857580A (en) * | 2019-03-12 | 2019-06-07 | 深圳市网心科技有限公司 | Across the chain contract call method of block chain, device and storage medium |
CN110135986A (en) * | 2019-04-23 | 2019-08-16 | 武汉大学 | It is a kind of to can search for encrypted file data method based on what block chain intelligence contract was realized |
CN110135986B (en) * | 2019-04-23 | 2024-01-16 | 武汉大学 | Method for realizing searchable encrypted file data based on blockchain intelligent contract |
CN112862612B (en) * | 2019-06-28 | 2024-04-30 | 创新先进技术有限公司 | Method and device for transmitting resources across chains |
CN112862612A (en) * | 2019-06-28 | 2021-05-28 | 创新先进技术有限公司 | Method and device for sending resources in cross-link mode |
CN111080275A (en) * | 2019-09-10 | 2020-04-28 | 腾讯科技(深圳)有限公司 | Cross-region resource transfer method, device, equipment and storage medium |
CN110780945A (en) * | 2019-10-24 | 2020-02-11 | 杭州趣链科技有限公司 | Cross-chain bridging method, equipment and storage medium capable of plugging heterogeneous block chain |
CN110780945B (en) * | 2019-10-24 | 2023-09-08 | 杭州趣链科技有限公司 | Cross-chain bridging method, device and storage medium for pluggable heterogeneous blockchain |
CN111090661A (en) * | 2019-12-10 | 2020-05-01 | 北京海益同展信息科技有限公司 | Block chain cross-chain data access method, device, adapter and system |
CN111090661B (en) * | 2019-12-10 | 2024-03-01 | 京东科技信息技术有限公司 | Block chain cross-chain data access method, device, adapter and system |
CN111161070A (en) * | 2019-12-30 | 2020-05-15 | 卓望数码技术(深圳)有限公司 | Alliance chain optimization method and device based on Ether house |
CN111260474B (en) * | 2020-02-12 | 2023-10-24 | 北京百度网讯科技有限公司 | Asset transaction method, device, equipment, system and storage medium of cross-blockchain |
CN111260474A (en) * | 2020-02-12 | 2020-06-09 | 北京百度网讯科技有限公司 | Cross-block-chain asset transaction method, device, equipment, system and storage medium |
CN112258184B (en) * | 2020-10-28 | 2023-08-01 | 成都质数斯达克科技有限公司 | Method, apparatus, electronic device and readable storage medium for freezing blockchain network |
CN112258184A (en) * | 2020-10-28 | 2021-01-22 | 成都质数斯达克科技有限公司 | Method and device for freezing area block chain network, electronic equipment and readable storage medium |
CN112287029B (en) * | 2020-11-17 | 2023-05-16 | 北京物资学院 | Block chain multi-chain cross-chain system and implementation mechanism thereof |
CN112287029A (en) * | 2020-11-17 | 2021-01-29 | 北京物资学院 | Block chain multi-chain cross-chain system and implementation mechanism thereof |
WO2023024453A1 (en) * | 2021-08-27 | 2023-03-02 | 中国银联股份有限公司 | Transaction processing method and apparatus, and device and storage medium |
CN113746922A (en) * | 2021-09-03 | 2021-12-03 | 杭州复杂美科技有限公司 | Node connection method, computer device, and storage medium |
CN113746922B (en) * | 2021-09-03 | 2023-10-20 | 杭州复杂美科技有限公司 | Node connection method, computer device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109409885A (en) | Across chain method of commerce, device and storage medium on block chain | |
Wang et al. | Challenges of blockchain in new generation energy systems and future outlooks | |
US11388009B2 (en) | Token management system and token management method | |
WO2021042818A1 (en) | Blockchain-based asset query method and apparatus, and electronic device | |
CN111460511B (en) | Federal learning and virtual object distribution method and device based on privacy protection | |
CN108985772A (en) | A kind of verification method, device, equipment and the storage medium of block chain | |
CN107408192A (en) | Protect memory | |
CN110163590A (en) | Payment based on block chain withholds method and device, electronic equipment, storage medium | |
CN108881187A (en) | A kind of across chain data transferring method and equipment suitable for permitting chain scene | |
CN109584082A (en) | Settlement of insurance claim method, electronic device and storage medium based on block chain | |
CN109102269A (en) | Transfer account method and device, block chain node and storage medium based on block chain | |
CN110597916B (en) | Data processing method and device based on block chain, storage medium and terminal | |
CN108898021B (en) | Threat information processing method, system and computing device based on block chain | |
CN110210207A (en) | Authorization method and equipment | |
CN111818095B (en) | Tax refunding method and device based on block chain and electronic equipment | |
CN107480554A (en) | A kind of right management method, rights management device and intelligent terminal | |
CN109117608A (en) | A kind of data processing method, device and relevant device | |
CN102096967A (en) | Off-line payment method and consumption terminal for electronic purse | |
CN110505311A (en) | A kind of across the chain exchange method of isomorphism block chain and system | |
CN109993528A (en) | It is a kind of for managing the method and apparatus of committal charge | |
CN111435396A (en) | Intelligent safety master control | |
CN109859031A (en) | A kind of information processing method, node and the storage medium of block chain network | |
CN110210591A (en) | A kind of wiring method, computer installation and the computer readable storage medium of intellective IC card personal data | |
TW202008270A (en) | Block release method and apparatus, and electronic device | |
CN115147224A (en) | Transaction data sharing method and device based on alliance chain |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190301 |
|
WD01 | Invention patent application deemed withdrawn after publication |