CN109299757A - Two dimensional code setting method, setting system and its two dimensional code based on block chain - Google Patents

Two dimensional code setting method, setting system and its two dimensional code based on block chain Download PDF

Info

Publication number
CN109299757A
CN109299757A CN201810800504.XA CN201810800504A CN109299757A CN 109299757 A CN109299757 A CN 109299757A CN 201810800504 A CN201810800504 A CN 201810800504A CN 109299757 A CN109299757 A CN 109299757A
Authority
CN
China
Prior art keywords
dimensional code
target information
target
mapping
mapping relations
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.)
Pending
Application number
CN201810800504.XA
Other languages
Chinese (zh)
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.)
Shenzhen Easy Technology Co Ltd
Original Assignee
Shenzhen Easy 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 Shenzhen Easy Technology Co Ltd filed Critical Shenzhen Easy Technology Co Ltd
Priority to CN201810800504.XA priority Critical patent/CN109299757A/en
Publication of CN109299757A publication Critical patent/CN109299757A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses two dimensional code setting method, setting system and its two dimensional codes based on block chain.The two dimensional code setting method includes: setting two dimensional code corresponding with the target information quantity in target information set;In target information set, according to the mapping relations between the previously determined target information and the two dimensional code, the mapping relations between the target information and the two dimensional code of rear determination are determined;And the step of determining the mapping relations between the target information and the two dimensional code is repeated, until target information all in target information set is mapped in corresponding two dimensional code.Thought of the setting method based on block chain technology is established between the mapping relations of different two dimensional codes and is contacted when carrying out target information mapping, form chain structure, so that mapping relations can have preferable safety, it is not easy to which be cracked acquisition, it is also difficult to be modified.

Description

