CN109919654A - Integral monitoring method, device, equipment and storage medium based on block chain - Google Patents
Integral monitoring method, device, equipment and storage medium based on block chain Download PDFInfo
- Publication number
- CN109919654A CN109919654A CN201910061736.2A CN201910061736A CN109919654A CN 109919654 A CN109919654 A CN 109919654A CN 201910061736 A CN201910061736 A CN 201910061736A CN 109919654 A CN109919654 A CN 109919654A
- Authority
- CN
- China
- Prior art keywords
- integral
- block
- chain
- source
- consumption
- 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
Links
Landscapes
- Storage Device Security (AREA)
Abstract
This application involves block chain technical field more particularly to a kind of integral monitoring method, device, equipment and storage mediums based on block chain, comprising: obtains integral source, assigns the integral source and identified with ID, is identified according to the ID by the integral source typing block;The common recognition node between different blocks is established, forms integration blocks chain after connecting the block and the common recognition node;The block information for generating integral consumption is extracted from the integration blocks chain, obtains integral consumption owner information, records all integral consumption information of the integral consumption owner in the block chain;Obtain preset clearance threshold value, when the integral of the integral consumption owner reaches the clearance threshold value, integral of the integral consumption owner on the integration blocks chain is cleared, all blocks in the clearance result to the integration blocks chain are broadcasted.The application effectively prevent integral to distribute devaluation indiscriminately and integration data is easy to be tampered.
Description
Technical field
This application involves block chain technical field more particularly to a kind of integral monitoring method based on block chain, device, set
Standby and storage medium.
Background technique
Shopping integral refers to a kind of reward that user obtains after consumption, to realize customer care, customer loyalty
The purpose of promotion.Its consumption mode includes traditional scene consumption such as supermarket shopping, also includes the online purchase become increasingly popular now
Object.
The businessman of production integral is usually called integral source.Currently, integrating system is all centralization, integral power of interpretation is
Businessman is all, can arbitrarily modify, not can guarantee user's right.Especially in financial field, reconciliation is generally required to guarantee to integrate
Granting do not malfunction, and reconciliation process needs additional exploitation maintenance work, and cost is not small.The integral of each businessman or enterprise
System is all isolated isolation, can not mutually circulate, hinder the consumption of integral, lacks attraction to user.Finally, integral meeting
It is distributed indiscriminately by businessman or enterprise, integral is caused to devalue.
Summary of the invention
In view of this, it is necessary to for distributing devaluation indiscriminately there is integral in existing integrating system and what data were easily distorted asks
Topic, provides a kind of integral monitoring method, device, equipment and storage medium based on block chain.
A kind of integral monitoring method based on block chain, includes the following steps:
Integral source is obtained, the integral source is assigned and is identified with ID, is identified according to the ID by the integral source typing block;
The common recognition node between different blocks is established, forms integration blocks after connecting the block and the common recognition node
Chain;
The block information for generating integral consumption is extracted from the integration blocks chain, obtains integral consumption owner's letter
Breath records all integral consumption information of the integral consumption owner in the block chain;
Preset clearance threshold value is obtained, when the integral of the integral consumption owner reaches the clearance threshold value, to institute
It states integral of the integral consumption owner on the integration blocks chain to clear, broadcasts the clearance result to the integrated area
All blocks on block chain.
In a wherein possible embodiment, the acquisition integral source is assigned the integral source and is identified with ID, according to institute
ID mark is stated by the integral source typing block, comprising:
The integrating system type for obtaining integral source, according to the integrating system type, the integral that the integral source is generated
Data metering unit-normalization, obtains normalization integral;
According to the numerical value of the normalization integral, assigns the integral source and identified with ID;
It is identified according to the ID, assigns the integral source with different integral source keys, by the integral source key and in advance
If key rule be compared, the integral source is entered into block if meeting the preset key rule;Otherwise not
Typing.
In a wherein possible embodiment, the common recognition node established between different blocks connects the block
With formation integration blocks chain after the common recognition node, comprising:
The block key for obtaining the block establishes the common recognition node between the block according to the block key;
According to the ID mark of the common recognition node, the corresponding intelligent contract of the ID mark is obtained;
Extract the critical field in the intelligent contract, keyword described in the block key typing by different blocks
Section, detects whether the intelligent contract executes, and deletes the block key if executing, otherwise retains the block key;
The block key is inquired, if there is no the block key on the block, by the block and the common recognition
Node connects to form integration blocks chain, is otherwise not connected to.
It is described that the area for generating integral consumption is extracted from the integration blocks chain in a wherein possible embodiment
Block message obtains integral consumption owner information, records all integrals of the integral consumption owner in the block chain
Consumption information, comprising:
The integral variation block information for generating integral variation in the integration blocks chain is obtained, the integral variation zone is extracted
Any integral included in block message consumes owner information;
The biological property for obtaining the integral consumption owner tracks the integral and disappears according to the biological property
Take consumer record of the owner on the integration blocks chain;
According to the timing node of the consumer record, the integration data variation generated under the timing node is obtained, it will
The integral variable quantity and the integral of the changed block of integral under the timing node are consumed where the owner
Client integral variable quantity is checked, and the integration data for generating block described under the timing node if consistent changes note
The owner is consumed for the integral to generate, and otherwise inquires other integral consumption owner informations.
It is described to obtain preset clearance threshold value in a wherein possible embodiment, when the integral consumes the owner
Integral when reaching the clearance threshold value, integral of the integral consumption owner on the integration blocks chain is carried out clear
It calculates, broadcasts all blocks in the clearance result to the integration blocks chain, comprising:
Preset integral clearance threshold value is obtained, the integral clearance threshold value includes on integral clearance timing node and integral
Limit reaches described when the time that the client integral of the integral consumption owner reaches the upper limit of integral or integral statistics
When integral clearance timing node, the integral of the integral consumer is cleared;
Summarize the integral change information that the block of integral clearance occurs in the common recognition node connecting with the block, extensively
The integral clearance information of the common recognition node is broadcast in other common recognition nodes, other common recognition nodes clear the integral received
Information is broadcasted to the block connecting with other common recognition nodes.
In a wherein possible embodiment, the numerical value according to the normalization integral assigns the integral source
It is identified with ID, comprising:
Normalized integrated value is obtained, handles integrated value progress hexadecimal to obtain hexadecimal integral
Numerical value is identified the letter in the hexadecimal integrated value as the main ID in the integral source;
Normalized integrated value is obtained, integrated value progress octal system is converted to octadic fraction
Value, by the first place number in octadic integrated value as the integral source with secondary ID mark;
Splice the main ID mark and the secondary ID identifies to obtain the ID mark in the integral source.
In a wherein possible embodiment, the block key for obtaining the block, according to the block key
Establish the common recognition node between the block, comprising:
The block used key vector in encryption is obtained, the key vector includes that symmetric key and Hash are close
Key;
It is decrypted to obtain initial solution using preset symmetric encipherment algorithm and the corresponding ciphertext data of the symmetric key
Ciphertext data;
The random number in the key vector is decrypted to obtain Hash knot using hash algorithm and the Hash key
Fruit;
Operation is carried out to the initial ciphertext data and the Hash result and obtains final decrypted result;
It extracts and is identified with the final consistent ID of decrypted result, the data source with ID mark is made
For node of knowing together.
A kind of integral monitoring device based on block chain, including following module:
Integral source recording module is set as obtaining integral source, assigns the integral source and identified with ID, marked according to the ID
Know the integral source typing block;
Block chain establishes module, the common recognition node being arranged to set up between different blocks, connects the block and described total
Integration blocks chain is formed after knowing node;
Consumer record module is integrated, is set as extracting the block letter for generating integral consumption from the integration blocks chain
Breath obtains integral consumption owner information, records all integrals consumption of the integral consumption owner in the block chain
Information;
Integral clearance module, is set as obtaining preset clearance threshold value, when the integral of the integral consumption owner reaches
When the clearance threshold value, integral of the integral consumption owner on the integration blocks chain is cleared, described in broadcast
Clear all blocks in result to the integration blocks chain.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute
When stating computer-readable instruction and being executed by the processor, so that the processor executes the above-mentioned integral monitoring based on block chain
The step of method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more
When device executes, so that the step of one or more processors execute the above-mentioned integral monitoring method based on block chain.
Above-mentioned integral monitoring method, device, computer equipment and storage medium based on block chain, comprising: obtain integral
Source is assigned the integral source and is identified with ID, is identified according to the ID by the integral source typing block;It establishes between different blocks
Common recognition node, connect and form integration blocks chain after the block and the common recognition node;It is extracted from the integration blocks chain
The block information for generating integral consumption out obtains integral consumption owner information, records the integral consumption owner described
All integral consumption information in block chain;Preset clearance threshold value is obtained, when the integral of the integral consumption owner reaches
When the clearance threshold value, integral of the integral consumption owner on the integration blocks chain is cleared, described in broadcast
Clear all blocks in result to the integration blocks chain.The technical program effectively prevent integral meeting by block chain technology
The problem of being distributed indiscriminately by businessman or enterprise, and integral caused to devalue.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the application
Limitation.
Fig. 1 is a kind of overall flow figure of the integral monitoring method based on block chain of the application in one embodiment;
Fig. 2 is the integral source typing in a kind of integral monitoring method based on block chain of the application in one embodiment
Process schematic;
Fig. 3 is that the block chain in a kind of integral monitoring method based on block chain of the application in one embodiment is established
Process schematic;
Fig. 4 is a kind of structure chart of the integral monitoring device based on block chain of the application in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in the description of the present application
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is a kind of overall flow figure of the integral monitoring method based on block chain of the application in one embodiment,
As shown in Figure 1, a kind of integral monitoring method based on block chain, comprising the following steps:
S1 is obtained integral source, assigns the integral source and identified with ID, is identified according to the ID by the integral source typing area
Block;
Specifically, obtaining the cochain request in integral source, the identity in the integral source is veritified, i.e., by the integral source
Name of firm be compared with storage name of firm list in the database.If the integral source is in the merchant list
It then assigns the integral source to identify with ID, otherwise not assign.
S2 establishes the common recognition node between different blocks, forms integrated area after connecting the block and the common recognition node
Block chain;
Specifically, the block key A that A block uses and the block key B that B block uses are obtained, application block key B's
Block key A is decrypted in decipherment algorithm, and similarly block key B is decrypted in the decipherment algorithm of application block key A;If
Can successful decryption then build a consensus between block A and block B node, otherwise do not establish.
S3 extracts the block information for generating integral consumption from the integration blocks chain, obtains the integral consumption owner
Information records all integral consumption information of the integral consumption owner in the block chain;
Specifically, the timed task for extracting integral is obtained, when timed task triggering from the integration blocks chain
Integral consumption data is extracted in each block.The owner of integral consumption is determined according to the source that the integral consumption data generates
The mobile terminal APP data that information, the usually consumption of tracking integral generate.
S4 obtains preset clearance threshold value, right when the integral of the integral consumption owner reaches the clearance threshold value
Integral of the integral consumption owner on the integration blocks chain is cleared, and broadcasts the clearance result to the integral
All blocks on block chain.
Specifically, clearance threshold value be obtained according to historical data, for example, trade company's setting in each year last day
Clear either integral to need to clear after reaching a certain numerical value.When broadcasting the clearance result, first by integral clearance knot
Fruit, which is broadcasted to distance, occurs the nearest block in integral clearance integral source, from the near to the distant broadcasts the clearance result to the integral
All blocks on block chain.
The present embodiment is monitored by the way that process is generated and cleared to integral, distributes indiscriminately and usurp to effectively prevent integral
Change.
Fig. 2 is the integral source typing in a kind of integral monitoring method based on block chain of the application in one embodiment
Process schematic, as shown, the S1, is obtained integral source, assign the integral source and identified with ID, being identified according to the ID will
The integral source typing block, comprising:
S101, the integrating system type for obtaining integral source generate the integral source according to the integrating system type
The normalization of integration data measurement unit, obtains normalization integral;
Specifically, the IP address in integral source is obtained, by the letter in the IP address in the integral source and integrating system registration form
Breath is compared, and obtains the integrating system type in the integral source, wherein the integrating system registration form is stored in database
In.The type of integrating system obtains fixed integral after mainly having consumption, for example, 1 yuan of 1 point of product of consumption;It is accumulated at random after consumption
Point, for example, integrator meeting is extracted in the full 100 yuan of acquisitions of consumption, the numerical value of acquisition is integrated from 1 point~500 points etc..
S102, according to the numerical value of the normalization integral, assign the integral source and identified with ID;
Specifically, when to integrated normalized the original integral of identical numerical value should be used, then according to original integral normalizing
Numerical value after change is identified as the ID in the integral source.For example, the Integral Rule that A integral source uses is 1 yuan of 1 point of product of consumption, B product
The Integral Rule in point source is 10 yuan of 1 point of products of consumption, then the ID in A integral source is identified as " 10 ", the ID that B integrates source is identified as " 1 ".
S103, it is identified according to the ID, assigns the integral source with different integral source keys, by the integral source key
It is compared with preset key rule, the integral source is entered into block if meeting the preset key rule;It is no
Then not typing.
Specifically, obtaining integral cipher key list, the ID is inquired from the integral cipher key list and identifies corresponding product
Divide source key, wherein the integral source key list storage is in the database.Preset key rule refers to the type of key,
It for example is Hash key or symmetric key.
The present embodiment, by carrying out audit restriction to integral source typing block, so that it is indiscriminate to effectively prevent no qualification businessman
The problem of hair integral.
Fig. 3 is that the block chain in a kind of integral monitoring method based on block chain of the application in one embodiment is established
Process schematic, as shown, the S2, establishes the common recognition node between different blocks, connect the block and the common recognition
Integration blocks chain is formed after node, comprising:
S201, the block key for obtaining the block, the common recognition section between the block is established according to the block key
Point;
Specifically, obtaining the block key of the block, clear data is obtained after the block key is decrypted, it will
The clear data of different blocks carries out similarity comparison, if similarity is more than 99%, node of building a consensus between block.
S202, it is identified according to the ID of the common recognition node, obtains the corresponding intelligent contract of the ID mark;
Specifically, the ID mark of common recognition node is the front three character in the block key of common recognition node even, inquiry intelligence
Contract list extracts the intelligent contract that intelligent contract title is the front three character from the intelligent contract list, i.e.,
For the corresponding intelligent contract of ID mark.Wherein, the intelligent contract list stores in the database.
S203, critical field in the intelligent contract is extracted, is closed described in the block key typing by different blocks
Key field, detects whether the intelligent contract executes, and deletes the block key if executing, it is close otherwise to retain the block
Key;
Wherein, the critical field in the intelligent contract refers to integral calculation rule field.
S204, the inquiry block key, if there is no the block key on the block, by the block with it is described
Common recognition node connects to form integration blocks chain, is otherwise not connected to.
The present embodiment veritifies block key by intelligent contract, to ensure that common recognition node can receive it
The data that the block of connection generates.
In one embodiment, the S3 extracts the block information for generating integral consumption from the integration blocks chain,
Integral consumption owner information is obtained, all integrals consumption letter of the integral consumption owner in the block chain is recorded
Breath, comprising:
The integral variation block information for generating integral variation in the integration blocks chain is obtained, the integral variation zone is extracted
Any integral included in block message consumes owner information;
Specifically, obtain when the integration blocks chain is established the integrated value in each integral source, using the time as abscissa,
Integrated value is ordinate, establishes integrated value change curve;One timed task is set, when timed task triggering,
Any bar curve in the integrated value change curve is extracted, whether parallel with horizontal axis detects the curve;If the song
Line is not parallel with horizontal axis, then obtains the changed point of the slope of curve, and inquiry obtains described changed institute of curvature
Corresponding integral owner's identity information.
The biological property for obtaining the integral consumption owner tracks the integral and disappears according to the biological property
Take consumer record of the owner on the integration blocks chain;
Specifically, when obtaining integral owner's identity information by the password of integral owner typing in consumption, such as
Finger-print cipher, numerical ciphers etc. veritify integral owner's identity information.
According to the timing node of the consumer record, the integration data variation generated under the timing node is obtained, it will
The integral variable quantity and the integral of the changed block of integral under the timing node are consumed where the owner
Client integral variable quantity is checked, and the integration data for generating block described under the timing node if consistent changes note
The owner is consumed for the integral to generate, and otherwise inquires other integral consumption owner informations.
The present embodiment integrates the problem of distributing indiscriminately by being tracked to integral generation process so as to avoid trade company.
In one embodiment, the S4, the preset clearance threshold value of acquisition, when the integral of the integral consumption owner reaches
When to the clearance threshold value, integral of the integral consumption owner on the integration blocks chain is cleared, institute is broadcasted
State all blocks in clearance result to the integration blocks chain, comprising:
Preset integral clearance threshold value is obtained, the integral clearance threshold value includes on integral clearance timing node and integral
Limit reaches described when the time that the client integral of the integral consumption owner reaches the upper limit of integral or integral statistics
When integral clearance timing node, the integral of the integral consumer is cleared;
Specifically, summarizing the integral of the integral consumption owner in the block, the product in each integral source is called
Divide conversion formula, identified according to the corresponding integral source ID of the integral, the integral source that the integral belongs to is obtained, according to the product
The Integral Transformation formula for dividing source is sent to the client of the integral consumption consumer by Integral Transformation at fund.
Summarize the integral change information that the block of integral clearance occurs in the common recognition node connecting with the block, extensively
The integral clearance information of the common recognition node is broadcast in other common recognition nodes, other common recognition nodes clear the integral received
Information is broadcasted to the block connecting with other common recognition nodes.
It wherein, will be described after integral change information is marked at the time of the common recognition node occurs according to integral variation
Integral clearance information is broadcasted to other common recognition nodes.
The present embodiment, by being monitored to integral clearance process, to effectively prevent embezzling part of what should be issued when integral clearance
The problem of integral.
In one embodiment, the S102, according to the numerical value of the normalization integral, assign the integral source and marked with ID
Know, comprising:
Normalized integrated value is obtained, handles integrated value progress hexadecimal to obtain hexadecimal integral
Numerical value is identified the letter in the hexadecimal integrated value as the main ID in the integral source;
Normalized integrated value is obtained, integrated value progress octal system is converted to octadic fraction
Value, by the first place number in octadic integrated value as the integral source with secondary ID mark;
The random number in the key is decrypted with key hashing and the Hash key using preset
To Hash result;
Wherein, Hash key has characteristics that original password using hash function to obtaining after data encryption
A cryptographic Hash is obtained after hash function calculates;Change original password, the calculated cryptographic Hash of hash function also can accordingly change
Become;Same password, cryptographic Hash are also identical;Hash function is unidirectional, irreversible.
Splice the main ID mark and the secondary ID identifies to obtain the ID mark in the integral source.
Wherein, multiple integral sources can using identical ID identify, the present embodiment in order to do not have to integral type product
Point source carries out and uses and obtain the ID mark in integral source by the way of major-minor mark splicing, in order to carry out integral variation or clearly
When calculation, handled according to the Integral Rule that different type integrates source.
In one embodiment, the block key of the S201, the acquisition block, establishes institute according to the block key
State the common recognition node between block, comprising:
The block used key vector in encryption is obtained, the key vector includes that symmetric key and Hash are close
Key;
It is decrypted to obtain initial solution using preset symmetric encipherment algorithm and the corresponding ciphertext data of the symmetric key
Ciphertext data;
Wherein, symmetric key encryption is called private key encryption or shared key encryption, that is, sends and receives the double of data
Side must use identical key pair that operation is encrypted and decrypted in plain text.Symmetric key encryption algorithm specifically include that DES, 3DES,
IDEA, FEAL, BLOWFISH etc..
The random number in the key vector is decrypted to obtain Hash knot using hash algorithm and the Hash key
Fruit;
Wherein, Hash key has characteristics that original password using hash function to obtaining after data encryption
A cryptographic Hash is obtained after hash function calculates;Change original password, the calculated cryptographic Hash of hash function also can accordingly change
Become;Same password, cryptographic Hash are also identical;Hash function is unidirectional, irreversible.
Operation is carried out to the initial ciphertext data and the Hash result and obtains final decrypted result;
Specifically, summation operation can be used when carrying out operation to the initial ciphertext data and the Hash result,
"AND", NOT operation can be used.
It extracts and is identified with the final consistent ID of decrypted result, the data source with ID mark is made
For node of knowing together.
The present embodiment, by knowing together, node forming process is defined, thus can when area's data in block is distorted
Information will be distorted and broadcast each block to integration blocks chain in time.
In one embodiment it is proposed that a kind of integral monitoring device based on block chain, as shown in figure 4, including as follows
Module:
Integral source recording module 41 is set as obtaining integral source, assigns the integral source and identified with ID, according to the ID
It identifies the integral source typing block;
Block chain establishes module 42, the common recognition node being arranged to set up between different blocks, connects the block and described
Integration blocks chain is formed after common recognition node;
Consumer record module 43 is integrated, is set as extracting the block letter for generating integral consumption from the integration blocks chain
Breath obtains integral consumption owner information, records all integrals consumption of the integral consumption owner in the block chain
Information;
Integral clearance module 44, is set as obtaining preset clearance threshold value, when the integral of the integral consumption owner reaches
When to the clearance threshold value, integral of the integral consumption owner on the integration blocks chain is cleared, institute is broadcasted
State all blocks in clearance result to the integration blocks chain.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute
When stating computer-readable instruction and being executed by the processor, so that the processor, which executes, is based on area described in the various embodiments described above
The step of integral monitoring method of block chain.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more
When device executes, so that one or more processors execute the integral monitoring method based on block chain described in the various embodiments described above
Step.The storage medium can be non-volatile memory medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of the technical characteristic in example to be all described, as long as however, lance is not present in the combination of these technical characteristics
Shield all should be considered as described in this specification.
The some exemplary embodiments of the application above described embodiment only expresses, wherein describe it is more specific and detailed,
But it cannot be understood as the limitations to the application the scope of the patents.It should be pointed out that for the ordinary skill of this field
For personnel, without departing from the concept of this application, various modifications and improvements can be made, these belong to the application
Protection scope.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of integral monitoring method based on block chain characterized by comprising
Integral source is obtained, the integral source is assigned and is identified with ID, is identified according to the ID by the integral source typing block;
The common recognition node between different blocks is established, forms integration blocks chain after connecting the block and the common recognition node;
The block information for generating integral consumption is extracted from the integration blocks chain, obtains integral consumption owner information, note
Record all integral consumption information of the integral consumption owner in the block chain;
Preset clearance threshold value is obtained, when the integral of the integral consumption owner reaches the clearance threshold value, to the product
Divide integral of the consumption owner on the integration blocks chain to clear, broadcasts the clearance result to the integration blocks chain
On all blocks.
2. the integral monitoring method according to claim 1 based on block chain, which is characterized in that the acquisition integral source,
It assigns the integral source to identify with ID, be identified according to the ID by the integral source typing block, comprising:
The integrating system type for obtaining integral source, according to the integrating system type, the integration data that the integral source is generated
Measurement unit normalization, obtains normalization integral;
According to the numerical value of the normalization integral, assigns the integral source and identified with ID;
Identified according to the ID, assign the integral source with different integral source keys, by the integral source key with it is preset
Key rule is compared, and the integral source is entered into block if meeting the preset key rule;Otherwise not typing.
3. the integral monitoring method according to claim 1 based on block chain, which is characterized in that described to establish different blocks
Between common recognition node, connect and form integration blocks chain after the block and the common recognition node, comprising:
The block key for obtaining the block establishes the common recognition node between the block according to the block key;
According to the ID mark of the common recognition node, the corresponding intelligent contract of the ID mark is obtained;
Extract the critical field in the intelligent contract, critical field described in the block key typing by different blocks, inspection
It surveys whether the intelligent contract executes, deletes the block key if executing, otherwise retain the block key;
The block key is inquired, if there is no the block key on the block, by the block and the common recognition node
Connection forms integration blocks chain, is otherwise not connected to.
4. the integral monitoring method according to claim 1 based on block chain, which is characterized in that described from the integrated area
The block information for generating integral consumption is extracted in block chain, obtains integral consumption owner information, records integral consumption institute
All integral consumption information of the person of having in the block chain, comprising:
The integral variation block information for generating integral variation in the integration blocks chain is obtained, the integral variation block letter is extracted
Any integral included in breath consumes owner information;
The biological property for obtaining the integral consumption owner tracks the integral and consumes institute according to the biological property
Consumer record of the person of having on the integration blocks chain;
According to the timing node of the consumer record, the integration data variation generated under the timing node is obtained, it will be described
The integral variable quantity and the integral of the changed block of integral under timing node consume the client where the owner
End integral variable quantity is checked, and the integration data variation that block described under the timing node generates is denoted as institute if consistent
It states the integral consumption owner to generate, otherwise inquires other integral consumption owner informations.
5. the integral monitoring method according to claim 1 based on block chain, which is characterized in that the acquisition is preset clear
Threshold value is calculated, when the integral of the integral consumption owner reaches the clearance threshold value, to the integral consumption owner in institute
The integral stated on integration blocks chain is cleared, and all blocks in the clearance result to the integration blocks chain, packet are broadcasted
It includes:
Preset integral clearance threshold value is obtained, the integral clearance threshold value includes that integral clears timing node and upper limit of integral, when
The client integral of the integral consumption owner reaches the upper limit of integral or the time of integral statistics reaches the integral
When clearing timing node, the integral of the integral consumer is cleared;
Summarize the integral change information that the block of integral clearance occurs in the common recognition node connecting with the block, broadcasts institute
The integral clearance information of common recognition node is stated in other common recognition nodes, the integral received is cleared information by other common recognition nodes
The block that broadcast is extremely connect with other common recognition nodes.
6. the integral monitoring method according to claim 2 based on block chain, which is characterized in that described according to the normalizing
The numerical value for changing integral, is assigned the integral source and is identified with ID, comprising:
Normalized integrated value is obtained, handles integrated value progress hexadecimal to obtain hexadecimal fraction
Value is identified the letter in the hexadecimal integrated value as the main ID in the integral source;
Normalized integrated value is obtained, integrated value progress octal system is converted to octadic integrated value, it will
First place number in octadic integrated value is as the integral source with secondary ID mark;
Splice the main ID mark and the secondary ID identifies to obtain the ID mark in the integral source.
7. the integral monitoring method according to claim 3 based on block chain, which is characterized in that described to obtain the block
Block key, the common recognition node between the block is established according to the block key, comprising:
The block used key vector in encryption is obtained, the key vector includes symmetric key and Hash key;
It is decrypted to obtain initial decryption number using preset symmetric encipherment algorithm and the corresponding ciphertext data of the symmetric key
According to;
The random number in the key vector is decrypted to obtain Hash result using hash algorithm and the Hash key;
Operation is carried out to the initial ciphertext data and the Hash result and obtains final decrypted result;
It extracts and is identified with the final consistent ID of decrypted result, using the data source with ID mark as altogether
Know node.
8. a kind of integral monitoring device based on block chain characterized by comprising
Integral source recording module is set as obtaining integral source, assigns the integral source and identified with ID, and being identified according to the ID will
The integral source typing block;
Block chain establishes module, the common recognition node being arranged to set up between different blocks, connects the block and common recognition section
Integration blocks chain is formed after point;
Consumer record module is integrated, is set as extracting the block information for generating integral consumption from the integration blocks chain, obtain
Integral consumption owner information is taken, all integral consumption information of the integral consumption owner in the block chain are recorded;
Integral clearance module, is set as obtaining preset clearance threshold value, when the integral of the integral consumption owner reaches described
When clearing threshold value, integral of the integral consumption owner on the integration blocks chain is cleared, the clearance is broadcasted
As a result to all blocks on the integration blocks chain.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described
When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right
It is required that the step of integral monitoring method based on block chain.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more
When device executes, so that one or more processors are executed is based on block chain as described in any one of claims 1 to 7 claim
Integral monitoring method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910061736.2A CN109919654A (en) | 2019-01-23 | 2019-01-23 | Integral monitoring method, device, equipment and storage medium based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910061736.2A CN109919654A (en) | 2019-01-23 | 2019-01-23 | Integral monitoring method, device, equipment and storage medium based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109919654A true CN109919654A (en) | 2019-06-21 |
Family
ID=66960498
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910061736.2A Pending CN109919654A (en) | 2019-01-23 | 2019-01-23 | Integral monitoring method, device, equipment and storage medium based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109919654A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110503559A (en) * | 2019-08-29 | 2019-11-26 | 深圳前海微众银行股份有限公司 | Liquidation method, device, equipment and computer storage medium based on block chain |
CN110659975A (en) * | 2019-10-11 | 2020-01-07 | 腾讯科技(深圳)有限公司 | Resource transfer method, device, equipment and storage medium based on block chain |
CN111414598A (en) * | 2019-09-26 | 2020-07-14 | 腾讯科技(深圳)有限公司 | Monitoring method, device and equipment based on block chain and storage medium |
CN112529626A (en) * | 2020-12-15 | 2021-03-19 | 深圳市快付通金融网络科技服务有限公司 | Method, device and equipment for clearing integral data and storage medium |
CN113159612A (en) * | 2021-05-08 | 2021-07-23 | 广东东方翠健康科技有限公司 | Evaluation output method and system based on block chain |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122993A (en) * | 2017-04-24 | 2017-09-01 | 杭州趣链科技有限公司 | A kind of General integral system based on block chain |
CN107563754A (en) * | 2017-08-17 | 2018-01-09 | 杭州云象网络技术有限公司 | A kind of storage of serial number information and verification method based on block chain |
US20180276626A1 (en) * | 2017-03-21 | 2018-09-27 | Dappsters, LLC | Blockchain systems and methods |
CN108764993A (en) * | 2018-05-23 | 2018-11-06 | 栾友祥 | A kind of store promotional system based on block chain |
CN108830632A (en) * | 2018-04-24 | 2018-11-16 | 深圳市轱辘车联数据技术有限公司 | A kind of integration managing method, block chain node device and client |
CN108846673A (en) * | 2018-07-02 | 2018-11-20 | 苏州我的打工人力资源有限公司 | A kind of processing method of block data, device, equipment and storage medium |
CN109040012A (en) * | 2018-06-19 | 2018-12-18 | 西安电子科技大学 | A kind of data security protecting and sharing method based on block chain and system and application |
-
2019
- 2019-01-23 CN CN201910061736.2A patent/CN109919654A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180276626A1 (en) * | 2017-03-21 | 2018-09-27 | Dappsters, LLC | Blockchain systems and methods |
CN107122993A (en) * | 2017-04-24 | 2017-09-01 | 杭州趣链科技有限公司 | A kind of General integral system based on block chain |
CN107563754A (en) * | 2017-08-17 | 2018-01-09 | 杭州云象网络技术有限公司 | A kind of storage of serial number information and verification method based on block chain |
CN108830632A (en) * | 2018-04-24 | 2018-11-16 | 深圳市轱辘车联数据技术有限公司 | A kind of integration managing method, block chain node device and client |
CN108764993A (en) * | 2018-05-23 | 2018-11-06 | 栾友祥 | A kind of store promotional system based on block chain |
CN109040012A (en) * | 2018-06-19 | 2018-12-18 | 西安电子科技大学 | A kind of data security protecting and sharing method based on block chain and system and application |
CN108846673A (en) * | 2018-07-02 | 2018-11-20 | 苏州我的打工人力资源有限公司 | A kind of processing method of block data, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
杨慧琴等: "基于区块链技术的互信共赢型供应链信息平台构建", 《科技进步与对策》, vol. 35, no. 05, pages 21 - 31 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110503559A (en) * | 2019-08-29 | 2019-11-26 | 深圳前海微众银行股份有限公司 | Liquidation method, device, equipment and computer storage medium based on block chain |
CN110503559B (en) * | 2019-08-29 | 2024-04-09 | 深圳前海微众银行股份有限公司 | Block chain-based clearing method, device, equipment and computer storage medium |
CN111414598A (en) * | 2019-09-26 | 2020-07-14 | 腾讯科技(深圳)有限公司 | Monitoring method, device and equipment based on block chain and storage medium |
CN110659975A (en) * | 2019-10-11 | 2020-01-07 | 腾讯科技(深圳)有限公司 | Resource transfer method, device, equipment and storage medium based on block chain |
CN112529626A (en) * | 2020-12-15 | 2021-03-19 | 深圳市快付通金融网络科技服务有限公司 | Method, device and equipment for clearing integral data and storage medium |
CN113159612A (en) * | 2021-05-08 | 2021-07-23 | 广东东方翠健康科技有限公司 | Evaluation output method and system based on block chain |
CN113159612B (en) * | 2021-05-08 | 2023-09-19 | 广东东方翠健康科技有限公司 | Evaluation output method and system based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109919654A (en) | Integral monitoring method, device, equipment and storage medium based on block chain | |
Liu et al. | A blockchain-based framework of cross-border e-commerce supply chain | |
Adiyanto et al. | Authentication of transaction process in e-marketplace based on blockchain?? technology | |
Liu et al. | Knowledge discovery in cryptocurrency transactions: A survey | |
US20210217007A1 (en) | Distributed ledger for encrypted digital identity | |
CN109086585A (en) | History data processing method, system and computer readable storage medium | |
CN105745666B (en) | For protecting the anonymous link of consumer privacy | |
CN108734028A (en) | Data managing method, block chain node based on block chain and storage medium | |
CN110032882A (en) | Card method and apparatus are deposited based on block chain | |
Ullah et al. | Privacy in targeted advertising: A survey | |
Sharma et al. | Bitcoin’s blockchain data analytics: A graph theoretic perspective | |
CN113657609B (en) | Data management method and system based on block chain and federation transfer learning | |
CN109345404A (en) | A kind of sharing method based on block chain agricultural data | |
Kaushik et al. | Role of blockchain technology in digital forensics | |
Victor et al. | A taxonomy for distributed ledger analytics | |
Chopra | M-Wallet technology acceptance by street vendors in India | |
CN113888349A (en) | Electric power data analysis system | |
KR102128875B1 (en) | Method and system for distributing revenue on project results generated by a specialist based on contribution information | |
Moalosi et al. | Combating credit card fraud with online behavioural targeting and device fingerprinting | |
Liu et al. | A blockchain‐based privacy‐preserving advertising attribution architecture: Requirements, design, and a prototype implementation | |
KR102532968B1 (en) | Personal data collection and management device using a personal ledger linked with blockchain | |
Wong et al. | A privacy-preserving coalition loyalty program | |
Øverby et al. | Big data economics | |
US20190026778A1 (en) | Geographically Targeted Message Delivery Using Point-of-Sale Data | |
Mazzeo Rinaldi et al. | Information balance between newspapers and social networks |
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 |