CN109191288A - Transaction system, method, apparatus and storage medium based on block chain - Google Patents

Transaction system, method, apparatus and storage medium based on block chain Download PDF

Info

Publication number
CN109191288A
CN109191288A CN201810711416.2A CN201810711416A CN109191288A CN 109191288 A CN109191288 A CN 109191288A CN 201810711416 A CN201810711416 A CN 201810711416A CN 109191288 A CN109191288 A CN 109191288A
Authority
CN
China
Prior art keywords
chain
router
client
block chain
trading channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810711416.2A
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.)
Shenzhen Yixiao Technology Co Ltd
Original Assignee
Shenzhen Yixiao 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 Shenzhen Yixiao Technology Co Ltd filed Critical Shenzhen Yixiao Technology Co Ltd
Priority to CN201810711416.2A priority Critical patent/CN109191288A/en
Publication of CN109191288A publication Critical patent/CN109191288A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash

Abstract

This application involves a kind of transaction system based on block chain, method, apparatus and storage mediums, belong to block chain technical field, which includes: the first router, for accessing bit coin major network;According to the synchronous block data of the bit coin major network;First client is communicated to connect for establishing with the first router;Trading channel foundation request is sent by described communicate to connect to the first router;The first router, for establishing trading channel outside the block chain chain between request creation and the second client according to the trading channel;Trade outside chain by trading channel outside the block chain chain and second client;When can solve the artificial lightning network node of configuration on computers, the application range of lightning network is smaller, the lower problem of efficiency;The application range of lightning network can be extended, the efficiency carried out when trading outside chain by lightning network is improved.

Description

