[go: up one dir, main page]

CN109389496A - Construction method, medium, device and the block catenary system of main body block catenary system - Google Patents

Construction method, medium, device and the block catenary system of main body block catenary system Download PDF

Info

Publication number
CN109389496A
CN109389496A CN201810965536.5A CN201810965536A CN109389496A CN 109389496 A CN109389496 A CN 109389496A CN 201810965536 A CN201810965536 A CN 201810965536A CN 109389496 A CN109389496 A CN 109389496A
Authority
CN
China
Prior art keywords
catenary system
block catenary
main body
address
body block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201810965536.5A
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 CN201810965536.5A priority Critical patent/CN109389496A/en
Publication of CN109389496A publication Critical patent/CN109389496A/en
Withdrawn 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of construction method of main body block catenary system, medium, device and block catenary systems, method includes: in initialization, create bridge address collection table and reserve fund address table, and standard coin reserve fund address is generated at random, and standard coin reserve fund address is added in reserve fund address table;Foreign currency information is created by intelligent contract;Foreign currency contract address is added in reserve fund address table;When any one node in main body block catenary system receives operation requests, obtain the address for initiating the bridge block catenary system of operation requests, and when judging that the address of the bridge block catenary system of the initiation operation requests is in bridge address collection table, the bridge block catenary system of the initiation operation requests is allowed to execute resource transfers operation to main body block catenary system;To the resource transfers between realization body block catenary system and other block catenary systems, enhance the versatility of resource in block catenary system, and facilitates in block catenary system for the use for resource.

Description