Two dimensional code setting method, setting system and its two dimensional code based on block chain
Technical field
The present invention relates to planar bar code technology field more particularly to a kind of two dimensional code setting methods based on block chain, setting System and its two dimensional code.
Background technique
Continuous with the social softwares tool such as wechat is popularized, and the function of intelligent terminal constantly enhances, intelligent journey The continuous development of degree and network can by scanning the verifying code-bar (such as two dimensional code etc.) being printed on the objects such as poster, commodity Easily to read the corresponding information of these code-bars, relevant information abundant conveniently is provided for user.
These two dimensional codes according to the scene used, can with corresponding to various types of target information, to realize Function greatly, such as carry out marketing activity, assist product inquiry and carry out product flow direction tracking etc..
In realizing process of the present invention, inventor has found that the relevant technologies have the following problems: current two dimensional code was used Cheng Zhong, the function that two dimensional code can be realized depend on corresponding target information.It but is usually using letter between the two What single mapping mode was realized, whole safety is lower.In the case where target information library is illegally called, it is easy to artificial The corresponding target information of modification two dimensional code of large area, so that there is mistake in product inquiry or product flow direction tracking etc., The accuracy of the information of user's acquisition is not can guarantee.
Summary of the invention
In view of the above technical problems, the embodiment of the invention provides the two dimensional code setting methods based on block chain, setting system System and its two dimensional code not can guarantee with solving the problem of that the corresponding target information of existing two dimensional code holds easily modified information security.
The first aspect of the embodiment of the present invention provides a kind of two dimensional code setting method based on block chain.The two dimensional code is set The method of setting includes:
Two dimensional code corresponding with the target information quantity in target information set is set;In target information set, root According to the mapping relations between the previously determined target information and the two dimensional code, the target information in rear determination is determined With the mapping relations between the two dimensional code;
The step of determining the mapping relations between the target information and the two dimensional code is repeated, until target information All target informations are mapped in corresponding two dimensional code in set.
Optionally, described in target information set, according to the previously determined target information and the two dimensional code it Between mapping relations, determine mapping relations between the target information and the two dimensional code of rear determination, specifically include:
In target information set, a selected target information is as initial target information and one of two dimensional code at random It is corresponding;It is mapping parameters by the initial target information and the correspondence setting of two dimensional code;According to the mapping parameters, really Set the goal the corresponding two dimensional code of target information N in information aggregate, and N is the quantity of target information in target information set;Using institute The corresponding relationship for stating target information N and two dimensional code updates the mapping parameters;According to the updated mapping parameters, determine The corresponding two dimensional code of target information N+1 in target collection.
Optionally, the target information includes: that marketing activity information, product information and product flow to information.
Optionally, the method also includes the modes stored in a distributed manner, and the target in the target information set is believed Breath is divided into several subclass, is stored in different storage locations.
Optionally, setting two dimensional code corresponding with the target information quantity in target information set, specifically includes:
For each storage location, one group of two dimensional code is set;It include selection mark corresponding with storage location in the two dimensional code Note;In each two dimensional code, the selected marker of remaining all two dimensional code is recorded.
The second aspect of the embodiment of the present invention provides a kind of two dimensional code setting system.System is arranged in the two dimensional code
Two-dimensional code generation module, for two dimensional code corresponding with the target information quantity in target information set to be arranged; Mapping block is used in target information set, according to reflecting between the previously determined target information and the two dimensional code Relationship is penetrated, determines the mapping relations between the target information and the two dimensional code of rear determination, and repeat determination The step of mapping relations between the target information and the two dimensional code, until target information all in target information set It is mapped in corresponding two dimensional code.
Optionally, the mapping block specifically includes:
Information selectes unit, in target collection, at random a selected target information as initial target information and One of two dimensional code is corresponding;Mapping parameters setting unit, for by the initial target information it is corresponding with two dimensional code close System is set as mapping parameters;Two dimensional code map unit, for determining according to the mapping parameters, target is believed in target information set The corresponding two dimensional code of N is ceased, N is the quantity of target information in target information set;The mapping parameters setting unit is also used to: Using the corresponding relationship of the target information N and two dimensional code, the mapping parameters are updated;The two dimensional code map unit is also used In: according to the updated mapping parameters, determine the corresponding two dimensional code of target information N+1 in target collection.
Optionally, the system also includes distributed storage units, the mode for storing in a distributed manner, by the mesh Target information in mark information aggregate is divided into several subclass, is stored in different storage locations.
Optionally, the two-dimensional code generation module is specifically used for: one group of two dimensional code is arranged for each storage location;Described two Tieing up in code includes selected marker corresponding with storage location, and in each two dimensional code, records remaining all two dimensional code Selected marker.
The third aspect of the embodiment of the present invention provides a kind of two dimensional code.The two dimensional code applies two dimensional code as described above Setting method setting, maps to corresponding target information.
In technical solution provided in an embodiment of the present invention, based on the thought of block chain technology, establish in different two dimensional codes It is contacted between mapping relations, so that mapping relations can have preferable safety, it is not easy to which be cracked acquisition, also difficult To be modified.The two dimensional code being arranged through the above way, since its corresponding target information is difficult to be modified.It therefore, can be true It protects two dimensional code in use, accurate target information can be provided a user, realize corresponding product inquiry, product tracking And the function of marketing activity etc..
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram of typical two dimensional code application scenarios;
Fig. 2 is one embodiment method flow diagram of the two dimensional code setting method of the embodiment of the present invention;
Fig. 3 is one embodiment schematic diagram of the two dimensional code mapping relations setting method of the embodiment of the present invention;
Fig. 4 is that one embodiment schematic diagram of system is arranged in the two dimensional code of the embodiment of the present invention;
Fig. 5 is one embodiment schematic diagram of the electronic equipment of the embodiment 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 embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
It should be noted that be expressed " being fixed on " another element when element, it can directly on the other element, Or there may be one or more elements placed in the middle therebetween.When an element is expressed " connection " another element, it can be with It is directly to another element or there may be one or more elements placed in the middle therebetween.Used in this specification The orientation or position of the instructions such as term "vertical", "horizontal", "left" and "right", "upper", "lower", "inner", "outside", " bottom " Relationship is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of description of the present invention and simplification of the description, without referring to Show or imply that signified device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore cannot manage Solution is limitation of the present invention.In addition, term " first ", " second " etc. are used for description purposes only, and should not be understood as instruction or Imply relative importance.
Unless otherwise defined, technical and scientific term all used in this specification is led with technology of the invention is belonged to The normally understood meaning of the technical staff in domain is identical.Used term is only in the description of the invention in this specification The purpose of description specific embodiment is not intended to the limitation present invention.Term "and/or" used in this specification includes Any and all combinations of one or more related listed items.In addition, invention described below difference is implemented Technical characteristic involved in mode can be combined with each other as long as they do not conflict with each other.
Fig. 1 is the typical case scene of two dimensional code.It is carried out by taking the two dimensional code being printed on product as an example in the present embodiment Description.As shown in Figure 1, the application scenarios include two dimensional code 10, user 20 and backstage 30.
User 20 can be user or the groups of users of any type and quantity.User 20 holds corresponding mobile application Terminal can execute corresponding barcode scanning operation, and obtain the corresponding target information of two dimensional code 10 by mobile application terminal.
Two dimensional code 10 is the picture being printed on product or product external packaging.Two dimensional code 10 includes unique verifying letter Breath, by specific mapping method, can establish connection relationship between verification information and target information, so that two dimensional code 10 is swept It after retouching, provides according to verification information and mapping relations, corresponding target information is provided.
It 30 can be the system control backstage formed by server component from the background, as entire two dimensional code barcode scanning and provide mesh The control centre for marking information, to support and realize the function of two dimensional code.30 pass through network or other suitable data from the background Communication means and user 20, which establish, to be communicated to connect, and user 20 can feed back in two dimensional code after scanning the two-dimensional code 10 to backstage 30 Verification information.Then, according to the verification information in two dimensional code, it then follows mapping method finds corresponding target information and feeds back Into the mobile application terminal of user 20.
In above-mentioned application scenarios, two dimensional code setting method as shown in Figure 2 can be used, to ensure that two dimensional code is corresponding Target information can not be modified after write-in, ensure that the authenticity and safety of target information, two dimensional code can be made effective Realize the execution of the functions such as obtaining product information, goods batch tracking and marketing activity.As shown in Fig. 2, the two dimensional code is arranged Method may include steps of:
201, two dimensional code corresponding with the target information quantity in target information set is set.
The set that the target information set is made of multiple target informations.In the set can according to actual needs, if It is equipped with appropriate number of target information.The set can store in the storage equipment of any suitable type, for Background scheduling, mention Supply corresponding user.
Each target information has corresponding two dimensional code, and quantity between the two can not be identical.In some embodiments In, a target information can correspond to multiple two dimensional codes.In further embodiments, a two dimensional code can correspond to multiple and different Target information.
Target information refers to the final information that two dimensional code is directed toward.The target information specifically can be a variety of different info class Type is configured according to the function of the practical application scene of two dimensional code or required realization.
For example, the target information can be with marketing activity information.After user 20 is by scanning the two-dimensional code, at intelligent movable end Corresponding marketing activity information is obtained in end, is participated in corresponding activity.
The target information can also be product information.User 20 is corresponding by 30 push of backstage after scanning the two-dimensional code Product information to user, facilitate user 20 to know current product information and product specification, realize self-help shopping or from Help the functions such as checkout.
In further embodiments, the target information is also possible to product and flows to information.The product flows to information The information of the manufacture of product, factory and each intermediate links.User 20 can obtain corresponding product by scanning the two-dimensional code Information is flowed to, realizes the function of tracking for product.
It should be noted that target information corresponding with two dimensional code can be above-mentioned a variety of different types of target informations Combination cooperates the use functional requirement to meet more scenes.
202, in target information set, according to the mapping between the previously determined target information and the two dimensional code Relationship determines the mapping relations between the target information and the two dimensional code of rear determination.
After multiple target informations and corresponding two dimensional code have been determined, the two can be established using corresponding mode Between mapping relations so that user 20 after scanning the two-dimensional code, can obtain or determine two dimensional code be directed toward target Information.
When determining mapping relations, there are certain sequencings.First target information and posterior target information it Between mapping relations have correlation, if the mapping relations between previously determined target information and two dimensional code change When, the mapping relations between the target information and two dimensional code of rear determination can also change and cannot keep.
203, the step of determining the mapping relations between the target information and the two dimensional code is repeated, until target All target informations are mapped in corresponding two dimensional code in information aggregate.
In the present embodiment, the mapping relations between each two dimensional code and target information are the mapping relations before On the basis of establish.Entire mapping relations network forms a complete chain, if arbitrarily change one of two dimensional code with Mapping relations between target information, subsequent all mapping relations can all change.
Therefore, in the case where the quantity of target information is huge enough, institute is being provided with according to scheduled regular sequence After having the mapping relations between target information and two dimensional code, the structure of entire mapping relations network is difficult to be modified, and appoints What modification all can cause the information of a large amount of target information and two dimensional code to change.
Two dimensional code setting method provided in an embodiment of the present invention is being built using the principle similar with block chain technology When vertical mapping relations, unidirectional, a sequential mapping relations network, so that later mapping relations are completed in building is constructed Network is difficult to be partially modified.Such, the corresponding target information of each two dimensional code will be difficult to be modified, safety with higher Property, it can ensure the execution and realization of two dimensional code function, have a good application prospect.
Below in conjunction with specific embodiment, it is described in detail in step 202 and 203, the tool of component chain-type mapping relations network Body step.As shown in figure 3, including the following steps:
301, in target information set, at random a selected target information as initial target information with one of them two It is corresponding to tie up code.
Random select can specifically be realized using any suitable random selection method.In entire target information set In, it is thus necessary to determine that as the target information of initial value or entire mapping relations network foundation, randomly selected mode can be mentioned The safety of high system avoids the structure of mapping network from being recalled.
In this step, corresponding two dimensional code can be determined using the mapping relations function of existing any suitable type. In general, can choose the functional form with more custom parameter, to avoid mapping relations function to be acquired as far as possible.
It 302, is mapping parameters by the initial target information and the correspondence setting of two dimensional code.
After the corresponding relationship between initial target information and two dimensional code has been determined, it can adjust or calculate accordingly One of mapping parameters in mapping relations function.The mapping parameters can be calculated using complicated calculating function and be obtained, Acquisition can be inquired by the way of corresponding table.
303, according to the mapping parameters, the corresponding two dimensional code of target information N in target information set is determined.N is target In information aggregate, the quantity of target information.
After completing the Initialize installation of mapping parameters, other targets in target information set can be believed Breath establishes the mapping relations between two dimensional code using the mapping relations function.
Certainly, the sequence for the target information selected from target information set is also to carry out at random, each time all from mesh A target information is selected in mark information aggregate.In the present embodiment, it is indicated to select from target information set with positive integer N Nth object information.
Also that is, when having N number of target information in target information set, needing to select n times, (wherein first is initial mesh Mark information).
304, using the corresponding relationship of the target information N and two dimensional code, the mapping parameters are updated.
It, can be with after the setting for completing corresponding relationship or mapping relations between some target information N and two dimensional code According to this mapping relations as a result, being updated to mapping parameters, so that mapping parameters follow current target information N and two It ties up the corresponding relationship between code and corresponding variation occurs.
Specifically, can be specific according to number of the harbour of two dimensional code corresponding with target information N or two dimensional code etc. Identification information adjusts the mapping parameters.For example, two dimensional code can be numbered, then according to the number of two dimensional code in correspondence Corresponding mapping parameters are found in table, realize the update of mapping parameters.
305, according to the updated mapping parameters, the corresponding two dimensional code of target information N+1 in target collection is determined.
After mapping parameters update completion, it can continue to randomly select next target information in target information set N+1, and the mapping parameters are applied, determine the corresponding two dimensional code of the target information.In some embodiments, it can be reflected using Hash The mode penetrated is adjusted.It is of course also possible to use other suitable Function Mapping relationships.
In the preferred embodiment, in order to ensure the safety of target information and integrality, the method can also include: Target information in the target information set is divided into several subclass, is stored in not by the mode stored in a distributed manner Same storage location.
Storage location refers to the hardware storage device of distribution different location in a network, specifically can by backstage 30 into Row allotment or connection.Multiple and different hardware storage devices are arranged in a distributed fashion, are integrated into one by backstage 30 Complete storage system carries out the storage of target information.
In the present embodiment, the mode of distributed storage can be very good to guarantee the safety of information, store in fractional hardware , still can be with the safety of holding part data, so that in two dimensional code use process in the case that equipment is destroyed or fails, function It is able to achieve more stable.
Correspondingly, it is arranged and the target in target information set in step 201 with using distributed storage target information It, specifically can be with the following method when the corresponding two dimensional code of information content:
Firstly, one group of two dimensional code is arranged for each storage location.It include choosing corresponding with storage location in the two dimensional code Select label.
The selected marker can specifically be indicated by any kind of information data, using a variety of different methods, such as It with number indicates storage location, or is indicated with the hardware check code of storage location.Each storage location has corresponding One group of two dimensional code, these two dimensional codes and the target information for being stored in the storage location establish mapping relations.
30 when user 20 scans the two dimensional code from the background, can be by the selected marker in two dimensional code, and quickly positioning needs The storage location called or searched for, to accelerate the speed of two-dimensional barcode information reading.
Then, in each two dimensional code, the selected marker of remaining all two dimensional code is recorded.In addition to the selection with itself Other than label, the selected marker of other two dimensional codes is also recorded in two dimensional code accordingly.It in this way, can be two dimensional code Corresponding relationship between target information increases new one layer of validation testing.
Due to describing the selected marker of other two dimensional codes in each two dimensional code.Therefore, it is impossible to individual two dimensional code Corresponding storage location is modified, it is necessary to while selected marker that other two dimensional codes record all while being modified, This process being in fact very difficult to realization.
In embodiments of the present invention, the distributed storage mode provided by above-mentioned backstage 30, can further improve The safety of data information storage, it is not easy to lose data because of the damage of hardware device, two dimensional code is caused not to be available.
And the selected marker based on storage location is further added to additional security assurance information, so that two-dimentional The corresponding target information of code is more difficult to be modified, it is ensured that the function of marketing activity, product inquiry or product flow direction inquiry is suitable Benefit is realized.
Based on above two dimensional code setting method, the embodiment of the present invention still further provides a kind of two dimensional code.The two dimension Two dimensional code setting method setting described in code application embodiment of the method as above, maps to corresponding target information.It is swept in user 20 When retouching two dimensional code 10, by the direct information for the two dimensional code 10 that scanning obtains, by backstage 30 according to the mapping relations set, hair Send target information into the mobile terminal of user 20.
Fig. 4 is that system is arranged in a kind of two dimensional code provided in an embodiment of the present invention.As shown in figure 4, system is arranged in the two dimensional code It is made of following functional module: two-dimensional code generation module 410 and mapping block 420.
Wherein, the two-dimensional code generation module 410 is opposite with the target information quantity in target information set for being arranged The two dimensional code answered.The mapping block 420 is used in target information set, according to the previously determined target information and institute The mapping relations between two dimensional code are stated, determine the mapping relations between the target information and the two dimensional code of rear determination.
Mapping block 420 repeats the step of the mapping relations between the above-mentioned determination target information and the two dimensional code Suddenly, until target information all in target information set is mapped in corresponding two dimensional code, entire mapping relations net is completed The building of network.
Specifically, as shown in figure 4, the mapping block specifically includes: information selectes unit 421, and mapping parameters setting is single Member 422 and two dimensional code map unit 423.
Wherein, information is selected unit 421 and is used in target collection, and a selected target information is as initial target at random Information is corresponding with one of two dimensional code.The mapping parameters setting unit 422 is used for the initial target information and two The correspondence setting for tieing up code is mapping parameters.The two dimensional code map unit 423 is used to determine mesh according to the mapping parameters Mark the corresponding two dimensional code of target information N in information aggregate.N is the quantity of target information in target information set.
Target information is being extracted every time, and after its determining corresponding two dimensional code, the mapping parameters setting unit 422 is also For: using the corresponding relationship of the target information N and two dimensional code, update the mapping parameters.The two dimensional code map unit 423 are also used to: according to the updated mapping parameters, determining the corresponding two dimensional code of target information N+1 in target collection.
In some embodiments, as shown in figure 4, the system also includes distributed storage units 430.The distribution is deposited Storage unit 430 stores the core of control and distribution, the mode for storing in a distributed manner, by the target information collection as information Target information in conjunction is divided into several subclass, is stored in different storage locations.
Specifically, in order to further increase the safety of information, being mentioned when being stored using distributed storage unit 430 Information reading speed in high distributed memory system, the two-dimensional code generation module can be also used for: for each storage location One group of two dimensional code is set;It include selected marker corresponding with storage location in the two dimensional code, and in each two dimensional code, Record the selected marker of remaining all two dimensional code.
It should be noted that the two dimensional code setting method provided in above-described embodiment and corresponding two dimensional code setting system are equal It is based on identical inventive concept.It therefore, can be by corresponding the step of each specific embodiment in two dimensional code setting method System, which is arranged, in two dimensional code completes, and has corresponding technical effect, details are not described herein.
Fig. 5 is the hardware structural diagram of electronic equipment provided by the embodiments of the present application.As shown in figure 5, the equipment 50 is wrapped It includes: one or more processors 501 and memory 502, in Fig. 5 for one.
Wherein, processor 501, memory 502 can be connected by bus or other modes, to pass through bus in Fig. 5 For connection.
Memory 502 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the corresponding journey of two dimensional code setting system in the embodiment of the present invention Sequence instruction/module.Non-volatile software program, instruction and the mould that processor 501 is stored in memory 502 by operation Block, thereby executing the various function application and data processing of server, i.e. the two dimensional code setting of realization above method embodiment Method.
Memory 502 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;Storage data area can be stored is created according to using for two dimensional code setting method The data etc. built.In addition, memory 502 may include high-speed random access memory, it can also include nonvolatile memory, A for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, Optional memory 502 includes the memory remotely located relative to processor 501, these remote memories can be connected by network It is connected to background system.The example of above-mentioned network include but is not limited to internet, intranet, local area network, mobile radio communication and A combination thereof.
One or more of modules are stored in the memory 502, when by one or more of processors When 501 execution, the two dimensional code setting method in above-mentioned any means embodiment is executed.
Method provided by the embodiment of the present application can be performed in the said goods, has the corresponding functional module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present application.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those of ordinary skill in the art can be understood that each embodiment The mode of general hardware platform can be added to realize by software, naturally it is also possible to pass through hardware.Those of ordinary skill in the art can With understand all or part of the process realized in above-described embodiment method be can be instructed by computer program it is relevant hard Part is completed, and the program can be stored in a computer-readable storage medium, the program is when being executed, it may include as above State the process of the embodiment of each method.Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read- Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
It, can according to the technique and scheme of the present invention and this hair it is understood that for those of ordinary skills Bright design is subject to equivalent substitution or change, and all these changes or replacement all should belong to the guarantor of appended claims of the invention Protect range.

