CN108335208A - Method and apparatus for handling information - Google Patents

Method and apparatus for handling information Download PDF

Info

Publication number
CN108335208A
CN108335208A CN201810167676.8A CN201810167676A CN108335208A CN 108335208 A CN108335208 A CN 108335208A CN 201810167676 A CN201810167676 A CN 201810167676A CN 108335208 A CN108335208 A CN 108335208A
Authority
CN
China
Prior art keywords
block
target
user
information
block chain
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
CN201810167676.8A
Other languages
Chinese (zh)
Other versions
CN108335208B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810167676.8A priority Critical patent/CN108335208B/en
Publication of CN108335208A publication Critical patent/CN108335208A/en
Application granted granted Critical
Publication of CN108335208B publication Critical patent/CN108335208B/en
Active 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application discloses the method and apparatus for handling information.One specific implementation mode of this method includes:It is received using block chain and records target transaction information;Meet preset termination condition in response to determination, the target cryptographic Hash of block cryptographic Hash and the block based on the block being newly generated in the block chain determines final hash value;The block chain account address of user involved by target transaction information that the final hash value is recorded with each block is matched, target user is determined based on matching result.This embodiment improves the fairness for determining target user.

Description

Method and apparatus for handling information
Technical field
The invention relates to field of computer technology, and in particular to the method and apparatus for handling information.
Background technology
With the development of Internet technology, a large amount of Internet enterprises come into being.In order to attract more users, it usually needs Using some incentive measures, and one or more users are liberally selected as target user, with hair from a large amount of user This is given to be awarded to target user.In the process, how liberally to determine that target user is particularly important from multiple users.
Existing mode is typically to take the determination that precious algorithm carries out target user by force using unitary.Specific implementation procedure is as follows: First, it obtains and finally participates in movable multiple participants (such as 50 participants) and participate in movable time, when will be acquired Between sum, obtain the first numerical value;Then, by some the unknown numerical value obtained from third party (such as will announce the winners in a lottery it is old constantly Color result of announcing the winners in a lottery) it is used as second value;Later, it is determined based on parameters such as the first numerical value, second value, activity participation numbers Target user.
Invention content
The embodiment of the present application proposes the method and apparatus for handling information.
In a first aspect, the embodiment of the present application provides a kind of method for handling information, this method includes:Utilize block Chain receives and records target transaction information;Meet preset termination condition in response to determination, based on what is be newly generated in block chain The block cryptographic Hash of block and the target cryptographic Hash of block, determine final hash value, wherein the target cryptographic Hash of each block It is the mesh of the target transaction information recorded based on the block, the block cryptographic Hash and a upper block of a upper block for the block Mark what cryptographic Hash determined;By the block chain of the user involved by the final hash value and the target transaction information of each block record Account address is matched, and target user is determined based on matching result.
In some embodiments, which includes:The identifying of goal activities, any character input by user String.
In some embodiments, which is that the number of participation goal activities reaches default value or block height Reach default value, wherein the block height be height and the required block number of original block and, the required block number It obtains as follows:Determine the ratio for the minimum duration that the total duration of the goal activities is generated with block;To the ratio into Position rounding.
In some embodiments, the use involved by the target transaction information that the final hash value and each block are recorded The block chain account address at family is matched, and target user is determined based on matching result, including:The final hash value is extracted respectively Target byte and each block record target transaction information involved by user block chain account address target byte, The each target byte extracted is converted into the data of target data type;The target word that will be extracted from the final hash value It saves transformed data and is matched with the transformed data of target byte extracted from each block chain account address, is based on Matching result determines target user.
In some embodiments, target user should be determined based on matching result, including:It will be extracted from the final hash value The transformed data of target byte as target data, the target byte extracted from each block chain account address is converted User corresponding in the data afterwards and immediate data of the target data is as target user.
In some embodiments, after this determines target user based on matching result, this method further includes:To the target User pushes prompt message, wherein the prompt message is for prompting user to be targeted user.
In some embodiments, which includes winning results information;And mesh is determined based on matching result at this After marking user, this method further includes:Generate winning results page, wherein the winning results page includes the winning results information.
Second aspect, the embodiment of the present application provide a kind of device for handling information, which includes:It receives single Member is configured to be received using block chain and records target transaction information;Execution unit is configured to meet in advance in response to determining If termination condition, the target cryptographic Hash of block cryptographic Hash and block based on the block being newly generated in block chain, determine most Whole cryptographic Hash, wherein the target cryptographic Hash of each block be the target transaction information recorded based on the block, the block it is upper What the block cryptographic Hash of one block and the target cryptographic Hash of a upper block determined;Determination unit is configured to this is final The block chain account address for the user involved by target transaction information that cryptographic Hash is recorded with each block matches, based on Target user is determined with result.
In some embodiments, which includes:The identifying of goal activities, any character input by user String.
In some embodiments, which is that the number of participation goal activities reaches default value or block height Reach default value, wherein the block height be height and the required block number of original block and, the required block number It obtains as follows:Determine the ratio for the minimum duration that the total duration of the goal activities is generated with block;To the ratio into Position rounding.
In some embodiments, which includes:Extraction module is configured to extract the final hash value respectively The target byte of the block chain account address of user involved by target byte and the target transaction information of each block record, will The each target byte extracted is converted into the data of target data type;Matching module, being configured to will be from the final Hash The transformed data of target byte extracted in value and the target byte extracted from each block chain account address are transformed Data are matched, and target user is determined based on matching result.
In some embodiments, which is further configured to:The target that will be extracted from the final hash value Data after byte conversion are as target data, the transformed number of target byte that will be extracted from each block chain account address User corresponding in the and immediate data of the target data is as target user.
In some embodiments, which further includes:Push unit is configured to push prompt letter to the target user Breath, wherein the prompt message is for prompting user to be targeted user.
In some embodiments, which includes winning results information;And the device further includes:Generation unit, It is configured to generate winning results page, wherein the winning results page includes the winning results information.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including:One or more processors;Storage dress It sets, for storing one or more programs, when the one or more program is executed by the one or more processors so that this one A or multiple processors realize the method such as any embodiment in the method for handling information.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method such as any embodiment in the method for handling information is realized when program is executed by processor.
Method and apparatus provided by the embodiments of the present application for handling information receive by using block chain and record mesh Transaction Information is marked, then meets preset termination condition in response to determination, the block based on the block being newly generated in block chain The target cryptographic Hash of cryptographic Hash and block, determines final hash value, finally by the mesh of the final hash value and each block record The block chain account address of user involved by mark Transaction Information matches, and target user is determined based on matching result.To, Cryptography and block chain technology can be utilized to determine target user, the spy that there is decentralization and can not distort due to block chain Point, and the numerical value of third party's offer is provided, this improves the fairness for determining target user.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the method for handling information of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the method for handling information of the application;
Fig. 4 is the structural schematic diagram according to one embodiment of the device for handling information of the application;
Fig. 5 is adapted for the structural schematic diagram of the computer system of the electronic equipment for realizing the embodiment of the present application.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, is illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the example of the method for handling information or the device for handling information that can apply the application Sexual system framework 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted by network 104 with server 105 with using terminal equipment 101,102,103, to receive or send out Send message etc..Various telecommunication customer end applications can be installed, such as web browser is answered on terminal device 101,102,103 With, shopping class application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be hardware, can also be software.When terminal device 101,102,103 is hard Can be the various electronic equipments with display screen and supported web page browsing, including but not limited to smart mobile phone, tablet when part Computer, pocket computer on knee and desktop computer etc..When terminal device 101,102,103 is software, can install In above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distributed clothes in it Business), single software or software module can also be implemented as.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as the number to the transmission of terminal device 101,102,103 The data processing server handled according to (such as the arbitrary string inputted in text box of the user in the page).At data Reason server can store the data received, determine the processing such as cryptographic Hash, and determine that target is used based on handling result Family.
It should be noted that server can be hardware, can also be software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server can also be implemented as.It, can when server is software To be implemented as multiple softwares or software module (such as providing Distributed Services), single software or software can also be implemented as Module.It is not specifically limited herein.
It should be noted that the method for handling information that the embodiment of the present application is provided generally is held by server 105 Row, the device for being respectively used for processing information are generally positioned in server 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow of one embodiment of the method for handling information according to the application is shown 200.The method for handling information, includes the following steps:
Step 201, it is received using block chain and records target transaction information.
In the present embodiment, it can be run for handling the method executive agent (such as server shown in FIG. 1) of information There is block chain.Wherein, block chain is a kind of a kind of chain type for being sequentially in time combined into block in such a way that sequence is connected Data structure, and the distributed account book that can not be distorted He can not forge ensured in a manner of cryptography.Constitute each of block chain One or more Transaction Informations can be recorded in a block.In practice, each block in block chain can record multiple The Transaction Information of activity (such as take precious activity, sweepstake by force etc.), each activity can correspond to a mark, be used for differentiation not Same activity.
In general, block is made of block head and block main body.A upper block can be recorded in the block head of block Cryptographic Hash.Herein, the cryptographic Hash of block can be known as block cryptographic Hash.Each block in block chain can include upper one The block cryptographic Hash of a block.In practice, cryptographic Hash is properly termed as hashed value (hash values, hash codes, hash again Sums or hashes), cryptographic Hash is that (Hash Function are referred to as hashing algorithm, hash function by hash function Deng) generate value.Hash function can be compressed into information or data abstract so that data volume becomes smaller, and the format of data is consolidated It is fixed.Data can be upset mixing by hash function, re-create a data, and the data created are hashed value.Hashed value Usually represented with a short random letters and the character string of number composition.When block main body is commonly used for recording one section Interior Transaction Information.It should be noted that the information that the composition of above-mentioned block chain, block are recorded be at present extensively research and The known technology of application, details are not described herein.
In the present embodiment, above-mentioned executive agent can be received using block chain and record target transaction information.Wherein, on It can be that user participates in caused by goal activities (such as some preassigned activity of technical staff) to state target transaction information Transaction Information.In practice, after goal activities start, user can participate in the goal activities, and can send information to block Chain, and each user can be limited in advance only can participate in and is primary.After above-mentioned executive agent confirms that goal activities start, or After receiving the instruction for starting goal activities, it can be received using block chain and record target transaction information.
In some optional realization methods of the present embodiment, above-mentioned target transaction information may include:Goal activities Mark, arbitrary string input by user.In practice, user can use client (such as terminal device shown in FIG. 1 101, 102,103) the browsing objective movable page can include the letter for prompting user to carry out arbitrary string input in the page Breath, such as " please inputting arbitrary content in the text box of lower section ".User can input arbitrary content in corresponding position, carry After handing over the request for participating in the goal activities, then the target of the mark of the content and above-mentioned goal activities that are inputted comprising user is generated Transaction Information, and record within a block.Due to including arbitrary string input by user in target transaction information, for For above-mentioned executive agent, content input by user is random, and the target cryptographic Hash of each block is carried out using random content With the determination of final hash value, it ensure that each user can liberally influence the result of calculation of final hash value, improve Determine the fairness of target user.
Step 202, meet preset termination condition in response to determination, the block based on the block being newly generated in block chain The target cryptographic Hash of cryptographic Hash and block, determines final hash value.
In the present embodiment, it can be previously stored with preset termination condition in above-mentioned executive agent, it is full in response to determining The above-mentioned termination condition of foot, the target cryptographic Hash of block cryptographic Hash and block that can be based on the block being newly generated in block chain, Determine final hash value.Wherein, above-mentioned default termination condition can be various conditions, such as participate in the occupancy family total amount of number Ratio reaches default value, the time reaches preset time etc..Herein, however, it is determined that meet preset termination condition, it can be by area The block cryptographic Hash for the block being newly generated in block chain and input of the target cryptographic Hash of the block as hash function, will hash The data of function output are as final hash value.
It should be noted that after goal activities start, the target cryptographic Hash of each block generated in block chain It is the target transaction information recorded based on the block, the block cryptographic Hash of a upper block for the block and a upper block What target cryptographic Hash determined.Specifically, above-mentioned executive agent can will carve institute in the block chain at the beginning of above-mentioned goal activities The most newly generated block of operation is as original block, the upper block by default value (such as 0) as original block Target cryptographic Hash.For original block, the block of target transaction information, a upper block which records can be breathed out The input of uncommon value and the target cryptographic Hash (i.e. above-mentioned default value) of a upper block as hash function, hash function is exported Target cryptographic Hash of the data as the original block.Then, for each block sequentially generated, which can be remembered The target Hash of the block cryptographic Hash and a upper block of a upper block for the block in the target transaction information of record, block chain It is worth the input as hash function, using the data of hash function output as the target cryptographic Hash of the block, until meeting above-mentioned Termination condition.After meeting above-mentioned termination condition, by the block cryptographic Hash for the block being newly generated in the block chain and it can be somebody's turn to do Input of the target cryptographic Hash of block as hash function, using the data of hash function output as final hash value.
In some optional realization methods of the present embodiment, above-mentioned termination condition can be the number for participating in goal activities Reach default value or block height reaches default value.Wherein, above-mentioned block height can be the height of above-mentioned original block Degree and required block number and, above-mentioned required block number can obtain as follows:First, determine that above-mentioned target is lived The ratio for the minimum duration (can count determining in advance) that dynamic total duration (can be preset) is generated with block;It Afterwards, to above-mentioned ratio carry rounding.The numerical value obtained after rounding is then required block number.Wherein, the height of original block can To be order of the original block in block chain.
Step 203, by the block chain of the user involved by final hash value and the target transaction information of each block record Account address is matched, and target user is determined based on matching result.
In the present embodiment, above-mentioned executive agent can be by the target transaction of above-mentioned final hash value and each block record The block chain account address of user involved by information matches, and target user is determined based on matching result.Wherein, each Block can record one or more target transaction information, each user can only participate in a goal activities, each mesh It is corresponding with a user to mark Transaction Information.There are one block chain account addresses for each user tool.In practice, involved by block chain And each user tool there are one public key and a private key, for each user, the public key of the user can be utilized, led to Cross the block chain account address that one-way hash function algorithm generates the user.Herein, the block chain account address of user can be various The character string (for example, it may be 42 character strings started with " 0x ") of form.It should be noted that the block chain of user The generating mode of account address is the known technology that block chain technical field is studied and applied extensively at present, and details are not described herein.
In some optional realization methods of the present embodiment, above-mentioned executive agent can be directly by above-mentioned final hash value It is matched with the block chain account address of each user involved by the target transaction information of each block record.It will matching As a result indicate that user corresponding with the most similar block chain account address of above-mentioned final hash value is determined as target user.It needs Bright, the quantity of target user is not limited to one, can also be multiple.At this point it is possible to descending according to degree of closeness Sequence chooses multiple users as target user successively.
In some optional realization methods of the present embodiment, above-mentioned executive agent can determine target according to following target User:
The first step extracts the target transaction information institute of the target byte and each block record of above-mentioned final hash value respectively The target byte of the block chain account address for the user being related to, target data type is converted by each target byte extracted Data.Wherein, above-mentioned target byte can be byte (such as the end of technical staff preset some or multiple positions 8 bytes of tail).Above-mentioned target data type can be that the preset data type of technical staff is (such as whole without symbol 64 Number data type uint64).
Second step, by the transformed data of target byte extracted from above-mentioned final hash value with from each block chain account The transformed data of target byte extracted in the address of family are matched, and target user is determined based on matching result.It herein, can be with It, will be from each block chain account using the transformed data of the target byte extracted from above-mentioned final hash value as target data User corresponding in the transformed data of target byte extracted in the address and immediate data of above-mentioned target data makees For target user.It should be noted that the quantity of target user is not limited to one, can also be multiple.At this point it is possible to according to The sequence that the degree of closeness of target data is descending chooses multiple users as target user successively.
It is above-mentioned after determining target user based on matching result in some optional realization methods of the present embodiment Executive agent can also push prompt message to above-mentioned target user, wherein above-mentioned prompt message can be used for prompting user's quilt It is determined as target user.
In some optional realization methods of the present embodiment, above-mentioned prompt message may include winning results information, on It may include the title of target user, personal information etc. to state winning results information.Based on matching result determine target user it Afterwards, above-mentioned executive agent can also generate winning results page, wherein above-mentioned prize-winning result page may include above-mentioned winning results letter Breath.After generating above-mentioned prize-winning result page, above-mentioned executive agent, which can push to the winning results page, participates in above-mentioned target work Dynamic each client used by a user, so that each user browses winning results.
It is a signal according to the application scenarios of the method for handling information of the present embodiment with continued reference to Fig. 3, Fig. 3 Figure.In the application scenarios of Fig. 3, after activity starts, server can receive using block chain and record target transaction information, Each block sequentially generated in rear block chain is started for activity, server can be handed over based on the target that the block is recorded Easy information, the block cryptographic Hash of a upper block and on this block target cryptographic Hash, determine the target Hash of the block Value.Then determine whether to meet preset termination condition, if not satisfied, then continuing target after the generation of next block The determination of cryptographic Hash, until meeting termination condition.After determination meets termination condition, the area based on the block being currently newly generated The target cryptographic Hash of block cryptographic Hash and the block, determines final hash value.Finally the final hash value and each block are recorded Target transaction information involved by the block chain account address of user match, target user is determined based on matching result.
The method that above-described embodiment of the application provides, receives by using block chain and records target transaction information, and Meet preset termination condition in response to determination afterwards, block cryptographic Hash based on the block being newly generated in above-mentioned block chain and upper The target cryptographic Hash for stating block, determines final hash value, finally by the target transaction of the final hash value and each block record The block chain account address of user involved by information matches, and target user is determined based on matching result.Due to block chain Have the characteristics that decentralization and can not distort, and the numerical value of third party's offer is provided, this improves determine target The fairness of user, meanwhile, result of calculation is preserved using block chain, movable fairness can be examined to provide guarantor for auditing department Card.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, this application provides one kind for handling letter One embodiment of the device of breath, the device embodiment is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 4, the device 400 for handling information described in the present embodiment includes:Receiving unit 401, configuration are used In being received using block chain and record target transaction information;Execution unit 402 is configured to meet preset knot in response to determination Beam condition, the target cryptographic Hash of block cryptographic Hash and above-mentioned block based on the block being newly generated in above-mentioned block chain determine Final hash value, wherein the target cryptographic Hash of each block is the target transaction information recorded based on the block, the block A upper block block cryptographic Hash and an above-mentioned upper block target cryptographic Hash determine;Determination unit 403, configuration are used In by above-mentioned final hash value and each block record target transaction information involved by user block chain account address into Row matching, target user is determined based on matching result.
In some optional realization methods of the present embodiment, above-mentioned target transaction information may include:Goal activities Mark, arbitrary string input by user.
In some optional realization methods of the present embodiment, above-mentioned termination condition can be any one of following:Participate in mesh It marks movable number and reaches default value;Block height reaches default value, wherein above-mentioned block height is the height of original block Degree and required block number and, above-mentioned required block number obtains as follows:Determine above-mentioned goal activities it is total when The ratio of the long minimum duration generated with block;To above-mentioned ratio carry rounding.
In some optional realization methods of the present embodiment, above-mentioned determination unit 403 may include extraction module and With module (not shown).Wherein, said extracted module may be configured to extract the target of above-mentioned final hash value respectively The target byte of the block chain account address of user involved by byte and the target transaction information of each block record, will be carried The each target byte taken is converted into the data of target data type.Above-mentioned matching module may be configured to will be from above-mentioned final The transformed data of target byte extracted in cryptographic Hash and the target byte extracted from each block chain account address are converted Data afterwards are matched, and target user is determined based on matching result.
In some optional realization methods of the present embodiment, above-mentioned matching module can be further configured to will be from upper The transformed data of the target byte extracted in final hash value are stated as target data, it will be from each block chain account address User corresponding in the transformed data of target byte of the extraction and immediate data of above-mentioned target data is as target User.
In some optional realization methods of the present embodiment, above-mentioned apparatus further includes push unit (not shown). Wherein, above-mentioned push unit may be configured to push prompt message to above-mentioned target user, wherein above-mentioned prompt message is used for Prompt user is targeted user.
In some optional realization methods of the present embodiment, above-mentioned prompt message may include winning results information;With And above-mentioned apparatus can also include generation unit (not shown).Wherein, above-mentioned generation unit may be configured in generation Encourage result page, wherein above-mentioned prize-winning result page includes above-mentioned prize-winning result information.
The device that above-described embodiment of the application provides, is received using block chain by receiving unit 401 and records target Transaction Information, then execution unit 402 meet preset termination condition in response to determination, based on being newly generated in above-mentioned block chain Block block cryptographic Hash and above-mentioned block target cryptographic Hash, determine final hash value, last determination unit 403 by this most The block chain account address for the user involved by target transaction information that whole cryptographic Hash is recorded with each block matches, and is based on Matching result determines target user.It is thus possible to target user be determined using cryptography and block chain technology, since block chain has The characteristics of having decentralization and can not distorting, and the numerical value of third party's offer is provided, this improves determine target use The fairness at family, meanwhile, result of calculation is preserved using block chain, movable fairness can be examined to provide guarantor for auditing department Card.
Below with reference to Fig. 5, it illustrates the computer systems 500 suitable for the electronic equipment for realizing the embodiment of the present application Structural schematic diagram.Electronic equipment shown in Fig. 5 is only an example, to the function of the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various actions appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
It is connected to I/O interfaces 505 with lower component:Importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also according to needing to be connected to I/O interfaces 505.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 510, as needed in order to be read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed by communications portion 509 from network, and/or from detachable media 511 are mounted.When the computer program is executed by central processing unit (CPU) 501, limited in execution the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two arbitrarily combines.Computer readable storage medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or arbitrary above combination. The more specific example of computer readable storage medium can include but is not limited to:Electrical connection with one or more conducting wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer readable storage medium can any be included or store The tangible medium of program, the program can be commanded the either device use or in connection of execution system, device.And In the application, computer-readable signal media may include the data letter propagated in a base band or as a carrier wave part Number, wherein carrying computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by instruction execution system, device either device use or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part for a part for one module, program segment, or code of table, the module, program segment, or code includes one or more uses The executable instruction of the logic function as defined in realization.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it to note Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be arranged in the processor, for example, can be described as:A kind of processor packet Include receiving unit, execution unit and determination unit.Wherein, the title of these units is not constituted under certain conditions to the unit The restriction of itself, for example, determination unit is also described as " determining the unit of target user ".
As on the other hand, present invention also provides a kind of computer-readable medium, which can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device so that should Device:It is received using block chain and records target transaction information;Meet preset termination condition in response to determination, is based on the block The block cryptographic Hash for the block being newly generated in chain and the target cryptographic Hash of the block, determine final hash value;By the final Kazakhstan The block chain account address for the user involved by target transaction information that uncommon value is recorded with each block matches, based on matching As a result target user is determined.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Other technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (16)

