CN110175918A - A kind of block chain service structure and quick deployment method - Google Patents
A kind of block chain service structure and quick deployment method Download PDFInfo
- Publication number
- CN110175918A CN110175918A CN201910414278.6A CN201910414278A CN110175918A CN 110175918 A CN110175918 A CN 110175918A CN 201910414278 A CN201910414278 A CN 201910414278A CN 110175918 A CN110175918 A CN 110175918A
- Authority
- CN
- China
- Prior art keywords
- service
- block chain
- component
- contract
- intelligent contract
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3821—Electronic credentials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/42—Confirmation, e.g. check or permission by the legal debtor of payment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of block chain service structure and quick deployment method, structure includes: user, block chain service provider, using the novel block chain of root intelligence contract and intelligent contract caching component.Quick deployment method allows block chain service provider preparatory issuing service clause on block chain, again issues the intelligent contract comprising clause on block chain according to rule when applying for service without user;In novel block chain, waiting duration of the user before block chain service starts is greatly shortened by simplifying the operation workflow of block chain service provided by service provider in root intelligence contract and intelligent contract caching component.The present invention can successfully manage the Distributed Services demand of rapid growth, have the advantages that deployment is flexible, deployment cost is low, high-efficient.
Description
Technical field
The present invention relates to block chain technical field, especially a kind of block chain service structure and quick deployment method.
Background technique
Ideal money upsurge brought by appearance with bit coin in 2008, the researchers of all parts of the world have started pair
The exploration of block chain technology.As the core enabling tool of bit coin and most of ideal money behinds now, block chain is being ground
Under the propulsion for the person of studying carefully, just develop towards more polynary with efficient direction.Block chain as a kind of safe decentralization account book,
Just applied to that financial transaction, Distributed Storage, electronic data deposits card, authority is signed and issued, industrial flow more and more
The fields such as control, and one of the normalization technology being increasingly becoming in multiple fields.
Early stage only supports single ideal money to trade by the middle clever bit coin mechanism created, and since derivative ether
Since intelligent Contract Design is added in mill mechanism, block chain had supported more flexible function already, researched and developed community's injection for block chain
Flourishing newborn power.Intelligent contract remains to receive to trade after cochain to arouse simultaneously automatically as the complete script of spirit is schemed
Execute corresponding preset operation, both with data-storing function allow developer by traditional B2C (Business-to-
Customer, business to consumer) online service migrates into block chain and completes, it is answered to forge into a kind of completely new distribution
With.Under the promotion of researcher, the Distributed Application quantity based on block chain just keeps the good situation risen year by year;It is developing
Under the packaging of person, service can be received using simple web page operation using the user of related service, without carrying out complexity
Block chain environment configurations also enhance user's stickiness of such Distributed Application while learning cost is greatly reduced.
However, existing Distributed Application mode mostly uses the first grade design: selecting to take provided by businessman in user
After business, Distributed Application first fills the information on services that user applies into the preset Intelligent Service contract template of application.?
Intelligent Service contract cochain and obtain certain amount subsequent block confirmation it is credible after, user, which also needs to meet service fee for one, to be wanted
The advance payment or a certain number of cash pledges asked, which are packaged into, trades and is sent to Intelligent Service contract on chain.In the transaction cochain and obtain
After the confirmation of the subsequent block of certain amount, it is temporary which is finally transferred to intelligent contract account.After service, intelligence
Energy contract will automatic execution cost settlement operations.In such designs, service fund must be slapped by automatic intelligent contract whole process
Control, to ensure fairness and both parties' property safety of service.But be limited in block chain the inevitable block time with
Confirm that block counts mechanism, such Distributed Application mode generally require to wait the block confirmation process of two long sections can formally be unfolded
Primary service has influenced user experience while waiting duration before causing biggish service to start also more seriously.Although
Existing scheme proposes more excellent block chain service arrangement improved efficiency scheme, but such scheme generallys use block linkwork
The complex technology of system periphery reduces the block time, and lower deployment cost is high, therefore is difficult to be generallyd use.Therefore a kind of low cost
The method of improvement block chain Distributed Application deployment efficiency is urgently researched and developed, when reducing high brought by two sections of block confirmation processes
It consumes and improves user experience.
Summary of the invention
Technical problem to be solved by the present invention lies in provide a kind of block chain service structure and quick deployment method, adopt
One section of block confirmation process can be simply waited after user applies issuing with the block chain service of quick deployment method formally to open
Begin, while can make full use of the resource in existing block chain and realizing service arrangement improved efficiency, promotes block compared to general
Chain service arrangement Efficiency Scheme reduces required transformation and lower deployment cost, abandons from block catenary system periphery and seeks resolving ideas
Scheme turns to and implements transformation and upgrade inside block catenary system, further alleviates existing block chain service for large-scale application
When consume bottleneck.
In order to solve the above technical problems, the present invention provides a kind of block chain service structure, comprising: user, block chain service
Provider, using the novel block chain of root intelligence contract and intelligent contract caching component;Block chain service provider mentions to user
For the service of its customization type, all service processes are by the root intelligence contract and intelligent contract caching in novel block chain
The control and supervision of component.
Preferably, root intelligence contract and intelligent contract caching component are all the improvement of intelligent contract in classical block chain framework
Type component, it is a string of syllabified codes that can be called that essential structure is identical as intelligent contract, and have simple data with
Ideal money store function;When the method for root intelligence contract and intelligent contract caching component is by transaction activation, and cause in component
When portion's data change, described intelligent contract and intelligent contract caching component will all generate a new intelligent contract and cache
The component data movement new to tracing record;Intelligent contract caching component can carry a string automatically when generating and ask for service
Inscribe the procedure bytes code of arbitration;When occurring any problem in service process, the side that incurs loss can be to intelligent contract caching group
Part filing of the award, intelligent contract caching component will detect actual conditions automatically, and judge responsibility according to actual conditions, do simultaneously
Corresponding prevention out.
Preferably, for the ease of manage and safeguard block chain service involved in commodity, block chain service provider to
The customization type service that family provides need to use can be by the commodity and merchandise news of digitized record;Block chain service provider to
Before user provides service, different digital number and code key must be preset respectively for all commodity, and novel when service starts
The commodity code key of applied commodity reference numeral is provided a user under the control of block chain, in order to which user deposits commodity
The operation such as take, access, and the malicious user in turn ensuring that corresponding goods are not disclosed in block catenary system simultaneously is stolen;Work as user
It, can be according to service public information and commodity price situation unrestricted choice commodity, and by selected commodity reference numeral when application service
It is supplied to block chain service provider.
Correspondingly, a kind of quick deployment method of block chain service, includes the following steps:
(1) block chain service provider prepares before providing a user the service of block chain, need to define provided a kind of block
Terms of service, tradable commodity coding and the pricing information of chain service, also, determine to be supplemented by user when applying for service and fill in
Application information field;After the information is ready to complete, the information need to be inserted a new root by block chain service provider
Intelligent Contract Component using electronic signature solidification information and is published in block chain for user's access;
(2) before user prepares application block chain service, service corresponding intelligent Contract Component need to be checked in block chain
The merchandise news and terms of service announced;User selects tradable commodity according to the freedom of information of announcement, mentions with block chain service
The write-in value for the application information field to be filled out announced in root intelligence contract is conferred for quotient;
(3) user by applied goods number and decides through consultation that information is inserted in a newly-built transaction, meanwhile, user also needs quotient
The ideal money of product service price corresponding amount is bundled in the newly-built transaction as advance payment;
(4) user and block chain service provider are signed electronically using respective to the trading signature, by the transaction
It is sent to the root intelligence Contract Component of respective service and is uploaded to block chain;
(5) after cochain trades to obtain the confirmation of the subsequent block of certain amount, which can be identified as high confidence,
Root intelligence contract will automatically generate an intelligent contract caching component with it with identical information at this time;On meanwhile
All application informations in chain transaction automatically control the filling intelligent contract caching component by root intelligence contract, will be wait fill out application
Information field filling is complete, and the ideal money in transaction will be also transferred in the intelligence contract caching component;
(6) newly-built intelligent contract caching component is without waiting cochain, and sends refer to block chain service provider immediately
Message is enabled, control block chain service provider provides a user the service of institute's specification in the intelligence contract caching component, block chain
Service provider sends the corresponding code key of applied commodity to user immediately;
(7) user formally starts the service for receiving to be provided by block chain service provider using the commodity code key;
(8) after service, block chain service provider sends one to the intelligent contract caching component described in step 5
Null value transaction after signature, to notify the intelligent contract caching component when time service terminates;
(9) advance payment of user is imported the stored value card of block chain service provider by the intelligent contract caching component,
Also, another automatically newly-generated one includes the intelligent contract caching component when time all information on services, and by the component
Contractual saving empties rear cochain, and instruction formally terminates when time service.
Preferably, in step (1), by user applying that the application information field filled in must be supplemented with key-value pair when servicing
Form be stored in root intelligence Contract Component, also, when block chain service provider determines the application information field to be filled out
When, initial value can be specified for part field, and the numerical value of remaining field is left a blank, remain user and apply remaking when the service of block chain
It fills in.
Preferably, in step (6), newly-built intelligent contract caching component can indicate block chain without waiting cochain immediately
The foundation that service provider starts service is that after service request sending, newly-built intelligent contract caching component is by can on chain
The root intelligence contract caching component of letter, which is fully automated, to be generated, and the transaction of service request is used on information contained and chain, and
The information that root intelligence Contract Component is included on chain has crash consistency;It is newly-built in the case where intervening without external malice
Intelligent contract caching component is the high confidence that can ensure that internal data information without waiting for cochain, also therefore has instruction area
Block chain service provider starts the ability of service.
Preferably, every a kind of block chain service can only possess a unique root intelligence Contract Component, root intelligence contract
Component only allows to be write by block chain service provider, safeguards and cochain;Can all be constituted by servicing each time by one intelligently closes from root
About component starts, the service log chain for multiple intelligent contract caching components of connecting;For fairness, the information uniqueness for guaranteeing service
With trackability, user and block chain service provider only allow to transfer the intelligent contract caching being newly generated in service log chain
Component works as time information on services to obtain;And when problem occurs in service, the side to incur loss only allows to service log
The intelligent contract caching component filing of the award being newly generated in chain;When the non-current intelligent contract into certain service log chain is slow
When depositing component transmission data acquisition request or requests for arbitration, which will directly be refused by intelligent contract caching component.
Preferably, it is desirable that for user when paying advance payment to root intelligence Contract Component, separately branch cashes without discount payment in part ideal money
As credit underwriting gold, equally also require block chain service provider before service starts to the root intelligence contract group of corresponding with service
Part pays a part of credit underwriting gold;When occurring fraud in service, the side that incurs loss can be according to rule to service log
Newest intelligence contract caching component proposes request for arbitration in chain, is carried out certainly by script preset in intelligent contract caching component
Dynamicization is judged, and is automatically deducted the credit underwriting gold that fraudulent party is paid to show punishment, while the letter that will be paid without duty side
It is returned with guaranty fund.
The invention has the benefit that (1) present invention is compared to general promotion block chain distributed application services deployment effect
The scheme of rate reduces required transformation and lower deployment cost, has abandoned the scheme for seeking resolving ideas from block catenary system periphery,
It turns to and implements transformation and upgrade inside block catenary system, reduce the waiting time of block chain service before start, improve phase
Close the usage experience of service user;(2) the service log chain in novel block chain provided by the present invention takes for single block chain
Business management creates effective channel, provides credible arbitration foundation for processing service dispute, further improves block chain service
Integral deployment efficiency;(3) the block chain service management scheme based on novel block chain that the present invention provides a kind of, by existing area
Contract cochain is reduced to one section with two sections of blocks confirmation process after transaction cochain in block chain service, passes through block compared to existing
Chain peripheral techniques shorten the scheme of block time, under the premise of ensuring data, fund property safety, for block chain service department
The promotion effect for affixing one's name to efficiency is more significant;(4) when the present invention can effectively mitigate existing block chain service for large-scale application
When consume bottleneck, provide beneficial design thinking for block chain structure upgrading, for adapt to Distributed Application high growth
Situation is made that beneficial technique preparation.
Detailed description of the invention
Fig. 1 is the structural diagram of the present invention.
Fig. 2 is to exist for the service log chain in the novel block chain comprising root intelligence Contract Component and intelligent contract caching component
Structure and Process schematic diagram under mutually independent service request twice.
Fig. 3 is in general block chain service mode and the block chain service of the present invention using quick deployment method
In mode, the block time (i.e. adjacent block generate average time interval) be 10 seconds, the acknowledged range request of block 2 it is subsequent
Under the setting condition of block, profiles versus's schematic diagram of waiting time of the block chain service before formal start.
Fig. 4 is under the setting condition of the acknowledged 2 subsequent blocks of range request of block, in high, medium and low three kinds of loading conditions
Under (i.e. the demand frequency of particular block chain service, the demand frequency the high, loads higher), quick portion of the present invention has been used
The block chain service of arranging method is servicing the waiting time before formally starting with the schematic diagram of block time change.
Fig. 5 be 10 seconds the block time, block confirmation process is required respectively under the setting condition of 1,2,3 subsequent block,
Waiting time of the block chain service of quick deployment method of the present invention before the formal beginning of service has been used to take with block chain
The schematic diagram of average application interval (inverse of the i.e. aforementioned block chain service request frequency) variation of business.
Fig. 6 be 10 seconds the block time, 2 subsequent blocks of the acknowledged range request of block, block chain service provider possess
Under the setting condition of 10 service commodities, respectively in the case where long, medium and short service averagely applies for duration, use of the present invention fast
(commodity for being in service state account for provider can be provided the commodity and service rate of the block chain service provider of fast dispositions method
All service commodities statistical average ratio) averagely apply for the schematic diagram of interval variation with the service of block chain.
Specific embodiment
Refering to what is shown in Fig. 1, a kind of exemplary embodiments according to the present invention, give the quick deployment method of block chain service
Design parameter is as follows: 1 block chain service provider for possessing 10 service commodities (number by lexicographic ordering mark by 10 service commodities
Be denoted as A~J), the user of the standby application service of 2 levels, block size without limitation, 2 subsequent blocks of the acknowledged range request of block and
The field that user required by block chain service provider fills in application includes: tranaction costs, application duration, tradable commodity volume
Number and electronic signature.
As shown in Figure 1, the structure of the quick deployment method of block chain service includes: user, block chain service provider, adopts
With the novel block chain of root intelligence contract and intelligent contract caching component, based on the block chain service management side of novel block chain
Case.Fig. 1 only shows that a user in the exemplary embodiments of the present invention applies for the work of service to block chain service provider
Make process.
Exemplary embodiments workflow of the invention is as follows:
1) block chain service provider prepares before providing a user the service of block chain, specifies its provided block chain service
Terms of service and 10 tradable commodities coding and pricing information.It determines that user must supplement when applying for service simultaneously to fill out
The application information field write, comprising: tranaction costs, application duration, tradable commodity number and electronic signature.Then, block chain takes
Provider be engaged in the newly-built root intelligence Contract Component of aforementioned information filling, the electronics of oneself is used by block chain service provider
Signature curing assembly information is simultaneously published in block chain for user's access, so that root intelligence Contract Component be made to become inquiry block
Unique channel of chain information on services;
2) before user prepares application block chain service, it need to check that service corresponding intelligent Contract Component is public in block chain
The merchandise news and terms of service of cloth.User selects tradable commodity according to the freedom of information of announcement, with block chain service provider
The application information field to be filled out announced in root intelligence contract is conferred, and by selected goods number and decides through consultation that information is inserted one and created
In transaction.In an exemplary embodiment, a length of 10 when the tradable commodity number of newly-built service request (namely transaction) is A, uses
Minute, according to the open pricing information in root intelligence contract, the ideal money that service fee is 5 units is calculated, user is simultaneously
It also needs to be bundled in 5 unit ideal moneys in the newly-built transaction as advance payment;
3) user and block chain service provider sign jointly to newly-built transaction using respective electronic signature, will be new
It establishs diplomatic relations and is easily sent to the root intelligence Contract Component of service and broadcasts to block chain.When cochain trades to obtain the subsequent block of certain amount
Confirmation after, root intelligence contract is formally activated, and the intelligent contract caching component with identical information will be automatically generated.On
All information in chain transaction will be inserted intelligent contract caching component, and the virtual goods of 5 units in transaction by root intelligence contract
Coin will be also transferred in the intelligence contract caching component.Intelligent contract caching component is at this time without waiting for cochain, but immediately
Instruction message is sent to block chain service provider, control block chain service provider provides a user the intelligence contract caching group
The service of institute's specification in part, block chain service provider send the code key of commodity A to user immediately;
4) after servicing, intelligent contract caching component of the block chain service provider on chain sends a null value and hands over
Easily, to notify intelligent contract caching component when time service terminates.Intelligent contract caching component is with i.e. by 5 units of the prepayment of user
Ideal money imports the stored value card of block chain service provider, and separately generates one and include the intelligence when time all information on services
The contractual saving of component is emptied rear cochain by contract caching component, and instruction formally terminates when time service.
It is another as shown in Fig. 2, when illustrating two users and separately applying servicing to block chain service provider, it is novel
The Structure and Process of service log chain in block chain, is primarily characterized in that and is divided into three phases: service root intelligence contract activation
Stage, intelligent contract caching generation phase, service completion stage, detailed process are as follows:
1) service root intelligence contract activate the stage: the root intelligence Contract Component of block chain service receive respectively by user 1 with
The service request that user 2 sends.User 1 applies for that commodity in use A is up to 8 minutes, and pays 10 unit ideal moneys as pre-
Payment;User 2 applies for that commodity in use B is up to 9 minutes, and pays 13 unit ideal moneys as advance payment.This two applications
The transaction of service contains the common signature of block chain service provider and user;
2) intelligent contract caches generation phase: root intelligence Contract Component will be generated according to process shown in Fig. 1 comprising all clothes
Advance payment in application transaction is simultaneously transferred in newly-generated intelligent contract caching component by the intelligent contract caching component for information of being engaged in.
Two parts are applied, root intelligence contract will generate two mutually independent intelligent contract caching components, but newly-generated intelligence is closed
About caching component is connected with unique root intelligence Contract Component, and characterization belongs to a kind of block chain service;
3) it services the completion stage: after the completion of service, null value transaction being sent by block chain service provider and is sent respectively to
Positioned at the intelligent contract caching component of block N+2 and block N+3, to notify transaction to complete, two intelligent contracts are cached at this time
Component will do it disbursement and sattlement, and the intelligent contract caching component that each self-generating is new, wherein comprising all ought secondary information on services,
But contractual saving is all emptied, characterization formally terminates when time service.
By the process, producing two starts from service root intelligence Contract Component, intelligent contract finally independent
The service log chain of caching component.After all services, in this two service log chains, only it is located at block N+9 and area
The intelligent contract caching component of block N+8 can be acquired data or activation arbitral procedure, any trial access preamble module data
Or the request of operation will all be set to failure to guarantee to service fairness, information uniqueness and trackability.
It is typical real to the present invention to disclose the working performance of the present invention in the actual environment with reference to Fig. 3 to Fig. 6
Actual test and data record that example has carried out 1000 block lengths are applied, analysis result is as follows.
Fig. 3 is reflected in general block chain service mode and the block chain of the present invention using quick deployment method
In service mode, the profiles versus of waiting time of the block chain service before formal start.As can be seen that in exemplary embodiments
Parameter under, in general block chain service mode, the waiting duration of about 50% service request before start is all distributed in 30
In the range of second to 50 seconds.And in the block chain service mode of rapid deployment of the present invention, about 50% service request
It has been reduced to as shown in black arrow in figure in 10 seconds to 30 seconds ranges, has significantly shortened block chain and serviced before start
Wait duration.
Fig. 4 is reflected under high, medium and low three kinds of service request loading conditions, has used rapid deployment side of the present invention
The block chain service of method is servicing the waiting time before formally starting with the relationship of block time change.As can be seen that at three kinds
Apply under loading condition, waiting duration before the longer block time can all bring bigger block chain service to start.When setting
When the block time was less than 30 seconds, under exemplary embodiments of the present invention, before block chain service starts under three kinds of loading conditions when waiting
Long performance is almost consistent;And when being greater than 30 seconds the block time of setting, the block chain service under height application loading condition is opened
Waiting duration will be considerably longer than other two classes situation before beginning.In exemplary embodiments of the invention, block time parameter is set
Being set to 30 seconds or less (30 seconds block time below, which was arranged in existing most of block catenary systems, can be achieved) should be able to be effective
All kinds of application load situations are coped on ground, can effectively be controlled waiting duration of the block chain service before formal start at about 1 point
Clock is below flat compared with excellent water.
Fig. 5 is reflected in the case where block confirmation process requires the setting condition of 1,2,3 subsequent block respectively, has used this hair
The block chain service of bright quick deployment method personal attendant's block chain service in the waiting before service formally starts averagely is applied
The relationship of interval variation.Wherein, the service of block chain averagely applies for that interval is closely related with block chain service provider's load pressure,
It is bigger that the average application of service is spaced smaller then provider load pressure.As can be seen that when the average application interval of block chain service
In the case where giving confirmation block counts when within the scope of 30 to 60 seconds, waiting duration of the block chain service before formal start is equal
It is regarded as a constant.But whenever required confirmation block counts increase by one, waiting of the block chain service before formal start
The increment of about one times of block time can be presented in duration.Under exemplary embodiments of the invention, the service of block chain is before formal start
Waiting duration will not generate significant variation in the case where average service application interval is greater than 30 seconds, and wanted with confirmation block counts
The growth asked maintains the increment of normal, expected scale, shows preferably stability.
Fig. 6 is reflected in the case where long, medium and short service averagely applies for duration, has used quick deployment method of the present invention
The commodity and service rate of the service provider of block chain service averagely applies for the relationship of interval variation with the service of block chain.It can see
Out, in the case that service averagely application duration is certain, the commodity and service rate of block chain service provider is with the flat of service request
The increase that is spaced and reduce.As the increase of duration, under same service request equispaced, longer service are averagely applied in service
Averagely apply for the commodity and service rate that the commodity and service rate under duration will be significantly higher than under shorter service averagely application duration.Service
Apply for that shortening for equispaced averagely applies for that increasing for duration will be the commodity and service rate of block chain service provider with service
It brings and is obviously improved, more incomes will be brought under exemplary embodiments of the invention for block chain service provider,
To motivate more Distributed Applications to take the block chain service mode of quick deployment method of the present invention.
Claims (8)
1. a kind of block chain service structure characterized by comprising user, block chain service provider, using root intelligence contract
With the novel block chain of intelligent contract caching component;Block chain service provider provides a user the service of its customization type,
Control and supervision of all service processes by root intelligence contract and intelligent contract caching component in novel block chain.
2. block chain service structure as described in claim 1, which is characterized in that root intelligence contract and intelligent contract caching component
All be the modified component of intelligent contract in classical block chain framework, essential structure is identical as intelligence contract, be a string can
Called syllabified code, and have simple data and ideal money store function;When root intelligence contract and intelligent contract are slow
The method for depositing component is traded when arousing and component internal data being caused to change, and described intelligent contract and intelligent contract are slow
A new intelligent contract caching component data movement new to tracing record will be generated by depositing component all;Intelligent contract caching group
Part can carry a string of procedure bytes codes for service problem arbitration when generating automatically;When occurring any problem in service process
When, the side that incurs loss will can detect automatically reality to intelligent contract caching component filing of the award, intelligent contract caching component
Situation, and responsibility is judged according to actual conditions, while making corresponding prevention.
3. block chain service structure as described in claim 1, which is characterized in that when block, chain service provider is provided a user
When the service, need to use can be by commodity and merchandise news of the digitized record in block chain;In block chain service provider
It must be that all commodity preset different digital number and code key respectively, also, work as the service before providing a user the service
Institute's application numbers corresponding commodity code key is provided a user when beginning under the control of the novel block chain.
4. a kind of quick deployment method of block chain service, which comprises the steps of:
(1) block chain service provider prepares before providing a user the service of block chain, need to define provided a kind of block chain clothes
Terms of service, tradable commodity coding and the pricing information of business, also, determine and by user applying that the Shen filled in must be supplemented when servicing
It please information field;After the information is ready to complete, the information need to be inserted a new root intelligence by block chain service provider
Contract Component using electronic signature solidification information and is published in block chain for user's access;
(2) before user prepares application block chain service, it need to check that service corresponding intelligent Contract Component institute is public in block chain
The merchandise news and terms of service of cloth;User selects tradable commodity according to the freedom of information of announcement, with block chain service provider
Confer the write-in value for the application information field to be filled out announced in root intelligence contract;
(3) user by applied goods number and decides through consultation that information is inserted in a newly-built transaction, meanwhile, user also needs to take commodity
The ideal money of business price corresponding amount is bundled in the newly-built transaction as advance payment;
(4) user and block chain service provider are signed electronically using respective to the trading signature, and the transaction is sent
To respective service root intelligence Contract Component and be uploaded to block chain;
(5) after cochain trades to obtain the confirmation of the subsequent block of certain amount, which can be identified as high confidence, at this time
Root intelligence contract will automatically generate an intelligent contract caching component with it with identical information;Meanwhile cochain is handed over
All application informations in easily automatically control the filling intelligent contract caching component by root intelligence contract, will application information be filled out
Field filling is complete, and the ideal money in transaction will be also transferred in the intelligence contract caching component;
(6) newly-built intelligent contract caching component is without waiting cochain, and sends instruction to block chain service provider immediately and disappear
Breath, control block chain service provider provide a user the service of institute's specification in the intelligence contract caching component, block chain service
Provider sends the corresponding code key of applied commodity to user immediately;
(7) user formally starts the service for receiving to be provided by block chain service provider using the commodity code key;
(8) after service, block chain service provider sends a signature to the intelligent contract caching component described in step 5
Null value transaction afterwards, to notify the intelligent contract caching component when time service terminates;
(9) advance payment of user is imported the stored value card of block chain service provider by the intelligent contract caching component, also,
Another automatically newly-generated one includes the intelligent contract caching component when time all information on services, and the contract of the component is stored up
Storage empties rear cochain, and instruction formally terminates when time service.
5. the quick deployment method of block chain service as claimed in claim 4, which is characterized in that in step (1), existed by user
The application information field filled in must be supplemented when application service to be stored in the form of key-value pair in root intelligence Contract Component, and
And when block chain service provider determines described when filling out application information field, initial value can be specified for part field, and by its
The numerical value of remaining field is left a blank, and is remained to remake when user's application block chain service and be filled in.
6. the quick deployment method of block chain service as claimed in claim 4, which is characterized in that in step (6), newly-built intelligence
The foundation that energy contract caching component can indicate that block chain service provider starts to service without waiting cochain immediately is, is taking
After business application issues, newly-built intelligent contract caching component is by believable on the chain fully automated metaplasia of intelligent contract caching component
At, and the information that root intelligence Contract Component is included on the transaction of service request and chain on information contained and chain has
Crash consistency;In the case where intervening without external malice, newly-built intelligent contract caching component can be true without waiting for cochain
The high confidence of internal data information is protected, also therefore has the ability that instruction block chain service provider starts service.
7. the quick deployment method of block chain service as claimed in claim 4, which is characterized in that every one kind block chain service is equal
It can only possess a unique root intelligence Contract Component, root intelligence Contract Component only allows to be write by block chain service provider,
Maintenance and cochain;One can all be constituted since root intelligence Contract Component by servicing each time, multiple intelligent contract caching groups of connecting
The service log chain of part;To guarantee the fairness of service, information uniqueness and trackability, user and block chain service provider
Only allow to transfer the intelligent contract caching component being newly generated in service log chain and works as time information on services to obtain;And when service
When middle generation problem, intelligent contract caching component application that the side to incur loss only allows to be newly generated into service log chain
Arbitration;When the non-current intelligent contract caching component into certain service log chain sends data acquisition request or requests for arbitration
When, which will directly be refused by intelligent contract caching component.
8. the quick deployment method of block chain service as claimed in claim 4, which is characterized in that it is required that user is intelligent to root
When Contract Component pays advance payment, separately branch cashes without discount payment in part ideal money as credit underwriting gold, and block chain is equally also required to take
Business provider pays a part of credit underwriting gold to the root intelligence Contract Component of corresponding with service before service starts;When in service go out
When existing fraud, the side to incur loss can the newest intelligence contract caching component proposition arbitration into service log chain according to rule
Application, the credit for carrying out automation judge by script preset in intelligent contract caching component, and automatically paying fraudulent party
Guaranty fund is deducted to show punishment, while the credit underwriting gold paid without duty side being returned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910414278.6A CN110175918B (en) | 2019-05-17 | 2019-05-17 | Block chain service structure and rapid deployment method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910414278.6A CN110175918B (en) | 2019-05-17 | 2019-05-17 | Block chain service structure and rapid deployment method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110175918A true CN110175918A (en) | 2019-08-27 |
CN110175918B CN110175918B (en) | 2023-03-28 |
Family
ID=67691489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910414278.6A Active CN110175918B (en) | 2019-05-17 | 2019-05-17 | Block chain service structure and rapid deployment method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110175918B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990879A (en) * | 2019-11-08 | 2020-04-10 | 中国电子科技网络信息安全有限公司 | Data evidence storing method based on block chain |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239953A (en) * | 2017-06-20 | 2017-10-10 | 无锡井通网络科技有限公司 | Fast data store method and system based on block chain |
CN107273455A (en) * | 2017-05-31 | 2017-10-20 | 深圳前海微众银行股份有限公司 | Block chain data access method and device |
CN107360238A (en) * | 2017-07-25 | 2017-11-17 | 光载无限(北京)科技有限公司 | Intelligent contract gateway based on block chain CPOW common recognition algorithms |
CN108629571A (en) * | 2018-04-30 | 2018-10-09 | 成都零光量子科技有限公司 | A kind of timing service method of commerce based on block chain |
CN109325830A (en) * | 2018-09-18 | 2019-02-12 | 中国科学院重庆绿色智能技术研究院 | A method of it is established based on block chain technology and abroad buys platform on behalf |
CN109710271A (en) * | 2019-01-16 | 2019-05-03 | 杭州趣链科技有限公司 | Key deployment, link setup and operation management system based on block chain |
US20190139037A1 (en) * | 2017-11-07 | 2019-05-09 | Ramy Abdelmageed Ebrahim Khalil | System and method for scaling blockchain networks with secure off-chain payment hubs |
-
2019
- 2019-05-17 CN CN201910414278.6A patent/CN110175918B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273455A (en) * | 2017-05-31 | 2017-10-20 | 深圳前海微众银行股份有限公司 | Block chain data access method and device |
CN107239953A (en) * | 2017-06-20 | 2017-10-10 | 无锡井通网络科技有限公司 | Fast data store method and system based on block chain |
CN107360238A (en) * | 2017-07-25 | 2017-11-17 | 光载无限(北京)科技有限公司 | Intelligent contract gateway based on block chain CPOW common recognition algorithms |
US20190139037A1 (en) * | 2017-11-07 | 2019-05-09 | Ramy Abdelmageed Ebrahim Khalil | System and method for scaling blockchain networks with secure off-chain payment hubs |
CN108629571A (en) * | 2018-04-30 | 2018-10-09 | 成都零光量子科技有限公司 | A kind of timing service method of commerce based on block chain |
CN109325830A (en) * | 2018-09-18 | 2019-02-12 | 中国科学院重庆绿色智能技术研究院 | A method of it is established based on block chain technology and abroad buys platform on behalf |
CN109710271A (en) * | 2019-01-16 | 2019-05-03 | 杭州趣链科技有限公司 | Key deployment, link setup and operation management system based on block chain |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990879A (en) * | 2019-11-08 | 2020-04-10 | 中国电子科技网络信息安全有限公司 | Data evidence storing method based on block chain |
CN110990879B (en) * | 2019-11-08 | 2022-03-18 | 中国电子科技网络信息安全有限公司 | Data evidence storing method based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN110175918B (en) | 2023-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104732441B (en) | A kind of verification of data method and device suitable for fund commission organization | |
CN109509078A (en) | Debt-credit operation method, system, server and storage medium based on block chain | |
CN110175903A (en) | A kind of quotient's ticket financing method and device | |
KR101953162B1 (en) | Issuing method of virtual money based on credit card receivables and Issuing apparatus of virtual money based on credit card receivables | |
WO2008130556A1 (en) | A method for generation of excess funds from credit instruments earmarked for personal use and distribution | |
CN101840560A (en) | Electronic voucher purchase and payment system and method based on all-in-one card platform | |
CN105184978B (en) | Public transport oiling aerating management method | |
CN104751331A (en) | One-code multi-purpose expense payment method and payment system thereof | |
CN109741147A (en) | Card certificate management method, device, equipment and computer readable storage medium | |
CN107256502A (en) | A kind of generation method of electronic invoice, point-of-sale terminal, intelligent terminal and system | |
CN103971230A (en) | Unified e-commerce payment system | |
CN106875189A (en) | Instant Withdrawing method and device | |
CN109087077A (en) | It is a kind of to distribute method of payment and terminal by all kinds of means | |
CN106127478A (en) | Prepaid card account carrier is used to carry out the method for mobile payment under line | |
KR100545308B1 (en) | System and Method of Total Payment Gateway for Electronic cash, Electronic gift-certificates and Milage points by using Credit card Number | |
CN107437224A (en) | A kind of method of commerce and system based on finance product income | |
CN110175918A (en) | A kind of block chain service structure and quick deployment method | |
CN109410020A (en) | A kind of block chain charging system and electricity consumption cash method | |
US11954694B2 (en) | Platform and method for calculating payment, contribution, investment and dividend return of carbon emission charges based on blockchain | |
JP4282882B2 (en) | Spending management system, spending management method, and storage medium | |
CN108960805A (en) | A kind of fee payment method based on Unionpay's payment platform | |
CN109118228A (en) | A kind of distributed photovoltaic power generation income circulation settlement method and system | |
CN101625747A (en) | Merchant redounding-based method and merchant redounding-based system for electronic transaction | |
KR101195141B1 (en) | Method for Cash-sending using Pre-paid Card | |
KR20120103114A (en) | System and method for paying overseas school expenses using credit card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |