CN108197944A - Resource transaction method and device based on block chain technology - Google Patents

Resource transaction method and device based on block chain technology Download PDF

Info

Publication number
CN108197944A
CN108197944A CN201711174165.0A CN201711174165A CN108197944A CN 108197944 A CN108197944 A CN 108197944A CN 201711174165 A CN201711174165 A CN 201711174165A CN 108197944 A CN108197944 A CN 108197944A
Authority
CN
China
Prior art keywords
block chain
transaction
block
electronic equipment
locked
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711174165.0A
Other languages
Chinese (zh)
Other versions
CN108197944B (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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN201711174165.0A priority Critical patent/CN108197944B/en
Publication of CN108197944A publication Critical patent/CN108197944A/en
Application granted granted Critical
Publication of CN108197944B publication Critical patent/CN108197944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • 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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme

Abstract

The invention discloses a kind of resource transaction method based on block chain technology, this method includes:Electronic equipment receives the digital cash of customer transaction address payment on the first block chain;Electronic equipment by the bidirectionally anchoring agreement between the first block chain and the second block chain by digital cash from the first block chain tra nsfer to the second block chain;The digital cash that electronic equipment has shifted on the second block chain to the payment of the interface IP address of intelligent contract;Electronic equipment receives the resource of intelligent contract-defined interface address return or the acquisition modes of resource on the second block chain, and passes through bidirectionally anchoring agreement and obtain digital cash on the first block chain.The invention also discloses a kind of resource transaction devices and readable storage medium storing program for executing based on block chain technology.By the above-mentioned means, the present invention can reduce single block chain and the possibility of performance bottleneck occurs and reduce security risk.

Description

Resource transaction method and device based on block chain technology
Technical field
The present invention relates to network field, more particularly to a kind of resource transaction method and device based on block chain technology.
Background technology
With the development of Internet technology, abundant type has been showed with the resource of data mode.Currently, resource transaction Mostly point mode is run with centralization and non-dots, i.e., All Activity information unifies intermediary and preservation by trade center, if occurring Trade center is insincere, if database broken through by hacker, artificially distorts situations such as transaction data, Transaction Information may be caused to be disliked The problem of meaning distorts and is difficult to collect evidence.
To solve the above problems, propose the mode of doing business based on block chain technology, solve to a certain degree it is above-mentioned in The problems of the heart and non-point-to-point transaction, but due to only using single transaction block chain, as transaction participant is gradual Increase and a large amount of intelligent contracts monopolize computing resource, chain of merchandising can become mixed content and too fat to move, when merchandising peak value Section occurs the risk of sudden performance bottleneck, so as to influence the efficiency of entirely transaction block chain.Further, since transaction is happened at In public transaction block chain, resource publisher does not have the controllability to transaction security substantially, to there is Private transaction demand There are some potential safety problemss for resource.
Invention content
The invention mainly solves the technical problem of providing a kind of resource transaction method and device based on block chain technology, It can solve the problems, such as the performance pressures risk and security risk that single transaction block chain belt is come in the prior art.
In order to solve the above-mentioned technical problem, first aspect present invention provides a kind of resource transaction based on block chain technology Method, this method include:Electronic equipment receives the digital cash of customer transaction address payment on the first block chain;Electronic equipment By the bidirectionally anchoring agreement between the first block chain and the second block chain by digital cash from the first block chain tra nsfer to second On block chain;The digital cash that electronic equipment has shifted on the second block chain to the payment of the interface IP address of intelligent contract;Electronics Equipment receives the resource of intelligent contract-defined interface address return or the acquisition modes of resource on the second block chain, and passes through two-way anchor Determine agreement and obtain digital cash on the first block chain.
In order to solve the above-mentioned technical problem, second aspect of the present invention provides a kind of resource transaction based on block chain technology Device, the device include processor and telecommunication circuit, processor connection communication circuit, and processor is used for execute instruction to realize this The method that invention first aspect provides.
In order to solve the above-mentioned technical problem, third aspect present invention provides a kind of readable storage medium storing program for executing, is stored with instruction, Instruction is performed the method for realizing that first aspect present invention provides.
The beneficial effects of the invention are as follows:The block chain for reaching bidirectionally anchoring agreement by using two is handed over to complete resource Easily, the payment of transaction is completed on the first block chain, the practical execution of transaction is completed on the second block chain, realizes the branch of transaction Decoupling is paid and performs, it can be effective to reduce list while solving the problems of centralization and non-point-to-point transaction There is the possibility of performance bottleneck, and since the execution of transaction is only occurred on the second block chain in block chain, and resource only exists It circulates on second block chain, sphere of circulation reduces, and reduces security risk.
Description of the drawings
Fig. 1 is the flow diagram of the resource transaction method first embodiment the present invention is based on block chain technology;
Fig. 2 is the flow diagram of the resource transaction method second embodiment the present invention is based on block chain technology;
Fig. 3 is the flow diagram of mono- embodiments of S13 in Fig. 2;
Fig. 4 is the flow diagram of another embodiments of S13 in Fig. 2;
Fig. 5 is the flow diagram of mono- embodiments of S18 in Fig. 2;
Fig. 6 is the flow diagram of another embodiments of S18 in Fig. 2;
Fig. 7 is the flow diagram of the resource transaction method 3rd embodiment the present invention is based on block chain technology;
Fig. 8 is the structure diagram of the resource transaction device first embodiment the present invention is based on block chain technology;
Fig. 9 is the structure diagram of readable storage medium storing program for executing first embodiment of the present invention.
Specific embodiment
The present invention is described in detail with reference to the accompanying drawings and examples.What is do not conflicted in following embodiment can phase Mutually combine.
As shown in Figure 1, the resource transaction method first embodiment the present invention is based on block chain technology includes:
S1:Electronic equipment receives the digital cash of customer transaction address payment on the first block chain.
Electronic equipment is to be connected to the fixation of network or movement equipment, such as computer, mobile phone, tablet computer, service Device etc..Electronic equipment can include processor and memory, and memory is stored with realizes that the transaction of resource transaction should for forming With the instruction of program, processor can perform above-metioned instruction and realize side provided in this embodiment to run transaction application programs Method.
Generally, user initiates payment using the application end (such as first block chain wallet) for being able to access that the first block chain Transaction with the digital cash of the specified quantity of resource price equivalence will be given to the of transaction application programs in customer transaction address One transaction address.On the first block chain, customer transaction address belongs to user, i.e. requirement of main body in resource transaction;First hands over Easy address belongs to resource publisher (the supply main body in resource provider in other words, i.e. resource transaction).
Application end and transaction application programs can all be run on an electronic device.Application end can also be operated in and be set with electronics In standby different another terminal, which connects with communication between electronic.Certain user can also directly be answered using transaction Payment transaction is initiated with program.
Transaction application programs can be issued by resource publisher, may not be.If transaction application programs be by Resource publisher distribution, resource publisher can be registered on the first block chain transaction application programs information and access/under Link is carried, register information is submitted to the first block chain in a manner of merchandising.Application end can obtain by scanning the first block chain The transaction application programs information of registration, and be shown in transactional resource list for selection by the user, each list item is linked to correspondence Transaction application programs.
Block chain technology is to verify and store data using chain type block structure is encrypted, known together and calculated using distributed node Method is programmed and a kind of completely new decentralization basis of operation data to generate and update the data, using automatized script code Framework and Distributed Calculation normal form.The Core Superiority of block chain technology is decentralization, can be encrypted by maintenance data, the time The means such as stamp, distributed common recognition realize the point based on decentralization credit in the distributed system that need not be trusted each other in node To a transaction, coordinate with cooperating, so as to uneasy for high cost, poor efficiency and the data storage for solving centralization mechanism generally existing Congruent problem provides solution.
First block chain is stored in a distributed manner in the first block chain network, and the first block chain network is utilizes block chain skill The multinode network system of art composition.Electronic equipment may belong to the first block chain network, can not also belong to the first block chain Network.If electronic equipment is not belonging to the first block chain network, then is connected with the node of at least one first block chain network It connects, the node of block chain network being connect with electronic equipment can be referred to as the first connecting node.
S2:Electronic equipment is by the bidirectionally anchoring agreement between the first block chain and the second block chain by digital cash from On one block chain tra nsfer to the second block chain.
Bidirectionally anchoring agreement refers to that the value of digital cash can be two-way turn between the first block chain and the second block chain It moves.The accounting nodes of first block chain and the second block chain are incorporated into bidirectionally anchoring protocol code, can be according to bidirectionally anchoring agreement Verification of the digital cash when block interchain shifts is performed, determines whether the transfer of digital cash is received.
Similar, the second block chain is stored in a distributed manner in the second block chain network, and the second block chain network is utilizes The multinode network system of block chain technology composition.Electronic equipment may belong to the second block chain network, can not also belong to Two block chain networks.If electronic equipment is not belonging to the second block chain network, then at least one second block chain network Node is connected, and the node of block chain network being connect with electronic equipment can be referred to as the second connecting node.
After the completion of transfer, the digital goods of specified quantity in the first transaction address of the transaction application programs on the first block chain Coin is unavailable, and transaction application programs increase the token of corresponding number as in the second transaction address on the second block chain The digital cash of transfer, detailed process can refer to the description of subsequent embodiment.
S3:The digital cash that electronic equipment has shifted on the second block chain to the payment of the interface IP address of intelligent contract.
Specifically, the token in the second transaction address can be given to the interface IP address of intelligent contract by electronic equipment.
Intelligent contract is the core component (contract layer) of block chain, be by it is event driven, have state, operation Computer program on reproducible shared block chain data account book can realize processing data actively or passively, receive, Storage and transmission value, and control and manage the functions such as intellectual capital on all kinds of chains.Specifically, intelligent contract is one group of feelings The sequencing rule and logic of scape-reply type, are the decentralization being deployed on block chain, credible shared program code.Intelligence Energy contract equally has the general features of block chain data, such as distributed recording, storage and verification, can not distort and forge. After each side of signature contract reaches an agreement with regard to treaty content, it is deployed on block chain, can not be depended in the form of intelligent contract It automates to any central authority and represents each signatory's execution contract.
In general, the second block chain can be the block chain disposed or approved by resource publisher.Intelligent contract can Being previously deployed on the second block chain by resource publisher, after the completion of intelligent contract deployment, the second block chain can be according to intelligence The interface IP address of the corresponding intelligent contract of function generation of energy contract is for access.The content of intelligent contract can include:Resource The transaction content performed by trigger condition and intelligence contract that inside perhaps acquisition modes, resource price and intelligent contract perform.
Can be that the different intelligence of different resource deployments is closed if the resource more than one that resource publisher provides About, certainly, an intelligent contract can be used for the transaction of multiple resources.
S4:Electronic equipment receives the resource of intelligent contract-defined interface address return or the acquisition side of resource on the second block chain Formula, and pass through bidirectionally anchoring agreement and obtain digital cash on the first block chain.
The trigger condition that intelligent contract in the present embodiment performs can include receiving the token of some quantity, intelligent contract Performed transaction content can be included in the acquisition modes for returning to resource or resource on the second block chain to the second transaction address, And the token received is returned into the first block chain from the second block chain tra nsfer, so that electronic equipment can be in the first block The digital cash of specified quantity is obtained on chain.
Electronic equipment receives resource either can obtaining to user's showing resource or resource after the acquisition modes of resource Mode is taken, such as the content of resource or the acquisition modes of resource are shown in the visualization interface of transaction application programs.Such as What fruit received is that the acquisition modes of resource are the forms of chained address, can jump directly to the address.
To the more transaction on first/second block chain involved in above procedure, to ensure that block chain gets on center Change the realization of the point-to-point transaction of credit, every time after transaction, electronic equipment all can be to corresponding first/second block chain network The handling result of the transaction is submitted, so that the handling result of transaction is stored in by the node of first/second block chain network In first/second block chain.
It, can be in a broadcast manner directly to specifically, if electronic equipment belongs to first/second block chain network One/the second block chain network submits handling result;It, can be to if electronic equipment is not belonging to first/second block chain network One/the second connecting node sends handling result, then broadcasted from first/second connecting node to first/second block chain network Mode is submitted handling result to first/second block chain network.The accounting nodes of first/second block chain network are reached common understanding Afterwards, the handling result of the transaction is recorded to new block, and the block is accessed into first/second block chain, so that The handling result of the transaction is stored in first/second block chain by the node of first/second block chain network.
By the implementation of above-described embodiment, the block chain for reaching bidirectionally anchoring agreement using two completes resource transaction, The payment of transaction is completed on the first block chain, the practical execution of transaction is completed on the second block chain, realizes the payment of transaction With perform decoupling, can effectively reduce single while solving the problems of centralization and non-point-to-point transaction There is the possibility of performance bottleneck in block chain, and since the execution of transaction is only occurred on the second block chain, and resource is only the It circulates on two block chains, sphere of circulation reduces, and reduces security risk.
As shown in Fig. 2, the present invention is based on the resource transaction method second embodiment of block chain technology, be the present invention is based on On the basis of the resource transaction method first embodiment of block chain technology, specifically define digital cash and turn between block chain Move past journey.The present embodiment be to further expanding the present invention is based on the resource transaction method first embodiment of block chain technology, Therefore details are not described herein for the content identical with the resource transaction method first embodiment the present invention is based on block chain technology.This reality Example is applied to include:
S11:Electronic equipment receives the number of customer transaction address payment on the first block chain using the first transaction address Currency.
S12:Electronic equipment builds the first locked transaction so that digital cash is locked in the first transaction on the first block chain In address.
Locked digital cash is unavailable.
S13:Electronic equipment quotes the payment verification of the first locked transaction and the first locked transaction on the second block chain.
The payment verification of first locked transaction includes:First locked transaction has been recorded in the first block of the first block chain In, and the quantity of the effective block in the first block chain after the first block is more than first threshold.
Effective block after first block can also be referred to as the first protection block, and the effect of the first protection block is to ensure that the The record of one locked transaction is authentic and valid.The accounting nodes of second block chain have bidirectionally anchoring protocol code, therefore can To check the first locked transaction that electronic equipment is quoted, check successfully then completing the payment of the first locked transaction and test Card.
As shown in figure 3, in an embodiment of the invention, S13 can be specifically included:
S131:Electronic equipment submits the first locked transaction of reference to the second block chain network.
S132:The accounting nodes of second block chain network by bidirectionally anchoring agreement check the first locked transaction whether by It is recorded in the first block of the first block chain, and the quantity of the effective block in the first block chain after the first block is more than First threshold.
If checked successfully, subsequent step is performed, if examination is unsuccessful, electronic equipment can perform again S131.Optionally, electronic equipment performs S131 again after can waiting for a period of time, to reduce the number for repeating to submit.
To avoid the submission of repetition, as shown in figure 4, in another embodiment, S13 can be specifically included:
S134:Electronic equipment checks whether the first locked transaction has been recorded in the first block chain on the first block chain In first block, and the quantity of the effective block in the first block chain after the first block is more than first threshold.
Electronic equipment has the ability of the common recognition mechanism of the first block chain of identification and the second block chain in the present embodiment, is used for Digital cash carries out payment verification when interchain is shifted to locked transaction.The payment of the first locked transaction is completed if checking successfully Verification, jumps to S135;S134 is repeated if unsuccessful.
S135:Electronic equipment submits the first locked transaction of reference to the second block chain network.
S136:The accounting nodes of second block chain network by bidirectionally anchoring agreement check the first locked transaction whether by It is recorded in the first block of the first block chain, and the quantity of the effective block in the first block chain after the first block is more than First threshold.
Since electronic equipment has been completed examination, the accounting nodes of the second block chain network are checked successfully, are performed follow-up Step.
S14:After the accounting nodes common recognition of the second block chain, electronic equipment is using the second transaction address in the second block chain The upper token for obtaining corresponding number is as the digital cash shifted.
The quantity for the token that electronic equipment obtains on the second block chain and the digital cash locked on the first block chain Quantity be corresponding, such as the quantity of token is identical or directly proportional with the quantity of digital cash.
S15:The digital cash that electronic equipment has shifted on the second block chain to the payment of the interface IP address of intelligent contract.
S16:Electronic equipment receives the acquisition of resource or resource that intelligent contract-defined interface address returns on the second block chain Mode.
Execution sequence between this step and S17-S19 is only to illustrate, and actually can exchange or be performed simultaneously.
S17:Electronic equipment obtains the information of the second locked transaction that intelligent contract is built on the second block chain.
For second locked transaction for token to be locked in the second block chain, locked token is unavailable.
S18:Electronic equipment quotes the payment verification of the second locked transaction and the second locked transaction on the first block chain.
The payment verification of second locked transaction includes:Second locked transaction has been recorded in the second block of the second block chain In, and the quantity of the effective block in the second block chain after the second block is more than second threshold.
Similar, the effective block after the second block can also be referred to as the second protection block, the effect of the second protection block The record for being to ensure that the second locked transaction is authentic and valid.The accounting nodes of first block chain have bidirectionally anchoring agreement generation Code, therefore the second locked transaction that can be quoted to electronic equipment is checked, and is checked and is successfully then completed the second locked transaction Payment verification.First threshold and second threshold may be the same or different.
As shown in figure 5, in an embodiment of the invention, S18 can be specifically included:
S181:Electronic equipment submits the second locked transaction of reference to the first block chain network.
S182:The accounting nodes of first block chain network by bidirectionally anchoring agreement check the second locked transaction whether by It is recorded in the second block of the second block chain, and the quantity of the effective block in the second block chain after the second block is more than Second threshold.
If checked successfully, subsequent step is performed, if examination is unsuccessful, electronic equipment can perform again S181.Optionally, electronic equipment performs S181 again after can waiting for a period of time, to reduce the number for repeating to submit.
To avoid the submission of repetition, as shown in fig. 6, in another embodiment, S18 can be specifically included:
S184:Electronic equipment checks whether the second locked transaction has been recorded in the second block chain on the second block chain In second block, and the quantity of the effective block in the second block chain after the second block is more than second threshold.
Electronic equipment has the ability of the common recognition mechanism of the first block chain of identification and the second block chain in the present embodiment, is used for Digital cash carries out payment verification when interchain is shifted to locked transaction.The payment of the second locked transaction is completed if checking successfully Verification, jumps to S185;S184 is repeated if unsuccessful.
S185:Electronic equipment submits the second locked transaction of reference to the first block chain network.
S186:The accounting nodes of first block chain network by bidirectionally anchoring agreement check the second locked transaction whether by It is recorded in the second block of the second block chain, and the quantity of the effective block in the second block chain after the second block is more than Second threshold.
Since electronic equipment has been completed examination, the accounting nodes of the first block chain network are checked successfully, are performed follow-up Step.
S19:After the accounting nodes common recognition of the first block chain, electronic equipment unlocks the first transaction ground on the first block chain Digital cash in location.
After unlock, digital cash becomes available mode, and resource transaction is completed.
As shown in fig. 7, the present invention is based on the resource transaction method 3rd embodiment of block chain technology, be the present invention is based on On the basis of the resource transaction method first embodiment of block chain technology, S1 includes:
S101:Electronic equipment receives payment request.
Payment request, which can be user, passes through the input unit of electronic equipment (such as touch screen, keyboard, keyboard, microphone Deng) propose or user remotely proposed by other equipment.
S102:Electronic equipment judges whether the remaining sum in customer transaction address is greater than or equal to the price of resource.
If remaining sum is greater than or equal to the price of resource, represents that user can pay in full amount, jump to step S103;If Remaining sum is less than the price of resource, represents that user cannot pay in full amount, jumps to step S104.
S103:Electronic equipment initiates payment transaction so that the digital cash of the price equivalence with resource is given to the from remaining sum One transaction address, and to the first block chain network submit payment transaction handling result.
The handling result of payment transaction is stored in the first block chain by the node of the first block chain network.Detailed process can With reference to the associated description in the resource transaction method first embodiment the present invention is based on block chain technology.
S104:Electronic equipment refusal to pay request.
In addition to this, electronic equipment can also give the user the prompting that Sorry, your ticket has not enough value, user to be reminded to supplement with money later again Purchase.
As shown in figure 8, the resource transaction device first embodiment the present invention is based on block chain technology includes:Processor 110 With telecommunication circuit 120,110 connection communication circuit 120 of processor.
Telecommunication circuit 120 is that the resource transaction device based on block chain technology is logical with other for sending and receiving data The interface that letter equipment communicates.
Processor 110 controls the operation of the resource transaction device based on block chain technology, and processor 110 can also be known as CPU (Central Processing Unit, central processing unit).Processor 110 may be a kind of IC chip, tool There is the processing capacity of signal.Processor 110 can also be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.General processor can be microprocessor or the processor can also be any conventional processor etc..
Processor 110 is used for execute instruction to realize the first third of resource transaction method the present invention is based on block chain technology The method that any of embodiment and the combination not conflicted are provided.
As shown in figure 8, readable storage medium storing program for executing first embodiment of the present invention includes memory 210, memory 210 is stored with finger It enables, which is performed any in resource transaction method first to the 3rd embodiment realized the present invention is based on block chain technology The method that a and arbitrary combination not conflicted is provided.
Memory 210 can include read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), flash memory (Flash Memory), hard disk, CD etc..
In several embodiments provided by the present invention, it should be understood that disclosed method and apparatus can pass through it Its mode is realized.For example, device embodiments described above are only schematical, for example, stroke of module or unit Point, only a kind of division of logic function can have other dividing mode, such as multiple units or component can in actual implementation To combine or be desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be the INDIRECT COUPLING by some interfaces, device or unit Or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit Component may or may not be physical unit, you can be located at a place or can also be distributed to multiple networks On unit.Some or all of unit therein can be selected according to the actual needs to realize the mesh of present embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If integrated unit realized in the form of SFU software functional unit and be independent product sale or in use, can To be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention substantially or Saying all or part of the part contribute to the prior art or the technical solution can be embodied in the form of software product Out, which is stored in a storage medium, is used including some instructions so that a computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) perform each implementation of the present invention The all or part of step of methods.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. it is various The medium of program code can be stored.
It these are only embodiments of the present invention, be not intended to limit the scope of the invention, it is every to utilize the present invention The equivalent structure or equivalent flow shift that specification and accompanying drawing content are made directly or indirectly is used in other relevant technologies Field is included within the scope of the present invention.