1. a kind of method for handling information, including:
It is received using block chain and records target transaction information;
In response to determination meet preset termination condition, the block cryptographic Hash based on the block being newly generated in the block chain and The target cryptographic Hash of the block, determines final hash value, wherein the target cryptographic Hash of each block is remembered based on the block The target cryptographic Hash of the target transaction information of record, the block cryptographic Hash of a upper block for the block and a upper block is true Fixed;
By the block chain account address of the user involved by the final hash value and the target transaction information of each block record It is matched, target user is determined based on matching result.
2. the method according to claim 1 for handling information, wherein the target transaction information includes:Target is lived It is dynamic identify, arbitrary string input by user.
3. the method according to claim 1 for handling information, wherein the termination condition is to participate in goal activities Number reach default value or block height reach default value, wherein the block height be original block height with The sum of required block number, the required block number obtain as follows:Determine the total durations of the goal activities with The ratio for the minimum duration that block generates;To the ratio carry rounding.
4. the method according to claim 1 for handling information, wherein described by the final hash value and each area The block chain account address of user involved by the target transaction information of block record matches, and target is determined based on matching result User, including:
The user involved by the target byte of the final hash value and the target transaction information of each block record is extracted respectively Block chain account address target byte, each target byte extracted is converted into the data of target data type;
It will be carried from the transformed data of target byte extracted in the final hash value with from each block chain account address The transformed data of target byte taken are matched, and target user is determined based on matching result.
5. the method according to claim 4 for handling information, wherein described to determine that target is used based on matching result Family, including:
It, will be from each block chain using the transformed data of the target byte extracted from the final hash value as target data Use corresponding in the transformed data of target byte extracted in the account address and immediate data of the target data Family is as target user.
6. the method according to claim 1 for handling information, wherein determine that target is used based on matching result described After family, the method further includes:
Prompt message is pushed to the target user, wherein the prompt message is for prompting user to be targeted user.
7. the method according to claim 6 for handling information, wherein the prompt message includes winning results letter Breath;And
It is described target user is determined based on matching result after, the method further includes:
Generate winning results page, wherein the winning results page includes the winning results information.
8. a kind of device for handling information, including:
Receiving unit is configured to be received using block chain and records target transaction information;
Execution unit is configured to meet preset termination condition in response to determination, based on what is be newly generated in the block chain The block cryptographic Hash of block and the target cryptographic Hash of the block, determine final hash value, wherein the target of each block is breathed out Uncommon value is the target transaction information recorded based on the block, the block cryptographic Hash of a upper block for the block and upper one described What the target cryptographic Hash of block determined;
Determination unit is configured to the user involved by the final hash value and the target transaction information of each block record Block chain account address matched, target user is determined based on matching result.
9. according to claim 8 for handling the device of information, wherein the target transaction information includes:Target is lived It is dynamic identify, arbitrary string input by user.
10. the device according to claim 8 for handling information, wherein the termination condition is to participate in goal activities Number reach default value or block height reach default value, wherein the block height be original block height With required block number and, it is described needed for block number obtain as follows:Determine the total duration of the goal activities The ratio of the minimum duration generated with block;To the ratio carry rounding.
11. according to claim 8 for handling the device of information, wherein the determination unit includes:
Extraction module is configured to extract the target transaction of the target byte of the final hash value and each block record respectively The target byte of the block chain account address of user involved by information, number of targets is converted by each target byte extracted According to the data of type;
Matching module, be configured to the transformed data of target byte that will be extracted from the final hash value with from each area The transformed data of target byte extracted in block chain account address are matched, and target user is determined based on matching result.
12. the device according to claim 11 for handling information, wherein the matching module further configures use In:
It, will be from each block chain using the transformed data of the target byte extracted from the final hash value as target data Use corresponding in the transformed data of target byte extracted in the account address and immediate data of the target data Family is as target user.
13. according to claim 8 for handling the device of information, wherein described device further includes:
Push unit is configured to push prompt message to the target user, wherein the prompt message is for prompting user It is targeted user.
14. the device according to claim 13 for handling information, wherein the prompt mark information includes winning results Information;And
Described device further includes:
Generation unit is configured to generate winning results page, wherein the winning results page includes the winning results information.
15. a kind of electronic equipment, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, wherein the program is realized when being executed by processor Method as described in any in claim 1-7.
CN201810167676.8A 2018-02-28 2018-02-28 Method and apparatus for processing information Active CN108335208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810167676.8A CN108335208B (en) 2018-02-28 2018-02-28 Method and apparatus for processing information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810167676.8A CN108335208B (en) 2018-02-28 2018-02-28 Method and apparatus for processing information

