[go: up one dir, main page]

CN109409857A - Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system - Google Patents

Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system Download PDF

Info

Publication number
CN109409857A
CN109409857A CN201810960284.7A CN201810960284A CN109409857A CN 109409857 A CN109409857 A CN 109409857A CN 201810960284 A CN201810960284 A CN 201810960284A CN 109409857 A CN109409857 A CN 109409857A
Authority
CN
China
Prior art keywords
catenary system
block catenary
main body
body block
address
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
Application number
CN201810960284.7A
Other languages
Chinese (zh)
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.)
Thai Chain (xiamen) Technology Co Ltd
Original Assignee
Thai Chain (xiamen) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Thai Chain (xiamen) Technology Co Ltd filed Critical Thai Chain (xiamen) Technology Co Ltd
Priority to CN201810960284.7A priority Critical patent/CN109409857A/en
Publication of CN109409857A publication Critical patent/CN109409857A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a kind of method, medium and computer equipment for realizing resource transfers based on bridge block catenary system, method is the following steps are included: receive the resource transfers request of user;When resource transfers request is from the first main body block catenary system to the second main body block catenary system transferring resource, the address of bridge block catenary system is obtained, and judge whether bridge block catenary system has the permission of resource transfers operation;If it is judged that being yes, the node address for then controlling resource to be produced is transferred to standard coin and the locking of respective numbers to the standard coin reserve fund address of the first main body block catenary system, and requests control foreign currency contract address node address of resource to be transferred into the second main body block catenary system to be transferred to the foreign currencies of respective numbers according to resource transfers;The resource between different subjects block catenary system is shifted to realize, facilitates utilization of the user for resource in main body block catenary system while enhancing the versatility of resource in main body block catenary system.

Description