Construction method, medium, device and the block catenary system of main body block catenary system
Technical field
The present invention relates to block chain technical field, in particular to a kind of construction method, medium, the dress of main body block catenary system It sets and block catenary system.
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 construction method of main body block catenary system, can be realized main body block catenary system and other blocks Resource transfers between catenary system, enhance block catenary system in resource versatility, and facilitate in block catenary system for for The use of resource.
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 construction device of main body block catenary system.
Fourth object of the present invention is to propose a kind of main body block catenary system.
In order to achieve the above objectives, first aspect present invention embodiment proposes a kind of building side of main body block catenary system Method, comprising the following steps: in system initialization, create bridge address collection table and reserve fund address table, and generate standard coin at random Reserve fund address, and standard coin reserve fund address is added in the reserve fund address table;Based on main body block linkwork Any one node in system creates any one external block catenary system in the main body block catenary system by intelligent contract On foreign currency information, wherein the foreign currency information includes foreign currency contract address;By each external block catenary system in the main body Foreign currency contract address on block catenary system is added in the reserve fund address table;When appointing in the main body block catenary system When node of anticipating receives the operation requests of bridge block catenary system initiation, the bridge block linkwork for initiating operation requests is obtained The address of system, and by inquiring the bridge address collection table to judge the address of the bridge block catenary system of the initiation operation requests When in the bridge address collection table, allow the bridge block catenary system of the initiation operation requests according to the reserve fund address table Resource transfers operation is executed to the main body block catenary system.
The construction method of main body block catenary system according to an embodiment of the present invention, firstly, creating bridge in system initialization Beam address set table and reserve fund address table, and standard coin reserve fund address is generated at random, and standard coin reserve fund address is added to In reserve fund address table;Then, it based on any one node in main body block catenary system, is created by intelligent contract any one Foreign currency information of a external block catenary system on main body block catenary system, wherein foreign currency information includes foreign currency contract address;So Afterwards, foreign currency contract address of each external block catenary system on main body block catenary system is added in reserve fund address table; Then, it when any one node in main body block catenary system receives the operation requests of bridge block catenary system initiation, obtains The address for initiating the bridge block catenary system of operation requests is taken, and by inquiry bridge address collection table to judge that initiation operation is asked When the address for the bridge block catenary system asked is in bridge address collection table, allow the bridge block catenary system of the initiation operation requests Resource transfers operation is executed to main body block catenary system according to reserve fund address table;To realization body block catenary system and other Resource transfers between block catenary system, enhance the versatility of resource in block catenary system, and facilitate and be used in block catenary system Use for resource.
In addition, the construction method of the main body block catenary system proposed according to that above embodiment of the present invention can also have it is as follows Additional technical characteristic:
Optionally, after creating the bridge address collection table, any one external bridge block catenary system is known together machine by dpos The bridge address collection table is written in its address by system.
Optionally, the creation process of the foreign currency information includes: by writing foreign currency contract to configure the main body block The mapping table and configuration handling function of the node address of catenary system and corresponding foreign currency quantity;The foreign currency is closed by compilation tool About it is compiled;Compiled foreign currency contract is uploaded into the main body block catenary system, so as to the main body block catenary system Obtain foreign currency contract address and handling function.
Optionally, foreign currency of the external block catenary system on the main body block catenary system is closed by dpos common recognition mechanism About address is added in the reserve fund address table.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of computer readable storage medium, thereon The construction procedures of main body block catenary system are stored with, are realized when the construction procedures of the main body block catenary system are executed by processor The construction method for the main body block catenary system stated.
In order to achieve the above objectives, third inventive embodiments of the present invention propose a kind of building dress of main body block catenary system It sets, comprising: the first creation module, for creating bridge address collection table in system initialization;Generation module, at the beginning of system Standard coin reserve fund address is generated when beginningization at random;Second creation module, for creating reserve fund address table in system initialization, And standard coin reserve fund address is added in the reserve fund address table;Third creation module is based on main body block linkwork Any one node in system creates any one external block catenary system in the main body block catenary system by intelligent contract On foreign currency information, and foreign currency of each external block catenary system in the foreign currency information on the main body block catenary system is closed About address is added in the reserve fund address table;Authorization module, for any one in the main body block catenary system When node receives the operation requests of bridge block catenary system initiation, the ground for initiating the bridge block catenary system of operation requests is obtained Location, and institute is in the address for judging the bridge block catenary system of the initiation operation requests by inquiring the bridge address collection table When stating bridge address collection table, allow the bridge block catenary system of the initiation operation requests according to the reserve fund address table to described Main body block catenary system executes resource transfers operation.
The construction device of main body block catenary system according to an embodiment of the present invention, the first creation module, at the beginning of system Bridge address collection table is created when beginningization;Generation module, for generating standard coin reserve fund address at random in system initialization;Second Creation module, for creating reserve fund address table in system initialization, and with being added to reserve fund by standard coin reserve fund address In the table of location;Third creation module is created any one based on any one node in main body block catenary system by intelligent contract Foreign currency information of a external block catenary system on main body block catenary system, and by each external block catenary system in main body block Foreign currency contract address in foreign currency information on catenary system is added in reserve fund address table;Authorization module, in body region When any one node in block catenary system receives the operation requests of bridge block catenary system initiation, obtains and initiate operation requests Bridge block catenary system address, and by inquiry bridge address collection table to judge the bridge block chains of the initiation operation requests When the address of system is in bridge address collection table, allow the bridge block catenary system of the initiation operation requests according to reserve fund address Table executes resource transfers operation to main body block catenary system;To between realization body block catenary system and other block catenary systems Resource transfers, enhance the versatility of resource in block catenary system, and facilitate in block catenary system for use for resource.
In addition, the construction device of the main body block catenary system proposed according to that above embodiment of the present invention can also have it is as follows Additional technical characteristic:
Optionally, after first creation module creates the bridge address collection table, any one external bridge block linkwork By dpos common recognition mechanism the bridge address collection table is written in its address by system.
Optionally, the third creation module is further used for, by writing foreign currency contract with disposal subject block linkwork The node address of system and the mapping table of foreign currency quantity and configuration handling function;The foreign currency contract is compiled by compilation tool It translates;Compiled foreign currency contract is uploaded into the main body block catenary system, so as to described in main body block catenary system acquisition Foreign currency contract address and handling function.
Optionally, the third creation module is also used to, by dpos common recognition mechanism by external block catenary system described Foreign currency contract address on main body block catenary system is added in the reserve fund address table.
In order to achieve the above objectives, fourth aspect present invention embodiment proposes a kind of main body block catenary system, including above-mentioned Main body block catenary system construction device.
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;The construction method for the main body block catenary system that the embodiment of the present invention proposes, firstly, In system initialization, bridge address collection table and reserve fund address table are created, and generates standard coin reserve fund address at random, and will Standard coin reserve fund address is added in reserve fund address table;Then, based on any one node in main body block catenary system, lead to It crosses intelligent contract and creates any one foreign currency information of external block catenary system on main body block catenary system, wherein foreign currency letter Breath includes foreign currency contract address;Then, the foreign currency contract address by each external block catenary system on main body block catenary system It is added in reserve fund address table;Then, when any one node in main body block catenary system receives bridge block linkwork When the operation requests initiated of uniting, the address for initiating the bridge block catenary system of operation requests is obtained, and pass through inquiry bridge address When collection table is to judge that the address of the bridge block catenary system of the initiation operation requests is in bridge address collection table, the initiation is allowed to grasp Make the bridge block catenary system requested and resource transfers operation is executed to main body block catenary system according to reserve fund address table;To real Resource transfers between existing main body block catenary system and other block catenary systems enhance the versatility of resource in block catenary system, And facilitate in block catenary system for the use for 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 (10)