Claims (10)

1. a kind of two dimensional code setting method based on block chain characterized by comprising
Two dimensional code corresponding with the target information quantity in target information set is set;
In target information set, according to the mapping relations between the previously determined target information and the two dimensional code, really Mapping relations between the target information determined after being scheduled on and the two dimensional code;
The step of determining the mapping relations between the target information and the two dimensional code is repeated, until target information set In all target information be mapped in corresponding two dimensional code.
2. two dimensional code setting method according to claim 1, which is characterized in that it is described in target information set, according to Mapping relations between the previously determined target information and the two dimensional code, determine rear determination the target information with Mapping relations between the two dimensional code, specifically include:
In target collection, a selected target information is corresponding with one of two dimensional code as initial target information at random;
It is mapping parameters by the initial target information and the correspondence setting of two dimensional code;
According to the mapping parameters, determine that the corresponding two dimensional code of target information N in target information set, N are target information set In, the quantity of target information;
Using the corresponding relationship of the target information N and two dimensional code, the mapping parameters are updated;
According to the updated mapping parameters, the corresponding two dimensional code of target information N+1 in target collection is determined.
3. two dimensional code setting method according to claim 1, which is characterized in that the target information includes: marketing activity Information, product information and product flow to information.
4. two dimensional code setting method according to claim 1 to 3, which is characterized in that the method also includes:
Target information in the target information set is divided into several subclass by the mode stored in a distributed manner, storage In different storage locations.
5. two dimensional code setting method according to claim 4, which is characterized in that in the setting and target information set The corresponding two dimensional code of target information quantity, specifically includes:
For each storage location, one group of two dimensional code is set;It include selected marker corresponding with storage location in the two dimensional code;
In each two dimensional code, the selected marker of remaining all two dimensional code is recorded.
6. system is arranged in a kind of two dimensional code characterized by comprising
Two-dimensional code generation module, for two dimensional code corresponding with the target information quantity in target information set to be arranged;
Mapping block is used in target information set, according between the previously determined target information and the two dimensional code Mapping relations, determine mapping relations between the target information and the two dimensional code of rear determination, and repeat The step of determining the mapping relations between the target information and the two dimensional code, until target all in target information set Information is mapped in corresponding two dimensional code.
7. system is arranged in two dimensional code according to claim 6, which is characterized in that the mapping block specifically includes:
Information selectes unit, in target collection, a random selected target information to be as initial target information and wherein One two dimensional code is corresponding;
Mapping parameters setting unit, for being mapping parameters by the correspondence setting of the initial target information and two dimensional code;
Two dimensional code map unit, for determining the corresponding two dimension of target information N in target information set according to the mapping parameters Code, N are the quantity of target information in target information set;
The mapping parameters setting unit is also used to: using the corresponding relationship of the target information N and two dimensional code, being reflected described in update Penetrate parameter;
The two dimensional code map unit is also used to: according to the updated mapping parameters, determining the target letter in target collection Cease the corresponding two dimensional code of N+1.
8. system is arranged in two dimensional code according to claim 6 or 7, which is characterized in that the system also includes: distribution is deposited Target information in the target information set is divided into several subsets by storage unit, the mode for storing in a distributed manner It closes, exists in different storage locations.
9. system is arranged in two dimensional code according to claim 8, which is characterized in that the two-dimensional code generation module is specifically used In:
For each storage location, one group of two dimensional code is set;It include selected marker corresponding with storage location in the two dimensional code, and And in each two dimensional code, the selected marker of remaining all two dimensional code is recorded.
10. a kind of two dimensional code, which is characterized in that the two dimensional code is arranged using two dimensional code a method as claimed in any one of claims 1 to 5 Method setting, maps to corresponding target information.
CN201810800504.XA 2018-07-20 2018-07-20 Two dimensional code setting method, setting system and its two dimensional code based on block chain Pending CN109299757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810800504.XA CN109299757A (en) 2018-07-20 2018-07-20 Two dimensional code setting method, setting system and its two dimensional code based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810800504.XA CN109299757A (en) 2018-07-20 2018-07-20 Two dimensional code setting method, setting system and its two dimensional code based on block chain