Transaction system, method, apparatus and storage medium based on block chain
Technical field
This application involves transaction system, method, apparatus and storage mediums based on block chain, belong to block chain technology neck Domain.
Background technique
Block chain technology (Blockchain technology, BT) is a kind of distributed account book technology, block chain technology tool There are decentralization, open and clear feature.When carrying out traditional transaction based on block chain technology, each block needs to record every One transaction.However, each open ended transaction data of block is limited, and such as: block accommodates up to the number of deals of 1Mb According to, therefore, in order to reduce block record transaction data, for the transaction of high frequency, small amount can pass through lightning network carry out chain Outer transaction is to realize.
When trade outside chain by lightning network, both parties establish the outer trading channel of block chain chain, then, both sides Respectively with one agreement of the private key signature of oneself, and by the protocol issuance to block chain, the content of the agreement is in block chain One fund of upper locking, the fund of locking are allocated by both sides' about certainty ratio;Then it carries out trading outside chain.
It needs however, executing the double hairs traded outside chain by manually configuring lightning network section in the hardware devices such as computer Point, and carry out by modes such as code revisions the foundation of trading channel outside chain.It, can not for the user for lacking configuration experience Trade outside chain using lightning network, cause to carry out trading outside chain by lightning network application range is small, application efficiency compared with Low problem.
Summary of the invention
This application provides a kind of method of commerce based on block chain, device and storage mediums, can solve and are manually counting When configuring lightning network node on calculation machine, whether the application range of lightning network node is had the limit of configuration experience by user System, causes the application range of lightning network smaller, the lower problem of efficiency.The application provides the following technical solutions:
In a first aspect, a kind of transaction system based on block chain is provided, the system comprises:
The first router, for accessing bit coin major network;According to the synchronous block data of the bit coin major network, the block Data are for recording the transaction data based on block chain;
First client is communicated to connect for establishing with the first router;It is communicated to connect by described to described One router sends trading channel and establishes request;
The first router establishes request for receiving the trading channel that first client is sent;According to described Trading channel establishes the outer trading channel of block chain chain between request creation and the second client;Pass through the block chain chain diplomacy Easy channel and second client trade outside chain.
The first router, is also used to:
It obtains node and creates installation kit;
The step of running the node creation installation kit, the access bit coin major network executed with triggering.
Optionally, the first router, is also used to:
When the quantity for determining bit coin according to the block data is less than or equal to preset threshold, creation network Location;
Bit coin is sent to the network address, the bit coin is used to carry out the chain diplomacy for the first router Easily.
Optionally, first client, is also used to:
After the foundation communication connection with the first router, bit coin transaction interface, the bit coin are shown Transaction interface includes that trading channel establishes control;
Receive act on the trading channel and establish the trigger action of control when, triggering executes described by described logical Letter connection sends the step of trading channel establishes request to the first router.
Optionally, the second router that the first router is connect with second client establishes the block chain chain Outer trading channel;
Wherein, the second router has accessed the bit coin major network, and supports to carry out to trade outside the chain.
Optionally, the first router is equipped with the operating system for supporting to trade outside the chain, the operating system packet Include built-in Linux operating system.
Second aspect provides a kind of method of commerce based on block chain, which comprises
Access bit coin major network;
According to the synchronous block data of the bit coin major network, the block data is for recording transaction data;
The trading channel for receiving the transmission of the first client establishes request;
Trading channel outside the block chain chain between request creation and the second client is established according to the trading channel;
Trade outside chain by trading channel outside the block chain chain and second client.
The third aspect provides a kind of method of commerce based on block chain, which comprises
Show bit coin transaction interface, the bit coin transaction interface includes that trading channel establishes control;
Receive the trigger action acted on the easy Path Setup control;
Trading channel is sent to the first router according to the trigger action and establishes request, and the trading channel establishes request For triggering trading channel outside the block chain chain between the first router creation and the second client;Pass through the block chain The outer trading channel of chain and second client trade outside chain.
Fourth aspect, provides a kind of the transaction device based on block chain, and described device includes:
Network access module, for accessing bit coin major network;
Data simultaneous module, for according to the synchronous block data of the bit coin major network, the block data to be for recording Transaction data;
Request receiving module, the trading channel for receiving the transmission of the first client establish request;
Path setup module, for establishing the block chain between request creation and the second client according to the trading channel The outer trading channel of chain;
The outer transaction modules of chain, for carrying out chain diplomacy by the outer trading channel of the block chain chain and second client Easily.
5th aspect, provides a kind of the transaction device based on block chain, described device includes:
Interface display module, for showing that bit coin transaction interface, the bit coin transaction interface include that trading channel is built Vertical control;
Receiving module is operated, the trigger action acted on the easy Path Setup control is received;
Request sending module sends trading channel to the first router according to the trigger action and establishes request, the friendship Easy Path Setup request is for triggering trading channel outside the block chain chain between the first router creation and the second client; Trade outside chain by trading channel outside the block chain chain and second client.
6th aspect, provides a kind of the transaction device based on block chain, described device includes processor and memory;It is described Program is stored in memory, described program is loaded as the processor and executed to realize described in second aspect based on block The method of commerce of chain;Alternatively, realizing the method for commerce based on block chain described in the third aspect.
7th aspect, provides a kind of computer readable storage medium, program, described program is stored in the storage medium It is loaded as the processor and is executed to realize the method for commerce based on block chain described in first aspect;Alternatively, realizing third Method of commerce based on block chain described in aspect.
The beneficial effects of the present application are as follows: by automatically accessing bit coin major network by the first router, synchronize the bit coin The block data of major network;And trading channel outside block chain chain is established according to the triggering of the first client, by the block chain chain outside Trading channel and the second client trade outside chain, are traded outside the chain between the first client and the second client with realizing; When can solve the artificial lightning network node of configuration on computers, whether the application range of lightning network node is had by user There is the limitation of configuration experience, causes the application range of lightning network smaller, the lower problem of efficiency;Since the first router can be with Automatically accessing the operation of bit coin major network becomes lightning network node, participates in without artificial, therefore, can extend answering for lightning network With range, the efficiency carried out when trading outside chain by lightning network is improved.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And can be implemented in accordance with the contents of the specification, with the preferred embodiment of the application and cooperate attached drawing below detailed description is as follows.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the transaction system based on block chain that the application one embodiment provides;
Fig. 2 is the flow chart for the method for commerce based on block chain that the application one embodiment provides;
Fig. 3 is the block diagram for the transaction device based on block chain that the application one embodiment provides;
Fig. 4 is the block diagram for the transaction device based on block chain that the application one embodiment provides;
Fig. 5 is the block diagram for the first router that the application one embodiment provides;
Fig. 6 is the block diagram for the first client that the application one embodiment provides.
Specific embodiment
With reference to the accompanying drawings and examples, the specific embodiment of the application is described in further detail.Implement below Example is not limited to scope of the present application for illustrating the application.
Firstly, to this application involves several nouns explain.
Bit coin (BitCoin): being a kind of point-to-point (person-to-person or peer-to-peer, P2P) form Digital cash.It is point-to-point to transmit the payment system for meaning a decentralization.Different from most of currency, bit coin is not By specific currency authority releases, it is according to special algorithm, and by largely calculating generation, bit coin economy uses entire P2P The distributed data base that numerous nodes are constituted in network confirms and records all trading activities, and uses the design of cryptography To ensure money flow links safety.The decentralization characteristic of P2P may insure with algorithm itself can not be by a large amount of Manufacture bit coin artificially to manipulate value of money.Design based on cryptography can make bit coin can only be shifted by true owner or Payment.This also ensures that the anonymity of currency ownership and negotiation.Bit coin and the maximum difference of other ideal moneys, It is that its total quantity is very limited, there is extremely strong scarcity.The money-system is once only no more than 10,500,000 in 4 years, it Total quantity afterwards will be permanently limited in 21,000,000.
Block chain (Blockchain): it is substantially the database of a decentralization, while the bottom as bit coin Layer technology.Block chain is a string of data blocks (block) using the associated generation of cryptography method, includes in each data block The information of bit coin network trading, for verifying the validity (anti-fake) of its information and generating next block.
Block data: the transaction data carried out based on block chain that each block in block chain is recorded.
Bit coin major network: refer to that the original and major networks of bit coin transaction, the network are formal online, independent fortune Capable block chain network.Schematically, bit coin major network is the network that each node in block chain is constituted.
It trades outside chain: referring to that both parties additionally establish trading channel outside a block chain chain except block chain, be based on The type of transaction that the outer trading channel of the block chain chain is traded.
Full node: refer to the node for maintaining the intact block chain comprising whole Transaction Informations;It in other words, is in block chain Possess the node of a complete, newest block chain copy.Full node can verify All Activity independently.
Fig. 1 is the structural schematic diagram for the transaction system based on block chain that the application one embodiment provides, such as Fig. 1 institute Show, which includes at least: the first client 110, the first router 120 and the second client 130.
Pass through wired between first client 110 and the first router 120 or wirelessly establishes communication connection, than Such as: being established and communicated to connect by WLAN.
The first router 120 has the function of accessing bit coin major network.The first router 120 is for accessing bit coin master Net;According to the synchronous block data of bit coin major network.Wherein, block data is for recording the transaction data based on block chain.
Optionally, the first router 120 is equipped with the operating system for supporting to trade outside chain, which includes embedded (SuSE) Linux OS, it is of course also possible to be other types of operating system, the present embodiment is not construed as limiting this.
First client 110 can be mobile phone, computer, personal computer, wearable device or tablet computer etc. Terminal with communication function.First client 110 is used for through the communication connection between the first router 120 to the first via Trading channel is sent by device 120 and establishes request.
Wherein, trading channel establishes request for requesting the first router 120 to establish the chain between the second client 130 Outer trading channel.
The trading channel that the first router 120 receives the transmission of the first client 110 is established after request, according to the transaction The outer trading channel of block chain chain between Path Setup request creation and the second client 130;It is logical by trading outside block chain chain Road and the second client 130 trade outside chain;After trading channel is closed outside block chain chain, transaction knot that will trade outside chain Fruit is sent to server.
Wherein, server refers to the full node for synchronizing the block data being stored in block chain.
Server can be independent server host;Alternatively, being also possible to the server that multiple server hosts are constituted Cluster.Server also accesses bit coin major network in advance.
The first router 120 trade outside chain by the outer trading channel of chain and the second client 130.
Optionally, the second client 130 can be mobile phone, computer, personal computer, wearable device or plate Computer etc. has the terminal of communication function.
Optionally, the second client 130 can also be established with the second router 140 communication connection, the second router 140 also have the function of accessing bit coin major network.At this point, the second router 140 is used to access bit coin major network, according to bit coin Major network synchronizes block data.The first router 120 and the second router 140 establish the outer trading channel of chain, by trading outside the chain Channel and the second client 130 trade outside chain.
Optionally, the second router 140 is equipped with the operating system for supporting to trade outside chain, which includes embedded (SuSE) Linux OS, it is of course also possible to be other types of operating system, the present embodiment is not construed as limiting this.
Schematically, the present embodiment only with the first router 110 directly with the second client 120 or with the second client 120 connected the second router 140 be illustrated for trading outside chains, in actual implementation, the first router 110 and the It can also include other transfer clients or router, the first router 110 and the second router between two clients 120 It can also include that other transfer clients or router, the present embodiment are not construed as limiting this between 140.
Fig. 2 is the flow chart for the method for commerce based on block chain that the application one embodiment provides, and the present embodiment is with this Method be applied to the transaction system shown in FIG. 1 based on block chain in for be illustrated.This method includes at least following several A step:
Step 201, the first router accesses bit coin major network.
Optionally, the first router accesses bit coin major network on startup;Alternatively, the first router obtains node creation peace Dress packet;Node creation installation kit is run to access bit coin major network;Alternatively, there are at least one first client accesses the When one router, the first router accesses bit coin major network.
Wherein, node creation installation kit is used to create lightning network node in the first router.Schematically, node is created Build configuration mode, the code of synchronous block data etc. of the installation kit including at least the first router access bit coin major network when.
Optionally, the first router accesses bit coin major network, comprising:
1, bit coin node is found;
Optionally, bit coin node to be connected is stored in the first router;Alternatively, being obtained from node creation installation kit Take bit coin node to be connected;Alternatively, receiving the bit coin node that other equipment are sent.
2, connection is established with the bit coin node having found.
Optionally, the first router is established with the bit coin node having found using default protocol and/or default port and is connected It connects.Such as: by transmission control protocol (Transmission Control Protocol, TCP), 8333 ports and have found Bit coin node establish connection.
3, the address comprising the internet protocol address of itself (Internet Protocol Address, IP address) is disappeared Breath is sent to adjacent node.
Optionally, the first router can also send address acquisition request to adjacent node, to obtain the IP of other nodes Address.
Step 202, the first router is according to the synchronous block data of bit coin major network.
Wherein, block data is for recording the transaction data based on block chain.
Optionally, the block data stored in the synchronous adjacent node of the first router.
Step 203, the first client and the first router, which are established, communicates to connect.
Optionally, this step can execute before step 201 and 202;Alternatively, can also be after step 202 and 202 It executes;Alternatively, can also be performed simultaneously with step 201 and 202, the present embodiment is not between step 203 and step 201 and 202 Execution sequence limit.
Step 204, the first client sends trading channel to the first router by communication connection and establishes request.
Optionally, the control program of control the first router is installed in advance in the first client, is running the control journey When sequence, the first client shows bit coin transaction interface, which includes that trading channel establishes control;It is receiving To when acting on trading channel and establishing the trigger action of control, trading channel is sent to the first router by communication connection and is established Request.
Wherein, trading channel establishes request for requesting to establish between the first router and the second client outside block chain chain Trading channel, the outer trading channel of the block chain chain are used for for carrying out high frequency, small amount between the first router and the second client Chain outside trade.
Step 205, the trading channel that the first router receives that the first client is sent establishes request.
Step 206, the first router establishes the block chain chain between request creation and the second client according to trading channel Outer trading channel.
Optionally, the first router is established outside the block chain chain between request creation and the second client according to trading channel Trading channel includes but is not limited to following several situations:
The first: establishing the outer trading channel of block chain chain between the first router and the second client, at this point, the first via by The outer trading channel of block chain chain between device creation and the second client, comprising:
The first router and the second client are respectively with one agreement of private key signature that itself is stored, and by the protocol issuance To block chain.The agreement is referred to as intelligent contract, and the content of the agreement is that a fund is locked on block chain, pen lock Fixed fund arranges pro rate by both sides.The fund of this locking can be one in the first router or the second client Side provides funds, and can also provide funds jointly by about certainty ratio both sides.Such as: a part of money is stored in the outer trading channel of block chain chain Gold, the outer trading channel record of the block chain chain have the fund distribution schemes of the first router Yu the second client: the first router: 0.4 bit coin (BTC);Second client: 0.6BTC.
Second: establishing to trade outside block chain chain between the second router that the first router is connected with the second client and lead to Road.At this point, the process of the outer trading channel of block chain chain between the first router creation and the second router refers to the first side Formula, at this point, the second family end is only replaced with the second router, other contents are identical, and therefore not to repeat here for the present embodiment.
Step 207, the first router trade outside chain by the outer trading channel of block chain chain and the second client.
Optionally, for the first situation in step 206, the first router passes through the outer trading channel of block chain chain and the Two clients trade outside chain, comprising:
The first router and the second client use one agreement of private key signature of oneself respectively, and laundry statement cancels upper one The allocation plan of a version;The agreement new with the private key signature of oneself respectively again;One new distribution of the new protocol statements Scheme.The agreement of calcellation and new agreement are stored in local respectively, do not broadcast to block chain.
Such as: the first client need to trigger the first router by the outer trading channel of block chain chain and the second client into It trades outside row chain, then the first router and the second client are provided funds 0.5BTC respectively, and respective 0.5BTC fund is locked to association In view, and arrange the assets that allocation plan is respectively all 0.5BTC.
Agreement 1: the first router: 0.5;Second client 0.5;
Agreement 1 will be distributed on block chain, and later, both sides can carry out chain diplomacy by trading channel outside the block chain chain Easily.
If the first client, which triggers the first router, pays 0.1BTC, the first router and the second visitor to the second client Family end is each to use by oneself oneself the following agreements 2 of private key and agreement 3:
Agreement 2: cancel agreement 1;
Agreement 3: the first router: 0.4;Second client 0.6;
The first router and the second client are locally saving agreement 2 and agreement 3, do not announce the transaction to block chain.
Later, if the second client is intended to pay 0.25BTC, the second client to the first client by the first router The private key of oneself is respectively used to sign following agreements 4 and agreement 5 with the first router:
Agreement 4: cancel agreement 3;
Agreement 5: the first router: 0.65BTC;Second client 0.35BTC.
The first router and the second client are locally saving agreement 4 and agreement 5, do not announce the transaction to block chain.
Optionally, for the second situation in step 206, the first router passes through the outer trading channel of block chain chain and the Two clients carry out the process traded outside chain and refer to the first above-mentioned situation, at this point, the second family end is only replaced with the second tunnel By device, other contents are identical, and therefore not to repeat here for the present embodiment.
In conclusion the method for commerce provided in this embodiment based on block chain, by being automatically accessed by the first router Bit coin major network synchronizes the block data of the bit coin major network;And the chain diplomacy of block chain are established according to the triggering of the first client Easy channel trade outside chain by trading channel outside the block chain chain and the second client, to realize the first client and the It trades outside chain between two clients;When can solve the artificial lightning network node of configuration on computers, lightning network node Application range by user whether there is configuration experience to be limited, cause the application range of lightning network smaller, efficiency is lower The problem of;Become lightning network node since the first router can automatically access the operation of bit coin major network, participated in without artificial, Therefore, the application range of lightning network can be extended, the efficiency carried out when trading outside chain by lightning network is improved.
In addition, by the control program for installing control the first router in the first client, when which runs, Bit coin transaction interface is shown in display interface, is shown trading channel in the bit coin transaction interface and is established control;With When family triggers the trading channel and establishes control, the first client can trigger the first router and establish between the second client The outer trading channel of block chain chain provides the easy mode for carrying out trading outside chain for user, and user is without understanding the first visitor of configuration The mode of code in the end of family can carry out trading outside chain, enhance the interactive capability of lightning network.
Optionally, step 201,202,205-207 can be implemented separately as the embodiment of the method for the first router side;Step 203 and 204 can be implemented separately as the embodiment of the method for the first client-side, this example is not construed as limiting this.
Optionally, it is based on above-mentioned each embodiment, after step 202, the first router determines ratio according to block data Whether special coin is less than or equal to preset threshold;It is less than or equal to preset threshold in the quantity for determining bit coin according to block data When, create network address;Bit coin is sent to network address, executes step 203.The bit coin is used to carry out for the first router It trades outside chain.When the quantity for determining bit coin according to block data is greater than preset threshold, step 203 is executed.
Preset threshold is preset in the first router, such as: preset threshold 0, it is of course also possible to be other values, this reality Example is applied not limit the value of preset threshold.
In conclusion in the present embodiment, by whether determining bit coin according to block data after synchronous block data Less than or equal to preset threshold;When the quantity for determining bit coin according to block data is less than or equal to preset threshold, creation Network address;Bit coin is sent to network address;So that the first router is available to the bit coin trade outside chain, it can To guarantee that trades outside chain is normally carried out.
Optionally, after step 207, the first router or the second client trading channel outside block chain chain are closed Later, the transaction results traded outside chain are sent to server.
Optionally, the outer trading channel of block chain chain, which is closed, can be the pre- using time arrival of the outer trading channel of block chain chain If when the designated time, the outer trading channel of block chain chain is closed;Alternatively, being also possible to trade outside the first router request block chain chain Channel is closed when closing;Alternatively, being also possible to closing when the outer trading channel of the second client request block chain chain is closed;Alternatively, It can also be closing when the outer trading channel of the second router request block chain chain is closed, the present embodiment is not traded to outside block chain chain The opportunity that channel is closed limits.
Optionally, for the first situation in step 206, the transaction results traded outside chain are sent to server, are wrapped Include: a side in the first router or the second client by the allocation plan protocol issuance of the last one version to server, If another party has no objection to this allocation plan, both sides are according to the free distribution of fund of this allocation plan after channel is closed;If One side has issued the agreement cancelled, that another party can will cancel statement before channel is closed and be published to server, and obtain Obtain whole funds in the outer trading channel of block chain chain.
Optionally, for the second situation in step 206, the transaction results traded outside chain are sent to the mistake of server Journey refers to the first above-mentioned situation, at this point, the second family end is only replaced with the second router, other contents are identical, that is, the One router or the second client by the second router by the allocation plan protocol issuance of the last one version to server, Therefore not to repeat here for the present embodiment.
Fig. 3 be the application one embodiment provide the transaction device based on block chain block diagram, the present embodiment with this Device is applied to be illustrated for the first router 120 in the transaction system shown in FIG. 1 based on block chain.The device is extremely It less include following module: network access module 310, data simultaneous module 320, request receiving module 330, Path Setup mould Block 340 and the outer transaction modules 350 of chain.
Network access module 310, for accessing bit coin major network;
Data simultaneous module 320, for according to the synchronous block data of the bit coin major network, the block data to be for remembering Record transaction data;
Request receiving module 330, the trading channel for receiving the transmission of the first client establish request;
Path setup module 340, for establishing the area between request creation and the second client according to the trading channel The outer trading channel of block chain chain;
The outer transaction modules 350 of chain, for carrying out chain by the outer trading channel of the block chain chain and second client Outer transaction.
Correlative detail refers to above method embodiment.
Fig. 4 be the application one embodiment provide the transaction device based on block chain block diagram, the present embodiment with this Device is applied to be illustrated for the first client 110 in the transaction system shown in FIG. 1 based on block chain.The device is extremely It less include following module: interface display module 410, operation receiving module 420 and request sending module 430.
Interface display module 410, for showing bit coin transaction interface, the bit coin transaction interface includes trading channel Establish control;
Receiving module 420 is operated, the trigger action acted on the easy Path Setup control is received;
Request sending module 430 sends trading channel to the first router according to the trigger action and establishes request, described It is logical for triggering transaction outside the block chain chain between the first router creation and the second client that trading channel establishes request Road;Trade outside chain by trading channel outside the block chain chain and second client.
Correlative detail refers to above method embodiment.
It should be understood that the transaction device based on block chain provided in above-described embodiment is being carried out based on block chain When transaction, only the example of the division of the above functional modules, in practical application, it can according to need and by above-mentioned function It can distribute and be completed by different functional modules, i.e., the internal structure of the transaction device based on block chain is divided into different functions Module, to complete all or part of the functions described above.In addition, the transaction dress provided by the above embodiment based on block chain It sets and belongs to same design with the method for commerce embodiment based on block chain, specific implementation process is detailed in embodiment of the method, here It repeats no more.
Fig. 5 is the block diagram for the first router that the application one embodiment provides, which can be shown in Fig. 1 The transaction system based on block chain in the first router 120.The first router includes at least processor 501, memory 502 and network interface 503.
Processor 501 may include one or more processing cores, such as: 4 core processors, 5 core processors etc..Place Reason device 501 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 501 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.
Memory 502 may include one or more computer readable storage mediums, which can To be non-transient.Memory 502 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 502 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 501 for realizing this Shen Please in embodiment of the method provide the method for commerce based on block chain.
Network interface 503 is for being connected with the first client to access network.Schematically, network interface 503 include but Be not limited to local area network (Local Area Network, LAN) interface, wide area network (Wide Area Network, WAN) interface and At least one of logic interfacing.
In some embodiments, the first router is also optional includes: peripheral device interface and at least one peripheral equipment. It can be connected by bus or signal wire between processor 501, memory 502, network interface 503 and peripheral device interface.Respectively A peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface.Schematically, peripheral equipment includes But it is not limited to: radio circuit, power supply etc..
Certainly, the first router can also include less or more component, and the present embodiment is not construed as limiting this.
Fig. 6 is the block diagram for the first router that the application one embodiment provides, which can be shown in Fig. 1 The transaction system based on block chain in the first client 110.The first router includes at least processor 601 and memory 602。
Processor 601 may include one or more processing cores, such as: 4 core processors, 6 core processors etc..Place Reason device 601 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 601 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? When the device is the first client 110, processor 601 can be integrated with GPU (Graphics Processing Unit, figure As processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 601 can also include AI (Artificial Intelligence, artificial intelligence) processor, which has for handling It shuts down the calculating operation of study.
Memory 602 may include one or more computer readable storage mediums, which can To be non-transient.Memory 602 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 602 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 601 for realizing this Shen Please in embodiment of the method provide the method for commerce based on block chain.
In some embodiments, the first router is also optional includes: peripheral device interface and at least one peripheral equipment. It can be connected by bus or signal wire between processor 601, memory 602 and peripheral device interface.Each peripheral equipment can To be connected by bus, signal wire or circuit board with peripheral device interface.Schematically, peripheral equipment includes but is not limited to: penetrating Frequency circuit, touch display screen, voicefrequency circuit and power supply etc..
Certainly, the first router can also include less or more component, and the present embodiment is not construed as limiting this.
Optionally, the application is also provided with a kind of computer readable storage medium, in the computer readable storage medium It is stored with program, described program is loaded by processor and executed the counterparty based on block chain to realize above method embodiment Method.
Optionally, the application is also provided with a kind of computer product, which includes computer-readable storage medium Matter is stored with program in the computer readable storage medium, and described program is loaded by processor and executed to realize above-mentioned side The method of commerce based on block chain of method embodiment.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of transaction system based on block chain, which is characterized in that the system comprises:
The first router, for accessing bit coin major network;According to the synchronous block data of the bit coin major network, the block data For recording the transaction data based on block chain;
First client is communicated to connect for establishing with the first router;It is communicated to connect by described to the first via Trading channel is sent by device and establishes request;
The first router establishes request for receiving the trading channel that first client is sent;According to the transaction The outer trading channel of block chain chain between Path Setup request creation and the second client;It is logical by trading outside the block chain chain Road and second client trade outside chain.
2. system according to claim 1, which is characterized in that the first router is also used to:
It obtains node and creates installation kit;
The step of running the node creation installation kit, the access bit coin major network executed with triggering.
3. system according to claim 1, which is characterized in that the first router is also used to:
When the quantity for determining bit coin according to the block data is less than or equal to preset threshold, network address is created;
Bit coin is sent to the network address, the bit coin is used to carry out for the first router to trade outside the chain.
4. system according to claim 1, which is characterized in that first client is also used to:
After the foundation communication connection with the first router, bit coin transaction interface, the bit coin transaction are shown Interface includes that trading channel establishes control;
Receive act on the trading channel and establish the trigger action of control when, triggering, which executes, described passes through the communication link It connects to the first router and sends the step of trading channel establishes request.
5. system according to any one of claims 1 to 4, which is characterized in that the first router and second client The second router of end connection establishes the outer trading channel of the block chain chain;
Wherein, the second router has accessed the bit coin major network, and supports to carry out to trade outside the chain.
6. system according to any one of claims 1 to 4, which is characterized in that the first router is equipped with described in support The operating system traded outside chain, the operating system includes built-in Linux operating system.
7. a kind of method of commerce based on block chain, which is characterized in that the described method includes:
Access bit coin major network;
According to the synchronous block data of the bit coin major network, the block data is for recording transaction data;
The trading channel for receiving the transmission of the first client establishes request;
Trading channel outside the block chain chain between request creation and the second client is established according to the trading channel;
Trade outside chain by trading channel outside the block chain chain and second client.
8. a kind of method of commerce based on block chain, which is characterized in that the described method includes:
Show bit coin transaction interface, the bit coin transaction interface includes that trading channel establishes control;
Receive the trigger action acted on the easy Path Setup control;
Trading channel is sent to the first router according to the trigger action and establishes request, and the trading channel is established request and is used for Trigger the outer trading channel of block chain chain between the first router creation and the second client;Outside by the block chain chain Trading channel and second client trade outside chain.
9. a kind of the transaction device based on block chain, which is characterized in that described device includes processor and memory;The storage Program is stored in device, described program is loaded by the processor and executed to realize as claimed in claim 7 based on block The method of commerce of chain;Alternatively, the method for commerce as claimed in claim 8 based on block chain.
10. a kind of computer readable storage medium, which is characterized in that be stored with program, described program quilt in the storage medium For realizing the method for commerce as claimed in claim 7 based on block chain when processor executes;Alternatively, as claim 8 institute The method of commerce based on block chain stated.
CN201810711416.2A 2018-07-03 2018-07-03 Transaction system, method, apparatus and storage medium based on block chain Pending CN109191288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810711416.2A CN109191288A (en) 2018-07-03 2018-07-03 Transaction system, method, apparatus and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810711416.2A CN109191288A (en) 2018-07-03 2018-07-03 Transaction system, method, apparatus and storage medium based on block chain

Publications (1)

Publication Number Publication Date
CN109191288A true CN109191288A (en) 2019-01-11

Family

ID=64948823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810711416.2A Pending CN109191288A (en) 2018-07-03 2018-07-03 Transaction system, method, apparatus and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN109191288A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795288A (en) * 2019-11-06 2020-02-14 杭州复杂美科技有限公司 Data acquisition method, device and storage medium
CN110796549A (en) * 2019-11-06 2020-02-14 杭州复杂美科技有限公司 Transaction method, apparatus and storage medium
CN110992177A (en) * 2019-10-31 2020-04-10 中国科学院计算技术研究所 Block chain flux improving method and system based on off-chain channel route evaluation mechanism
CN111292191A (en) * 2020-02-18 2020-06-16 杭州复杂美科技有限公司 Acceptance service alliance method, apparatus and storage medium
CN111612612A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN112150144A (en) * 2020-08-12 2020-12-29 江苏大学 Block chain anonymous transaction method based on cross-node multi-hop payment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
QUANTUM_邪恶猫: "手把手教你在树莓派上部署比特币闪电节点+全节点", 《新浪微博》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111612612A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN111612612B (en) * 2019-02-22 2023-09-08 海南趣块飞扬科技有限公司 Block chain-based decentralization transaction method and device and electronic equipment
CN110992177A (en) * 2019-10-31 2020-04-10 中国科学院计算技术研究所 Block chain flux improving method and system based on off-chain channel route evaluation mechanism
CN110992177B (en) * 2019-10-31 2023-09-12 中国科学院计算技术研究所 Block chain flux improving method and system based on out-of-chain channel route evaluation mechanism
CN110795288A (en) * 2019-11-06 2020-02-14 杭州复杂美科技有限公司 Data acquisition method, device and storage medium
CN110796549A (en) * 2019-11-06 2020-02-14 杭州复杂美科技有限公司 Transaction method, apparatus and storage medium
CN111292191A (en) * 2020-02-18 2020-06-16 杭州复杂美科技有限公司 Acceptance service alliance method, apparatus and storage medium
CN112150144A (en) * 2020-08-12 2020-12-29 江苏大学 Block chain anonymous transaction method based on cross-node multi-hop payment

Similar Documents

Publication Publication Date Title
CN109191288A (en) Transaction system, method, apparatus and storage medium based on block chain
CN108717630B (en) Block output method and implementation system thereof
CN109522362A (en) Incomplete markets synchronous method, system and equipment based on block chain data
CN111414210B (en) Method, apparatus and computer readable storage medium for generating side chains based on main chains
CN107147735B (en) Distributed account book system based on hierarchical structure
TWI771618B (en) Method and device for distribution of copyright of works based on blockchain
CN107360248A (en) For configuring the method and apparatus locally known together and computer-readable recording medium
CN110741372A (en) Computer-implemented system and method for managing transactions on a blockchain network
CN109697606A (en) The distributed network and the ecosystem of common recognition agreement are proved based on innovative prestige
CN109345387A (en) Across the chain method of commerce of block chain, across chain communication device and storage medium
CN109154885A (en) Business processing on block platform chain executes
CN110442652A (en) A kind of across chain data processing method and device based on block chain
CN110458631B (en) Bill number distribution method and device based on block chain and electronic equipment
CN107332826A (en) The communication means and device of block chain agent node
KR102162762B1 (en) Technique for item tracking
CN107239940A (en) Network trading method and device based on block catenary system
US20230299984A1 (en) Blockchain-based data processing method, apparatus and device, and storage medium
JP2020047104A (en) Settlement system, settlement method, user device, and settlement program
CN109409885A (en) Across chain method of commerce, device and storage medium on block chain
CN108156232A (en) Data sharing method and device
US20210399896A1 (en) Hybrid blockchain architecture with computing pool
CN110930152B (en) Data processing method based on block chain and related equipment
CN109447605A (en) A kind of chain currency conversion method, apparatus, equipment and medium based on block chain
WO2020210979A1 (en) Blockchain-network-based joint learning method and joint learning device
CN109857810A (en) Data synchronization unit and method based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190111

WD01 Invention patent application deemed withdrawn after publication