CN108959335B - Consensus method and system based on block chain technology - Google Patents

Consensus method and system based on block chain technology Download PDF

Info

Publication number
CN108959335B
CN108959335B CN201711299391.1A CN201711299391A CN108959335B CN 108959335 B CN108959335 B CN 108959335B CN 201711299391 A CN201711299391 A CN 201711299391A CN 108959335 B CN108959335 B CN 108959335B
Authority
CN
China
Prior art keywords
data
time
communication connection
user identity
certification
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.)
Expired - Fee Related
Application number
CN201711299391.1A
Other languages
Chinese (zh)
Other versions
CN108959335A (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.)
Puhua Yunchuang Technology Beijing Co ltd
Original Assignee
Puhua Yunchuang Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Puhua Yunchuang Technology Beijing Co ltd filed Critical Puhua Yunchuang Technology Beijing Co ltd
Priority to CN201711299391.1A priority Critical patent/CN108959335B/en
Publication of CN108959335A publication Critical patent/CN108959335A/en
Application granted granted Critical
Publication of CN108959335B publication Critical patent/CN108959335B/en
Expired - Fee Related 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0226Incentive systems for frequent usage, e.g. frequent flyer miles programs or point systems

Landscapes

  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a consensus method and a consensus system based on a block chain technology. The consensus method based on the block chain technology comprises the following steps: acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating time data according to the communication connection condition; acquiring the time data, the user identity data and the address data, and generating corresponding working certification data according to the time data, the user identity data and the address data; judging whether the time data meet a preset workload certification rule or not; when the time data meets the workload certification rule, judging that the work certification data is valid; and acquiring effective work certification data, and issuing points according to address data in each effective work certification data. The consensus method based on the block chain technology can get rid of the dependence of the integral acquisition on the hardware performance.

Description

