CN110175918B - Block chain service structure and rapid deployment method - Google Patents

Block chain service structure and rapid deployment method Download PDF

Info

Publication number
CN110175918B
CN110175918B CN201910414278.6A CN201910414278A CN110175918B CN 110175918 B CN110175918 B CN 110175918B CN 201910414278 A CN201910414278 A CN 201910414278A CN 110175918 B CN110175918 B CN 110175918B
Authority
CN
China
Prior art keywords
service
intelligent contract
blockchain
block chain
user
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.)
Active
Application number
CN201910414278.6A
Other languages
Chinese (zh)
Other versions
CN110175918A (en
Inventor
王家恒
乐煜炜
凌昕彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN201910414278.6A priority Critical patent/CN110175918B/en
Publication of CN110175918A publication Critical patent/CN110175918A/en
Application granted granted Critical
Publication of CN110175918B publication Critical patent/CN110175918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/42Confirmation, e.g. check or permission by the legal debtor of payment
    • 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

Abstract

The invention discloses a block chain service structure and a rapid deployment method, wherein the structure comprises the following steps: a user, a blockchain service provider, a new blockchain employing a root intelligent contract and an intelligent contract caching component. The rapid deployment method allows a blockchain service provider to issue service terms in advance on a blockchain without requiring a user to issue intelligent contracts containing terms on the blockchain in compliance when applying for service; in the novel block chain, the root intelligent contract and the intelligent contract cache component greatly shorten the waiting time of a user before the block chain service starts by simplifying the operation flow of the block chain service provided by a service provider. The invention can effectively meet the distributed service requirement which is increased at a high speed, and has the advantages of flexible deployment, low configuration cost, high efficiency and the like.

Description

Block chain service structure and rapid deployment method
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain service structure and a rapid deployment method.
Background
With the rush of virtual currency brought by the appearance of the 2008 Bizhou, researchers around the world have begun to explore the block chain technology. As core enabling technology behind bitcoin and most of the virtual currencies nowadays, the blockchain is moving toward more diversification and efficiency under the push of researchers. As a secure decentralized account book, the blockchain is increasingly applied to the fields of financial transactions, distributed data storage, electronic data storage, credential issuance, industrial process control, and the like, and is gradually becoming one of the normalization techniques in multiple fields.
The bitcoin mechanism created by the traditional wisdom in the early days only supports single virtual currency transaction, and since the derived Etherhouse mechanism is added into the intelligent contract design, the blockchain already supports more flexible functions, and a vigorous and new power is injected into the blockchain research community. The intelligent contract serving as a well-defined script can still receive transaction arousal and automatically execute corresponding preset operation after the linkage, and the intelligent contract has a data storage function which allows a developer to transfer traditional B2C (Business-to-Customer) online service to a block chain for completion, thereby creating a brand-new distributed application. Under the impetus of researchers, the number of distributed applications based on blockchains is keeping a good situation of rising year by year; under the packaging of developers, users using related services can receive the services by using simple webpage operation without performing complex block-link environment configuration, so that the learning cost is greatly reduced, and the user stickiness of the distributed application is enhanced.
However, most current distributed application models employ a class of designs: after the user selects the service provided by the merchant, the distributed application firstly fills the service information applied by the user into a preset service intelligent contract template. After the chain is established on the intelligent service contract and a certain number of subsequent blocks are confirmed to be credible, the user also needs to pack a pre-payment meeting the service fee requirement or a certain number of deposit into a transaction and send the transaction to the intelligent chain service contract. After the transaction is linked and a certain number of subsequent blocks are confirmed, the fund is finally transferred to the intelligent contract account for temporary storage. When the service is finished, the intelligent contract automatically executes the fee settlement operation. In such designs, the service funds must be fully controlled by the automated intelligent contracts to ensure the service compliance and the property safety of both trading parties. However, such distributed application mode is limited by the unavoidable block time and the number of confirmed blocks in the block chain, and usually needs to wait for two long block confirmation processes to formally deploy one service, which results in a longer waiting time before starting the service and also seriously affects the user experience. Although the existing solutions provide more excellent improvement solutions for the deployment efficiency of the blockchain service, such solutions usually adopt a complex technology at the periphery of the blockchain system to reduce the blockchain time, and the deployment cost is very high, so that the solutions are difficult to be generally adopted. Therefore, a low-cost method for improving the deployment efficiency of the blockchain distributed application is urgently needed to be developed, so as to reduce the high time consumption caused by the two-stage block confirmation process and improve the user experience.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a block chain service structure and a rapid deployment method, wherein a block chain service adopting the rapid deployment method can formally start only waiting for a block confirmation process after a user applies for sending, and simultaneously can fully utilize resources in the existing block chain to realize service deployment efficiency improvement.
To solve the above technical problem, the present invention provides a block chain service structure, including: a user, a blockchain service provider, a new blockchain employing a root intelligent contract and an intelligent contract cache component; the block chain service provider provides the user with the self-defined service, and all service processes are controlled and supervised by a root intelligent contract and an intelligent contract cache component in the novel block chain.
Preferably, the root intelligent contract and the intelligent contract cache component are both improved components of the intelligent contract in a classic block chain architecture, the essential structure of the root intelligent contract and the intelligent contract cache component is the same as that of the intelligent contract, the root intelligent contract and the intelligent contract cache component are both a string of byte codes which can be called, and the root intelligent contract and the intelligent contract cache component have simple data and virtual currency storage functions; when the method of the root intelligent contract and the intelligent contract cache component is activated by transaction, and the internal data of the component is changed, the root intelligent contract and the intelligent contract cache component generate a new intelligent contract cache component for tracking and recording new data change; the intelligent contract cache component can automatically carry a string of program byte codes for service problem arbitration when being generated; when any problem occurs in the service process, the party suffering from the loss can apply arbitration to the intelligent contract cache component, the intelligent contract cache component can automatically probe the actual situation, judge the responsibility according to the actual situation and simultaneously make corresponding mediation processing.
Preferably, in order to facilitate the management and maintenance of the commodities related to the blockchain service, the user-defined service provided by the blockchain service provider to the user needs to use the commodity and commodity information which can be digitally recorded; before a block chain service provider provides service for a user, different number numbers and secret keys are required to be preset for all commodities respectively, and commodity secret keys of corresponding numbers of applied commodities are provided for the user under the control of a novel block chain when the service is started, so that the user can conveniently perform operations such as access and visit on the commodities, and meanwhile, the corresponding commodities are guaranteed not to be stolen by malicious users in a public block chain system; when the user applies for service, the commodity can be freely selected according to the service public information and the commodity price condition, and the corresponding number of the selected commodity is provided for the block chain service provider.
Correspondingly, the rapid deployment method of the block chain service comprises the following steps:
(1) Before a block chain service provider prepares to provide a block chain service for a user, service terms, transaction commodity codes and price information of the provided block chain service are required to be determined, and an application information field which needs to be supplemented and filled by the user when the user applies for the service is determined; after the information preparation is completed, the block chain service provider needs to fill the information into a new root intelligent contract component, solidify the information by using the electronic signature and issue the information to the block chain for the user to look up;
(2) Before a user prepares to apply for blockchain service, commodity information and service terms published by a root intelligent contract component corresponding to the service need to be checked in a blockchain; the user freely selects transaction commodities according to the published information, and negotiates with a block chain service provider about the written value of the information field to be filled and applied published in the root intelligent contract;
(3) The user fills the applied commodity number and the agreed information into a newly-built transaction, and meanwhile, the user also needs to bind virtual currency with the corresponding amount of the commodity service price in the newly-built transaction as prepayment;
(4) The user and the block chain service provider sign the transaction by using respective electronic signatures, and the transaction is sent to a root intelligent contract component of a corresponding service and uploaded to a block chain;
(5) After the uplink transaction is confirmed by a certain number of subsequent blocks, the transaction can be determined to be highly credible, and the root intelligent contract automatically generates an intelligent contract cache component with the same information as the root intelligent contract cache component; simultaneously, all application information in the uplink transaction is automatically controlled by a root intelligent contract to be filled into the intelligent contract cache component, the field of the application information to be filled is completely filled, and virtual currency in the transaction is transferred into the intelligent contract cache component;
(6) The newly-built intelligent contract cache component immediately sends an instruction message to a block chain service provider without waiting for chaining, the block chain service provider is controlled to provide the service stipulated in the intelligent contract cache component for the user, and the block chain service provider immediately sends a secret key corresponding to the commodity applied for the user;
(7) Formally starting to accept the service provided by the block chain service provider by the user by using the commodity key;
(8) After the service is finished, the blockchain service provider sends a signed null value transaction to the intelligent contract cache component in the step 5 so as to inform the intelligent contract cache component that the service is finished;
(9) The intelligent contract cache component remits the prepayment of the user into an electronic wallet of a block chain service provider, and automatically generates an intelligent contract cache component containing all service information at the current time, and links the contract deposit of the component after being empty to indicate the formal end of the service at the current time.
Preferably, in step (1), all application information fields that need to be filled in by the user when applying for the service are stored in the root smart contract component in a form of key-value pairs, and when the blockchain service provider determines the to-be-filled application information fields, initial values may be specified for some fields, values of the remaining fields are left blank, and filling is performed when the user applies for the blockchain service.
Preferably, in the step (6), the newly-built intelligent contract cache component can immediately instruct the blockchain service provider to start the service without waiting for uplink, based on that after the service application is issued, the newly-built intelligent contract cache component is fully automatically generated by a root intelligent contract cache component which is trusted on the chain, and the contained information is completely consistent with the transaction used for the service application on the chain and the information contained in the root intelligent contract component on the chain; under the condition of no external malicious intervention, the newly-built intelligent contract cache component can ensure high credibility of internal data information without waiting for uplink, and therefore, the intelligent contract cache component has the capability of indicating a block chain service provider to start service.
Preferably, each type of blockchain service only has one unique root intelligent contract component, and the root intelligent contract component only allows writing, maintenance and uplink by a blockchain service provider; each service forms a service record chain which starts from a root intelligent contract component and is connected with a plurality of intelligent contract cache components in series; in order to ensure the service fairness, the information uniqueness and the traceability, a user and a block chain service provider only allow to call an intelligent contract cache component newly generated in a service record chain to acquire current service information; when a problem occurs in the service, the lost party only allows to apply arbitration to the intelligent contract cache component which is newly generated in the service record chain; when a data acquisition request or an arbitration request is sent to a non-latest intelligent contract cache component in a certain service record chain, the request is directly rejected by the intelligent contract cache component.
Preferably, when the user is required to pay a prepayment to the root intelligent contract component, a part of virtual money is paid additionally as a credit guarantee, and the blockchain service provider is also required to pay a part of credit guarantee to the root intelligent contract component of the corresponding service before the service starts; when fraud occurs in the service, the lost party can submit an arbitration application to the latest intelligent contract cache component in the service record chain according to the rule, automatic judgment is carried out through a script preset in the intelligent contract cache component, the credit guarantee paid by the fraudulent party is automatically deducted to show punishment, and meanwhile, the credit guarantee paid by the party without responsibility is refunded.
The invention has the beneficial effects that: (1) Compared with a general scheme for improving the block chain distributed application service deployment efficiency, the block chain distributed application service deployment method has the advantages that the needed transformation and deployment cost is reduced, a scheme for seeking a solution idea from the periphery of a block chain system is abandoned, transformation and upgrading are implemented from the inside of the block chain system, the waiting time of the block chain service before the start is shortened, and the use experience of related service users is improved; (2) The service record chain in the novel block chain provided by the invention creates an effective channel for single block chain service management, provides a credible arbitration basis for processing service disputes, and further improves the overall deployment efficiency of the block chain service; (3) The invention provides a block chain service management scheme based on a novel block chain, which reduces two sections of block confirmation processes after contract chain and transaction chain in the existing block chain service into one section, and compared with the existing scheme of shortening the block time by a block chain peripheral technology, the block chain service management scheme has more remarkable effect of improving the block chain service deployment efficiency on the premise of ensuring the safety of data and capital property; (4) The invention can effectively alleviate the time consumption bottleneck of the existing block chain service when being used for large-scale application, provides a beneficial design idea for upgrading and reconstructing the block chain structure, and makes beneficial technical preparation for adapting to the high growth situation of distributed application.
Drawings
FIG. 1 is a schematic structural diagram of the present invention.
Fig. 2 is a schematic structural flow diagram of a service record chain in a new blockchain including a root intelligent contract component and an intelligent contract cache component under two mutually independent service applications.
Fig. 3 is a diagram illustrating a comparison of the distribution of the waiting time of the blockchain service before the regular start under the setting conditions that the block time (i.e. the average time interval generated by the adjacent blocks) is 10 seconds and the block verification process requires 2 subsequent blocks in the general blockchain service mode and the blockchain service mode adopting the fast deployment method according to the present invention.
Fig. 4 is a schematic diagram of the waiting time of the blockchain service using the rapid deployment method according to the present invention before the service formally starts changing with the blockchain time under three load conditions of high, medium, and low (i.e. the application frequency of the specific blockchain service, the higher the application frequency, the higher the load) under the setting condition that the block confirmation process requires 2 subsequent blocks.
Fig. 5 is a schematic diagram showing that the waiting time of the blockchain service using the rapid deployment method of the present invention before the service formal start changes with the average application interval of the blockchain service (i.e. the inverse of the frequency of the blockchain service application) under the setting condition that the block time is 10 seconds and the block verification process requires 1, 2, and 3 subsequent blocks, respectively.
Fig. 6 is a schematic diagram of the change of the commodity service rate (i.e. the statistical average ratio of the commodity in service state to all the service commodities provided by the provider) of the blockchain service provider using the rapid deployment method according to the present invention along with the average application interval of the blockchain service under the set conditions that the blockchain service provider has 10 service commodities, the block confirmation process requires 2 subsequent blocks, and the long average application duration of the long, medium, and short service is provided by the blockchain service provider.
Detailed Description
Referring to fig. 1, according to an exemplary embodiment of the present invention, specific parameters of a method for rapid deployment of a blockchain service are as follows: 1 blockchain service provider with 10 service goods (10 service goods numbers are marked as A-J according to alphabetical order), 2 users who are ready to apply for service, the block size is not limited, the block confirmation process requires 2 subsequent blocks and the blockchain service provider requires that the fields filled by the users when applying include: transaction fee, application time length, transaction commodity number and electronic signature.
As shown in fig. 1, the structure of the fast deployment method of the blockchain service includes: the system comprises users, a block chain service provider, a novel block chain adopting a root intelligent contract and an intelligent contract cache component, and a block chain service management scheme based on the novel block chain. Fig. 1 shows only the workflow of a user applying for service from a blockchain service provider in the exemplary embodiment of the invention.
The workflow of an exemplary embodiment of the present invention is as follows:
1) Before the blockchain service provider provides the blockchain service to the user, the service terms of the blockchain service provided by the blockchain service provider are clear, and the coding and price information of 10 transaction commodities are also clear. Meanwhile, determining an application information field which needs to be filled in by a user when the user applies for a service, wherein the application information field comprises the following steps: transaction fee, application duration, transaction commodity number and electronic signature. Then, the block chain service provider fills the information into a newly-built root intelligent contract component, and the block chain service provider uses the electronic signature of the block chain service provider to solidify the component information and issues the component information into a block chain for a user to look up, so that the root intelligent contract component becomes a unique channel for inquiring the block chain service information;
2) Before a user prepares to apply for blockchain service, commodity information and service terms published by a root intelligent contract component corresponding to the service need to be checked in a blockchain. The user freely selects the transaction commodity according to the published information, negotiates with the block chain service provider for the information field to be filled published in the intelligent contract, and fills the serial number and the negotiation information of the selected commodity into a newly-built transaction. In a typical embodiment, a newly-built service application (i.e., transaction) has a transaction commodity number of a and a service duration of 10 minutes, virtual currency with a service fee of 5 units is calculated according to public pricing information in a root intelligent contract, and a user also needs to bind the 5 units of virtual currency in the newly-built transaction as prepayment;
3) The user and the block chain service provider use respective electronic signatures to jointly sign the new transaction, and the new transaction is sent to the root intelligent contract component of the service and broadcasted to the block chain. After the uplink transaction is confirmed by a certain number of subsequent blocks, the root intelligent contract is formally activated, and an intelligent contract cache component with the same information is automatically generated. All information in the uplink transaction will be filled into the intelligent contract cache by the root intelligent contract and 5 units of virtual currency in the transaction will also be transferred into the intelligent contract cache. The intelligent contract cache component does not need to wait for uplink at the moment, but immediately sends an instruction message to the blockchain service provider, controls the blockchain service provider to provide the service stipulated in the intelligent contract cache component for the user, and immediately sends the secret key of the commodity A to the user;
4) After the service is finished, the block chain service provider sends a null transaction to the intelligent contract cache component on the chain to inform the intelligent contract cache component that the service is finished. The intelligent contract buffer component then remits the prepaid 5 units of virtual money of the user into the electronic purse of the blockchain service provider, and generates an intelligent contract buffer component containing the information of all the services at the current time, and transmits the component contract saving after leaving the chain, indicating the formal end of the service at the current time.
As shown in fig. 2, a structural flow of a service record chain in a novel block chain is shown when two users independently apply for services to a block chain service provider, and the method is mainly characterized by comprising three stages: the method comprises a service root intelligent contract activating stage, an intelligent contract cache generating stage and a service completing stage, and comprises the following specific processes:
1) Service root intelligent contract activation phase: the root intelligent contract component of the blockchain service receives service applications sent by the user 1 and the user 2 respectively. The user 1 applies for using the commodity a for 8 minutes and pays 10 units of virtual currency as a prepayment; user 2 applies for use of item B for up to 9 minutes and pays 13 units of virtual currency as a prepaid. The two transactions applying for the service both comprise the common signature of the block chain service provider and the user;
2) Intelligent contract cache generation stage: the root intelligent contract component generates an intelligent contract cache component containing all service information according to the flow shown in the figure 1 and transfers the prepayment in the application transaction into the newly generated intelligent contract cache component. For two applications, the root intelligent contract generates two independent intelligent contract cache components, but the newly generated intelligent contract cache components are connected with the unique root intelligent contract component to represent the same block chain service belonging to one class;
3) And a service completion stage: after the service is finished, the block chain service provider sends null value transaction to the intelligent contract cache components positioned in the block N +2 and the block N +3 respectively to inform the completion of the transaction, at the moment, the two intelligent contract cache components can carry out expense settlement and respectively generate new intelligent contract cache components, wherein the new intelligent contract cache components comprise all current service information, but the contract deposit is completely nulled, and the formal end of the current service is represented.
Through the process, two service record chains are generated, wherein the two service record chains start from a service root intelligent contract component and end at independent intelligent contract caching components. After all services are finished, in the two service record chains, only the intelligent contract cache components positioned in the block N +9 and the block N +8 can be used for acquiring data or activating an arbitration program, and any request for trying to access the data or operation of the preamble components is set to be invalid so as to ensure service fairness, information uniqueness and traceability.
Referring to fig. 3 to 6, in order to disclose the working performance of the present invention in a practical environment, the practical test and data recording of 1000 block lengths were performed on the exemplary embodiment of the present invention, and the analysis results are as follows.
Fig. 3 reflects the distribution comparison of the waiting time of the blockchain service before formal start in the general blockchain service mode and the blockchain service mode adopting the rapid deployment method according to the present invention. It can be seen that under the parameters of the exemplary embodiment, in the general block chain service mode, about 50% of the waiting time of the service request before the start is distributed in the range of 30 seconds to 50 seconds. In the fast deployed blockchain service mode of the present invention, about 50% of the service requests are reduced to the range of 10 seconds to 30 seconds as indicated by the black arrows in the figure, which significantly reduces the waiting time of the blockchain service before starting.
Fig. 4 reflects the relation of the waiting time of the blockchain service using the rapid deployment method of the present invention before the official start of the service, which varies with the blockchain time, under the three service application load conditions of high, medium and low. It can be seen that in all three application load cases, a longer block time results in a larger waiting time before the start of the blockchain service. When the set block time is less than 30 seconds, in the exemplary embodiment of the present invention, the performance of the waiting time before the start of the blockchain service is almost the same under the three load conditions; when the set block time is greater than 30 seconds, the waiting time before the start of the blockchain service under the condition of high application load is obviously longer than the other two conditions. In an exemplary embodiment of the present invention, setting the block time parameter to be less than 30 seconds (setting the block time of less than 30 seconds is implemented in most of the current blockchain systems) should be able to effectively cope with various application load situations, and can effectively control the waiting time of blockchain service before formal start to be a better level of less than about 1 minute.
Fig. 5 reflects the relationship that the waiting time of the blockchain service using the rapid deployment method of the present invention before the service formally starts changes with the average application interval of the blockchain service under the setting condition that 1, 2, and 3 subsequent blocks are respectively required in the block confirmation process. The average block chain service application interval is closely related to the load pressure of a block chain service provider, and the smaller the average service application interval is, the greater the load pressure of the provider is. It can be seen that the waiting time of the blockchain service before the formal start can be considered as a constant for a given number of acknowledgement blocks when the average application interval of the blockchain service is in the range of 30 to 60 seconds. However, each time the number of acknowledgement blocks required increases by one, the waiting time of the blockchain service before formal start will show an increase of about one block time. Under the exemplary embodiment of the present invention, the waiting time of the blockchain service before formal start does not change significantly under the condition that the average service application interval is greater than 30 seconds, and the increment of the normal expected scale is maintained along with the increase of the requirement of the number of confirmed blocks, so that the blockchain service shows better stability.
Fig. 6 reflects the relationship that the commodity service rate of the service provider of the block chain service using the rapid deployment method of the present invention varies with the average application interval of the block chain service under the average application duration of the long, medium, and short services. It can be seen that, when the average service application duration is constant, the commodity service rate of the blockchain service provider decreases as the average service application interval increases. With the increase of the average service application duration, the commodity service rate of the longer average service application duration is significantly higher than that of the shorter average service application duration at the same average service application interval. The shortening of the average service application interval and the increasing of the average service application duration will bring a significant improvement to the commodity service rate of the blockchain service provider, and in the exemplary embodiment of the present invention, more economic revenue will be brought to the blockchain service provider, so as to encourage more distributed applications to adopt the blockchain service mode of the rapid deployment method of the present invention.