Claims (10)

  1. A kind of 1. resource transaction method based on block chain technology, which is characterized in that including:
    Electronic equipment receives the digital cash of customer transaction address payment on the first block chain;
    The electronic equipment is by the bidirectionally anchoring agreement between the first block chain and the second block chain by the digital goods Coin is from the first block chain tra nsfer to the second block chain;
    The digital goods that the electronic equipment has shifted on the second block chain to the payment of the interface IP address of intelligent contract Coin;
    The electronic equipment receives resource or the money that the intelligent contract-defined interface address returns on the second block chain The acquisition modes in source, and the digital cash is obtained on the first block chain by the bidirectionally anchoring agreement.
  2. 2. according to the method described in claim 1, it is characterized in that,
    The electronic equipment is by the bidirectionally anchoring agreement between the first block chain and the second block chain by the digital goods Coin includes from the first block chain tra nsfer to the second block chain:
    The electronic equipment builds the first locked transaction so that the digital cash is locked in first on the first block chain In transaction address;
    The electronic equipment quotes the branch of first locked transaction and first locked transaction on the second block chain Pay verification;
    After the accounting nodes common recognition of the second block chain, the electronic equipment is through using the second transaction address described second The token of corresponding number is obtained on block chain as the digital cash shifted.
  3. 3. according to the method described in claim 2, it is characterized in that,
    The electronic equipment obtains the digital cash on the first block chain by the bidirectionally anchoring agreement and includes:
    The electronic equipment obtains the information of the second locked transaction that the intelligent contract is built on the second block chain, institute The second locked transaction is stated for the token to be locked in the second block chain;
    The electronic equipment quotes the branch of second locked transaction and second locked transaction on the first block chain Pay verification;
    After the accounting nodes common recognition of the first block chain, the electronic equipment unlocks described the on the first block chain The digital cash in one transaction address.
  4. 4. according to the method described in claim 3, it is characterized in that,
    The payment verification of first locked transaction includes:First locked transaction has been recorded in the first block chain In first block, and the quantity of the effective block described in the first block chain after the first block is more than first threshold;
    The payment verification of second locked transaction includes:Second locked transaction has been recorded in the second block chain In second block, and the quantity of the effective block described in the second block chain after the second block is more than second threshold.
  5. 5. according to the method described in claim 4, it is characterized in that,
    The electronic equipment quotes the branch of first locked transaction and first locked transaction on the second block chain Verification is paid to include:
    The electronic equipment submits first locked transaction of reference to the second block chain network, so that second block The accounting nodes of chain network check whether first locked transaction has been recorded in described the by the bidirectionally anchoring agreement In first block of one block chain, and the quantity of the effective block described in the first block chain after the first block is more than First threshold completes the payment verification of first locked transaction if checking successfully;
    The electronic equipment quotes the branch of second locked transaction and second locked transaction on the first block chain Verification is paid to include:
    The electronic equipment submits second locked transaction of reference to the first block chain network, so that first block The accounting nodes of chain network check whether second locked transaction has been recorded in described the by the bidirectionally anchoring agreement In second block of two block chains, and the quantity of the effective block described in the second block chain after the second block is more than Second threshold completes the payment verification of second locked transaction if checking successfully.
  6. 6. according to the method described in claim 4, it is characterized in that,
    The electronic equipment quotes the branch of first locked transaction and first locked transaction on the second block chain Further comprise before paying verification:
    The electronic equipment checks whether first locked transaction has been recorded in described first on the first block chain In first block of block chain, and the quantity of the effective block described in the first block chain after the first block is more than the One threshold value completes the payment verification of first locked transaction if checking successfully;
    The electronic equipment quotes the branch of second locked transaction and second locked transaction on the first block chain Include before paying verification:
    The electronic equipment checks whether second locked transaction has been recorded in described second on the second block chain In second block of block chain, and the quantity of the effective block described in the second block chain after the second block is more than the Two threshold values complete the payment verification of second locked transaction if checking successfully.
  7. 7. according to the method described in any one of claim 1-6, which is characterized in that
    The digital cash that the electronic equipment receives the payment of customer transaction address on the first block chain includes:
    The electronic equipment receives payment request;
    The electronic equipment judges whether the remaining sum in the customer transaction address is greater than or equal to the price of the resource;
    If the remaining sum is greater than or equal to the price of the resource, the electronic equipment initiates payment transaction with from the remaining sum The digital cash of the middle price equivalence by with the resource is given to first transaction address, and to the first block chain network The handling result of the payment transaction is submitted, so that the node of the first block chain network is by the processing of the payment transaction As a result it is stored in the first block chain, otherwise the electronic equipment refuses the payment request.
  8. 8. according to the method described in any one of claim 1-6, which is characterized in that
    The intelligence contract is issued by the publisher of the resource.
  9. 9. a kind of resource transaction device based on block chain technology, which is characterized in that including processor and telecommunication circuit, the place It manages device and connects the telecommunication circuit;
    The processor is used for execute instruction to realize such as any one of claim 1-8 the methods.
  10. 10. a kind of readable storage medium storing program for executing is stored with instruction, which is characterized in that described instruction is performed realization such as claim Method described in any one of 1-8.