1. a kind of construction method of main body block catenary system, which comprises the following steps:
In system initialization, bridge address collection table and reserve fund address table are created, and generates standard coin reserve fund address at random, with And standard coin reserve fund address is added in the reserve fund address table;
Based on any one node in main body block catenary system, any one external block catenary system is created by intelligent contract Foreign currency information on the main body block catenary system, wherein the foreign currency information includes foreign currency contract address;
Foreign currency contract address of each external block catenary system on the main body block catenary system is added to the reserve fund In address table;
When any one node in the main body block catenary system receives the operation requests of bridge block catenary system initiation, The address for initiating the bridge block catenary system of operation requests is obtained, and by inquiring the bridge address collection table to judge the initiation When the address of the bridge block catenary system of operation requests is in the bridge address collection table, allow the bridge of the initiation operation requests Block catenary system executes resource transfers operation to the main body block catenary system according to the reserve fund address table.
2. the construction method of main body block catenary system as described in claim 1, which is characterized in that creating the bridge address After collecting table, by dpos common recognition mechanism the bridge address collection is written in its address by any one external bridge block catenary system Table.
3. the construction method of main body block catenary system as claimed in claim 1 or 2, which is characterized in that the foreign currency information Creation process includes:
By writing foreign currency contract to configure the node address of the main body block catenary system and the mapping table of corresponding foreign currency quantity With configuration handling function;
The foreign currency contract is compiled by compilation tool;
Compiled foreign currency contract is uploaded into the main body block catenary system, so as to described in main body block catenary system acquisition Foreign currency contract address and handling function.
4. the construction method of main body block catenary system as claimed in claim 1 or 2, which is characterized in that known together machine by dpos Foreign currency contract address of the external block catenary system on the main body block catenary system is added to the reserve fund address table by system In.
5. a kind of computer readable storage medium, which is characterized in that the construction procedures of main body block catenary system are stored thereon with, it should Such as main body block of any of claims 1-4 is realized when the construction procedures of main body block catenary system are executed by processor The construction method of catenary system.
6. a kind of construction device of main body block catenary system characterized by comprising
First creation module, for creating bridge address collection table in system initialization;
Generation module, for generating standard coin reserve fund address at random in system initialization;
Second creation module for creating reserve fund address table in system initialization, and standard coin reserve fund address is added It is added in the reserve fund address table;
Third creation module creates any one by intelligent contract based on any one node in main body block catenary system Foreign currency information of the external block catenary system on the main body block catenary system, and by each external block catenary system in the master Foreign currency contract address in foreign currency information on body block catenary system is added in the reserve fund address table;
Authorization module receives bridge block catenary system for any one node in the main body block catenary system and initiates Operation requests when, obtain the address for initiating the bridge block catenary system of operation requests, and by inquiring the bridge address collection When 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 initiation The bridge block catenary system of operation requests executes resource transfers to the main body block catenary system according to the reserve fund address table Operation.
7. the construction device of main body block catenary system as claimed in claim 6, which is characterized in that in first creation module After creating the bridge address collection table, its address is written by dpos common recognition mechanism for any one external bridge block catenary system The bridge address collection table.
8. the construction device of main body block catenary system as claimed in claims 6 or 7, which is characterized in that the third creates mould Block is further used for,
It is grasped by writing foreign currency contract with the mapping table and configuration of the node address of disposal subject block catenary system and foreign currency quantity Make function;
The foreign currency contract is compiled by compilation tool;
Compiled foreign currency contract is uploaded into the main body block catenary system, so as to described in main body block catenary system acquisition Foreign currency contract address and handling function.
9. the construction device of main body block catenary system as claimed in claims 6 or 7, which is characterized in that the third creates mould Block is also used to, the foreign currency contract address by dpos common recognition mechanism by external block catenary system on the main body block catenary system It is added in the reserve fund address table.
10. a kind of main body block catenary system, which is characterized in that including the main body block as described in any one of claim 6-9 The construction device of catenary system.
CN201810965536.5A 2018-08-23 2018-08-23 Construction method, medium, device and the block catenary system of main body block catenary system Withdrawn CN109389496A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810965536.5A CN109389496A (en) 2018-08-23 2018-08-23 Construction method, medium, device and the block catenary system of main body block catenary system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810965536.5A CN109389496A (en) 2018-08-23 2018-08-23 Construction method, medium, device and the block catenary system of main body block catenary system