Claims (7)

1. A blockchain service architecture, comprising: a user, a blockchain service provider, a new blockchain employing a root intelligent contract and an intelligent contract cache component; the block chain service provider provides the user with the self-defined service, and all service processes are controlled and supervised by a root intelligent contract and an intelligent contract cache component in the novel block chain; the root intelligent contract and the intelligent contract cache component are improved components of the intelligent contract in the classic block chain structure, have the same essential structure as the intelligent contract, are a string of byte codes which can be called, and have simple data and virtual currency storage functions; when the methods of the root intelligent contract and the intelligent contract cache component are invoked by transaction to cause the internal data of the component to change, the root intelligent contract and the intelligent contract cache component both generate a new intelligent contract cache component for tracking and recording new data change; the intelligent contract cache component can automatically carry a string of program byte codes for service problem arbitration when being generated; when any problem occurs in the service process, the party suffering from the loss can apply arbitration to the intelligent contract cache component, the intelligent contract cache component can automatically probe the actual situation, judge the responsibility according to the actual situation and simultaneously make corresponding mediation processing.
2. A blockchain service structure as in claim 1 wherein when a blockchain service provider provides the service to a user, the goods and goods information digitally recorded in the blockchain is used; before a block chain service provider provides the service for a user, different number numbers and keys are respectively preset for all commodities, and when the service is started, the commodity key corresponding to the applied number is provided for the user under the control of the novel block chain.
3. A method for rapid deployment of blockchain services according to claim 1, comprising the steps of:
(1) Before a block chain service provider prepares to provide a block chain service for a user, service terms, transaction commodity codes and price information of the provided block chain service are required to be determined, and an application information field which needs to be supplemented and filled by the user when the user applies for the service is determined; after the information preparation is completed, the block chain service provider needs to fill the information into a new root intelligent contract component, solidify the information by using the electronic signature and issue the information into a block chain for a user to look up;
(2) Before a user prepares to apply for blockchain service, commodity information and service terms published by a root intelligent contract component corresponding to the service need to be checked in a blockchain; the user freely selects transaction commodities according to the published information, and negotiates with a block chain service provider about the written value of the information field to be filled and applied published in the root intelligent contract;
(3) The user fills the applied commodity number and the agreement information into a new transaction, and meanwhile, the user also needs to bind virtual currency with the corresponding quantity of the commodity service price in the new transaction as prepayment;
(4) The user and the block chain service provider sign the transaction by using respective electronic signatures, and the transaction is sent to a root intelligent contract component of the corresponding service and uploaded to a block chain;
(5) After the uplink transaction is confirmed by a certain number of subsequent blocks, the transaction can be determined to be highly credible, and at the moment, the root intelligent contract automatically generates an intelligent contract cache component with the same information as the root intelligent contract cache component; simultaneously, all application information in the uplink transaction is automatically controlled by a root intelligent contract to be filled into the intelligent contract cache component, the field of the application information to be filled is completely filled, and virtual currency in the transaction is transferred into the intelligent contract cache component;
(6) The newly-built intelligent contract cache component immediately sends an instruction message to a block chain service provider without waiting for chaining, the block chain service provider is controlled to provide the service stipulated in the intelligent contract cache component for the user, and the block chain service provider immediately sends a secret key corresponding to the commodity applied for the user;
(7) The user formally starts to receive the service provided by the block chain service provider by using the commodity key;
(8) After the service is finished, the blockchain service provider sends a signed null value transaction to the intelligent contract cache component in the step 5 so as to inform the intelligent contract cache component that the service is finished;
(9) The intelligent contract cache component remits the prepayment of the user into an electronic wallet of a blockchain service provider, and automatically generates an intelligent contract cache component containing information of all services at the current time, and links up the contract deposit of the component after emptying to indicate the formal end of the service at the current time.
4. A method for rapid deployment of blockchain services according to claim 3, wherein in step (1), all application information fields that need to be filled by users when applying for services are stored in the root smart contract component in the form of key-value pairs, and when the blockchain service provider determines the application information fields to be filled, initial values are assigned to some fields, and values of the rest fields are left blank and left to be filled when users apply for blockchain services.
5. A method for rapidly deploying blockchain services according to claim 3, wherein in the step (6), the newly created intelligent contract cache component can immediately instruct the blockchain service provider to start the service without waiting for the uplink, based on that, after the service application is issued, the newly created intelligent contract cache component is fully automatically generated by a root intelligent contract cache component which is trusted on the chain and contains information which is completely consistent with the transaction for the service application on the chain and the information contained by the root intelligent contract component on the chain; under the condition of no external malicious intervention, the newly-built intelligent contract cache component can ensure high credibility of internal data information without waiting for uplink, and therefore, the intelligent contract cache component has the capability of indicating a block chain service provider to start service.
6. A method for rapid deployment of blockchain services according to claim 3, wherein each type of blockchain service has only one unique root smart contract component, and the root smart contract component only allows authoring, maintenance and uplink by blockchain service providers; each service forms a service record chain which starts from a root intelligent contract component and is connected with a plurality of intelligent contract cache components in series; in order to ensure the service fairness, information uniqueness and traceability, a user and a block chain service provider only allow to call an intelligent contract cache component newly generated in a service record chain to obtain current service information; when a problem occurs in the service, the lost party only allows to apply arbitration to the intelligent contract cache component which is newly generated in the service record chain; when a data acquisition request or an arbitration request is sent to a non-latest intelligent contract cache component in a certain service record chain, the request is directly rejected by the intelligent contract cache component.
7. A method for rapid deployment of blockchain services according to claim 3 wherein the user is required to pay a portion of virtual currency additionally as a credit guaranty when paying a pre-payment to the root smart contract component, and the blockchain service provider is also required to pay a portion of the credit guaranty to the root smart contract component of the corresponding service before the service starts; when fraud occurs in the service, the lost party can submit an arbitration application to the latest intelligent contract cache component in the service record chain according to the rule, automatic judgment is carried out through a script preset in the intelligent contract cache component, the credit guarantee paid by the fraudulent party is automatically deducted to show punishment, and meanwhile, the credit guarantee paid by the party without responsibility is refunded.
CN201910414278.6A 2019-05-17 2019-05-17 Block chain service structure and rapid deployment method Active CN110175918B (en)

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 CN110175918A (en) 2019-08-27
CN110175918B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990879B (en) * 2019-11-08 2022-03-18 中国电子科技网络信息安全有限公司 Data evidence storing method based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11182787B2 (en) * 2017-11-07 2021-11-23 Liquidchain Ag System and method for scaling blockchain networks with secure off-chain payment hubs

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN110175918A (en) 2019-08-27