CN201711174165.0A 2017-11-22 2017-11-22 Resource transaction method and device based on block chain technology Active CN108197944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711174165.0A CN108197944B (en) 2017-11-22 2017-11-22 Resource transaction method and device based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711174165.0A CN108197944B (en) 2017-11-22 2017-11-22 Resource transaction method and device based on block chain technology

Publications (2)

Publication Number Publication Date
CN108197944A true CN108197944A (en) 2018-06-22
CN108197944B CN108197944B (en) 2021-03-30

Family

ID=62572872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711174165.0A Active CN108197944B (en) 2017-11-22 2017-11-22 Resource transaction method and device based on block chain technology

Country Status (1)

Country Link
CN (1) CN108197944B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109118227A (en) * 2018-08-23 2019-01-01 泰链(厦门)科技有限公司 Construction method, medium, device and the block catenary system of bridge block catenary system
CN109361664A (en) * 2018-10-11 2019-02-19 腾讯科技(深圳)有限公司 Data verification method, system and computer readable storage medium based on block chain
CN109391619A (en) * 2018-10-22 2019-02-26 昧来网络科技(上海)有限公司 Lead to card exchange method and computer-readable medium across chain based on permission
CN109389496A (en) * 2018-08-23 2019-02-26 泰链(厦门)科技有限公司 Construction method, medium, device and the block catenary system of main body block catenary system
CN109409885A (en) * 2018-10-29 2019-03-01 深圳声笑科技有限公司 Across chain method of commerce, device and storage medium on block chain
CN109886661A (en) * 2019-01-16 2019-06-14 深圳壹账通智能科技有限公司 Across chain digital cash exchanging method, device, computer system and storage medium
CN110659888A (en) * 2019-08-05 2020-01-07 孟江华 On-chain asset transfer system and method through on-chain digital currency settlement
WO2020073277A1 (en) * 2018-10-11 2020-04-16 合肥达朴汇联科技有限公司 Resource flow transaction method and apparatus
CN111080421A (en) * 2020-03-24 2020-04-28 国网电子商务有限公司 Green power certificate transaction method and device based on block chain
CN111275414A (en) * 2019-12-31 2020-06-12 深圳市网心科技有限公司 Block chain-based digital currency exchange method, device and system
CN111489257A (en) * 2019-01-28 2020-08-04 北京威宁特科技有限公司 Resource sharing block chaining
CN112184453A (en) * 2020-11-06 2021-01-05 上海优扬新媒信息技术有限公司 Block chain based information processing method, block chain link point and storage medium
CN112348679A (en) * 2020-11-16 2021-02-09 天元大数据信用管理有限公司 Asset issuance and redemption method and system based on block chain
CN112602083A (en) * 2018-08-23 2021-04-02 贝宝公司 Multi-blockchain digital transaction information isolation system
CN114125020A (en) * 2020-09-11 2022-03-01 京东方科技集团股份有限公司 Method, electronic equipment and system for real-time data communication
CN111340481B (en) * 2018-12-19 2023-05-12 北京沃东天骏信息技术有限公司 Data processing method, device and equipment based on multi-chain block chain network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719185A (en) * 2016-01-22 2016-06-29 杭州复杂美科技有限公司 Block chain data comparison and consensus method
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
US20170048209A1 (en) * 2015-07-14 2017-02-16 Fmr Llc Crypto Key Recovery and Social Aggregating, Fractionally Efficient Transfer Guidance, Conditional Triggered Transaction, Datastructures, Apparatuses, Methods and Systems
CN106447309A (en) * 2016-11-13 2017-02-22 杭州复杂美科技有限公司 Across-chain transaction of source chain and lateral chain
CN106780032A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of block chain interchain assets transfer method under multichain scene

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170048209A1 (en) * 2015-07-14 2017-02-16 Fmr Llc Crypto Key Recovery and Social Aggregating, Fractionally Efficient Transfer Guidance, Conditional Triggered Transaction, Datastructures, Apparatuses, Methods and Systems
CN105719185A (en) * 2016-01-22 2016-06-29 杭州复杂美科技有限公司 Block chain data comparison and consensus method
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106447309A (en) * 2016-11-13 2017-02-22 杭州复杂美科技有限公司 Across-chain transaction of source chain and lateral chain
CN106780032A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of block chain interchain assets transfer method under multichain scene

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高志豪: ""区块链之跨链技术介绍"", 《金卡工程》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389496A (en) * 2018-08-23 2019-02-26 泰链(厦门)科技有限公司 Construction method, medium, device and the block catenary system of main body block catenary system
CN109118227A (en) * 2018-08-23 2019-01-01 泰链(厦门)科技有限公司 Construction method, medium, device and the block catenary system of bridge block catenary system
CN112602083A (en) * 2018-08-23 2021-04-02 贝宝公司 Multi-blockchain digital transaction information isolation system
CN109361664A (en) * 2018-10-11 2019-02-19 腾讯科技(深圳)有限公司 Data verification method, system and computer readable storage medium based on block chain
CN109361664B (en) * 2018-10-11 2021-05-11 腾讯科技(深圳)有限公司 Block chain based data verification method, system and computer readable storage medium
WO2020073277A1 (en) * 2018-10-11 2020-04-16 合肥达朴汇联科技有限公司 Resource flow transaction method and apparatus
CN109391619B (en) * 2018-10-22 2021-08-03 上海幼鸢网络科技有限公司 Cross-link certificate exchange method based on authority and computer readable medium
CN109391619A (en) * 2018-10-22 2019-02-26 昧来网络科技(上海)有限公司 Lead to card exchange method and computer-readable medium across chain based on permission
CN109409885A (en) * 2018-10-29 2019-03-01 深圳声笑科技有限公司 Across chain method of commerce, device and storage medium on block chain
CN111340481B (en) * 2018-12-19 2023-05-12 北京沃东天骏信息技术有限公司 Data processing method, device and equipment based on multi-chain block chain network
CN109886661A (en) * 2019-01-16 2019-06-14 深圳壹账通智能科技有限公司 Across chain digital cash exchanging method, device, computer system and storage medium
CN111489257A (en) * 2019-01-28 2020-08-04 北京威宁特科技有限公司 Resource sharing block chaining
CN110659888A (en) * 2019-08-05 2020-01-07 孟江华 On-chain asset transfer system and method through on-chain digital currency settlement
CN111275414A (en) * 2019-12-31 2020-06-12 深圳市网心科技有限公司 Block chain-based digital currency exchange method, device and system
CN111080421A (en) * 2020-03-24 2020-04-28 国网电子商务有限公司 Green power certificate transaction method and device based on block chain
CN114125020A (en) * 2020-09-11 2022-03-01 京东方科技集团股份有限公司 Method, electronic equipment and system for real-time data communication
CN114125020B (en) * 2020-09-11 2023-08-29 京东方科技集团股份有限公司 Method, electronic device and system for real-time data communication
CN112184453A (en) * 2020-11-06 2021-01-05 上海优扬新媒信息技术有限公司 Block chain based information processing method, block chain link point and storage medium
CN112348679A (en) * 2020-11-16 2021-02-09 天元大数据信用管理有限公司 Asset issuance and redemption method and system based on block chain

