CN108959335A - Integral acquisition methods and system based on block chain technology - Google Patents

Integral acquisition methods and system based on block chain technology Download PDF

Info

Publication number
CN108959335A
CN108959335A CN201711299391.1A CN201711299391A CN108959335A CN 108959335 A CN108959335 A CN 108959335A CN 201711299391 A CN201711299391 A CN 201711299391A CN 108959335 A CN108959335 A CN 108959335A
Authority
CN
China
Prior art keywords
data
integral
block chain
work
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711299391.1A
Other languages
Chinese (zh)
Other versions
CN108959335B (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
Individual
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 Individual filed Critical Individual
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

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 present invention discloses a kind of integral acquisition methods and system based on block chain technology.The integral acquisition methods based on block chain technology include: to obtain preset user ID data and address date, the communication connection with block chain network is established according to the user ID data and the address date, and time data are generated according to the situation of communication connection;The time data, the user ID data and the address date are obtained, and generate corresponding work according to the time data, the user ID data and the address date to prove data;Judge whether the time data meet preset proof of work rule;When the time data meet the proof of work rule, judge that the work proves that data are effective;Obtaining effective work proves data, and proves that the address date in data issues integral according to each effective work.Integral acquisition methods provided by the invention based on block chain technology can get rid of dependence of the integral acquisition to hardware performance.

Description

Integral acquisition methods and system based on block chain technology
Technical field
The present invention relates to electronic information fields, and in particular to a kind of integral acquisition methods based on block chain technology and is System.
Background technique
Block chain (Blockchain) be by node participate in distributed data base system, have can not change, can not The characteristics of forgery.Block chain can also be interpreted as account book system (ledger) with it, it is a key concept of bit coin, energy Enough have recorded each transaction of token (token).By each transaction information, user can find each address, and Sufficiently excavate the potential value of any one address.Block chain be by a string using cryptography methods generate data chunk at , each block contains the cryptographic Hash (hash) of a block, connects since original block (genesis block) It is connected to current block, forms block chain.Each block all ensures that and generates after a upper block sequentially in time, otherwise before The cryptographic Hash of one block is unknown.
The function of bit coin wallet is known as primary confirmation dependent on the confirmation with block chain, primary effectively examine.Usual one Secondary transaction will obtain several confirmations and just can be carried out.Lightweight (SPV) bit coin wallet, client it is local need to only save with User can dominate the relevant data of transaction, without storing complete block chain.
In the related technology, the acquisition of bit coin needs the confirmation proved by work.Work proof (Proof Of Work, Abbreviation POW), as its name suggests, i.e. the proof of workload illustrates the situation of mine machine operation for image in block chain.In general, Mine machine ceaselessly carries out cryptographic Hash collision, until exhaustive tentative calculation goes out the cryptographic Hash in correct block, when mine machine tentative calculation is correct out Cryptographic Hash when, work prove be confirmed.However, requirement of this kind of mode for mine machine hardware performance is high, so that user The material cost of overspending and time cost is needed to go to promote the performance of mine machine.
Therefore, it is necessary to provide a kind of new integral acquisition methods and the above-mentioned technology of system solution based on block chain technology Problem.
Summary of the invention
The main object of the present invention is to provide a kind of integral acquisition methods based on block chain technology, it is intended to solve related skill The technical issues of hardware performance obtains integral is excessively relied in art.
To achieve the above object, the integral acquisition methods proposed by the present invention based on block chain technology include:
Obtain preset user ID data and address date, according to the user ID data and the address date establish with The communication connection of block chain network, and time data are generated according to the situation of communication connection;
The time data, the user ID data and the address date are obtained, and according to the time data, the use Family identity data and the address date, which generate corresponding work, proves data;
Judge whether the time data meet preset proof of work rule, proves the effective of data to verify the work Property;
When the time data meet the proof of work rule, judge that the work proves that data are effective;
Obtaining effective work proves data, and proves that the address date in data issues integral according to each effective work.
Preferably, described to obtain preset user ID data and address date, according to the user ID data and institute The communication connection of address date foundation and block chain network, and the step of time data are generated according to the situation of communication connection are stated, It specifically includes:
Obtain preset user ID data and address date, according to the user ID data and the address date establish with The communication connection of block chain network, and generate first time node data;
Whether judgement keeps communicating to connect with block chain network, to generate the second timing node data;
When keeping communicating to connect with block chain network, the second timing node data are generated, and according to second timing node Data and the first time node data generate time data;
When not keeping communication connection with block chain network, preset user ID data and number of addresses are obtained into described According to establishing the communication connection with block chain network according to the user ID data and address date, and generate and save at the first time The step of point data.
Preferably, described when the time data meet the proof of work rule, judge that the work proves number Data are proved according to effective step and the effective work of the acquisition, and prove the ground in data according to each effective work Between the step of location data publication integrates, the integral acquisition methods based on block chain technology further include:
Integral total value and effective work can be issued by, which obtaining, proves the quantity of data, and integral total value and described can be issued according to described in Effective work proves that the quantity of data generates the integral for publication.
Preferably, data are proved in the effective work of the acquisition, and is proved in data according to each effective work Address date issue integral the step of after, the integral acquisition methods based on block chain technology further include:
Judge that the effective work proves whether the quantity of data meets preset alteration ruler;
When the quantity of the effective work proof data meets preset alteration ruler, the work proof rule is modified.
Preferably, the integral acquisition methods based on block chain technology further include:
Theoretical client's number and integral total value are obtained, and can be issued according to theoretical client's number and integral total value generation Integral total value.
The present invention also provides a kind of, and the integral acquisition system based on block chain technology includes:
Line module, the line module is for obtaining preset user ID data and address date, according to user's body Part data and the address date establish the communication connection with block chain network, and generate time number according to the situation of communication connection According to;The line module is also used to obtain the time data, the user ID data and the address date, and according to institute It states time data, the user ID data and the address date and generates corresponding work proof data;
Discrimination module, the discrimination module are used to judge whether the time data to meet preset proof of work rule, with Verifying the work proves the validity of data;When the time data meet the proof of work rule, the differentiation Module judges that the work proves that data are effective;
Release module is integrated, the integral release module proves data for obtaining effective work, and according to each work Prove that the address date in data issues integral.
Preferably, the line module includes:
Communication unit, the communication unit is for obtaining preset user ID data and address date, according to user's body Part data and the address date establish the communication connection with block chain network, and generate first time node data;
Authentication unit, the authentication unit is for judging whether keep communicating to connect with block chain network, to generate for the second time Node data;
When keeping communicating to connect with block chain network, the authentication unit generates the second timing node data, and according to described Second timing node data and the first time node data generate time data;
When not keeping communication connection with block chain network, the authentication unit starts the communication unit.
Preferably, the integral based on block chain technology obtains system further include:
Integral distribution module, the integral distribution module, which is used to obtain to issue integral total value and effectively work, proves data Quantity, integral total value and the effective work can be issued according to described in proves that the quantity of data generates the integral for publication.
Preferably, the integral based on block chain technology obtains system further include:
Rules modification module, the rules modification module are used to judge that the effective work to prove whether the quantity of data meets Preset alteration ruler;When the quantity of the effective work proof data meets preset alteration ruler, the work is modified It testifies rule.
Preferably, the integral based on block chain technology obtains system further include:
Integral total value appraises and decides module, and the integral total value appraises and decides module for obtaining theoretical client's number and integral total value, and root The integral total value that can be issued is generated according to theoretical client's number and the integral total value.
Integral acquisition methods and system provided by the invention based on block chain technology, by obtain the time data, The user ID data and the address date, and according to the time data, the user ID data and the address Data, which generate corresponding work, proves data;Judge whether the time data meet preset proof of work rule, to test Demonstrate,proving the work proves the validity of data;When the time data meet the proof of work rule, the work is judged Data of testifying are effective;Obtaining effective work proves data, and the address date in data is proved according to each effective work Publication integral.With in the related technology, correct cryptographic Hash is gone out by exhaustive tentative calculation, to confirm that work proves the validity of data not Together, the present invention confirms that work proves the validity of data by verification time data, to avoid excessively relying on hardware performance To obtain integral, it is not only convenient for user's operation, and very big saved user and obtain time cost and substance that integral is spent Cost.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the architecture diagram of the integral acquisition system provided by the invention based on block chain technology;
Fig. 2 is the architecture diagram of line module shown in FIG. 1;
Fig. 3 is the work flow diagram of the first embodiment of the integral acquisition methods provided by the invention based on block chain technology;
Fig. 4 is the work flow diagram of the second embodiment of the integral acquisition methods provided by the invention based on block chain technology;
Fig. 5 is the work flow diagram of the 3rd embodiment of the integral acquisition methods provided by the invention based on block chain technology;
Fig. 6 is the work flow diagram of the fourth embodiment of the integral acquisition methods provided by the invention based on block chain technology.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its His embodiment, shall fall within the protection scope of the present invention.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present invention In explaining in relative positional relationship, the motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if should When particular pose changes, then directionality instruction also correspondingly changes correspondingly.
In addition, the description for being such as related to " first ", " second " in the present invention is used for description purposes only, and should not be understood as Its relative importance of indication or suggestion or the quantity for implicitly indicating indicated technical characteristic.Define as a result, " first ", The feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present invention, " multiple " contain Justice is at least two, such as two, three etc., unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " connection ", " fixation " etc. shall be understood in a broad sense, For example, " fixation " may be a fixed connection, it may be a detachable connection, or integral;It can be mechanical connection, be also possible to Electrical connection;It can be directly connected, the connection inside two elements or two can also be can be indirectly connected through an intermediary The interaction relationship of a element, unless otherwise restricted clearly.It for the ordinary skill in the art, can basis Concrete condition understands the concrete meaning of above-mentioned term in the present invention.
It in addition, the technical solution between each embodiment of the present invention can be combined with each other, but must be general with this field Based on logical technical staff can be realized, it will be understood that when the combination of technical solution appearance is conflicting or cannot achieve this The combination of technical solution is not present, also not the present invention claims protection scope within.
Fig. 1 is please referred to, in one embodiment of this invention, it includes user that the integral based on block chain technology, which obtains system 1, Module 11, discrimination module 12 and integral release module 13.
The line module 11 is for obtaining preset user ID data and address date, according to the user identity number According to and the address date establish with the communication connection of block chain network, and time data are generated according to the situation of communication connection;
Specifically, the line module 11 can for mobile phone, smart phone, laptop, digit broadcasting receiver, PDA(personal digital assistant), PAD(tablet computer), PMP(portable media player), the mobile terminals such as navigation device;With The fixed terminals such as family module 11 or number TV, desktop computer;The line module 11 can also be jewel evil spirit Box type electronic equipment.The time data can persistently keep communicating to connect for the line module 11 with the block chain network Time span, the time data may be that the line module 11 persistently keeps communicating to connect with the block chain network Time span and auxiliary count parameter.
In the present embodiment, the line module 11 is jewel evil spirit box type electronic equipment.The line module 11 is according to described User ID data, the address date and preset communication protocol are established and the communication connection of block chain network, and according to The situation of connection generates time data.
The line module 11 is also used to obtain the time data, the user ID data and the address date, And corresponding work proof data are generated according to the time data, the user ID data and the address date;
In the present embodiment, the work proves that data include at least the time data, the user ID data and described Location data.The work proof data can also include verification and data, and the verification and data be after range of information encrypts The new string formed.The verification and data, which are used to verify the work, proves the authenticity of data, prevents data from being distorted halfway.
The discrimination module 12 is for judging whether the time data meet preset proof of work rule, with verifying The work proves the validity of data;
In one embodiment, the time data can persistently keep communicating for the line module 11 with the block chain network The time span of connection, the proof of work rule can persistently keep for the line module 11 with the block chain network The length of the time of communication connection is equal to preset time span, wherein the preset time span can be 1 hour.
When the time data meet the proof of work rule, the discrimination module 12 judges that the work proves Data are effective;
For example, the time data are that the line module 11 persistently keeps the time communicated to connect long with the block chain network Degree, the time span are 1 hour, and the discrimination module 12 judges that the work evidence is effective.
The integral release module 13 proves data for obtaining effective work, and proves data according to each work In address date issue integral.
It is appreciated that the discrimination module 12 judges when the time data are unsatisfactory for the proof of work rule The work proves data invalid;
For example, the time data are that the line module 11 persistently keeps the time communicated to connect long with the block chain network Degree, the time span are 2 hours, and the differentiation template judges that the work evidence is invalid.
For example, the time data be the line module 11 with the block chain network persistently keep communication connection when Between length, the time span be 0.5 hour, the differentiation template judges that the work evidence is invalid.
Integral provided by the invention based on block chain technology obtains system 1, by obtaining the time data, the use Family identity data and the address date, and it is raw according to the time data, the user ID data and the address date Data are proved at corresponding work;Judge whether the time data meet preset proof of work rule, described in verifying Work proves the validity of data;When the time data meet the proof of work rule, judge that the work proves Data are effective;Obtaining effective work proves data, and proves that the address date in data issues product according to each effective work Point.With in the related technology, correct cryptographic Hash is gone out by exhaustive tentative calculation, to confirm that work proves that the validity of data is different, this Invention confirms that work proves the validity of data by verification time data, to avoid excessively relying on hardware performance to obtain Integral, is not only convenient for user's operation, and very big saved user and obtain time cost and material cost that integral is spent.
Referring to Fig. 2, the line module 11 includes communication unit 111 and authentication unit 112 in the present embodiment.
The communication unit 111 is for obtaining preset user ID data and address date, according to the user identity Data and the address date establish the communication connection with block chain network, and generate first time node data;
In the present embodiment, first time node data includes the first chronometric data, and first chronometric data is described for recording Line module 11 and block chain network establish the time of communication connection, for example, first chronometric data is for recording the use The time that family module 11 and block chain network establish communication connection is 9:00.
In another embodiment, the first time node data includes the first chronometric data and the first enumeration data, institute It states the first chronometric data to establish the time communicated to connect for recording the line module 11 with block chain network, first meter Number data are used to record the number that the line module 11 establishes communication connection with block chain network;For example, described first counts The time that line module 11 described in data record and block chain network establish communication connection is 9:00, the first enumeration data note Recording the number that the line module 11 establishes communication connection with block chain network is 1 time.
The authentication unit 112 is for judging whether keep communicating to connect with block chain network, segmentum intercalaris when generating second Point data;
In the present embodiment, the authentication unit 112 judges the communication unit 111 and block link network in preset time interval Whether network, which keeps, communicates to connect.The preset time interval can be 1 hour, 1 minute, 1 second, for example, described preset Time interval is 1 minute.
When keeping communicating to connect with block chain network, the authentication unit 112 generates the second timing node data, and root Time data are generated according to the second timing node data and the first time node data;
In one embodiment, the second timing node data include the second chronometric data, and second chronometric data is worked as recording When the authentication unit 112 is verified, the line module 11 keeps the time of communication connection with block chain network.
Specifically, the authentication unit 112 generates the second timing node number when keeping communicating to connect with block chain network According to;The authentication unit 112 generates time data according to the second timing node data and the first time node data.
For example, first enumeration data, which is used to record the line module 11, establishes communication connection with block chain network Time is 9:00, and the second timing node data keep communicating to connect for recording the line module 11 with block chain network Time be 10:00, the time data are that the line module 11 persistently keeps communicating to connect with the block chain network Time span, the time span are 1 hour.
In another embodiment, the second timing node data include the second chronometric data and the second enumeration data, institute State the second chronometric data for record when the authentication unit 112 verifying, the line module 11 and the holding of block chain network The time of communication connection, second enumeration data establish communication connection with block chain network for recording the line module 11 Number.
For example, first enumeration data, which is used to record the line module 11, establishes communication connection with block chain network Time is 9:00, and the second timing node data keep communicating to connect for recording the line module 11 with block chain network Time be 10:00, the time data are that the line module 11 persistently keeps communicating to connect with the block chain network Time span, the time span are 1 hour, and second enumeration data records the line module 11 and builds with block chain network The number of vertical communication connection is 2 times.
When not keeping communication connection with block chain network, the authentication unit 112 starts the communication unit 111.
Specifically, line module 11 and block chain network are disconnected at this time when not keeping communication connection with block chain network Connection is opened, the authentication unit 112 starts the communication unit 111, and the communication unit 111 obtains preset user identity number According to and address date, the communication connection with block chain network is established according to the user ID data and the address date, and Generate first time node data.
In one embodiment, first enumeration data is built for recording the line module 11 again with block chain network The time of vertical communication connection is 10:00.
In another embodiment, first enumeration data for recording the line module 11 and block chain network again The time for establishing communication connection is 10:00, and first enumeration data for recording the line module 11 and block chain again The number that network establishes communication connection is 1 time.
Time data are more accurately generated to realize that the integral based on block chain technology obtains system 1.
Referring to Fig. 1, it further includes integral distribution module 14 that the integral based on block chain technology, which obtains system 1,.
The integral distribution module 14, which is used to obtain to issue integral total value and effectively work, proves the quantity of data, according to Prove that the quantity of data generates the integral for publication according to the integral total value and the effective work issued.
Specifically, the integral total value of issuing can be preset determining value, it is also possible to flexible according to actual conditions The changing value of change.
In the present embodiment, the integral distribution module 14 can issue integral total value for obtaining, and give effective employee's card Bright data number consecutively determines that the work proves the quantity of data according to the result of number;
The integral distribution module 14 is also used to generate the integral for publication according to preset formula, wherein can described in definition The integral total value of publication is A, and effective work proves that the quantity of data is B, and the integral for publication is C, the preset public affairs Formula is C=[A/B]
In one embodiment, the integral distribution module 14 can obtain at any time can issue integral total value.
In another embodiment, the integral distribution module 14 can also meet preset condition in second enumeration data When, the acquisition of integral distribution module 14 can issue integral total value.Wherein, the preset condition is second enumeration data It records the number that the line module 11 establishes communication connection with block chain network and is greater than preset numerical value.
To guarantee more accurate distribution integral, guarantee to prove increasing for data with effectively working, for publication Integral proves that the quantity of data is inversely proportional with effectively working.
Referring to Fig. 1, it further includes rules modification module 15 that the integral based on block chain technology, which obtains system 1,. The rules modification module 15 is used to judge that the effective work to prove whether the quantity of data meets preset alteration ruler;
When the quantity of the effective work proof data meets preset alteration ruler, the work proof rule is modified.
In the present embodiment, the alteration ruler is that the effective work proves that the quantity of data is more than preset threshold values N, For example, N=100.The bright proof rule of employee's card can keep Continued communication to connect for the line module 11 with the block chain The time span connect is equal to preset time span, for example, the preset time span is 1 hour.
When the effective work proves that the quantity of data is 101, the effective work proves that the quantity of data is full The preset alteration ruler of foot, modifies the work proof rule, preset time span is changed to 2 hours.
To realize as the effective work proves that the quantity of data increases, changes the bright proof rule of employee's card, prolong Long preset time span.
Referring to Fig. 1, it further includes that integral total value appraises and decides module that the integral based on block chain technology, which obtains system 1, 16。
The integral total value appraises and decides module 16 for obtaining theoretical client's number and integral total value, and according to the theoretical visitor Family number and the integral total value generate the integral total value that can be issued.
Specifically, the theory client number can be the user terminal with the foundation communication connection of block chain network Quantity, the integral total value can be preset determining numerical value, for example, 1,000,000 integrals.
In the present embodiment, defining theoretical client's number is N1, and the integral total value is M1, the integral total value that can be issued For M2.
The integral total value appraises and decides module 16 for obtaining theoretical client's number and integral total value;
The integral total value is appraised and decided module 16 and is also used to according to theoretical client's number, the integral total value and preset formula Generate the integral total value that can be issued, wherein the preset formula is M2=C*M1/N1, and C1 is Constant Grade parameter.
To realize increasing with theoretical number, integral total value can be issued and reduced therewith.
Referring to Fig. 1, it further includes wallet module 17 that the integral based on block chain technology, which obtains system 1, described Wallet module 17 and the line module 11 communicate to connect, and the wallet module 17 is used to obtain the user ID data, and The address date is generated according to user ID data.The wallet module 17 is also used to inquire the integral release module 13 and sends out The integral of cloth.
System 1 is obtained based on the above-mentioned integral based on block chain technology, the present invention provides the integral based on block chain technology Each embodiment of acquisition methods.
Referring to Fig. 3, in the first embodiment of the present invention, the integral acquisition methods 100 based on block chain technology include:
S10 obtains preset user ID data and address date, is built according to the user ID data and the address date The vertical communication connection with block chain network, and time data are generated according to the situation of communication connection;
Specifically, the line module 11 obtains preset user ID data and address date, according to the user identity number According to and the address date establish with the communication connection of block chain network, and time data are generated according to the situation of communication connection. The line module 11 can be mobile phone, smart phone, laptop, digit broadcasting receiver, PDA(individual digital Assistant), PAD(tablet computer), PMP(portable media player), the mobile terminals such as navigation device;Line module 11 can also Think the fixed terminals such as number TV, desktop computer;The line module 11 can also be jewel evil spirit box type electronic equipment. The time data can persistently keep the time span of communication connection, institute for the line module 11 with the block chain network State time data may be the line module 11 with the block chain network persistently keep communication connection time span and The count parameter of auxiliary.
In the present embodiment, the line module 11 is jewel evil spirit box type electronic equipment.The line module 11 is according to described User ID data, the address date and preset communication protocol are established and the communication connection of block chain network, and according to The situation of connection generates time data.
S20 obtains the time data, the user ID data and the address date, and according to the time number Generating corresponding work according to, the user ID data and the address date proves data;In the present embodiment, the employee's card Bright data include at least the time data, the user ID data and the address date.The work proves data also It may include verification and data, the verification and data are the new strings formed after range of information encrypts.The verification and data The authenticity of data is proved for verifying the work, prevents data from being distorted halfway.
S30, judges whether the time data meet preset proof of work rule, proves number to verify the work According to validity;In one embodiment, the time data can continue for the line module 11 with the block chain network The time span of communication connection is kept, the proof of work rule can be the line module 11 and the block chain network The length of the lasting time for keeping communication connection is equal to preset time span, wherein the preset time span can be 1 Hour.
S40 judges that the work proves that data are effective when the time data meet the proof of work rule; For example, the time data are the time span that the line module 11 persistently keeps communication connection with the block chain network, The time span is 1 hour, and the differentiation template judges that the work evidence is effective.
S50, obtaining effective work proves data, and the address date publication in data is proved according to each effective work Integral.
It is appreciated that the integral acquisition methods 100 based on block chain technology further include: S41, when the time data are discontented When the foot proof of work rule, judge that the work proves data invalid;For example, the time data are user's mould Block 11 and the block chain network persistently keep the time span of communication connection, and the time span is 2 hours, the differentiation mould Plate judges that the work evidence is invalid.
For example, the time data be the line module 11 with the block chain network persistently keep communication connection when Between length, the time span be 0.5 hour, the differentiation template judges that the work evidence is invalid.
Integral acquisition methods provided by the invention based on block chain technology, by obtaining the time data, the use Family identity data and the address date, and it is raw according to the time data, the user ID data and the address date Data are proved at corresponding work;Judge whether the time data meet preset proof of work rule, described in verifying Work proves the validity of data;When the time data meet the proof of work rule, judge that the work proves Data are effective;Obtaining effective work proves data, and proves that the address date in data issues product according to each effective work Point.With in the related technology, correct cryptographic Hash is gone out by exhaustive tentative calculation, to confirm that work proves that the validity of data is different, this Invention confirms that work proves the validity of data by verification time data, to avoid excessively relying on hardware performance to obtain Integral, is not only convenient for user's operation, and very big saved user and obtain time cost and material cost that integral is spent.
Referring to Fig. 4, based on the integral acquisition methods 100 based on block chain technology that first embodiment of the invention provides, In the second embodiment of the present invention, the step S20 ~ S50 and first of the integral acquisition methods 200 based on block chain technology Embodiment is identical, and this is no longer going to repeat them;The difference is that the step S10 is specifically included: step S101 is obtained Preset user ID data and address date are established and block link network according to the user ID data and the address date The communication connection of network, and generate first time node data;In the present embodiment, first time node data includes the first timing number According to, first chronometric data is used to record the time that the line module 11 establishes communication connection with block chain network, for example, First chronometric data is used to record the line module 11 and establishes the time of communication connection with block chain network as 9:00.
In another embodiment, the first time node data includes the first chronometric data and the first enumeration data, institute It states the first chronometric data to establish the time communicated to connect for recording the line module 11 with block chain network, first meter Number data are used to record the number that the line module 11 establishes communication connection with block chain network;For example, described first counts It is 9:00, first count number that data, which are used to record the line module 11 and the time of block chain network foundation communication connection, It is 1 time according to the number for establishing communication connection for recording the line module 11 and block chain network.
Step S102, whether judgement keeps communicating to connect with block chain network, to generate the second timing node data;This reality It applies in example, the authentication unit 112 judges whether the communication unit 111 is protected with block chain network in preset time interval Hold communication connection.The preset time interval can be 1 hour, 1 minute, 1 second, for example, the preset time interval It is 1 minute.
Step S103 generates the second timing node data, and according to described when keeping communicating to connect with block chain network Second timing node data and the first time node data generate time data;In one embodiment, the second timing node Data include the second chronometric data, and second chronometric data is for recording when the authentication unit 112 verifying, the user Module 11 and block chain network are kept for the time of communication connection.
Specifically, the authentication unit 112 generates the second timing node number when keeping communicating to connect with block chain network According to;The authentication unit 112 generates time data according to the second timing node data and the first time node data.
For example, first enumeration data, which is used to record the line module 11, establishes communication connection with block chain network Time is 9:00, and the second timing node data keep communicating to connect for recording the line module 11 with block chain network Time be 10:00, the time data are that the line module 11 persistently keeps communicating to connect with the block chain network Time span, the time span are 1 hour.
In another embodiment, the second timing node data include the second chronometric data and the second enumeration data, institute State the second chronometric data for record when the authentication unit 112 verifying, the line module 11 and the holding of block chain network The time of communication connection, second enumeration data establish communication connection with block chain network for recording the line module 11 Number.
For example, first enumeration data, which is used to record the line module 11, establishes communication connection with block chain network Time is 9:00, and the second timing node data keep communicating to connect for recording the line module 11 with block chain network Time be 10:00, the time data are that the line module 11 persistently keeps communicating to connect with the block chain network Time span, the time span are 1 hour, and second enumeration data records the line module 11 and builds with block chain network The number of vertical communication connection is 2 times.
When not keeping communication connection with block chain network, preset user ID data and address are obtained into described Data are established the communication connection with block chain network according to the user ID data and address date, and are generated at the first time The step of node data.
Specifically, line module 11 and block chain network are disconnected at this time when not keeping communication connection with block chain network Connection is opened, the authentication unit 112 starts the communication unit 111, and the communication unit 111 obtains preset user identity number According to and address date, the communication connection with block chain network is established according to the user ID data and the address date, and Generate first time node data.
In one embodiment, first enumeration data is built for recording the line module 11 again with block chain network The time of vertical communication connection is 10:00.
In another embodiment, first enumeration data for recording the line module 11 and block chain network again The time for establishing communication connection is 10:00, and first enumeration data for recording the line module 11 and block chain again The number that network establishes communication connection is 1 time.
To realize that the integral acquisition methods 200 based on block chain technology more accurately generate time data.
Referring to Fig. 5, based on the integral acquisition methods 100 based on block chain technology that first embodiment of the invention provides, In the third embodiment of the present invention, the step S10 ~ S40 is identical with the first embodiment, and this is no longer going to repeat them;It is not It is with place, between the step S40 and the step S50, the integral acquisition methods 300 based on block chain technology are also It include: S51, integral total value and effective work can be issued by, which obtaining, proves the quantity of data, can issue integral total value according to described in And the effective work proves that the quantity of data generates the integral for publication.
Specifically, the integral total value of issuing can be preset determining value, it is also possible to flexible according to actual conditions The changing value of change.
In the present embodiment, acquisition can issue integral total value, and prove data number consecutively to effective work, according to number Result determine that the work proves the quantity of data;The integral for publication is generated according to preset formula, wherein defines institute The integral total value that stating can issue is A, and effective work proves that the quantity of data is B, and the integral for publication is C, described default Formula be C=[A/B] in one embodiment, the integral distribution module 14 can obtain at any time can issue integral total value.
In another embodiment, the integral distribution module 14 can also meet preset condition in second enumeration data When, the acquisition of integral distribution module 14 can issue integral total value.Wherein, the preset condition is second enumeration data It records the number that the line module 11 establishes communication connection with block chain network and is greater than preset numerical value.
In one embodiment, after the step S50, the integral acquisition methods 300 based on block chain technology are also Include: S60, judges that the effective work proves whether the quantity of data meets preset alteration ruler;S70 has when described When the work of effect proves that the quantity of data meets preset alteration ruler, the work proof rule is modified.
In the present embodiment, the alteration ruler is that the effective work proves that the quantity of data is more than preset threshold values N, For example, N=100.The bright proof rule of employee's card can keep Continued communication to connect for the line module 11 with the block chain The time span connect is equal to preset time span, for example, the preset time span is 1 hour.
When the effective work proves that the quantity of data is 101, the effective work proves that the quantity of data is full The preset alteration ruler of foot, modifies the work proof rule, preset time span is changed to 2 hours.
To realize as the effective work proves that the quantity of data increases, changes the bright proof rule of employee's card, prolong Long preset time span.
Referring to Fig. 6, based on the integral acquisition methods 300 based on block chain technology that third embodiment of the invention provides, In the fourth embodiment of the present invention, the step S10 ~ S40 and the step S51 ~ S70 are identical as 3rd embodiment, This is no longer repeated one by one;The difference is that between the step S40 and the step S51, it is described to be based on block chain skill The integral acquisition methods 400 of art further include: S52 obtains theoretical client's number and integral total value, and according to the theoretical client The several and described integral total value generates the integral total value that can be issued.
Specifically, the theory client number can be the user terminal with the foundation communication connection of block chain network Quantity, the integral total value can be preset determining numerical value, for example, 1,000,000 integrals.
In the present embodiment, defining theoretical client's number is N1, and the integral total value is M1, the integral total value that can be issued For M2.
The integral total value appraises and decides module 16 for obtaining theoretical client's number and integral total value;The integral total value is appraised and decided Module 16 is also used to generate the integral that can be issued according to theoretical client's number, the integral total value and preset formula total Volume, wherein the preset formula is M2=C*M1/N1, and C1 is Constant Grade parameter.
To realize increasing with theoretical number, integral total value can be issued and reduced therewith.
The integral acquisition methods based on block chain technology can be comprising steps of inquire according to each effective work The integral of address date publication in data of testifying.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all at this Under the design of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/it is used in it indirectly He is included in scope of patent protection of the invention relevant technical field.

Claims (10)

1. a kind of integral acquisition methods based on block chain technology characterized by comprising
Obtain preset user ID data and address date, according to the user ID data and the address date establish with The communication connection of block chain network, and time data are generated according to the situation of communication connection;
The time data, the user ID data and the address date are obtained, and according to the time data, the use Family identity data and the address date, which generate corresponding work, proves data;
Judge whether the time data meet preset proof of work rule, proves the effective of data to verify the work Property;
When the time data meet the proof of work rule, judge that the work proves that data are effective;
Obtaining effective work proves data, and proves that the address date in data issues integral according to each effective work.
2. the integral acquisition methods as described in claim 1 based on block chain technology, which is characterized in that described to obtain preset use Family identity data and address date establish the communication with block chain network according to the user ID data and the address date Connection, and the step of generating time data according to the situation of communication connection, specifically include:
Obtain preset user ID data and address date, according to the user ID data and the address date establish with The communication connection of block chain network, and generate first time node data;
Whether judgement keeps communicating to connect with block chain network, to generate the second timing node data;
When keeping communicating to connect with block chain network, the second timing node data are generated, and according to second timing node Data and the first time node data generate time data;
When not keeping communication connection with block chain network, preset user ID data and number of addresses are obtained into described According to establishing the communication connection with block chain network according to the user ID data and address date, and generate and save at the first time The step of point data.
3. the integral acquisition methods as described in claim 1 based on block chain technology, which is characterized in that described to work as the time number When according to meeting the proof of work rule, judge that the work proves the effective step of data and the effective work of the acquisition It proves data, and is proved between the step of address date in data issues integral according to each effective work, the base In the integral acquisition methods of block chain technology further include:
Integral total value and effective work can be issued by, which obtaining, proves the quantity of data, and integral total value and described can be issued according to described in Effective work proves that the quantity of data generates the integral for publication.
4. the integral acquisition methods as claimed in claim 3 based on block chain technology, which is characterized in that obtained effectively described Work prove data, and after proving the step of address date in data issues integral according to each effective work, The integral acquisition methods based on block chain technology further include:
Judge that the effective work proves whether the quantity of data meets preset alteration ruler;
When the quantity of the effective work proof data meets preset alteration ruler, the work proof rule is modified.
5. the integral acquisition methods as claimed in claim 3 based on block chain technology, which is characterized in that described to be based on block chain The integral acquisition methods of technology further include:
Theoretical client's number and integral total value are obtained, and can be issued according to theoretical client's number and integral total value generation Integral total value.
6. a kind of integral based on block chain technology obtains system characterized by comprising
Line module, the line module is for obtaining preset user ID data and address date, according to user's body Part data and the address date establish the communication connection with block chain network, and generate time number according to the situation of communication connection According to;The line module is also used to obtain the time data, the user ID data and the address date, and according to institute It states time data, the user ID data and the address date and generates corresponding work proof data;
Discrimination module, the discrimination module are used to judge whether the time data to meet preset proof of work rule, with Verifying the work proves the validity of data;When the time data meet the proof of work rule, the differentiation Module judges that the work proves that data are effective;
Release module is integrated, the integral release module proves data for obtaining effective work, and according to each work Prove that the address date in data issues integral.
7. the integral based on block chain technology obtains system as claimed in claim 6, which is characterized in that the line module packet It includes:
Communication unit, the communication unit is for obtaining preset user ID data and address date, according to user's body Part data and the address date establish the communication connection with block chain network, and generate first time node data;
Authentication unit, the authentication unit is for judging whether keep communicating to connect with block chain network, to generate for the second time Node data;
When keeping communicating to connect with block chain network, the authentication unit generates the second timing node data, and according to described Second timing node data and the first time node data generate time data;
When not keeping communication connection with block chain network, the authentication unit starts the communication unit.
8. the integral based on block chain technology obtains system as described in claim 1, which is characterized in that described to be based on block chain The integral of technology obtains system further include:
Integral distribution module, the integral distribution module, which is used to obtain to issue integral total value and effectively work, proves data Quantity, integral total value and the effective work can be issued according to described in proves that the quantity of data generates the integral for publication.
9. the integral based on block chain technology obtains system as claimed in claim 8, which is characterized in that described to be based on block chain The integral of technology obtains system further include:
Rules modification module, the rules modification module are used to judge that the effective work to prove whether the quantity of data meets Preset alteration ruler;When the quantity of the effective work proof data meets preset alteration ruler, the work is modified It testifies rule.
10. the integral based on block chain technology obtains system as claimed in claim 8, which is characterized in that described to be based on block The integral of chain technology obtains system further include:
Integral total value appraises and decides module, and the integral total value appraises and decides module for obtaining theoretical client's number and integral total value, and root The integral total value that can be issued is generated according to theoretical client's number and the integral total value.
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 true CN108959335A (en) 2018-12-07
CN108959335B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
CN111768302A (en) * 2019-04-02 2020-10-13 南京大学 Patent securitization trading support system based on block chain and trading method thereof
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111768302A (en) * 2019-04-02 2020-10-13 南京大学 Patent securitization trading support system based on block chain and trading method thereof
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

Also Published As

Publication number Publication date
CN108959335B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US11621855B2 (en) Electronic device and method for managing blockchain address using the same
US20200394651A1 (en) Dynamic off-chain digital currency transaction processing
WO2018158936A1 (en) Block chain management device, block chain management method and program
CA2639662C (en) System and method for sensitive data field hashing
EP3701668B1 (en) Methods for recording and sharing a digital identity of a user using distributed ledgers
CN108985100B (en) Block chain-based element security certification method, device, equipment and medium
US11151559B2 (en) Blockchain-based remittance method and apparatus
US20150324764A1 (en) Enabling a User to Transact Using Cryptocurrency
CN109614438A (en) A kind of Claims Resolution method and apparatus based on block chain
KR20170040079A (en) Block chain supporting multiple one-way functions used for verification of blocks
CN107592964A (en) Systems, devices and methods for the multiple-owner transfer of the ownership of equipment
CN108959335A (en) Integral acquisition methods and system based on block chain technology
US11979485B2 (en) Electronic device providing blockchain account information and method of operating the same
CN102187346B (en) For making system and the process of sensitive information safety
CN108848148A (en) Transaction Information confirmation method and device based on block chain
CN109491965A (en) The storage method and its network and electronic equipment of purchase sale of electricity contract
CN113924588A (en) Device and payment system for sending electronic money data records directly to another device
CN109615372B (en) Block chain data shielding method and device based on intelligent contract
CN113474804A (en) Transaction and account verification method, device and storage medium of digital currency
CN110009339A (en) Data processing method and device based on block chain
CN115427959A (en) Method for directly transmitting electronic coin data sets between a terminal, a payment system, a currency system and a monitoring unit
Xu et al. A blockchain based micro payment system for smart devices
CN111418182A (en) Information processing apparatus, registration apparatus, information processing method, registration method, and computer program
CN105144250A (en) Method and apparatus for digital ticket inspection
KR20210058784A (en) Method for providing virtual asset service based on dicentralized identity and virtual asset service providing server using them

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
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

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

Granted publication date: 20210525

Termination date: 20211208