Similar Documents

Publication Publication Date Title
CN110163590A (en) Payment based on block chain withholds method and device, electronic equipment, storage medium
CN108389080A (en) Transaction processing method and platform
CN101655949A (en) Intelligent card charging system and method thereof
JP5264510B2 (en) Method and system for billing an account
CN109741147A (en) Card certificate management method, device, equipment and computer readable storage medium
CN110175908A (en) A kind of value-added tax on imports financing method and device
CN108711056A (en) A kind of retrospective block catenary system and method for centralization
CN109102384A (en) Fee payment method and network system
CN111966538B (en) Block chain data recovery method and device
CN112015822B (en) Block chain data deleting method and device
CN108876359A (en) Stored value card platform based on block chain
CN112767185A (en) Reverse warranty financing method and device based on block chain and storage medium
CN109886676A (en) Method of payment, calculating equipment, storage medium for block chain network
CN106096925A (en) A kind of smart card, the recharge method of a kind of smart card and system
CN110175918B (en) Block chain service structure and rapid deployment method
CN106875189A (en) Instant Withdrawing method and device
CN108428133A (en) A kind of internet supply chain financial credit payment transaction method
CN104137475B (en) Method and apparatus for charging
US11875416B2 (en) Systems and methods for immutable historic records from cloud storage systems
CN112015577A (en) Calling method and device of intelligent contract
CN111062708A (en) Payment gateway capable of configuring payment mode according to needs and implementation method
CN110389752A (en) A kind of financial business logical code implementation method separated with mathematical logic
CN102609835A (en) Recharging method, system and service platform of telecommunication payment card
CN109242476A (en) Virtual bank's card block catenary system and its bank node, method of network payment
CN113962689A (en) Multi-account fusion payment method and device

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