Also Published As

Publication number Publication date
CN108197944B (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN108197944A (en) Resource transaction method and device based on block chain technology
Lerner Mobile payment
CN107748985A (en) Network method of payment and network payment server
CN109598598A (en) Transaction processing method and device, electronic equipment based on block chain
US11443307B2 (en) Cross-border resource transfer authenticity verification method, device and electronic equipment
KR20130114633A (en) Efficient stored-value card transactions
CN106133768A (en) For making the mobile device of data set priorization, method and computer program product
CN107833037A (en) A kind of method that business by stages is realized based on credit
CN110298643A (en) Service charge distribution method, device and storage medium based on block chain
CN109859043A (en) A kind of exchange settlement method and trade clearing system
CN110517145A (en) Data trade method and relevant device based on multi-tiling interchain
CN110428237A (en) The treating method and apparatus of resource, storage medium, electronic device
CN109636594A (en) Assets package management method, device, equipment and storage medium based on big data
CN106998314A (en) Account exchange method and device
CN110009350A (en) A kind of operation note checking method and device based on block chain intelligence contract
CN110599151A (en) Payment method, device, system and storage medium
US10867296B2 (en) Method, apparatus and system for processing data
CN110060095A (en) A kind of user group's characteristic analysis method and system based on block chain
CN109829811A (en) Loan method and loan device
CN108351990A (en) Method and system for distributing physical currency
CN105512882A (en) HCE-based payment method and apparatus
CN112446787A (en) Resource transfer method, device, equipment and storage medium
CN113988844A (en) Service subscription method, device and system
CN114782032A (en) Digital RMB payment method, hard wallet and readable storage medium
EP3369062B1 (en) Method for payment with a cash card

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