Consensus method and system based on block chain technology
Technical Field
The invention relates to the field of electronic information, in particular to a consensus method and system based on a block chain technology.
Background
A Blockchain (Blockchain) is a distributed database system participated by nodes, and has the characteristics of being unchangeable and being not forged. The blockchain can also be understood as an account book system (hedger), which is an important concept of bitcoin, and can record each transaction of a token (token). With each transaction message, the user can find each address and fully mine the potential value of any one address. A block chain is composed of a string of data blocks generated by cryptography, each block containing the hash value (hash) of the previous block, and is linked to the current block starting from a starting block (genesis block) to form the block chain. Each chunk is guaranteed to be generated after the previous chunk in time order, otherwise the hash value of the previous chunk is unknown.
The function of the bitcoin wallet relies on validation with a blockchain, one validation being referred to as one validation. Typically, several confirmations are obtained for a transaction. A lightweight (SPV) bitcoin wallet whose client only needs to save data locally related to user-disposable transactions, rather than storing a complete blockchain.
In the related art, the acquisition of bitcoin requires confirmation by the working certification. Proof Of Work (POW), as the name implies, is used in a block chain to visually illustrate the operation Of the mining machine. Generally, the mining machine continuously performs hash value collision until the hash value in the correct block is calculated through exhaustive trial, and when the mining machine tries to calculate the correct hash value, the working certificate is confirmed. However, this approach is very demanding in terms of the hardware capabilities of the mining machine, so that the user is required to spend excessive material and time costs to upgrade the performance of the mining machine.
Therefore, there is a need to provide a new consensus method and system based on blockchain technology to solve the above-mentioned technical problems.
Disclosure of Invention
The invention mainly aims to provide a consensus method based on a block chain technology, and aims to solve the technical problem that the integration is acquired by excessively depending on hardware performance in the related technology.
In order to achieve the above object, the consensus method based on the block chain technology provided by the present invention comprises:
acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating time data according to the communication connection condition;
acquiring the time data, the user identity data and the address data, and generating corresponding working certification data according to the time data, the user identity data and the address data;
judging whether the time data meet a preset workload proving rule or not so as to verify the validity of the workload proving data;
when the time data meets the workload certification rule, judging that the work certification data is valid;
and acquiring effective work certification data, and issuing points according to address data in each effective work certification data.
Preferably, the step of acquiring preset user identity data and address data, establishing a communication connection with a block link network according to the user identity data and the address data, and generating time data according to a communication connection status specifically includes:
acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating first time node data;
judging whether the communication connection with the block chain network is kept or not so as to generate second time node data;
generating second time node data when the communication connection with the block chain network is kept, and generating time data according to the second time node data and the first time node data;
and when the communication connection with the block chain network is not kept, the step of acquiring preset user identity data and address data, establishing the communication connection with the block chain network according to the user identity data and the address data, and generating first time node data is carried out.
Preferably, between the step of judging that the working certification data is valid and the step of acquiring valid working certification data and issuing points according to address data in each valid working certification data when the time data meets the workload certification rule, the block chain technology-based consensus method further includes:
and acquiring the total amount of the distributable points and the quantity of the effective working demonstration data, and generating the points for distribution according to the total amount of the distributable points and the quantity of the effective working demonstration data.
Preferably, after the step of acquiring valid work certification data and issuing a credit according to address data in each valid work certification data, the block chain technology-based consensus method further includes:
judging whether the quantity of the effective operation proof data meets a preset modification rule or not;
and when the number of the effective working evidencing data meets a preset modification rule, modifying the working evidencing rule.
Preferably, the consensus method based on the blockchain technique further comprises:
the method comprises the steps of obtaining the number of theoretical clients and total points, and generating the total points which can be issued according to the number of the theoretical clients and the total points.
The invention also provides a consensus system based on the block chain technology, which comprises the following steps:
the system comprises a user module, a time module and a service module, wherein the user module is used for acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating time data according to the communication connection condition; the user module is further used for acquiring the time data, the user identity data and the address data and generating corresponding work certification data according to the time data, the user identity data and the address data;
the judging module is used for judging whether the time data meet a preset workload proving rule or not so as to verify the validity of the workload proving data; when the time data meets the workload certification rule, the judgment module judges that the workload certification data is valid;
and the point issuing module is used for acquiring effective work certification data and issuing points according to address data in each work certification data.
Preferably, the user module comprises:
the communication unit is used for acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating first time node data;
a verification unit configured to determine whether a communication connection is maintained with a blockchain network to generate second time node data;
when the communication connection with the block chain network is kept, the verification unit generates second time node data and generates time data according to the second time node data and the first time node data;
the authentication unit activates the communication unit when a communication connection is not maintained with the blockchain network.
Preferably, the consensus system based on blockchain technique further comprises:
and the point distribution module is used for acquiring the total amount of the distributable points and the quantity of the effective working demonstration data and generating the points for distribution according to the total amount of the distributable points and the quantity of the effective working demonstration data.
Preferably, the consensus system based on blockchain technique further comprises:
the rule modification module is used for judging whether the quantity of the effective operation proof data meets a preset modification rule or not; and when the number of the effective working evidencing data meets a preset modification rule, modifying the working evidencing rule.
Preferably, the consensus system based on blockchain technique further comprises:
and the total point checking module is used for acquiring the number of theoretical clients and the total point, and generating the total point capable of being issued according to the number of the theoretical clients and the total point.
According to the consensus method and the system based on the block chain technology, the time data, the user identity data and the address data are obtained, and corresponding working certification data are generated according to the time data, the user identity data and the address data; judging whether the time data meet a preset workload proving rule or not so as to verify the validity of the workload proving data; when the time data meets the workload certification rule, judging that the work certification data is valid; and acquiring effective work certification data, and issuing points according to address data in each effective work certification data. Compared with the prior art, the method and the device have the advantages that the correct hash value is calculated through exhaustive trial to confirm the validity of the working demonstration data, and the validity of the working demonstration data is confirmed through verifying the time data, so that the excessive dependence on hardware performance to obtain the point is avoided, the operation of a user is facilitated, and the time cost and the material cost for the user to obtain the point are greatly saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a block chain technology-based architecture diagram of a consensus system provided by the present invention;
FIG. 2 is an architecture diagram of the user module shown in FIG. 1;
FIG. 3 is a flowchart illustrating a first embodiment of a consensus method based on blockchain techniques according to the present invention;
FIG. 4 is a flowchart illustrating a consensus method based on blockchain techniques according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a third embodiment of a consensus method based on blockchain techniques according to the present invention;
fig. 6 is a flowchart illustrating a consensus method based on blockchain technology according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "connected," "secured," and the like are to be construed broadly, and for example, "secured" may be a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In addition, the technical solutions in the embodiments of the present invention may be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, in an embodiment of the present invention, a consensus system 1 based on a block chain technique includes a user module 11, a determination module 12, and a score distribution module 13.
The user module 11 is configured to acquire preset user identity data and address data, establish a communication connection with a block link network according to the user identity data and the address data, and generate time data according to a communication connection status;
specifically, the user module 11 may be a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like; the user module 11 may also be a fixed terminal such as a digital TV, a desktop computer, etc.; the user module 11 may also be a jewel magic box type electronic device. The time data may be a time length for which the user module 11 continuously maintains the communication connection with the blockchain network, and the time data may also be a time length for which the user module 11 continuously maintains the communication connection with the blockchain network and an auxiliary counting parameter.
In this embodiment, the user module 11 is a jewel magic box type electronic device. The user module 11 establishes a communication connection with the blockchain network according to the user identity data, the address data and a preset communication protocol, and generates time data according to a connection status.
The user module 11 is further configured to obtain the time data, the user identity data, and the address data, and generate corresponding work certification data according to the time data, the user identity data, and the address data;
in this embodiment, the working certification data at least includes the time data, the user identity data, and the address data. The working certification data may also include checksum data, which is a new string formed by encrypting a series of information. The checksum data is used for verifying the authenticity of the working certification data and preventing the data from being tampered midway.
The judging module 12 is configured to judge whether the time data meets a preset workload certification rule, so as to verify validity of the workload certification data;
in an embodiment, the time data may be a time length for which the user module 11 continuously maintains the communication connection with the blockchain network, and the workload certification rule may be that the time length for which the user module 11 continuously maintains the communication connection with the blockchain network is equal to a preset time length, where the preset time length may be 1 hour.
When the time data meets the workload certification rule, the judging module 12 judges that the workload certification data is valid;
for example, the time data is a time length for the user module 11 to continuously maintain the communication connection with the blockchain network, the time length is 1 hour, and the determination module 12 determines that the working evidence is valid.
The point issuing module 13 is configured to acquire valid job certification data and issue points according to address data in each of the job certification data.
It is understood that, when the time data does not satisfy the workload certification rule, the determination module 12 determines that the workload certification data is invalid;
for example, the time data is a time length for the user module 11 to continuously maintain the communication connection with the blockchain network, the time length is 2 hours, and the judgment template judges that the working evidence is invalid.
For example, the time data is a time length for the user module 11 to continuously maintain the communication connection with the blockchain network, the time length is 0.5 hour, and the judgment template judges that the working evidence is invalid.
The consensus system 1 based on the block chain technology provided by the invention generates corresponding working certification data by acquiring the time data, the user identity data and the address data and according to the time data, the user identity data and the address data; judging whether the time data meet a preset workload proving rule or not so as to verify the validity of the workload proving data; when the time data meets the workload certification rule, judging that the work certification data is valid; and acquiring effective work certification data, and issuing points according to address data in each effective work certification data. Compared with the prior art, the method and the device have the advantages that the correct hash value is calculated through exhaustive trial to confirm the validity of the working demonstration data, and the validity of the working demonstration data is confirmed through verifying the time data, so that the excessive dependence on hardware performance to obtain the point is avoided, the operation of a user is facilitated, and the time cost and the material cost for the user to obtain the point are greatly saved.
Referring to fig. 2, in the present embodiment, the user module 11 includes a communication unit 111 and an authentication unit 112.
The communication unit 111 is configured to acquire preset user identity data and address data, establish a communication connection with a block link network according to the user identity data and the address data, and generate first time node data;
in this embodiment, the first time node data includes first timing data, where the first timing data is used to record the time when the user module 11 establishes the communication connection with the blockchain network, for example, the time when the user module 11 establishes the communication connection with the blockchain network is 9: 00.
In another embodiment, the first time node data includes first timing data and first count data, the first timing data is used for recording the time when the user module 11 establishes the communication connection with the blockchain network, and the first count data is used for recording the number of times when the user module 11 establishes the communication connection with the blockchain network; for example, the first count data records that the time for the user module 11 to establish the communication connection with the blockchain network is 9:00, and the first count data records that the number of times for the user module 11 to establish the communication connection with the blockchain network is 1.
The verification unit 112 is configured to determine whether a communication connection with the blockchain network is maintained, so as to generate second time node data;
in this embodiment, the verifying unit 112 determines whether the communication unit 111 and the blockchain network maintain communication connection within a preset time interval. The preset time interval may be 1 hour, 1 minute, 1 second, for example, the preset time interval is 1 minute.
When the communication connection with the blockchain network is maintained, the verification unit 112 generates second time node data, and generates time data according to the second time node data and the first time node data;
in an embodiment, the second time node data comprises second timing data for recording the time when the user module 11 maintains a communication connection with the blockchain network when verified by the verification unit 112.
Specifically, the verification unit 112 generates second time node data while maintaining a communication connection with the blockchain network;
the verification unit 112 generates time data according to the second time node data and the first time node data.
For example, the first count data is used to record that the time for the user module 11 to establish the communication connection with the blockchain network is 9:00, the second time node data is used to record that the time for the user module 11 to maintain the communication connection with the blockchain network is 10:00, and the time data is the time length for the user module 11 to continuously maintain the communication connection with the blockchain network, and the time length is 1 hour.
In another embodiment, the second time node data includes second timing data and second count data, the second timing data is used for recording the time when the user module 11 maintains the communication connection with the blockchain network when the verification unit 112 verifies, and the second count data is used for recording the number of times that the user module 11 establishes the communication connection with the blockchain network.
For example, the first count data is used to record that the time for the user module 11 to establish the communication connection with the blockchain network is 9:00, the second time node data is used to record that the time for the user module 11 to maintain the communication connection with the blockchain network is 10:00, the time data is the time length for the user module 11 to continuously maintain the communication connection with the blockchain network, the time length is 1 hour, and the second count data records that the number of times for the user module 11 to establish the communication connection with the blockchain network is 2 times.
The authentication unit 112 activates the communication unit 111 when a communication connection is not maintained with the blockchain network.
Specifically, when no communication connection with the blockchain network is maintained, the user module 11 is disconnected from the blockchain network at this time, the verification unit 112 starts the communication unit 111, and the communication unit 111 acquires preset user identity data and address data, establishes a communication connection with the blockchain network according to the user identity data and the address data, and generates first time node data.
In one embodiment, the first count data is used to record the time for the user module 11 to establish a communication connection with the blockchain network as 10: 00.
In another embodiment, the first count data is used to record the time for the user module 11 to establish the communication connection with the blockchain network as 10:00, and the first count data is used to record the number of times for the user module 11 to establish the communication connection with the blockchain network as 1.
Thereby realizing more accurate generation of time data by the consensus system 1 based on the blockchain technique.
Referring again to fig. 1, the consensus system 1 based on blockchain technique further comprises a credit allocation module 14.
The credit allocation module 14 is configured to obtain the total amount of the issuable credits and the number of the valid working declaration data, and generate the credits for issuance according to the total amount of the issuable credits and the number of the valid working declaration data.
Specifically, the total distributable integral may be a predetermined fixed value or a variable value flexibly changing according to actual conditions.
In this embodiment, the point allocating module 14 is configured to obtain a total amount of distributable points, sequentially number valid working certification data, and determine the number of the working certification data according to a result of the numbering;
the point allocating module 14 is further configured to generate a point for issuing according to a preset formula, where the total amount of the distributable point is defined as a, the number of valid working certification data is defined as B, and the point for issuing is defined as C, and the preset formula is C = [ a/B ]
In one embodiment, the credit allocation module 14 may obtain the total amount of issuable credits at any time.
In another embodiment, the point allocating module 14 may also obtain the total amount of the distributable points by the point allocating module 14 when the second count data satisfies a preset condition. The preset condition is that the second count data records that the number of times of establishing communication connection between the user module 11 and the blockchain network is greater than a preset value.
Thus, more accurate point distribution is ensured, and the point used for issuing is ensured to be inversely proportional to the quantity of the effective operation proving data along with the increase of the effective operation proving data.
Referring again to fig. 1, the consensus system 1 based on blockchain technique further comprises a rule modification module 15. The rule modification module 15 is configured to determine whether the number of the valid proof of work data satisfies a preset modification rule;
and when the number of the effective working evidencing data meets a preset modification rule, modifying the working evidencing rule.
In this embodiment, the modification rule is that the number of valid working verification data exceeds a preset threshold N, for example, N = 100. The proof of operation rule may be that the duration of time that the user module 11 maintains the persistent communication connection with the blockchain is equal to a preset duration, for example, the preset duration is 1 hour.
When the number of the effective working evidencing data is 101, the number of the effective working evidencing data meets a preset modification rule, the working evidencing rule is modified, and a preset time length is changed to 2 hours.
Therefore, as the number of the effective work proving data is increased, the work proving rule is changed, and the preset time length is prolonged.
Referring again to fig. 1, the consensus system 1 based on blockchain technique further comprises an integrated total rating module 16.
The total point total amount checking module 16 is configured to obtain a theoretical number of customers and a total point amount, and generate a distributable total point amount according to the theoretical number of customers and the total point amount.
Specifically, the theoretical number of clients may be the number of the user terminals establishing communication connection with the blockchain network, and the total amount of points may be a predetermined determined value, for example, 100 ten thousand points.
In this embodiment, the theoretical number of clients is N1, the total points is M1, and the total points that can be issued is M2.
The total point and total amount checking module 16 is used for acquiring the number of theoretical clients and the total amount of points;
the total point rating module 16 is further configured to generate a total point amount that can be issued according to the theoretical number of customers, the total point amount, and a preset formula, where the preset formula is M2= C × M1/N1, and C1 is a constant-level parameter.
Therefore, the total number of the distributable points is reduced along with the increase of the theoretical number of people.
Referring to fig. 1 again, the block chain technology-based consensus system 1 further includes a wallet module 17, where the wallet module 17 is in communication connection with the user module 11, and the wallet module 17 is configured to obtain the user identity data and generate the address data according to the user identity data. The wallet module 17 is also used to inquire the credit issued by the credit issuing module 13.
Based on the consensus system 1 based on the blockchain technique, the present invention provides various embodiments of the consensus method based on the blockchain technique.
Referring to fig. 3, in a first embodiment of the present invention, a method 100 for consensus on a block chain technique includes:
s10, acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating time data according to the communication connection condition;
specifically, the user module 11 obtains preset user identity data and address data, establishes a communication connection with a block link network according to the user identity data and the address data, and generates time data according to a communication connection status. The user module 11 may be a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc.; the user module 11 may also be a fixed terminal such as a digital TV, a desktop computer, etc.; the user module 11 may also be a jewel magic box type electronic device. The time data may be a time length for which the user module 11 continuously maintains the communication connection with the blockchain network, and the time data may also be a time length for which the user module 11 continuously maintains the communication connection with the blockchain network and an auxiliary counting parameter.
In this embodiment, the user module 11 is a jewel magic box type electronic device. The user module 11 establishes a communication connection with the blockchain network according to the user identity data, the address data and a preset communication protocol, and generates time data according to a connection status.
S20, acquiring the time data, the user identity data and the address data, and generating corresponding work certification data according to the time data, the user identity data and the address data;
in this embodiment, the working certification data at least includes the time data, the user identity data, and the address data. The working certification data may also include checksum data, which is a new string formed by encrypting a series of information. The checksum data is used for verifying the authenticity of the working certification data and preventing the data from being tampered midway.
S30, judging whether the time data meet a preset workload certification rule or not to verify the validity of the workload certification data;
in an embodiment, the time data may be a time length for which the user module 11 continuously maintains the communication connection with the blockchain network, and the workload certification rule may be that the time length for which the user module 11 continuously maintains the communication connection with the blockchain network is equal to a preset time length, where the preset time length may be 1 hour.
S40, when the time data meets the workload certification rule, judging that the work certification data is valid;
for example, the time data is a time length for the user module 11 to continuously maintain the communication connection with the blockchain network, the time length is 1 hour, and the judgment template judges that the working evidence is valid.
And S50, acquiring the valid work certification data, and issuing points according to the address data in each valid work certification data.
It is to be understood that the consensus method 100 based on blockchain technique further comprises:
s41, when the time data does not meet the workload certification rule, judging that the workload certification data is invalid;
for example, the time data is a time length for the user module 11 to continuously maintain the communication connection with the blockchain network, the time length is 2 hours, and the judgment template judges that the working evidence is invalid.
For example, the time data is a time length for the user module 11 to continuously maintain the communication connection with the blockchain network, the time length is 0.5 hour, and the judgment template judges that the working evidence is invalid.
According to the consensus method based on the block chain technology, the time data, the user identity data and the address data are obtained, and corresponding working certification data are generated according to the time data, the user identity data and the address data; judging whether the time data meet a preset workload proving rule or not so as to verify the validity of the workload proving data; when the time data meets the workload certification rule, judging that the work certification data is valid; and acquiring effective work certification data, and issuing points according to address data in each effective work certification data. Compared with the prior art, the method and the device have the advantages that the correct hash value is calculated through exhaustive trial to confirm the validity of the working demonstration data, and the validity of the working demonstration data is confirmed through verifying the time data, so that the excessive dependence on hardware performance to obtain the point is avoided, the operation of a user is facilitated, and the time cost and the material cost for the user to obtain the point are greatly saved.
Referring to fig. 4, based on the consensus method 100 based on the blockchain technique provided in the first embodiment of the present invention, in the second embodiment of the present invention, the steps S20 to S50 of the consensus method 200 based on the blockchain technique are the same as those in the first embodiment, and are not repeated herein; the difference is that step S10 specifically includes:
step S101, obtaining preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating first time node data;
in this embodiment, the first time node data includes first timing data, where the first timing data is used to record the time when the user module 11 establishes the communication connection with the blockchain network, for example, the time when the user module 11 establishes the communication connection with the blockchain network is 9: 00.
In another embodiment, the first time node data includes first timing data and first count data, the first timing data is used for recording the time when the user module 11 establishes the communication connection with the blockchain network, and the first count data is used for recording the number of times when the user module 11 establishes the communication connection with the blockchain network; for example, the first count data is used to record that the time for the user module 11 to establish the communication connection with the blockchain network is 9:00, and the first count data is used to record that the number of times for the user module 11 to establish the communication connection with the blockchain network is 1.
Step S102, judging whether the block chain network keeps communication connection or not to generate second time node data;
in this embodiment, the verifying unit 112 determines whether the communication unit 111 and the blockchain network maintain communication connection within a preset time interval. The preset time interval may be 1 hour, 1 minute, 1 second, for example, the preset time interval is 1 minute.
Step S103, when the communication connection with the block chain network is kept, second time node data is generated, and time data is generated according to the second time node data and the first time node data;
in an embodiment, the second time node data comprises second timing data for recording the time when the user module 11 maintains a communication connection with the blockchain network when verified by the verification unit 112.
Specifically, the verification unit 112 generates second time node data while maintaining a communication connection with the blockchain network;
the verification unit 112 generates time data according to the second time node data and the first time node data.
For example, the first count data is used to record that the time for the user module 11 to establish the communication connection with the blockchain network is 9:00, the second time node data is used to record that the time for the user module 11 to maintain the communication connection with the blockchain network is 10:00, and the time data is the time length for the user module 11 to continuously maintain the communication connection with the blockchain network, and the time length is 1 hour.
In another embodiment, the second time node data includes second timing data and second count data, the second timing data is used for recording the time when the user module 11 maintains the communication connection with the blockchain network when the verification unit 112 verifies, and the second count data is used for recording the number of times that the user module 11 establishes the communication connection with the blockchain network.
For example, the first count data is used to record that the time for the user module 11 to establish the communication connection with the blockchain network is 9:00, the second time node data is used to record that the time for the user module 11 to maintain the communication connection with the blockchain network is 10:00, the time data is the time length for the user module 11 to continuously maintain the communication connection with the blockchain network, the time length is 1 hour, and the second count data records that the number of times for the user module 11 to establish the communication connection with the blockchain network is 2 times.
And when the communication connection with the block chain network is not kept, the step of acquiring preset user identity data and address data, establishing the communication connection with the block chain network according to the user identity data and the address data, and generating first time node data is carried out.
Specifically, when no communication connection with the blockchain network is maintained, the user module 11 is disconnected from the blockchain network at this time, the verification unit 112 starts the communication unit 111, and the communication unit 111 acquires preset user identity data and address data, establishes a communication connection with the blockchain network according to the user identity data and the address data, and generates first time node data.
In one embodiment, the first count data is used to record the time for the user module 11 to establish a communication connection with the blockchain network as 10: 00.
In another embodiment, the first count data is used to record the time for the user module 11 to establish the communication connection with the blockchain network as 10:00, and the first count data is used to record the number of times for the user module 11 to establish the communication connection with the blockchain network as 1.
Thereby achieving more accurate generation of time data based on the consensus method 200 of the blockchain technique.
Referring to fig. 5, based on the consensus method 100 based on the blockchain technique provided in the first embodiment of the present invention, in the third embodiment of the present invention, the steps S10 to S40 are the same as those in the first embodiment, and are not repeated herein; the difference is that between the step S40 and the step S50, the method 300 further includes:
and S51, acquiring the total amount of the distributable points and the number of the effective work demonstration data, and generating the points for distribution according to the total amount of the distributable points and the number of the effective work demonstration data.
Specifically, the total distributable integral may be a predetermined fixed value or a variable value flexibly changing according to actual conditions.
In the embodiment, the total sum of distributable points is obtained, the effective work proving data are sequentially numbered, and the number of the work proving data is determined according to the numbering result;
generating the points for release according to a preset formula, wherein the total amount of the points which can be released is defined as A, the number of effective work evidence data is defined as B, the points for release are defined as C, and the preset formula is C = [ A/B ]
In one embodiment, the credit allocation module 14 may obtain the total amount of issuable credits at any time.
In another embodiment, the point allocating module 14 may also obtain the total amount of the distributable points by the point allocating module 14 when the second count data satisfies a preset condition. The preset condition is that the second count data records that the number of times of establishing communication connection between the user module 11 and the blockchain network is greater than a preset value.
In an embodiment, after the step S50, the method 300 for consensus based on blockchain technique further includes:
s60, judging whether the quantity of the effective work proof data meets a preset modification rule;
s70, when the number of the effective working evidence data meets the preset modification rule, modifying the working evidence rule.
In this embodiment, the modification rule is that the number of valid working verification data exceeds a preset threshold N, for example, N = 100. The proof of operation rule may be that the duration of time that the user module 11 maintains the persistent communication connection with the blockchain is equal to a preset duration, for example, the preset duration is 1 hour.
When the number of the effective working evidencing data is 101, the number of the effective working evidencing data meets a preset modification rule, the working evidencing rule is modified, and a preset time length is changed to 2 hours.
Therefore, as the number of the effective work proving data is increased, the work proving rule is changed, and the preset time length is prolonged.
Referring to fig. 6, based on the consensus method 300 based on the blockchain technique provided in the third embodiment of the present invention, in the fourth embodiment of the present invention, the steps S10 to S40, and the steps S51 to S70 are the same as those in the third embodiment, and are not repeated herein; the difference is that between the step S40 and the step S51, the method 400 further includes:
and S52, acquiring the number of theoretical clients and the total point, and generating the total point capable of being issued according to the number of theoretical clients and the total point.
Specifically, the theoretical number of clients may be the number of the user terminals establishing communication connection with the blockchain network, and the total amount of points may be a predetermined determined value, for example, 100 ten thousand points.
In this embodiment, the theoretical number of clients is N1, the total points is M1, and the total points that can be issued is M2.
The total point and total amount checking module 16 is used for acquiring the number of theoretical clients and the total amount of points;
the total point rating module 16 is further configured to generate a total point amount that can be issued according to the theoretical number of customers, the total point amount, and a preset formula, where the preset formula is M2= C × M1/N1, and C1 is a constant-level parameter.
Therefore, the total number of the distributable points is reduced along with the increase of the theoretical number of people.
The consensus method based on the blockchain technology can further comprise the following steps: and inquiring the points issued according to the address data in the valid work certification data.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A consensus method based on block chain technology, comprising:
acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating time data according to the communication connection condition;
acquiring the time data, the user identity data and the address data, and generating corresponding working certification data according to the time data, the user identity data and the address data;
judging whether the time data meet a preset workload proving rule or not so as to verify the validity of the workload proving data;
when the time data meets the workload certification rule, judging that the work certification data is valid;
acquiring effective work certification data, and issuing points according to address data in each effective work certification data;
the steps of acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating time data according to the communication connection status specifically include:
acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating first time node data;
judging whether the communication connection with the block chain network is kept or not so as to generate second time node data;
generating second time node data when the communication connection with the block chain network is kept, and generating time data according to the second time node data and the first time node data; the time data is the difference value of the second time node data and the first time node data;
and when the communication connection with the block chain network is not kept, the step of acquiring preset user identity data and address data, establishing the communication connection with the block chain network according to the user identity data and the address data, and generating first time node data is carried out.
2. The block chain technology-based consensus method according to claim 1, wherein between the step of determining that the working certification data is valid and the step of obtaining valid working certification data and issuing a score according to address data in each valid working certification data when the time data satisfies the workload certification rule, the block chain technology-based consensus method further comprises:
and acquiring the total amount of the distributable points and the quantity of the effective working demonstration data, and generating the points for distribution according to the total amount of the distributable points and the quantity of the effective working demonstration data.
3. The method of claim 2, wherein after the step of obtaining valid task-related data and issuing credits based on address data in each valid task-related data, the method further comprises:
judging whether the quantity of the effective operation proof data meets a preset modification rule or not;
and when the number of the effective working evidencing data meets a preset modification rule, modifying the working evidencing rule.
4. The method of claim 2, wherein the method further comprises:
the method comprises the steps of obtaining the number of theoretical clients and total points, and generating the total points which can be issued according to the number of the theoretical clients and the total points.
5. A consensus system based on blockchain techniques, comprising:
the system comprises a user module, a time module and a service module, wherein the user module is used for acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating time data according to the communication connection condition; the user module is further used for acquiring the time data, the user identity data and the address data and generating corresponding work certification data according to the time data, the user identity data and the address data;
the judging module is used for judging whether the time data meet a preset workload proving rule or not so as to verify the validity of the workload proving data; when the time data meets the workload certification rule, the judgment module judges that the workload certification data is valid;
the point issuing module is used for acquiring effective work certification data and issuing points according to address data in each work certification data;
the user module includes:
the communication unit is used for acquiring preset user identity data and address data, establishing communication connection with a block link network according to the user identity data and the address data, and generating first time node data;
a verification unit configured to determine whether a communication connection is maintained with a blockchain network to generate second time node data;
when the communication connection with the block chain network is kept, the verification unit generates second time node data and generates time data according to the second time node data and the first time node data; the time data is the difference value of the second time node data and the first time node data;
the authentication unit activates the communication unit when a communication connection is not maintained with the blockchain network.
6. The system of claim 5, wherein the system further comprises:
and the point distribution module is used for acquiring the total amount of the distributable points and the quantity of the effective working demonstration data and generating the points for distribution according to the total amount of the distributable points and the quantity of the effective working demonstration data.
7. The system of claim 6, wherein the system further comprises:
the rule modification module is used for judging whether the quantity of the effective operation proof data meets a preset modification rule or not; and when the number of the effective working evidencing data meets a preset modification rule, modifying the working evidencing rule.
8. The system of claim 6, wherein the system further comprises:
and the total point checking module is used for acquiring the number of theoretical clients and the total point, and generating the total point capable of being issued according to the number of the theoretical clients and the total point.
CN201711299391.1A 2017-12-08 2017-12-08 Consensus method and system based on block chain technology Expired - Fee Related CN108959335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711299391.1A CN108959335B (en) 2017-12-08 2017-12-08 Consensus method and system based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711299391.1A CN108959335B (en) 2017-12-08 2017-12-08 Consensus method and system based on block chain technology

Publications (2)

Publication Number Publication Date
CN108959335A CN108959335A (en) 2018-12-07
CN108959335B true CN108959335B (en) 2021-05-25

Family

ID=64495332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711299391.1A Expired - Fee Related CN108959335B (en) 2017-12-08 2017-12-08 Consensus method and system based on block chain technology

Country Status (1)

Country Link
CN (1) CN108959335B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111768302B (en) * 2019-04-02 2023-10-17 南京大学 Patent securitization transaction support system based on blockchain and transaction method thereof
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
CN112184526A (en) * 2020-09-28 2021-01-05 安徽天煌机械制造有限公司 Intelligent party building system based on cloud platform

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106254339A (en) * 2016-08-01 2016-12-21 北京比特大陆科技有限公司 Dig safety certifying method and the system of mining industry business
CN106774759A (en) * 2016-11-23 2017-05-31 合肥贺博教育科技有限公司 A kind of bit coin digs ore deposit machine electric supply installation
CN106952082A (en) * 2017-03-06 2017-07-14 钱德君 A kind of Quantum Chain common recognition mechanism method proved based on share
CN107230056A (en) * 2017-06-28 2017-10-03 无锡井通网络科技有限公司 A kind of fast transaction system based on block chain contract
CN107294729A (en) * 2017-07-25 2017-10-24 中国联合网络通信集团有限公司 Communication means and device in block chain between different nodes
CN107342980A (en) * 2017-06-05 2017-11-10 杭州云象网络技术有限公司 A kind of trust authentication method and system of publicly-owned chain node proof of work

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956923A (en) * 2016-04-20 2016-09-21 上海如鸽投资有限公司 Asset transaction platform and digital certification and transaction method for assets
CN106254339A (en) * 2016-08-01 2016-12-21 北京比特大陆科技有限公司 Dig safety certifying method and the system of mining industry business
CN106774759A (en) * 2016-11-23 2017-05-31 合肥贺博教育科技有限公司 A kind of bit coin digs ore deposit machine electric supply installation
CN106952082A (en) * 2017-03-06 2017-07-14 钱德君 A kind of Quantum Chain common recognition mechanism method proved based on share
CN107342980A (en) * 2017-06-05 2017-11-10 杭州云象网络技术有限公司 A kind of trust authentication method and system of publicly-owned chain node proof of work
CN107230056A (en) * 2017-06-28 2017-10-03 无锡井通网络科技有限公司 A kind of fast transaction system based on block chain contract
CN107294729A (en) * 2017-07-25 2017-10-24 中国联合网络通信集团有限公司 Communication means and device in block chain between different nodes