Method, medium and the computer of resource transfers are realized based on bridge block catenary system Equipment
Technical field
It is the present invention relates to block chain technical field, in particular to a kind of that resource transfers are realized based on bridge block catenary system Method, medium and computer equipment.
Background technique
Block chain is a kind of technical solution that authentic data library is safeguarded by decentralization and in a manner of going to trust;Because it goes Centralization, the characteristics of going trust formula and data to be difficult to tamper with and widely applied.
In existing block catenary system, different side chains in same block catenary system can satisfy by intelligent contract Between resource transfers;For example, the token of the token of the shoes industry block side chain in same block catenary system and tourism block side chain Flowing can be swapped by exchange's intelligence contract, so that user can carry out different side chains by carrying out the exchange of token The purchase of middle respective service;However, the standard coin exchange between different block catenary systems still cannot achieve, greatly limit The versatility of standard coin in block catenary system.
Summary of the invention
The present invention is directed to solve one of the technical problem in above-mentioned technology at least to a certain extent.For this purpose, of the invention One purpose is to propose a kind of method for realizing resource transfers based on bridge block catenary system, can be realized to different subjects area Resource between block catenary system is shifted, and facilitates main body block while enhancing the versatility of resource in main body block catenary system Utilization of the user for resource in catenary system.
Second object of the present invention is to propose a kind of computer readable storage medium.
Third object of the present invention is to propose a kind of computer equipment.
In order to achieve the above objectives, first aspect present invention embodiment is proposed a kind of realized based on bridge block catenary system and provided The method of source transfer, comprising the following steps: the money of user is received by any one node in the bridge block catenary system Source transfer request;When resource transfers request provides to shift from the first main body block catenary system to the second main body block catenary system When source, the address of the bridge block catenary system is obtained, and by the bridge in inquiry the second main body block catenary system Location collection table executes resource transfers behaviour to the second main body block catenary system to judge whether the bridge block catenary system has The permission of work;If it is determined that the bridge block catenary system, which has, executes resource transfers behaviour to the second main body block catenary system The permission of work, then according to the node of resource to be produced in resource transfers request control the first main body block catenary system Location is transferred to standard coin and the locking of respective numbers to the standard coin reserve fund address of the first main body block catenary system, and according to institute It states resource transfers request and controls in the second main body block catenary system the first main body block catenary system in second body region Foreign currency contract address on the block catenary system node address of resource to be transferred into the second main body block catenary system is transferred to phase Answer the foreign currency of quantity.
The method that resource transfers are realized based on bridge block catenary system proposed according to embodiments of the present invention, firstly, passing through Any one node in bridge block catenary system receives the resource transfers request of user;Then, when resource transfers request for from When first main body block catenary system is to the second main body block catenary system transferring resource, the address of bridge block catenary system is obtained, and By the bridge address collection table inquired in the first main body block catenary system and the second main body block catenary system respectively to judge bridge Whether block catenary system, which has, executes resource transfers operation to the first main body block catenary system and the second main body block catenary system Permission;Then, if it is determined that bridge block catenary system has to the first main body block catenary system and the second main body block catenary system The permission of resource transfers operation is executed, then according to resource to be produced in resource transfers request the first main body block catenary system of control Node address is transferred to standard coin and the locking of respective numbers to the standard coin reserve fund address of the first main body block catenary system, and according to The first main body block catenary system is on the second main body block catenary system in resource transfers request the second main body block catenary system of control Foreign currency contract address into the second main body block catenary system the node address of resource to be transferred to be transferred to the foreign currencies of respective numbers;From And realize and the resource between different subjects block catenary system is shifted, enhance the versatility of resource in main body block catenary system While facilitate utilization of the user for resource in main body block catenary system.
In addition, what is proposed according to that above embodiment of the present invention realizes the method for resource transfers also based on bridge block catenary system It can have following additional technical characteristic:
Optionally, the content of resource transfers request include the first main body block catenary system standard coin reserve fund address, The standard coin deposit of the node address, the second main body block catenary system of resource to be produced in the first main body block catenary system Node address, transferring resource information and the transfering type of resource to be transferred in golden address, the second main body block catenary system.
Optionally, generating in the bridge block catenary system has block catenary system information table, wherein main according to described first Block catenary system information table described in the standard coin reserve fund address lookup of body block catenary system is to obtain the first main body block chain The node address of resource to be produced in the format of system request information, the first main body block catenary system, and according to described Block catenary system information table described in the standard coin reserve fund address lookup of two main body block catenary systems is to obtain second body region The node address of resource to be transferred in the format of block catenary system solicited message, the second main body block catenary system, and according to The standard coin reserve fund of the standard coin reserve fund address of the first main body block catenary system and the second main body block catenary system The block catenary system information table is inquired to obtain the first main body block catenary system in the second main body block linkwork in location Foreign currency contract address on system.
Optionally, code key corresponding to the node of resource to be produced in the first main body block catenary system is also obtained, and Obtain the system code key of the bridge block catenary system, wherein pass through resource to be produced in the first main body block catenary system Node corresponding to code key sign the node address of the resource to be produced to the standard coin of the first main body block catenary system First transfer request of reserve fund address;The first main body block is signed by the system code key of the bridge block catenary system Foreign currency contract address of the catenary system on the second main body block catenary system to the resource to be transferred to node address the Two transfer requests;The first transfer request after signature is sent to first master according to the node address wait produce resource Body block catenary system, and the second transfer request after signature is sent to described according to the node address wait be transferred to resource Two main body block catenary systems.
Optionally, when the first main body block catenary system receives the first transfer request after signing, by described The public key corresponding to the node for producing resource unlock the signature after the first transfer request and execute, to control described first The node address of resource to be produced is to the standard coin reserve fund address of the first main body block catenary system in main body block catenary system It is transferred to the standard coin of respective numbers.
Optionally, when the second main body block catenary system receives the second transfer request after signing, by described System public key corresponding to the system code key of bridge block catenary system unlocks the second transfer request after the signature to be asked The address of content and the bridge block catenary system is asked, and according to the request content by inquiring the second main body block chain The reserve fund address table of system is to know that second transfer request produces request as foreign currency, and according to the bridge block chain The address of system is by inquiring the bridge address collection table of the second main body block catenary system with determination second transfer request It gives and executes when from the bridge block catenary system, so as to the first main body block linkwork in the second main body block catenary system System is in the foreign currency contract address on the second main body block catenary system into the second main body block catenary system wait be transferred to money The node address in source is transferred to the foreign currency of respective numbers.
Optionally, foreign currency contract address of the first main body block catenary system on the second main body block catenary system Block catenary system information table by inquiring the bridge block catenary system obtains.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, thereon It is stored with the program for realizing resource transfers based on bridge block catenary system, should realize resource transfers based on bridge block catenary system The above-mentioned method that resource transfers are realized based on bridge block catenary system is realized when program is executed by processor.
In order to achieve the above objectives, third aspect present invention embodiment proposes a kind of computer equipment, including memory, place The computer program managing device and storage on a memory and can running on a processor, processor execute the computer program When, realize the above-mentioned method that resource transfers are realized based on bridge block catenary system.
Detailed description of the invention
Fig. 1 is the flow diagram according to the construction method of the main body block catenary system of the embodiment of the present invention;
Fig. 2 is the block diagram according to the construction device of the main body block catenary system of the embodiment of the present invention;
Fig. 3 is the flow diagram according to the construction method of the bridge block catenary system of the embodiment of the present invention;
Fig. 4 is the block diagram according to the construction device of the bridge block catenary system of the embodiment of the present invention;
Fig. 5 is the flow diagram according to the method for realizing resource transfers based on bridge block catenary system of the embodiment of the present invention;
Fig. 6 is the process signal according to the method for realizing resource transfers based on bridge block catenary system of another embodiment of the present invention Figure.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In existing block catenary system, the standard coin exchange between different block catenary systems be cannot achieve, and greatly be limited The versatility of standard coin in block catenary system is made;What is proposed according to embodiments of the present invention realizes resource based on bridge block catenary system The method of transfer, firstly, receiving the resource transfers request of user by any one node in bridge block catenary system;So Afterwards, when resource transfers request is from the first main body block catenary system to the second main body block catenary system transferring resource, bridge is obtained The address of beam block catenary system, and by inquiring the bridge in the first main body block catenary system and the second main body block catenary system respectively Beam address set table is to judge whether bridge block catenary system has to the first main body block catenary system and the second main body block linkwork System executes the permission of resource transfers operation;Then, if it is determined that bridge block catenary system has to the first main body block catenary system The permission of resource transfers operation is executed with the second main body block catenary system, then requests the first main body block of control according to resource transfers The node address of resource to be produced is transferred to respective numbers to the standard coin reserve fund address of the first main body block catenary system in catenary system Standard coin and locking, and according to resource transfers request control the second main body block catenary system in the first main body block catenary system exist The node address of foreign currency contract address on the second main body block catenary system resource to be transferred into the second main body block catenary system It is transferred to the foreign currency of respective numbers;The resource between different subjects block catenary system is shifted to realize, enhances body region Facilitate utilization of the user for resource in main body block catenary system in block catenary system while the versatility of resource.
In order to better understand the above technical scheme, the exemplary reality that the present invention will be described in more detail below with reference to accompanying drawings Apply example.Although showing exemplary embodiment of the present invention in attached drawing, it being understood, however, that may be realized in various forms this hair It is bright and should not be limited by the embodiments set forth herein.It is to be able to thoroughly understand this on the contrary, providing these embodiments Invention, and the scope of the present invention can be fully disclosed to those skilled in the art.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
Fig. 1 is according to the flow diagram of the construction method of the main body block catenary system of the embodiment of the present invention, such as Fig. 1 institute Show, the construction method of the main body block catenary system the following steps are included:
S101 creates bridge address collection table and reserve fund address table in system initialization, and with generating standard coin reserve fund at random Location, and standard coin reserve fund address is added in reserve fund address table.
Wherein, bridge address collection table is for storing the corresponding unique address of bridge block catenary system.
As an example, after creating bridge address collection table, any one external bridge block catenary system passes through Bridge address collection table is written in its address by dpos common recognition mechanism;It in order to be better described, is illustrated: being appointed outside with actual scene The node anticipated in a bridge block catenary system sends bridge block chain address write request, the main body to main body block catenary system Block catenary system is determined whether by dpos common recognition mechanism by the bridge after receiving bridge block chain address write request Bridge address collection table is written in block chain address;In other words, user's ballot is carried out by dpos common recognition mechanism, is tied with being voted according to user Fruit judges whether bridge block chain address bridge address collection table is written.
Wherein, standard coin refers to using coin for reward when the operation of main body block catenary system, which includes but is not limited to Producer node reward, network node reward.
It should be noted that it is that can not weigh that main body block catenary system generates the process of reserve fund address in initialization at random Multiple, therefore, which, which can also be used as the unique of main body block catenary system, can recognize mark.
S102 is created outside any one based on any one node in main body block catenary system by intelligent contract Foreign currency information of the block catenary system on main body block catenary system, wherein foreign currency information includes foreign currency contract address.
That is, the arbitrary node having connect with main body block catenary system can be created outside any one by intelligent contract Foreign currency information of portion's block catenary system on main body block catenary system, wherein foreign currency information includes foreign currency contract address.
Wherein, the creation process of foreign currency information can there are many.
As an example, firstly, by writing foreign currency contract with the node address and phase of disposal subject block catenary system Answer the mapping table and configuration handling function of foreign currency quantity;Then, foreign currency contract is compiled by compilation tool;Then, will Compiled foreign currency contract uploads to main body block catenary system, so that main body block catenary system obtains foreign currency contract address and operation Function.
As another example, foreign currency contract can be write by language such as solidity language, C languages, outside In the writing process of coin contract, firstly, at least formulating in a main body block chain interior joint address and corresponding main body block chain The mapping table of the foreign currency quantity of node address, with to the block chain interior joint address and its corresponding foreign currency quantity for possessing foreign currency into Row record;And predetermined operation function, such as, it is specified that function of transferring accounts are as follows: transfer(a, b, amount), i.e., subtract in a of address The foreign currency of amount quantity is removed, and increases the foreign currency of amount quantity in the b of address, to reach foreign currency from address a to address b's Transfer;Then, foreign currency contract is compiled by compilation tool, and compiling complete after by with main body block linkwork The foreign currency contract is sent to main body block catenary system by the arbitrary node of system connection, to obtain foreign currency contract address, and will be first The foreign currency of beginning quantity is transferred to the foreign currency contract address;Wherein, main body block catenary system is in the foreign currency for receiving arbitrary node transmission After contract, which is deployed in main body block catenary system to obtain return value, which is foreign currency contract Address.
Foreign currency contract address of each external block catenary system on main body block catenary system is added to reserve fund by S103 In address table.
That is, any one node in main body block catenary system is created outside any one by intelligent contract For block catenary system after the foreign currency information on main body block catenary system, main body block catenary system will each external block catenary system Foreign currency contract address on main body block catenary system is added in reserve fund address table.
Wherein it is possible to by dpos know together mechanism chosen in a vote whether by external block catenary system in main body block chain Foreign currency contract address in system is added in reserve fund address table.
As an example, when main body block catenary system receive arbitrary node transmission foreign currency contract when, body region Whether block catenary system returns to foreign currency contract address, and chosen in a vote and external block catenary system existed by dpos common recognition mechanism Foreign currency contract address on main body block catenary system is added in reserve fund address table;And after voting through, by foreign currency The corresponding external block catenary system ID of contract and foreign currency contract address information, and by external block catenary system ID and foreign currency contract Location is stored into reserve fund address table;According to external block catenary system ID inquiry reserve fund so as to succeeding body block catenary system Location table is to obtain corresponding foreign currency contract address.
S104, when the operation that any one node in main body block catenary system receives the initiation of bridge block catenary system is asked When asking, the address for initiating the bridge block catenary system of operation requests is obtained, and by inquiry bridge address collection table to judge the hair When playing the addresses of bridge block catenary system of operation requests and being in bridge address collection table, allow the bridge area of the initiation operation requests Block catenary system executes resource transfers operation to main body block catenary system according to reserve fund address table.
That is, receiving the behaviour that bridge block catenary system is initiated by any one node in main body block catenary system It requests, and when receiving the operation requests of bridge block catenary system initiation, obtains the corresponding bridge block of the operation requests The address of catenary system, and judge whether the address of the bridge block catenary system has been stored in bridge address collection table, and sentencing Disconnected result is to judge that the bridge block catenary system possesses when being and execute resource to main body block catenary system according to reserve fund address table The permission of transfer operation.
Wherein, executing resource transfers operation to main body block catenary system according to reserve fund address table may include storing up to standard coin Standby gold address carries out resource transfers and carries out resource transfers to foreign currency contract address.
In conclusion the construction method of main body block catenary system according to an embodiment of the present invention, firstly, in system initialization When, bridge address collection table and reserve fund address table are created, and generate standard coin reserve fund address at random, and by standard coin reserve fund Location is added in reserve fund address table;Then, it based on any one node in main body block catenary system, is created by intelligent contract Build any one foreign currency information of external block catenary system on main body block catenary system, wherein foreign currency information includes that foreign currency closes About address;Then, foreign currency contract address of each external block catenary system on main body block catenary system is added to reserve fund In address table;Then, when any one node in main body block catenary system receives the operation of bridge block catenary system initiation When request, the address for initiating the bridge block catenary system of operation requests is obtained, and by inquiry bridge address collection table to judge this When the address of the bridge block catenary system of initiation operation requests is in bridge address collection table, allow the bridge of the initiation operation requests Block catenary system executes resource transfers operation to main body block catenary system according to reserve fund address table;To realization body block chain Resource transfers between system and other block catenary systems, enhance the versatility of resource in block catenary system, and facilitate block chain For the use for resource in system.
In order to realize above-described embodiment, the embodiment of the present invention proposes a kind of computer readable storage medium, stores thereon There are the construction procedures of main body block catenary system, the construction procedures of the main body block catenary system are realized above-mentioned when being executed by processor The construction method of main body block catenary system.
As shown in Fig. 2, in order to realize above-described embodiment, the embodiment of the present invention proposes a kind of structure of main body block catenary system Build device, comprising: the first creation module 10, generation module 20, the second creation module 30, third creation module 40 and authorization module 50。
Wherein, the first creation module 10, for creating bridge address collection table in system initialization.
Generation module 20, for generating standard coin reserve fund address at random in system initialization.
Second creation module 30, for creating reserve fund address table in system initialization, and by the standard coin reserve fund Address is added in the reserve fund address table.
Third creation module 40 is appointed based on any one node in main body block catenary system by the creation of intelligent contract It anticipates foreign currency information of the external block catenary system on the main body block catenary system, and each external block catenary system is existed Foreign currency contract address in foreign currency information on the main body block catenary system is added in the reserve fund address table.
Authorization module 50 receives bridge block linkwork for any one node in the main body block catenary system When the operation requests initiated of uniting, the address for initiating the bridge block catenary system of operation requests is obtained, and by inquiring the bridge When address set table is to judge that the address of the bridge block catenary system of the initiation operation requests is in the bridge address collection table, allow The bridge block catenary system of the initiation operation requests executes money to the main body block catenary system according to the reserve fund address table Source transfer operation.
In conclusion the construction device of main body block catenary system according to an embodiment of the present invention, the first creation module are used for Bridge address collection table is created in system initialization;Generation module, for generating standard coin reserve fund at random in system initialization Address;Second creation module for creating reserve fund address table in system initialization, and standard coin reserve fund address is added to In reserve fund address table;Third creation module is created based on any one node in main body block catenary system by intelligent contract Any one foreign currency information of external block catenary system on main body block catenary system is built, and each external block catenary system is existed Foreign currency contract address in foreign currency information on main body block catenary system is added in reserve fund address table;Authorization module is used for When any one node in main body block catenary system receives the operation requests of bridge block catenary system initiation, obtains and initiate The address of the bridge block catenary system of operation requests, and by inquiring bridge address collection table to judge the bridge of the initiation operation requests When the address of beam block catenary system is in bridge address collection table, allow the bridge block catenary system of the initiation operation requests according to storage Standby gold address table executes resource transfers operation to main body block catenary system;To realization body block catenary system and other block chains Resource transfers between system, enhance the versatility of resource in block catenary system, and facilitate in block catenary system for for money The use in source.
In some embodiments, in the construction device for the main body block catenary system that the embodiment of the present invention proposes, the first creation After module 10 creates bridge address collection table, any one external bridge block catenary system is write its address by dpos common recognition mechanism Enter bridge address collection table.
In some embodiments, in the construction device for the main body block catenary system that the embodiment of the present invention proposes, third creation Module 40 is further used for, by writing foreign currency contract reflecting with the node address of disposal subject block catenary system and foreign currency quantity Firing table and configuration handling function;Foreign currency contract is compiled by compilation tool;Compiled foreign currency contract is uploaded into master Body block catenary system, so that main body block catenary system obtains foreign currency contract address and handling function.
In some embodiments, in the construction device for the main body block catenary system that the embodiment of the present invention proposes, third creation Module 40 is also used to, the foreign currency contract address by dpos common recognition mechanism by external block catenary system on main body block catenary system It is added in reserve fund address table.
It should be noted that the above-mentioned description about the construction method of main body block catenary system in Fig. 1 is equally applicable to this The construction device of main body block catenary system, is no longer repeated herein.
In order to realize above-described embodiment, the embodiment of the present invention proposes a kind of main body block catenary system, including above-mentioned master The construction device of body block catenary system.
Fig. 3 is the flow diagram according to the construction method of the bridge block catenary system of the embodiment of the present invention;Such as Fig. 3 institute Show, the construction method of the bridge block catenary system the following steps are included:
S201, in system initialization, the random address for generating bridge block catenary system, so as to by the ground of bridge block catenary system Location is written in the bridge address collection table of any one main body block catenary system, and generates block catenary system information table.
That is, the random generation of bridge block catenary system address is carried out in the initialization of bridge block catenary system, with The node continued in bridge block chain after an action of the bowels is requested to any main body block catenary system to write the address of the bridge block catenary system Enter its bridge address concentration, and generates the information table of block catenary system.
As an example, bridge block catenary system initialize when, bridge block catenary system generate at random system code key, The address of corresponding system public key and bridge block catenary system;Wherein, system code key is system private variable, and the external world can not obtain Know, public key and other nodes of the address of bridge block catenary system can be known by inquiry.
S202 receives the write request of user by any one node in bridge block catenary system, and according to write-in Request is respectively by the information of any one main body block catenary system and each external block catenary system in the main body block catenary system On foreign currency information be written block catenary system information table, and will each external block catenary system on the main body block catenary system Foreign currency information be added under the information node of the main body block catenary system, wherein write-in block catenary system information table main body The information of block catenary system includes the standard coin reserve fund address of body region block catenary system, each node in main body block catenary system The format of address and main body block catenary system solicited message.
That is, when any one node in bridge block catenary system initiates write request to system, bridge area Block catenary system is according to the write request respectively by the information of any one theme block catenary system and each external block catenary system Block catenary system information table is written in foreign currency information on the main body block catenary system, and each external block catenary system is existed Foreign currency information on the main body block catenary system is added under the information node of the main body block catenary system, wherein write-in block The information of the main body block catenary system of catenary system information table includes the standard coin reserve fund address of body region block catenary system, main body block The format of each address of node and main body block catenary system solicited message in catenary system.
Wherein, bridge block catenary system after receiving write request, vote by the mechanism that can be known together by dpos Decide whether to exist the information of any one corresponding main body block catenary system of the write request and each external block catenary system Block catenary system information table is written in foreign currency information on the main body block catenary system.
Wherein, foreign currency information of each external block catenary system on the main body block catenary system may include external block The foreign currency contract address of the standard coin reserve fund address of catenary system and external block catenary system on the main body block catenary system.
As an example, its arbitrary node transmission write request is being received to bridge block catenary system with actual scene Treatment process later is illustrated, any one node in bridge block catenary system is initiated to bridge block catenary system For write request to request that bridge block catenary system is written the information of main body block catenary system U into, which sends write request Content format are as follows: " uid ~ uips ~ uFormat ";Wherein, based on uid block catenary system U standard coin reserve fund address, the master The generation of coin reserve fund address is not reproducible, therefore can also be used as the unique of main body block catenary system U and can recognize mark;Uips is Each address of node in main body block catenary system U;The format of the corresponding solicited message of block catenary system U based on uFormat; Whether bridge block catenary system is chosen in a vote by dpos mechanism of knowing together by the main body after receiving the write request Block catenary system information table is written in the information of block catenary system U, and by the information of main body block catenary system U after voting through Block catenary system information table is written;Then, any one node in the bridge block catenary system is sent out to bridge block catenary system Foreign currency information write request is played to request the foreign currency information write area by external block catenary system V on main body block catenary system U Block catenary system information table;Any one node in the bridge block catenary system sends the content format of request are as follows: " vid ~ vuaddr";Wherein, vid is the standard coin reserve fund address of external block catenary system V, because the standard coin reserve fund address is not reproducible It generates, therefore can also be used as the unique of outside block catenary system V and can recognize mark;Vuaddr is that external block catenary system V exists Foreign currency contract address on main body block catenary system U;Bridge block catenary system after receiving the foreign currency information write request, It is chosen in a vote and whether is believed foreign currency of the external block catenary system V on main body block catenary system U by dpos mechanism of knowing together Breath write-in block catenary system information table, and after voting through by external block catenary system V on main body block catenary system U Block catenary system information table, and the foreign currency by outside block catenary system V on main body block catenary system U is written in foreign currency information Information is added under the information node of main body block catenary system U.
It should be noted that the write request of main body block catenary system information and external block catenary system are in the body region The write request of foreign currency information on block catenary system can once be initiated by the arbitrary node in bridge block catenary system, and After block catenary system information table is written in main body block catenary system information, by external block catenary system in the main body block chain Foreign currency information in system is added under the information node of main body block catenary system, can also be by bridge block catenary system Arbitrary node first initiates the write request of main body block catenary system information, and the write request be disposed and then according to Foreign currency information of the external block catenary system that arbitrary node in bridge block catenary system is initiated on the main body block catenary system Write request carry out foreign currency information write-in.
S203 is requested by the resource transfers that any one node in bridge block catenary system receives user, and in bridge According to resource transfers request and block catenary system information table when beam block catenary system obtains the permission of current topic block catenary system Resource transfers operation is executed to current topic block catenary system.
That is, bridge block catenary system receive any one node initiation resource transfers request after, root It requests to initiate operation requests to corresponding main body block catenary system according to the resource transfers, current topic block catenary system, which obtains, initiates The address of the bridge block catenary system of operation requests, and judge whether it has the right to working as according to the address of the bridge block catenary system Preceding block catenary system executes resource transfers operation, and allows bridge block catenary system to be turned according to resource when the judgment result is yes It moves request and block catenary system information table and resource transfers operation is executed to current topic block catenary system.
As an example, it is illustrated with actual scene, bridge block catenary system receives any one node The resource transfers of initiation are requested, the resource transfers request content are as follows: transfer(A-id, user-A-addr, B-id, user- B-A-addr, amount, " from "), wherein transfer is transfer function, the address of block catenary system A based on A-id, Block catenary system A interior joint address based on user-A-addr, the address of block catenary system B, user-B-A- based on B-id Block catenary system B interior joint address based on addr, amount are resource quantity to be transferred, and from parameter indicates that the process is The resource of amount quantity is shifted from the address user-A-addr of main body block catenary system A to main body block catenary system B's On the address user-B-A-addr;Wherein, if parameter from is replaced with to, then it represents that the inverse process of above-mentioned transfer;I.e. Speech shifts the resource of amount quantity to main body block catenary system from the address user-B-A-addr of main body block catenary system B On the address user-A-addr of A;Then, bridge block catenary system is asked in the resource transfers for receiving the initiation of any one node After asking, operation requests are initiated respectively to main body block catenary system A and main body block catenary system B, and led in the operation requests After body block catenary system allows, current topic block catenary system is held according to resource transfers request and block catenary system information table The operation of row resource transfers.
In conclusion the construction method of bridge block catenary system according to an embodiment of the present invention, firstly, in system initialization When, the random address for generating bridge block catenary system, so that any one body region is written in the address of bridge block catenary system In the bridge address collection table of block catenary system, and generate block catenary system information table;Then, pass through appointing in bridge block catenary system Node of anticipating receives the write request of user, and according to write request respectively by the information of any one main body block catenary system Block catenary system information table is written with foreign currency information of each external block catenary system on the main body block catenary system, and will Foreign currency information of each external block catenary system on the main body block catenary system is added to the information of the main body block catenary system Under node, wherein the information of the main body block catenary system of write-in block catenary system information table includes the master of body region block catenary system The format of each address of node and main body block catenary system solicited message in coin reserve fund address, main body block catenary system;So Afterwards, it is requested by the resource transfers that any one node in bridge block catenary system receives user, and in bridge block linkwork According to resource transfers request and block catenary system information table to current topic when system obtains the permission of current topic block catenary system Block catenary system executes resource transfers operation;To realize the resource carried out between main body block catenary system by bridge block chain Transfer operation, enhances the versatility of resource in main body block catenary system, and facilitates main body block catenary system user for body region The use of block catenary system resource.
In order to realize above-described embodiment, the embodiment of the present invention also proposed a kind of computer readable storage medium, deposit thereon The construction procedures of bridge block catenary system are contained, the construction procedures of the bridge block catenary system are realized above-mentioned when being executed by processor Bridge block catenary system construction method.
As shown in figure 4, in order to realize above-described embodiment, the embodiment of the present invention also proposed a kind of bridge block catenary system Construction device, the construction device of the bridge block catenary system include: the first generation module 60, the second generation module 70, write-in mould Block 80 and resource transfers module 90.
Wherein, the first generation module 60, for generating the address of bridge block catenary system at random in system initialization, with Just the address of bridge block catenary system is written in the bridge address collection table of any one main body block catenary system.
Second generation module 70, for generating block catenary system information table in system initialization.
Writing module 80, for receiving the write request of user by any one node in bridge block catenary system, And according to write request respectively by the information of any one main body block catenary system and each external block catenary system in the main body Block catenary system information table is written in foreign currency information on block catenary system, and by each external block catenary system in the body region Foreign currency information on block catenary system is added under the information node of the main body block catenary system, wherein write-in block catenary system letter The information of the main body block catenary system of breath table includes the standard coin reserve fund address of body region block catenary system, in main body block catenary system The format of each address of node and main body block catenary system solicited message.
Resource transfers module 90, the resource for receiving user by any one node in bridge block catenary system turn Request is moved, and when bridge block catenary system obtains the permission of current topic block catenary system according to resource transfers request and block Catenary system information table executes resource transfers operation to current topic block catenary system.
The construction device of the bridge block catenary system proposed according to embodiments of the present invention, the first generation module, for being The address of bridge block catenary system is generated when system initialization, at random so that any one is written in the address of bridge block catenary system In the bridge address collection table of main body block catenary system;Second generation module, for generating block catenary system in system initialization Information table;Writing module, for receiving the write request of user, and root by any one node in bridge block catenary system According to write request respectively by the information of any one main body block catenary system and each external block catenary system in the main body block Block catenary system information table is written in foreign currency information on catenary system, and by each external block catenary system in the main body block chain Foreign currency information in system is added under the information node of the main body block catenary system, wherein write-in block catenary system information table Main body block catenary system information include the standard coin reserve fund address of body region block catenary system, it is each in main body block catenary system The format of address of node and main body block catenary system solicited message;Resource transfers module, for passing through bridge block catenary system In any one node receive user resource transfers request, and bridge block catenary system obtain current topic block linkwork Resource transfers are executed to current topic block catenary system according to resource transfers request and block catenary system information table when the permission of system Operation;To realize that carrying out the resource transfers between main body block catenary system by bridge block chain operates, and enhances main body block The versatility of resource in catenary system, and facilitate use of the main body block catenary system user for main body block catenary system resource.
In some embodiments, the embodiment of the present invention proposes that the construction device of bridge block catenary system further includes that third generates Module (module is not shown in the accompanying drawings).The third generation module is used to generate system code key and correspondence in system initialization System public key, wherein system code key is system private variable, and the address of system public key and bridge block catenary system passes through the external world It can inquire.
In some embodiments, the embodiment of the present invention proposes in the construction device of bridge block catenary system, and write request needs By the dpos common recognition mechanism confirmation of the bridge block catenary system.
In some embodiments, the embodiment of the present invention proposes each external block in the construction device of bridge block catenary system Foreign currency information of the catenary system on the main body block catenary system includes the standard coin reserve fund address and outside of external block catenary system Foreign currency contract address of the block catenary system on the main body block catenary system.
It should be noted that the description of the above-mentioned construction method about Fig. 3 Bridge block catenary system is equally applicable to this The construction device of bridge block catenary system, this will not be repeated here.
In order to realize above-described embodiment, the embodiment of the present invention also proposed a kind of bridge block catenary system, including such as above-mentioned Bridge block catenary system construction device.
Fig. 5 is the process signal according to the method for realizing resource transfers based on bridge block catenary system of the embodiment of the present invention Figure, as shown in figure 5, should based on bridge block catenary system realize resource transfers method the following steps are included:
S301 is requested by the resource transfers that any one node in bridge block catenary system receives user.
Wherein, there are many initiation modes of resource transfers request.
In some embodiments, the content of resource transfers request includes the standard coin reserve fund of the first main body block catenary system The standard coin reserve fund of the node address, the second main body block catenary system of resource to be produced in location, the first main body block catenary system Node address, transferring resource information and the transfering type of resource to be transferred in location, the second main body block catenary system.
As an example, it is illustrated with actual scene, the user in bridge block catenary system is to bridge block Any one node in catenary system sends resource transfers request, resource transfers request specifically: transfer(uid/ Uaddr, user_u_addr, vid/vaddr, user_v_u_addr, amount, " from ");Wherein, transfer is transfer Function, uid/uaddr are the standard coin reserve fund address of the first main body block catenary system, and user_u_addr is the first main body block The node address of resource to be produced in catenary system, vid/vaddr are the standard coin reserve fund address of the second main body block catenary system, User_v_u_addr is the node address of resource to be transferred in the second main body block catenary system, and amount is transferring resource information, From is transfering type;The meaning of resource transfers request are as follows: request from the user_u_addr of the first main body block catenary system It shifts in the resource to the user_v_u_addr of the second main body block catenary system of amount quantity location;Wherein, if parameter from To is replaced, then it represents that the inverse process of above-mentioned resource transfers.
S302, when resource transfers request is from the first main body block catenary system to the second main body block catenary system transferring resource When, the address of bridge block catenary system is obtained, and by the bridge address collection table in the second main body block catenary system of inquiry to sentence Whether bridge cut-off beam block catenary system has the permission that resource transfers operation is executed to the second main body block catenary system.
That is, when resource transfers request is to shift from the first main body block catenary system to the second main body block catenary system When resource, bridge block catenary system is requested according to resource transfers to the first main body block catenary system and the second main body block catenary system Operation requests are sent, the second main body block catenary system obtains the address of bridge block catenary system according to the operation requests, and inquires Bridge address collection table in second main body block catenary system is to judge whether the bridge block catenary system has to the second body region Block catenary system executes the permission of resource transfers operation.
Wherein, bridge address collection table is configured in main body block catenary system, main body block catenary system is asked getting operation After asking, the address of corresponding bridge block catenary system can be obtained according to the operation requests, and according to the bridge block catenary system Address judge whether the address of the bridge block catenary system of the initiation operation requests is in bridge address collection table, with determine the hair Whether the bridge block catenary system for playing operation requests, which possesses, executes resource turn to main body block catenary system according to reserve fund address table Move the permission of operation.
S303, if it is determined that bridge block catenary system, which has, executes resource transfers operation to the second main body block catenary system Permission then requests the node address of resource to be produced in the first main body block catenary system of control to the first main body according to resource transfers The standard coin reserve fund address of block catenary system is transferred to standard coin and the locking of respective numbers, and according to resource transfers request control the Foreign currency contract address of the first main body block catenary system on the second main body block catenary system is in two main body block catenary systems The node address of resource to be transferred to is transferred to the foreign currency of respective numbers in two main body block catenary systems.
That is, the second main body block catenary system judge bridge block catenary system have execute resource transfers operation When permission, bridge block catenary system requests the node of resource to be produced in the first main body block catenary system of control according to resource transfers Address is transferred to standard coin and the locking of respective numbers to the standard coin reserve fund address of the first main body block catenary system, and is turned according to resource Move foreign currency of the first main body block catenary system on the second main body block catenary system in request the second main body block catenary system of control Contract address node address of resource to be transferred into the second main body block catenary system is transferred to the foreign currency of respective numbers.
In conclusion the method that resource transfers are realized based on bridge block catenary system proposed according to embodiments of the present invention, Firstly, receiving the resource transfers request of user by any one node in bridge block catenary system;Then, work as resource transfers When request is from the first main body block catenary system to the second main body block catenary system transferring resource, bridge block catenary system is obtained Address, and by inquiring the bridge address collection table in the first main body block catenary system and the second main body block catenary system respectively to sentence Whether bridge cut-off beam block catenary system, which has, executes resource transfers to the first main body block catenary system and the second main body block catenary system The permission of operation;Then, if it is determined that bridge block catenary system has to the first main body block catenary system and the second main body block Catenary system executes the permission of resource transfers operation, then is requested in the first main body block catenary system of control according to resource transfers wait produce The node address of resource is transferred to standard coin and the locking of respective numbers to the standard coin reserve fund address of the first main body block catenary system, with And according to the first main body block catenary system in resource transfers request the second main body block catenary system of control in the second main body block chain Foreign currency contract address in the system node address of resource to be transferred into the second main body block catenary system is transferred to respective numbers Foreign currency;The resource between different subjects block catenary system is shifted to realize, enhances resource in main body block catenary system Versatility while facilitate utilization of the user for resource in main body block catenary system.
Fig. 6 is the process according to the method for realizing resource transfers based on bridge block catenary system of another embodiment of the present invention Schematic diagram, should based on bridge block catenary system realize resource transfers method the following steps are included:
S401 is requested by the resource transfers that any one node in bridge block catenary system receives user.
Wherein, the content of resource transfers request includes the standard coin reserve fund address of the first main body block catenary system, the first master It is the standard coin reserve fund address of the node address, the second main body block catenary system of resource to be produced in body block catenary system, second main Node address, transferring resource information and the transfering type of resource to be transferred in body block catenary system.
As an example, any one node of user into bridge block catenary system initiates resource transfers request, should Resource transfers request specifically: transfer(uid/uaddr, user_u_addr, vid/vaddr, user_v_u_addr, Amount, " from ");Wherein, transfer is transfer function, and uid/uaddr is that the standard coin of the first main body block catenary system stores up Standby gold address, user_u_addr are the node address of resource to be produced in the first main body block catenary system, vid/vaddr the The standard coin reserve fund address of two main body block catenary systems, user_v_u_addr are in the second main body block catenary system wait be transferred to money The node address in source, amount are transferring resource information, and from is transfering type;The meaning of resource transfers request are as follows: request From the resource of the address user_u_addr of the first main body block catenary system transfer amount quantity to the second main body block catenary system User_v_u_addr on;Wherein, if parameter from is replaced with to, then it represents that the inverse process of above-mentioned resource transfers.
S402, according to the standard coin reserve fund address lookup block catenary system information table of the first main body block catenary system to obtain The node address of resource to be produced in the format of first main body block catenary system solicited message, the first main body block catenary system, and According to the standard coin reserve fund address lookup block catenary system information table of the second main body block catenary system to obtain the second main body block The node address of resource to be transferred in the format of catenary system solicited message, the second main body block catenary system, and it is main according to first The standard coin reserve fund address lookup block linkwork of the standard coin reserve fund address of body block catenary system and the second main body block catenary system Information table unite to obtain foreign currency contract address of the first main body block catenary system on the second main body block catenary system.
That is, during bridge block catenary system after receiving resource transfers request, requests according to resource transfers The standard coin reserve fund address lookup block catenary system information table of first main body block catenary system is to obtain the first main body block linkwork Unite the format of solicited message, in the first main body block catenary system resource to be produced node address, so as to bridge block catenary system According to the node of resource to be produced in the format and the first main body block catenary system of the first main body block catenary system solicited message Operation requests are initiated to the first main body block catenary system in address;And according to resource transfers request in the second main body block catenary system Standard coin reserve fund address lookup block catenary system information table with obtain the second main body block catenary system solicited message format, The node address of resource to be transferred in two main body block catenary systems, so that block catenary system is asked according to the second main body block catenary system The node address of resource to be transferred in the format and the second main body block catenary system of information is asked to send out to the second main body block catenary system Play operation requests;And according to resource transfers request in the standard coin reserve fund address of the first main body block catenary system and second main The standard coin reserve fund address lookup block catenary system information table of body block catenary system is to obtain the first main body block catenary system Foreign currency contract address on two main body block catenary systems.
As an example, bridge block catenary system B is receiving Client-initiated resource transfers request: transfer (uid/uaddr, user_u_addr, vid/vaddr, user_v_u_addr, amount, " from ") when, turned according to the resource Move request in the first main body block catenary system standard coin reserve fund address (uid/uaddr) inquiry block catenary system information table with Obtain the format (uFormat) of the first main body block catenary system solicited message, resource to be produced in the first main body block catenary system Node address collection (uips) so as to bridge block catenary system B according to the node address collection (uips) send the first transfer request extremely First main body block catenary system;And according to resource transfers request in the second main body block catenary system standard coin reserve fund address (vid/vaddr) block catenary system information table is inquired to obtain the format of the second main body block catenary system solicited message (vFormat), in the second main body block catenary system resource to be transferred to node address collection (vips), so as to bridge block catenary system B sends the second transfer request to the second main body block catenary system according to the node address collection (vips);And according to resource transfers The standard coin reserve fund address (uid/uaddr) of the first main body block catenary system in request and the master of the second main body block catenary system Block catenary system information table is inquired to obtain the first main body block catenary system in the second main body in coin reserve fund address (vid/vaddr) Foreign currency contract address (vuaddr) on block catenary system.
S403 obtains code key corresponding to the node of resource to be produced in the first main body block catenary system, and obtains bridge The system code key of block catenary system.
S404, code key corresponding to the node by resource to be produced in the first main body block catenary system are signed wait produce money First transfer request of the node address in source to the standard coin reserve fund address of the first main body block catenary system;Pass through bridge block chain The system code key of system sign foreign currency contract address of the first main body block catenary system on the second main body block catenary system to It is transferred to the second transfer request of the node address of resource.
That is, first turn of secret key pair corresponding to node by resource to be produced in the first main body block catenary system It moves request to be signed, be encrypted with first transfer request by secret key pair corresponding to the node of resource to be produced;Its In, which is the node address of resource to be produced to the standard coin reserve fund address of the first main body block catenary system Resource transfers request;Meanwhile being signed by the second transfer request of system secret key pair of bridge block catenary system, to pass through bridge The system secret key pair of beam block catenary system second transfer request is encrypted, wherein second transfer request is the first main body Foreign currency contract address of the block catenary system on the second main body block catenary system to resource to be transferred to node address resource turn Move request.
The first transfer request after signature is sent to the first main body block according to the node address wait produce resource by S405 Catenary system, and the second transfer request after signature is sent to by the second main body block linkwork according to the node address wait be transferred to resource System.
That is, according to the section of the corresponding resource to be produced of the first main body block catenary system in block catenary system information table The first transfer request after signature is sent to the first main body block catenary system by dot address;And according in block catenary system information table The second transfer request after signature is sent to second by the corresponding node address wait be transferred to resource of the second main body block catenary system Main body block catenary system.
Wherein, the address of node of resource to be produced is the connected node address of the first main body block catenary system, wait turn The node address for entering resource is the connected node address of the second main body block catenary system.
As an example, bridge block catenary system B is receiving Client-initiated resource transfers request: transfer (uid/uaddr, user_u_addr, vid/vaddr, user_v_u_addr, amount, " from ") after, according to the resource Transfer request generates the first transfer request: transfer(user_u_addr, uid/uaddr, amount), which asks Seek node (user_u_addr) the transfer amount quantity for indicating request resource to be produced from the first main body block catenary system Resource is to the standard coin reserve fund address (uid/uaddr) of the first main body block catenary system;And pass through the first main body block catenary system In the corresponding private key of node (user_u_addr) of resource to be produced the first transfer request is signed, to be shifted to first Request is encrypted, and first transfer request is sent to the first main body block catenary system;Meanwhile according to the resource transfers Request generates the second transfer request: vuaddr.transfer(vuaddr, user_v_u_addr, amount), second transfer Request indicates foreign currency contract address (vuaddr) of the request from the first main body block catenary system on the second main body block catenary system The node address (user_v_u_addr) of the resource extremely resource to be transferred to of amount quantity is shifted, and passes through bridge block linkwork The private key of system encrypts second transfer request, and second transfer request is sent to the second main body block linkwork System.
S406 passes through resource to be produced when the first main body block catenary system receives the first transfer request after signing Node corresponding to public key unlock signature after the first transfer request and execute, with control the first main body block catenary system in The node address for producing resource is transferred to the standard coin of respective numbers to the standard coin reserve fund address of the first main body block catenary system.
S407 passes through bridge block chain when the second main body block catenary system receives the second transfer request after signing The second transfer request after the unlock signature of system public key corresponding to the system code key of system is to obtain request content and bridge area The address of block catenary system, and according to request content by the reserve fund address table of the second main body block catenary system of inquiry to know the Two transfer requests are that foreign currency produces request, and passes through the second main body block linkwork of inquiry according to the address of bridge block catenary system The bridge address collection table of system is executed with giving when determining that the second transfer request comes from bridge block catenary system, so as to the second body region Foreign currency contract address of the first main body block catenary system on the second main body block catenary system is to the second body region in block catenary system The node address of resource to be transferred to is transferred to the foreign currency of respective numbers in block catenary system.
As an example, the second transfer request after the second main body block catenary system receives signature: Vuaddr.transfer(vuaddr, user_v_u_addr, amount) when, pass through the system code key institute of bridge block catenary system The second transfer request after the unlock signature of corresponding system public key to obtain request content vuaddr.transfer(vuaddr, User_v_u_addr, amount) and bridge block catenary system address vuaddr, passed through according to the vuaddr in request content The reserve fund address table of the second main body block catenary system is inquired to know that second transfer request produces request, Yi Jigen as foreign currency The bridge address collection table of the second main body block catenary system is inquired, according to the address vuaddr of bridge block catenary system to judge the bridge Whether the address vuaddr of block catenary system is in the bridge address collection table of the second main body block catenary system, if so, judgement The bridge block catenary system has the permission shifted to the resource of the second main body block catenary system, is asked to second transfer It asks and is executed, and the foreign currency contract address (vuaddr) from the first main body block catenary system on the second main body block catenary system The resource of amount quantity is shifted to the node address (user_v_u_addr) of resource to be transferred to.
In conclusion the method that resource transfers are realized based on bridge block catenary system that the embodiment of the present invention proposes, firstly, The resource transfers request of user is received by any one node in bridge block catenary system;Then, according to the first body region The standard coin reserve fund address lookup block catenary system information table of block catenary system is to obtain the first main body block catenary system solicited message Format, in the first main body block catenary system resource to be produced node address, and according to the master of the second main body block catenary system Coin reserve fund address lookup block catenary system information table is to obtain the format, second main of the second main body block catenary system solicited message The node address of resource to be transferred in body block catenary system, and the standard coin reserve fund address according to the first main body block catenary system Standard coin reserve fund address lookup block catenary system information table with the second main body block catenary system is to obtain the first main body block chain Foreign currency contract address of the system on the second main body block catenary system;Then, it obtains in the first main body block catenary system wait produce Code key corresponding to the node of resource, and obtain the system code key of bridge block catenary system;Then, pass through the first main body block chain Code key corresponding to the node of resource to be produced signs the node address of resource to be produced to the first main body block linkwork in system First transfer request of the standard coin reserve fund address of system;The first main body block is signed by the system code key of bridge block catenary system Foreign currency contract address of the catenary system on the second main body block catenary system to resource to be transferred to node address second transfer ask It asks;Then, the first transfer request after signature is sent to by the first main body block linkwork according to the node address wait produce resource System, and the second transfer request after signature is sent to by the second main body block catenary system according to the node address wait be transferred to resource; Then, when the first main body block catenary system receives the first transfer request after signing, pass through the node institute of resource to be produced Corresponding public key unlocks the first transfer request after signature and executes, to control resource to be produced in the first main body block catenary system Node address the standard coins of respective numbers is transferred to the standard coin reserve fund address of the first main body block catenary system;Then, when second When main body block catenary system receives the second transfer request after signature, corresponding to the system code key by bridge block catenary system The unlock signature of system public key after the second transfer request to obtain the address of request content and bridge block catenary system, and according to Request content is by the reserve fund address table of the second main body block catenary system of inquiry to know that the second transfer request is produced as foreign currency Request, and according to the address of bridge block catenary system by inquiring the bridge address collection table of the second main body block catenary system with true Fixed second transfer request is given when coming from bridge block catenary system and is executed, so as to the first body region in the second main body block catenary system Block catenary system resource to be transferred into the second main body block catenary system in the foreign currency contract address on the second main body block catenary system Node address be transferred to the foreign currencies of respective numbers;To realize the resource transfers between different subjects block catenary system, enhancing master Facilitate utilization of the user for resource in main body block catenary system in body block catenary system while the versatility of resource.
In order to realize above-described embodiment, the embodiment of the present invention also proposed a kind of computer readable storage medium, deposit thereon The program for realizing resource transfers based on bridge block catenary system is contained, the journey of resource transfers should be realized based on bridge block catenary system The above-mentioned method that resource transfers are realized based on bridge block catenary system is realized when sequence is executed by processor.
In order to realize above-described embodiment, the embodiment of the present invention also proposed a kind of computer equipment, including memory, processing Device and storage on a memory and the computer program that can run on a processor, when processor executes computer program, realization The above-mentioned method that resource transfers are realized based on bridge block catenary system.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be noted that in the claims, any reference symbol between parentheses should not be configured to power The limitation that benefit requires.Word "comprising" does not exclude the presence of component or step not listed in the claims.Before component Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled Several in setting, which can be, to be embodied by the same item of hardware.The use of word first, second, and third is not Indicate any sequence.These words can be construed to title.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.
In the description of the present invention, it is to be understood that, term " first ", " second " are used for description purposes only, and cannot It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include one or more of the features.In the description of the present invention, The meaning of " plurality " is two or more, unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc. Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be mechanical connect It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary The interaction relationship of the connection in portion or two elements.It for the ordinary skill in the art, can be according to specific feelings Condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below " One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It is interpreted as that identical embodiment or example must be directed to.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples Sign is combined.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (9)