Publications (1)

Publication Number Publication Date
CN109299757A true CN109299757A (en) 2019-02-01

Family

ID=65172627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810800504.XA Pending CN109299757A (en) 2018-07-20 2018-07-20 Two dimensional code setting method, setting system and its two dimensional code based on block chain

Country Status (1)

Country Link
CN (1) CN109299757A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104303198A (en) * 2013-04-15 2015-01-21 阔达银行 Method and System for Enhancing the Security of Electronic Transactions
CN106295735A (en) * 2016-07-22 2017-01-04 纷美(北京)贸易有限公司 By calculating the method and device obtaining code information
CN106845595A (en) * 2017-02-13 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of coding method of Quick Response Code, coding/decoding method, code device and decoding apparatus
CN107016428A (en) * 2016-01-28 2017-08-04 阿里巴巴集团控股有限公司 The initial method and device of a kind of Quick Response Code
CN107657460A (en) * 2017-09-08 2018-02-02 众安信息技术服务有限公司 A kind of tobacco based on block chain is false proof and source tracing method and system
CN107657457A (en) * 2016-08-10 2018-02-02 沈洪德 The method, apparatus and system of multi-level two-dimension code anti-counterfeit based on internet
AU2018100150A4 (en) * 2018-02-03 2018-03-08 Talbot, Phillip David MR Proof of delivery on the blockchain
CN107786546A (en) * 2017-09-30 2018-03-09 电子科技大学 A kind of red wine anti-fake traceability system based on privately owned chain
CN108055125A (en) * 2017-11-23 2018-05-18 阿里巴巴集团控股有限公司 A kind of encryption and decryption method and device of product information

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104303198A (en) * 2013-04-15 2015-01-21 阔达银行 Method and System for Enhancing the Security of Electronic Transactions
CN107016428A (en) * 2016-01-28 2017-08-04 阿里巴巴集团控股有限公司 The initial method and device of a kind of Quick Response Code
CN106295735A (en) * 2016-07-22 2017-01-04 纷美(北京)贸易有限公司 By calculating the method and device obtaining code information
CN107657457A (en) * 2016-08-10 2018-02-02 沈洪德 The method, apparatus and system of multi-level two-dimension code anti-counterfeit based on internet
CN106845595A (en) * 2017-02-13 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of coding method of Quick Response Code, coding/decoding method, code device and decoding apparatus
CN107657460A (en) * 2017-09-08 2018-02-02 众安信息技术服务有限公司 A kind of tobacco based on block chain is false proof and source tracing method and system
CN107786546A (en) * 2017-09-30 2018-03-09 电子科技大学 A kind of red wine anti-fake traceability system based on privately owned chain
CN108055125A (en) * 2017-11-23 2018-05-18 阿里巴巴集团控股有限公司 A kind of encryption and decryption method and device of product information
AU2018100150A4 (en) * 2018-02-03 2018-03-08 Talbot, Phillip David MR Proof of delivery on the blockchain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BIKTIMIROV, M.R.等: "Blockchain Technology: Universal Structure and Requirements", 《AUTOMATIC DOCUMENTATION AND MATHEMATICAL LINGUISTICS》 *
马昂等: "区块链技术基础及应用研究综述", 《信息安全研究》 *