Publications (1)

Publication Number Publication Date
CN109389496A true CN109389496A (en) 2019-02-26

Family

ID=65418506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810965536.5A Withdrawn CN109389496A (en) 2018-08-23 2018-08-23 Construction method, medium, device and the block catenary system of main body block catenary system

Country Status (1)

Country Link
CN (1) CN109389496A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106960388A (en) * 2017-03-01 2017-07-18 中钞信用卡产业发展有限公司北京智能卡技术研究院 The method and apparatus of the digital asset circulation of transregional piece of chain
CN107832275A (en) * 2017-11-29 2018-03-23 北京欧链科技有限公司 The generation method of intelligent Contract ID, apparatus and system in block chain
CN108009441A (en) * 2017-11-23 2018-05-08 阿里巴巴集团控股有限公司 Resource transfers and the method and apparatus of fund transfer
CN108197944A (en) * 2017-11-22 2018-06-22 远光软件股份有限公司 Resource transaction method and device based on block chain technology
CN109409857A (en) * 2018-08-22 2019-03-01 泰链(厦门)科技有限公司 Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106960388A (en) * 2017-03-01 2017-07-18 中钞信用卡产业发展有限公司北京智能卡技术研究院 The method and apparatus of the digital asset circulation of transregional piece of chain
CN108197944A (en) * 2017-11-22 2018-06-22 远光软件股份有限公司 Resource transaction method and device based on block chain technology
CN108009441A (en) * 2017-11-23 2018-05-08 阿里巴巴集团控股有限公司 Resource transfers and the method and apparatus of fund transfer
CN107832275A (en) * 2017-11-29 2018-03-23 北京欧链科技有限公司 The generation method of intelligent Contract ID, apparatus and system in block chain
CN109409857A (en) * 2018-08-22 2019-03-01 泰链(厦门)科技有限公司 Method, medium and the computer equipment of resource transfers are realized based on bridge block catenary system

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
CN108364173B (en) Digital asset processing method and device for e-commerce platform
Pustišek et al. Blockchain based autonomous selection of electric vehicle charging station
CN108985774B (en) Excitation method, device, equipment and storage medium of block chain network
CN108664650A (en) A kind of transaction methods, device, equipment and the storage medium of block chain network
JP2021502654A (en) Codechain models, devices, methods and uses
CN108833398A (en) A kind of block chain intelligence contract update method, device and equipment
CN108200203A (en) Block catenary system based on double-layer network
CN109523302A (en) Advertisement sending method, device and calculating equipment based on block chain
CN108154704A (en) Wisdom shutdown system and method based on block chain
CN107395353A (en) A kind of block chain common recognition method and device
CN109242685A (en) Common recognition and verification method and device based on block chain
CN110288344A (en) The assets transfer method and device of transregional piece of chain
CN109656889A (en) File system implementation method, device, equipment and storage medium based on block chain
CN109146681A (en) A kind of element processing method, device, equipment and the storage medium of block chain
CN109872113A (en) Smart contract system, contract formulation method and computer readable storage device
CN109377319A (en) Method, device, equipment and storage medium for car purchase information processing based on alliance chain
CN109272418A (en) Product manufacturing data sharing method and device based on block chain
CN106502796A (en) A kind of software development test platform, system and using method
WO2023011755A1 (en) Method for directly transferring tokens
CN109118227A (en) Construction method, medium, device and the block catenary system of bridge block catenary system
CN109064215B (en) Regional chain-based travel commission and male-to-male settlement system and method
CN110288341A (en) Capital chain information tracing method, system, server and readable storage medium storing program for executing
CN109389496A (en) Construction method, medium, device and the block catenary system of main body block catenary system
Li et al. Veryfl: A verify federated learning framework embedded with blockchain

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190226

WW01 Invention patent application withdrawn after publication