1. a kind of method for realizing resource transfers based on bridge block catenary system, which comprises the following steps:
The resource transfers request of user is received by any one node in the bridge block catenary system;
When resource transfers request is from the first main body block catenary system to the second main body block catenary system transferring resource, obtain Take the address of the bridge block catenary system, and the bridge address collection table by inquiring in the second main body block catenary system with Judge whether the bridge block catenary system has the permission that resource transfers operation is executed to the second main body block catenary system;
If it is determined that the bridge block catenary system, which has, executes resource transfers operation to the second main body block catenary system Permission, then controlled according to the resource transfers request node address of resource to be produced in the first main body block catenary system to The standard coin reserve fund address of the first main body block catenary system is transferred to standard coin and the locking of respective numbers, and according to the money The first main body block catenary system is in the second main body block chain in source transfer request control the second main body block catenary system Foreign currency contract address in the system node address of resource to be transferred into the second main body block catenary system is transferred to respective counts The foreign currency of amount.
2. the method for realizing resource transfers based on bridge block catenary system as described in claim 1, which is characterized in that the money The content of source transfer request includes the standard coin reserve fund address of the first main body block catenary system, the first main body block chain It is the standard coin reserve fund address of the node address, the second main body block catenary system of resource to be produced in system, described second main Node address, transferring resource information and the transfering type of resource to be transferred in body block catenary system.
3. the method for realizing resource transfers based on bridge block catenary system as claimed in claim 2, which is characterized in that the bridge Generating in beam block catenary system has block catenary system information table, wherein is stored up according to the standard coin of the first main body block catenary system Format, the institute of the first main body block catenary system solicited message are obtained for block catenary system information table described in gold address lookup The node address of resource to be produced in the first main body block catenary system is stated, and according to the standard coin of the second main body block catenary system Block catenary system information table described in reserve fund address lookup with obtain the second main body block catenary system solicited message format, The node address of resource to be transferred in the second main body block catenary system, and according to the first main body block catenary system Block catenary system information described in the standard coin reserve fund address lookup of standard coin reserve fund address and the second main body block catenary system Table is to obtain foreign currency contract address of the first main body block catenary system on the second main body block catenary system.
4. the method for realizing resource transfers based on bridge block catenary system as claimed in claim 3, which is characterized in that also obtain Code key corresponding to the node of resource to be produced in the first main body block catenary system, and obtain the bridge block catenary system System code key, wherein
The signature of code key corresponding to node by resource to be produced in the first main body block catenary system is described wait produce money First transfer request of the node address in source to the standard coin reserve fund address of the first main body block catenary system;
The first main body block catenary system is signed in second main body by the system code key of the bridge block catenary system Second transfer request of the node address of foreign currency contract address resource to be transferred to described on block catenary system;
The first transfer request after signature is sent to the first main body block according to the node address wait produce resource Catenary system, and the second transfer request after signature is sent to by second main body according to the node address wait be transferred to resource Block catenary system.
5. the method for realizing resource transfers based on bridge block catenary system as claimed in claim 4, which is characterized in that when described When first main body block catenary system receives the first transfer request after signature, corresponding to the node by the resource to be produced Public key unlock the first transfer request after the signature and execute, to control in the first main body block catenary system wait produce The node address of resource is transferred to the standard coin of respective numbers to the standard coin reserve fund address of the first main body block catenary system.
6. the method for realizing resource transfers based on bridge block catenary system as claimed in claim 4, which is characterized in that when described When second main body block catenary system receives the second transfer request after signature, the system by the bridge block catenary system is secret System public key corresponding to key unlocks the second transfer request after the signature to obtain request content and the bridge block chain The address of system, and according to the request content by inquiring the reserve fund address table of the second main body block catenary system to obtain Know that second transfer request is that foreign currency produces request, and passes through described in inquiry according to the address of the bridge block catenary system The bridge address collection table of second main body block catenary system comes from the bridge block catenary system with determination second transfer request When give and execute, so as in the second main body block catenary system the first main body block catenary system in the second main body block chain Foreign currency contract address in the system node address of resource to be transferred into the second main body block catenary system is transferred to respective counts The foreign currency of amount.
7. such as the method for any of claims 1-6 for realizing resource transfers based on bridge block catenary system, feature It is, foreign currency contract address of the first main body block catenary system on the second main body block catenary system passes through inquiry institute The block catenary system information table for stating bridge block catenary system obtains.
8. a kind of computer readable storage medium, which is characterized in that be stored thereon with and realize resource based on bridge block catenary system The program of transfer should be realized based on bridge block catenary system and realize such as claim when the program of resource transfers is executed by processor The method that resource transfers are realized based on bridge block catenary system described in any one of 1-7.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that when the processor executes the computer program, realize such as any one of claim 1-7 The method for realizing resource transfers based on bridge block catenary system.
CN201810960284.7A 2018-08-22 2018-08-22 Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system Pending CN109409857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810960284.7A CN109409857A (en) 2018-08-22 2018-08-22 Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810960284.7A CN109409857A (en) 2018-08-22 2018-08-22 Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system

Publications (1)

Publication Number Publication Date
CN109409857A true CN109409857A (en) 2019-03-01

Family

ID=65464343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810960284.7A Pending CN109409857A (en) 2018-08-22 2018-08-22 Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system

Country Status (1)

Country Link
CN (1) CN109409857A (en)

Cited By (5)

* 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
CN109389496A (en) * 2018-08-23 2019-02-26 泰链(厦门)科技有限公司 Construction method, medium, device and the block catenary system of main body block catenary system
CN110113157A (en) * 2019-05-05 2019-08-09 江苏全链通信息科技有限公司 Contract processing method, equipment, network and storage medium based on block chain
CN111507881A (en) * 2020-04-20 2020-08-07 支付宝实验室(新加坡)有限公司 Resource demand information processing method, device and equipment
CN113240146A (en) * 2021-06-18 2021-08-10 中国银行股份有限公司 Foreign currency exchange method and device based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780032A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of block chain interchain assets transfer method under multichain scene
CN106960388A (en) * 2017-03-01 2017-07-18 中钞信用卡产业发展有限公司北京智能卡技术研究院 The method and apparatus of the digital asset circulation of transregional piece of chain
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN108009441A (en) * 2017-11-23 2018-05-08 阿里巴巴集团控股有限公司 Resource transfers and the method and apparatus of fund transfer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780032A (en) * 2016-12-16 2017-05-31 杭州云象网络技术有限公司 A kind of block chain interchain assets transfer method under multichain scene
CN106960388A (en) * 2017-03-01 2017-07-18 中钞信用卡产业发展有限公司北京智能卡技术研究院 The method and apparatus of the digital asset circulation of transregional piece of chain
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN108009441A (en) * 2017-11-23 2018-05-08 阿里巴巴集团控股有限公司 Resource transfers and the method and apparatus of fund transfer