Also Published As

Publication number Publication date
CN108959335A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US11451400B2 (en) Blockchain transaction method and apparatus
CN108665359B (en) Block chain processing method, accounting node and verification node
WO2018158936A1 (en) Block chain management device, block chain management method and program
CN109075964B (en) Block chaining supporting multiple one-way functions for block verification
TWI727594B (en) Signature verification method, system, device and equipment in block chain ledger
US20200394651A1 (en) Dynamic off-chain digital currency transaction processing
CN109308211B (en) Method, apparatus and storage medium for processing transaction data in a blockchain
CN108959335B (en) Consensus method and system based on block chain technology
CN111612600B (en) Block chain auction method, equipment, storage medium and block chain system
KR20210009791A (en) Electronic authentication apparatus using block chain and a method thereof
US20080183623A1 (en) Secure Provisioning with Time Synchronization
CN111985007A (en) Contract signing and executing method and device based on block chain
CN113474804A (en) Transaction and account verification method, device and storage medium of digital currency
CN112738253A (en) Data processing method, device and equipment based on block chain and storage medium
JPWO2019038839A1 (en) Blockchain management device, blockchain management method and program
CN110543488A (en) Verification node updating method, device and equipment
CN110601858A (en) Certificate management method and device
CN111047327A (en) Intelligent contract execution method, device and equipment
CN110705985B (en) Method and apparatus for storing information
CN114039733B (en) Certificate storage service transfer method, device and equipment for alliance chains
CN111325586B (en) Bill generation method, device, server and medium based on block chain network
US20230114697A1 (en) Zero-knowledge proof-based virtual cards
US20200213095A1 (en) Method and device for the computer aided processing of a random bit pattern
CN112449706A (en) Control method, fund management system, program, and data structure
CN113765674B (en) Cross-platform registration method and device based on blockchain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190719

Address after: Room 202, 2nd floor, F1 Building, Yuanjun Shuyuan International Media Industry Park, No. 8 Gaojing Cultural Park Road, Chaoyang District, Beijing

Applicant after: Puhua Yunchuang Technology (Beijing) Co.,Ltd.

Address before: 100036 No. 141, Gate 1, 3rd Floor, No. 14 Fuxing Road, Haidian District, Beijing

Applicant before: Zhai Hongying

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210525

Termination date: 20211208

CF01 Termination of patent right due to non-payment of annual fee