Publications (2)

Publication Number Publication Date
CN108335208A true CN108335208A (en) 2018-07-27
CN108335208B CN108335208B (en) 2022-11-08

Family

ID=62930170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810167676.8A Active CN108335208B (en) 2018-02-28 2018-02-28 Method and apparatus for processing information

Country Status (1)

Country Link
CN (1) CN108335208B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110084651A (en) * 2019-05-07 2019-08-02 百度在线网络技术(北京)有限公司 A kind of lottery drawing method based on block chain, device and terminal
CN110633983A (en) * 2019-09-05 2019-12-31 腾讯科技(深圳)有限公司 Target event execution method and device based on block chain
CN110958317A (en) * 2019-11-29 2020-04-03 腾讯科技(深圳)有限公司 Data processing method and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105913174A (en) * 2016-04-07 2016-08-31 彭军红 Lottery issuing method based on block chains
CN105976248A (en) * 2016-04-29 2016-09-28 邓迪 Crowd funding lotting method and system
CN106504174A (en) * 2016-09-27 2017-03-15 布比(北京)网络技术有限公司 Lottery industry publishing system and device based on block chain
CN107103097A (en) * 2017-05-22 2017-08-29 中链科技有限公司 Drawing method and terminal device based on block chain technology
CN107566124A (en) * 2017-08-24 2018-01-09 深圳市易成自动驾驶技术有限公司 Common recognition method for building up, block catenary system and storage medium based on lottery mechanism
CN107679149A (en) * 2017-09-26 2018-02-09 武汉斗鱼网络科技有限公司 A kind of data processing method and server
CN107742352A (en) * 2017-09-20 2018-02-27 黄玉宇 Decentralization lot/queuing strategy and system based on block chain and intelligent contract

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105913174A (en) * 2016-04-07 2016-08-31 彭军红 Lottery issuing method based on block chains
CN105976248A (en) * 2016-04-29 2016-09-28 邓迪 Crowd funding lotting method and system
CN106504174A (en) * 2016-09-27 2017-03-15 布比(北京)网络技术有限公司 Lottery industry publishing system and device based on block chain
CN107103097A (en) * 2017-05-22 2017-08-29 中链科技有限公司 Drawing method and terminal device based on block chain technology
CN107566124A (en) * 2017-08-24 2018-01-09 深圳市易成自动驾驶技术有限公司 Common recognition method for building up, block catenary system and storage medium based on lottery mechanism
CN107742352A (en) * 2017-09-20 2018-02-27 黄玉宇 Decentralization lot/queuing strategy and system based on block chain and intelligent contract
CN107679149A (en) * 2017-09-26 2018-02-09 武汉斗鱼网络科技有限公司 A kind of data processing method and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110084651A (en) * 2019-05-07 2019-08-02 百度在线网络技术(北京)有限公司 A kind of lottery drawing method based on block chain, device and terminal
CN110633983A (en) * 2019-09-05 2019-12-31 腾讯科技(深圳)有限公司 Target event execution method and device based on block chain
CN110958317A (en) * 2019-11-29 2020-04-03 腾讯科技(深圳)有限公司 Data processing method and equipment
CN110958317B (en) * 2019-11-29 2022-08-09 腾讯科技(深圳)有限公司 Data processing method and equipment