Similar Documents

Publication Publication Date Title
CN108874890B (en) Block chain system with public bibliographic mechanism
CN109067541A (en) Data verification method and device, electronic equipment based on block chain
CN109829726B (en) Block chain-based drug information management method and system
CN105023161B (en) A kind of antifake method for products and its corresponding product anti-fake system
CN107330459A (en) A kind of data processing method, device and electronic equipment
CN106504042A (en) Electronic invoice new line information processing method, client of making out an invoice and relevant device
CN106651097A (en) Data collection method, data collection device and data collection server based on crowd sourcing
CN105900277A (en) Solar charger energy management and monitoring system
CN103632241A (en) Warehouse stocking method and warehouse stocking system
CN109447660A (en) A kind of source tracing method and system of object identity
CN104951952A (en) Certified product Internet of things cloud management authentication system for brand products
CN112737782B (en) Method and apparatus for providing cross-chain messages
CN110427374A (en) Tealeaves information query method, equipment, storage medium and device
CN110033285A (en) Information of real estate dissemination method, device, equipment and computer readable storage medium
KR20210082106A (en) Method for Providing Real Estate Estimated Real Transaction Price Calculation Service Using Decision Tree Based Time Series Trend Prediction Learning Model
CN116612232A (en) Digital twin system construction method, terminal equipment and storage medium
CN103745190A (en) Two-dimensional code-based performance and monitoring data presentation method
CN113760958B (en) Information query method, device, equipment and storage medium
van Strien et al. An improved neutral landscape model for recreating real landscapes and generating landscape series for spatial ecological simulations
CN109189859A (en) Node initializing method and apparatus in block chain network
CN112561721A (en) Live pig information processing method and device and block chain node point equipment
CN109102093A (en) The determination method, apparatus and electronic equipment of single hot spot region under a kind of net about vehicle
Stemkovski et al. Disorder or a new order: how climate change affects phenological variability
CN109246248B (en) Data credible safety sharing system and method based on block chain technology
Gigli et al. A decentralized oracle architecture for a blockchain-based iot global market

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20220830

AD01 Patent right deemed abandoned