Cited By (6)

* 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
CN109389496A (en) * 2018-08-23 2019-02-26 泰链(厦门)科技有限公司 Construction method, medium, device and the block catenary system of main body block catenary system
CN110113157A (en) * 2019-05-05 2019-08-09 江苏全链通信息科技有限公司 Contract processing method, equipment, network and storage medium based on block chain
CN111507881A (en) * 2020-04-20 2020-08-07 支付宝实验室(新加坡)有限公司 Resource demand information processing method, device and equipment
CN111507881B (en) * 2020-04-20 2022-04-29 支付宝实验室(新加坡)有限公司 Resource demand information processing method, device and equipment
CN113240146A (en) * 2021-06-18 2021-08-10 中国银行股份有限公司 Foreign currency exchange method and device based on block chain

Similar Documents

Publication Publication Date Title
CN109409857A (en) Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system
CN108985774B (en) Excitation method, device, equipment and storage medium of block chain network
Pustišek et al. Blockchain based autonomous selection of electric vehicle charging station
CN108959621B (en) Method, device, equipment and storage medium for realizing block chain network
CN108364173B (en) Digital asset processing method and device for e-commerce platform
JP2023065536A (en) Methods and systems implemented by blockchain
CN110474865B (en) Block chain user authority system and implementation method
CN108664650A (en) A kind of transaction methods, device, equipment and the storage medium of block chain network
CN108154704A (en) Wisdom shutdown system and method based on block chain
CN108833398A (en) A kind of block chain intelligence contract update method, device and equipment
CN108200203A (en) Block catenary system based on double-layer network
CN104584643B (en) Provide limited access to service devices via intermediaries
CN109656889A (en) File system implementation method, device, equipment and storage medium based on block chain
CN110599132B (en) Method and device for generating reward data and computer readable storage medium
CN110288344A (en) The assets transfer method and device of transregional piece of chain
CN109146681A (en) A kind of element processing method, device, equipment and the storage medium of block chain
CN109544982A (en) Parking information sharing method and shared system
CN109447636A (en) A kind of assets transfer method and device
CN109377319A (en) Method, device, equipment and storage medium for car purchase information processing based on alliance chain
CN112200572A (en) Resource distribution method and device based on block chain and electronic equipment
US20240104642A1 (en) Apparatus for processing non-fungible token
Lin et al. A parking sharing network over blockchain with proof-of-planned-behavior consensus protocol
CN106469412A (en) Data processing method and device
CN106502796A (en) A kind of software development test platform, system and using method
CN109064215B (en) Regional chain-based travel commission and male-to-male settlement system and method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301