Also Published As

Publication number Publication date
CN108335208B (en) 2022-11-08

Similar Documents

Publication Publication Date Title
CN109873757A (en) Message display method, electronic equipment and readable medium for multi-conference
CN106845999A (en) Risk subscribers recognition methods, device and server
CN108293079A (en) For the striding equipment buddy application of phone
CN108989882A (en) Method and apparatus for exporting the snatch of music in video
CN108595628A (en) Method and apparatus for pushed information
CN107393541A (en) Information Authentication method and apparatus
CN108520470A (en) Method and apparatus for generating customer attribute information
CN108335208A (en) Method and apparatus for handling information
CN109976997A (en) Test method and device
US11244153B2 (en) Method and apparatus for processing information
CN107592255B (en) Information display method and equipment
CN108768824A (en) Information processing method and device
CN107911449A (en) Method and apparatus for pushed information
CN107480205A (en) A kind of method and apparatus for carrying out data partition
CN109859006A (en) For determining method, system, electronic equipment and the computer-readable medium of user interest profile
CN110245298A (en) Method and apparatus for pushed information
CN108804433A (en) Information-pushing method and device
CN107403342A (en) A kind of method, terminal device, server and storage medium for providing resource
CN108762847A (en) Method for handling information
CN109271160A (en) Active rule construction method, device and computer system, medium
CN110519155A (en) Information processing method and system
CN109614549B (en) Method and apparatus for pushed information
CN108664510A (en) Information acquisition method and device
CN110058902A (en) Information processing method, electronic equipment and computer-readable medium
CN109285027A (en) Distribution of bonus method, apparatus, computer equipment and storage medium based on data safety

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant