CN109035018A - The data record statistical method and device of intelligent contract in a kind of block chain - Google Patents
The data record statistical method and device of intelligent contract in a kind of block chain Download PDFInfo
- Publication number
- CN109035018A CN109035018A CN201810755341.8A CN201810755341A CN109035018A CN 109035018 A CN109035018 A CN 109035018A CN 201810755341 A CN201810755341 A CN 201810755341A CN 109035018 A CN109035018 A CN 109035018A
- Authority
- CN
- China
- Prior art keywords
- data
- intelligent contract
- block chain
- record
- key values
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides the data record statistical methods and device of contract intelligent in a kind of block chain, are related to block chain technical field.Method includes: to receive the data record statistics instruction of intelligent contract;The data record statistics instruction of intelligent contract includes one or more intelligent contract data types of pending statistics;According to one or more intelligent contract data types of pending statistics, data key values corresponding with one or more intelligence contract data types are obtained in block chain network system;Inquire the corresponding record variable of data key values;Record variable is to occur to update the numerical value to be formed when corresponding intelligent contract behavior in block chain network system.The present invention is without traversal block chain network or the mode of database, it can solve and need largely to traverse and identify by the way of traversal block chain network or database, so that the data record statistics of intelligent contract is more slowly complicated, and the problem of statistical result inaccuracy.
Description
Technical field
The present invention relates to a kind of data record statistics sides of contract intelligent in block chain technical field more particularly to block chain
Method and device.
Background technique
Currently, having begun application block chain in fields such as financial transactions with the continuous development of block chain technology.And
It in block chain technology, generally requires and is related to intelligent contract, intelligent contract is that one kind is intended to be propagated in a manner of information-based, be verified
Or execute the computer protocol of contract.Intelligent contract permission carries out credible transaction in no third-party situation, these transaction
It is traceable and irreversible.In the intelligent contract of block chain, there are many behaviors, such as user's registration, user are supplemented with money, assets
The behavior of distribution etc., a large amount of intelligence contract can generate a large amount of data record, bring sternness to the statistics of data record and examine
It tests.
Currently, the data record statistical of intelligent contract is generally traversal mode in block chain, i.e., to count a certain
The quantity (such as user's registration quantity in statistics block chain network, a certain user supplement number etc. with money) of kind of data record, then
Need from traversing various data in block chain network or from database relevant to block chain network, and find and identify with
The relevant data of this kind of data record, to obtain the quantity of a certain data record.However, aforesaid way needs a large amount of time
It goes through and identifies, so that the data record statistics of intelligent contract is more slowly complicated, and be easy in discrimination process there are false statistic,
So that final statistical result inaccuracy.
Summary of the invention
The embodiment of the present invention provides the data record statistical method and device of intelligent contract in a kind of block chain, to solve
It needs largely to traverse and identify by the way of traversal block chain network or database, so that the data record system of intelligent contract
Haggle over to be slowly complicated, and the problem of statistical result inaccuracy.
In order to achieve the above objectives, the present invention adopts the following technical scheme:
The data record statistical method of intelligent contract in a kind of block chain, comprising:
The data record for receiving intelligent contract counts instruction;It is described intelligence contract data record statistics instruction include into
One or more intelligent contract data types of row statistics;
According to one or more intelligent contract data types of the pending statistics, obtained in block chain network system
Data key values corresponding with the one or more intelligent contract data types;
Inquire the corresponding record variable of the data key values;The record variable is the generation pair in block chain network system
The numerical value to be formed is updated when the intelligent contract behavior answered.
Specifically, the intelligence contract data type includes number of users, amount of assets, assets distribution number, Yong Huchong
It is worth one of number, user's assets remaining sum, the number of user information modification and user's remittance number or a variety of.
Further, before receiving the data record statistics instruction of intelligent contract, this method further include:
When initializing to intelligent contract, setting is for recording the corresponding intelligent contract number of various intelligent contract behaviors
It is initialized according to the data key values of type, and by the corresponding record variable of data key values;
It will be in the block in each data key values and corresponding record variable write-in block chain network system.
Further, it in the block in block chain network system is being written into each data key values and corresponding record variable
Afterwards, this method further include:
When an intelligent contract behavior occurring in block chain network system, transferred in the block in block chain network system
The data key values of the corresponding intelligent contract data type of the intelligence contract behavior, obtain the corresponding record variable of the data key values;
The correlation values of the corresponding intelligent contract data type of the intelligent contract behavior are obtained, and according to the dependency number
Value updates the corresponding record variable of the data key values;
The corresponding record variable of the updated data key values is re-write in the block in block chain network system.
The data record statistic device of intelligent contract in a kind of block chain, comprising:
Instruction receiving unit, the data record for receiving intelligent contract count instruction;The data note of the intelligence contract
Record statistics instruction includes one or more intelligent contract data types of pending statistics;
Data key values acquiring unit, for one or more intelligent contract data types according to the pending statistics,
It is obtained in block chain network system and the corresponding data key values of one or more intelligence contract data types;
Record variable query unit, for inquiring the corresponding record variable of the data key values;The record variable be
Occur to update the numerical value to be formed when corresponding intelligent contract behavior in block chain network system.
Specifically, the intelligence contract data type includes number of users, amount of assets, assets distribution number, Yong Huchong
It is worth one of number, user's assets remaining sum, the number of user information modification and user's remittance number or a variety of.
Further, in the block chain intelligent contract data record statistic device, further includes:
Setting unit, for when initializing to intelligent contract, setting to be for recording various intelligent contract behaviors pair
The data key values for the intelligent contract data type answered, and the corresponding record variable of data key values is initialized;
Data write unit, for each data key values and corresponding record variable to be written to the area in block chain network system
In block.
Further, in the block chain intelligent contract data record statistic device, further includes:
Data transfer unit, when for an intelligent contract behavior to occur in block chain network system, in block chain network
The data key values that the corresponding intelligent contract data type of the intelligence contract behavior is transferred in block in system, obtain the data key
It is worth corresponding record variable;
Record variable updating unit, for obtaining the correlation of the corresponding intelligent contract data type of the intelligent contract behavior
Numerical value, and the corresponding record variable of the data key values is updated according to the correlation values;
The data write unit is also used to the corresponding record variable of the updated data key values re-writing block
In block in chain network system.
A kind of computer readable storage medium, is stored thereon with computer program, realization when which is executed by processor
Following steps:
The data record for receiving intelligent contract counts instruction;It is described intelligence contract data record statistics instruction include into
One or more intelligent contract data types of row statistics;
According to one or more intelligent contract data types of the pending statistics, obtained in block chain network system
Data key values corresponding with the one or more intelligent contract data types;
Inquire the corresponding record variable of the data key values;The record variable is the generation pair in block chain network system
The numerical value to be formed is updated when the intelligent contract behavior answered.
A kind of computer equipment including memory, processor and is stored in the meter that storage is upper and can run on a processor
Calculation machine program, the processor perform the steps of when executing described program
The data record for receiving intelligent contract counts instruction;It is described intelligence contract data record statistics instruction include into
One or more intelligent contract data types of row statistics;
According to one or more intelligent contract data types of the pending statistics, obtained in block chain network system
Data key values corresponding with the one or more intelligent contract data types;
Inquire the corresponding record variable of the data key values;The record variable is the generation pair in block chain network system
The numerical value to be formed is updated when the intelligent contract behavior answered.
The data record statistical method and device of intelligent contract in a kind of block chain provided in an embodiment of the present invention, by
The corresponding data key values of one or more intelligent contract data types are preset in block chain network system, are receiving intelligence
It, can be according to one or more intelligent contract data types of pending statistics, in area when the data record of energy contract counts instruction
It is obtained in block chain network system and the corresponding data key values of one or more intelligence contract data types;Inquire data key
It is worth corresponding record variable;The record variable is update when corresponding intelligent contract behavior occurring in block chain network system
The numerical value of formation.To which the data record that can directly obtain relevant intelligent contract according to the record variable counts.As it can be seen that this hair
It is bright without traversal block chain network or the mode of database, the data record system of intelligent contract can be completed in block chain
Meter can solve and be needed largely to traverse and identify by the way of traversal block chain network or database, so that intelligent contract
Data record statistics it is more slowly complicated, and the problem of statistical result inaccuracy.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is the flow chart of the data record statistical method of intelligent contract in a kind of block chain provided in an embodiment of the present invention
One;
Fig. 2 is the flow chart of the data record statistical method of intelligent contract in a kind of block chain provided in an embodiment of the present invention
Two;
Fig. 3 is that the structure of the data record statistic device of intelligent contract in a kind of block chain provided in an embodiment of the present invention is shown
It is intended to one;
Fig. 4 is that the structure of the data record statistic device of intelligent contract in a kind of block chain provided in an embodiment of the present invention is shown
It is intended to two.
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, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of data record statistical method of intelligent contract in block chain, packet
It includes:
Step 101, the data record for receiving intelligent contract count instruction.
Wherein, the data record statistics instruction of the intelligence contract includes one or more intelligent contract numbers of pending statistics
According to type.
Step 102, one or more intelligent contract data types according to pending statistics, in block chain network system
Obtain data key values corresponding with one or more intelligence contract data types.
Step 103, the corresponding record variable of inquiry data key values;The record variable is to occur in block chain network system
The numerical value to be formed is updated when corresponding intelligence contract behavior.
The data record statistical method of intelligent contract in a kind of block chain provided in an embodiment of the present invention, by block chain
The corresponding data key values of one or more intelligent contract data types are preset in network system, are receiving intelligent contract
Data record when counting instruction, can be according to one or more intelligent contract data types of pending statistics, in block link network
It is obtained in network system and the corresponding data key values of one or more intelligence contract data types;It is corresponding to inquire data key values
Record variable;The record variable occurs to update to be formed when corresponding intelligent contract behavior in block chain network system
Numerical value.To which the data record that can directly obtain relevant intelligent contract according to the record variable counts.As it can be seen that the present invention is not necessarily to
By the way of traversal block chain network or database, the data record statistics of intelligent contract can be completed in block chain, it can be with
It solves to need by the way of traversal block chain network or database largely to traverse and identify, so that the data note of intelligent contract
Record statistics is more slowly complicated, and the problem of statistical result inaccuracy.
In order to enable those skilled in the art is better understood by the present invention, come below with reference to a specific example to the present invention
It is illustrated.As shown in Fig. 2, the embodiment of the present invention provides a kind of data record statistical method of intelligent contract in block chain, packet
It includes:
Step 201 initializes intelligent contract, and setting is closed for recording the corresponding intelligence of various intelligent contract behaviors
The about data key values of data class, and the corresponding record variable of data key values is initialized.
Intelligent contract in the embodiment of the present invention refers to a kind of rule that can satisfy any calculating scene in block chain technology
Then gather.And intelligent contract behavior can be the related behavior such as relevant transaction and account in block chain network, such as
User's registration, assets distribution, user supplements with money, user information modify, user remittance operate etc..And the corresponding intelligence of intelligence contract behavior
Energy contract data type includes data class relevant to quantity, number or the amount of money etc. in intelligent contract behavior, such as user's note
Corresponding volume is number of users, and assets distribution can correspond to amount of assets or assets distribution number, and user, which supplements with money, to be corresponded to
User supplements number or user's assets remaining sum, the number that user information modification can be modified with corresponding user information, user's remittance with money
Operation can correspond to user and remit money number, but be not only limited to this, about in intelligent contract behavior with quantity, number or the amount of money etc.
Relevant data class can also have very much, will not enumerate herein.
In addition, the data key values of the intelligence contract data type refer to the key assignments of the index for carrying out record variable search
(key);Such as number of users, there is key=usercount;For amount of assets, there can be key=assetcount;It is right
In user's assets remaining sum, there can be key=address.Above several data key values, other intelligence contract numbers are only enumerated herein
It is identical as aforesaid way according to the data key values of type, it will not enumerate herein.In addition the corresponding record variable of data key values is
For value value, for recording the numerical value such as the corresponding quantity of intelligent contract data type, number, the amount of money.For example, for number of users
Key=usercount, value=100 are measured, indicates that number of users is 100.
In addition, initializing the corresponding record variable of data key values herein refers to the corresponding record variable of data key values
It is set to 0, i.e. value=0.
Step 202, will each data key values and corresponding record variable write-in block chain network system in block in.
Step 203, when any intelligent contract behavior occurring in block chain network system, in block chain network system
The data key values that the corresponding intelligent contract data type of the intelligence contract behavior is transferred in block, it is corresponding to obtain the data key values
Record variable.
For example, user's registration has occurred in block chain network system, then it can be in the block in block chain network system
The data key values of calling and obtaining user quantity: key=usercount, to obtain the corresponding record variable value=of the data key values
0 (i.e. after by data key values corresponding record variable initialization, value is initialised and is 0, is having a large number of users note certainly
After volume, 0) value is not.
In another example assets distribution has occurred in block chain network system, then it can be in the block in block chain network system
In transfer the data key values of amount of assets: key=assetcount, to obtain the corresponding record variable of the data key values
(i.e. after by the corresponding record variable initialization of data key values, value is initialised and is 0 value=0, is having largely certainly
After assets distribution, 0) value is not.
It is supplemented with money in another example user has occurred in block chain network system, then it can be in the block in block chain network system
The data key values of middle calling and obtaining user assets remaining sum: key=address, to obtain the corresponding record variable of the data key values
(i.e. after by the corresponding record variable initialization of data key values, value is initialised and is 0 value=0, is having user certainly
In the case where assets remaining sum, 0) value is not.
Step 204, the correlation values for obtaining the corresponding intelligent contract data type of intelligent contract behavior, and according to dependency number
Value updates the corresponding record variable of the data key values.
The correlation values of the corresponding intelligent contract data type of intelligent contract behavior can be number (such as 1 time), and quantity is (such as
Quantity 1) or the amount of money (such as 100 yuans).
For example, for the data key values of number of users: key=usercount, value=0, and user's registration is corresponding
The correlation values of number of users are 1 time, that is, have a user to be registered, and therefore, value value are added 1, that is, updates and is formed
Key=usercount, value=1.
In another example for the data key values of amount of assets: key=assetcount, value=0, and assets distribution corresponds to
Amount of assets correlation values be 1, that is, there is an asset class to be issued, therefore, value value added 1, that is, is updated
Form key=assetcount, value=1.
In another example for the data key values of user's assets remaining sum: key=address, value=0, and user supplements with money pair
The correlation values for the amount of money answered are 100, i.e. user has supplemented 100 with money, therefore, value value are added 100, that is, updates and forms key=
Address, value=100.
Step 205 re-writes the updated data key values corresponding record variable in block chain network system
In block.
If subsequent in block chain network system continue that a series of intelligent contract behaviors occur, can continue to use step
203, to step 205, are updated with the record variable answered data key-value pair.
For example, forming the data key values for number of users: key=usercount, value=by repeatedly updating
5000;For the data key values of amount of assets: key=assetcount, value=45;For the data of user's assets remaining sum
Key assignments: key=address, value=3500.
Step 206, the data record for receiving intelligent contract count instruction.
Wherein, the data record statistics instruction of the intelligence contract includes one or more intelligent contract numbers of pending statistics
According to type.For example, including number of users, amount of assets and user's money in the data record statistics instruction of the intelligent contract received
Produce remaining sum.
Step 207, one or more intelligent contract data types according to pending statistics, in block chain network system
Obtain data key values corresponding with one or more intelligence contract data types.
It is had been described above due to above-mentioned when intelligent contract is initialized, provided with for recording various intelligent contract behaviors
The data key values of corresponding intelligence contract data type.Then corresponding data key can be confirmed according to intelligent contract data type
Value, such as number of users, amount of assets and user's assets remaining sum, respectively correspond key=usercount, key=assetcount
And key=address.
Step 208, the corresponding record variable of inquiry data key values.
For example, record variable, such as key can be inquired respectively for number of users, amount of assets and user's assets remaining sum
=usercount, value=5000;Key=assetcount, value=45;Key=address, value=3500.Respectively
Record variable indicates:
Key=usercount, value=5000: the corresponding number of users of user's registration is 5000.
Key=assetcount, value=45: it is 45 that assets, which issue corresponding amount of assets,.
Key=address, value=3500: it is 3500 that user, which supplements corresponding user's assets remaining sum with money,.
The data record statistical method of intelligent contract in a kind of block chain provided in an embodiment of the present invention, without traversal
The mode of block chain network or database can be completed the data record statistics of intelligent contract in block chain, can solve use
Traversal block chain network or the mode of database need largely to traverse and identify so that the data record statistics of intelligent contract compared with
To be slowly complicated, and the problem of statistical result inaccuracy.
Corresponding to above-mentioned Fig. 1 and embodiment of the method shown in Fig. 2, as shown in figure 3, the embodiment of the present invention also provides a kind of area
The data record statistic device of intelligent contract in block chain, comprising:
Instruction receiving unit 31, the data record for receiving intelligent contract count instruction.
Wherein, the data record statistics instruction of the intelligence contract includes one or more intelligent contract numbers of pending statistics
According to type.
Data key values acquiring unit 32, for one or more intelligent contract data kinds according to the pending statistics
Class obtains and the corresponding data key values of one or more intelligence contract data types in block chain network system.
Record variable query unit 33, for inquiring the corresponding record variable of the data key values;The record variable is
Occur to update the numerical value to be formed when corresponding intelligent contract behavior in block chain network system.
Wherein, the intelligent contract data type may include number of users, amount of assets, assets distribution number, user
Supplement one of number, user's assets remaining sum, the number of user information modification and user's remittance number or a variety of, but not only office with money
It is limited to this.
Further, as shown in figure 4, in the block chain intelligent contract data record statistic device, further includes:
Setting unit 34, for when initializing to intelligent contract, setting to be for recording various intelligent contract behaviors
The data key values of corresponding intelligence contract data type, and the corresponding record variable of data key values is initialized.
Data write unit 35, for will each data key values and corresponding record variable write-in block chain network system in
In block.
Further, as shown in figure 4, in the block chain intelligent contract data record statistic device, further includes:
Data transfer unit 36, when for an intelligent contract behavior to occur in block chain network system, in block link network
The data key values that the corresponding intelligent contract data type of the intelligence contract behavior is transferred in block in network system, obtain the data
The corresponding record variable of key assignments.
Record variable updating unit 37, for obtaining the phase of the corresponding intelligent contract data type of the intelligent contract behavior
Numerical value is closed, and updates the corresponding record variable of the data key values according to the correlation values.
In addition, the data write unit 35, is also used to again write the corresponding record variable of the updated data key values
Enter in the block in block chain network system.
It is worth noting that in a kind of block chain provided in an embodiment of the present invention intelligent contract data record statistic device
Specific implementation may refer to the corresponding embodiment of the method for above-mentioned Fig. 1 and Fig. 2, details are not described herein again.
The data record statistic device of intelligent contract in a kind of block chain provided in an embodiment of the present invention, without traversal
The mode of block chain network or database can be completed the data record statistics of intelligent contract in block chain, can solve use
Traversal block chain network or the mode of database need largely to traverse and identify so that the data record statistics of intelligent contract compared with
To be slowly complicated, and the problem of statistical result inaccuracy.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, it is stored thereon with computer program, it should
It is performed the steps of when program is executed by processor
The data record for receiving intelligent contract counts instruction;It is described intelligence contract data record statistics instruction include into
One or more intelligent contract data types of row statistics.
According to one or more intelligent contract data types of the pending statistics, obtained in block chain network system
Data key values corresponding with the one or more intelligent contract data types.
Inquire the corresponding record variable of the data key values;The record variable is the generation pair in block chain network system
The numerical value to be formed is updated when the intelligent contract behavior answered.
In addition, the embodiment of the present invention also provides a kind of computer equipment, including memory, processor and it is stored in storage
And the computer program that can be run on a processor, the processor perform the steps of when executing described program
The data record for receiving intelligent contract counts instruction;It is described intelligence contract data record statistics instruction include into
One or more intelligent contract data types of row statistics.
According to one or more intelligent contract data types of the pending statistics, obtained in block chain network system
Data key values corresponding with the one or more intelligent contract data types.
Inquire the corresponding record variable of the data key values;The record variable is the generation pair in block chain network system
The numerical value to be formed is updated when the intelligent contract behavior answered.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Specific embodiment is applied in the present invention, and principle and implementation of the present invention are described, above embodiments
Explanation be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art,
According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification
Appearance should not be construed as limiting the invention.
Claims (10)
1. the data record statistical method of intelligent contract in a kind of block chain characterized by comprising
The data record for receiving intelligent contract counts instruction;The data record statistics instruction of the intelligence contract includes pending system
One or more intelligent contract data types of meter;
According to one or more intelligent contract data types of the pending statistics, acquisition and institute in block chain network system
State the corresponding data key values of one or more intelligent contract data types;
Inquire the corresponding record variable of the data key values;The record variable is corresponding to occur in block chain network system
The numerical value to be formed is updated when intelligent contract behavior.
2. the data record statistical method of intelligent contract in block chain according to claim 1, which is characterized in that the intelligence
Energy contract data type includes number of users, amount of assets, assets issue number, user supplements number with money, user's assets remaining sum, use
One of number and user's remittance number of the modification of family information are a variety of.
3. the data record statistical method of intelligent contract in block chain according to claim 1, which is characterized in that receiving
Before the data record statistics instruction of intelligent contract, further includes:
When initializing to intelligent contract, setting is for recording the corresponding intelligent contract data kind of various intelligent contract behaviors
The data key values of class, and the corresponding record variable of data key values is initialized;
It will be in the block in each data key values and corresponding record variable write-in block chain network system.
4. the data record statistical method of intelligent contract in block chain according to claim 3, which is characterized in that will be each
After in block in data key values and corresponding record variable write-in block chain network system, further includes:
When an intelligent contract behavior occurring in block chain network system, the intelligence is transferred in the block in block chain network system
The data key values of the corresponding intelligent contract data type of energy contract behavior, obtain the corresponding record variable of the data key values;
The correlation values of the corresponding intelligent contract data type of the intelligent contract behavior are obtained, and more according to the correlation values
The corresponding record variable of the new data key values;
The corresponding record variable of the updated data key values is re-write in the block in block chain network system.
5. the data record statistic device of intelligent contract in a kind of block chain characterized by comprising
Instruction receiving unit, the data record for receiving intelligent contract count instruction;The data record system of the intelligence contract
Meter instruction includes one or more intelligent contract data types of pending statistics;
Data key values acquiring unit, for one or more intelligent contract data types according to the pending statistics, in area
It is obtained in block chain network system and the corresponding data key values of one or more intelligence contract data types;
Record variable query unit, for inquiring the corresponding record variable of the data key values;The record variable is in block
Occur to update the numerical value to be formed when corresponding intelligent contract behavior in chain network system.
6. the data record statistic device of intelligent contract in block chain according to claim 5, which is characterized in that the intelligence
Energy contract data type includes number of users, amount of assets, assets issue number, user supplements number with money, user's assets remaining sum, use
One of number and user's remittance number of the modification of family information are a variety of.
7. the data record statistic device of intelligent contract in block chain according to claim 5, which is characterized in that also wrap
It includes:
Setting unit, for when initializing to intelligent contract, setting to be corresponding for recording various intelligent contract behaviors
The data key values of intelligent contract data type, and the corresponding record variable of data key values is initialized;
Data write unit, for each data key values and corresponding record variable to be written to the block in block chain network system
In.
8. the data record statistic device of intelligent contract in block chain according to claim 7, which is characterized in that also wrap
It includes:
Data transfer unit, when for an intelligent contract behavior to occur in block chain network system, in block chain network system
In block in transfer the data key values of the corresponding intelligent contract data type of the intelligence contract behavior, obtain the data key values pair
The record variable answered;
Record variable updating unit, for obtaining the dependency number of the corresponding intelligent contract data type of the intelligent contract behavior
Value, and the corresponding record variable of the data key values is updated according to the correlation values;
The data write unit is also used to the corresponding record variable of the updated data key values re-writing block link network
In block in network system.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
It is performed the steps of when row
The data record for receiving intelligent contract counts instruction;The data record statistics instruction of the intelligence contract includes pending system
One or more intelligent contract data types of meter;
According to one or more intelligent contract data types of the pending statistics, acquisition and institute in block chain network system
State the corresponding data key values of one or more intelligent contract data types;
Inquire the corresponding record variable of the data key values;The record variable is corresponding to occur in block chain network system
The numerical value to be formed is updated when intelligent contract behavior.
10. a kind of computer equipment including memory, processor and is stored in the calculating that storage is upper and can run on a processor
Machine program, which is characterized in that the processor performs the steps of when executing described program
The data record for receiving intelligent contract counts instruction;The data record statistics instruction of the intelligence contract includes pending system
One or more intelligent contract data types of meter;
According to one or more intelligent contract data types of the pending statistics, acquisition and institute in block chain network system
State the corresponding data key values of one or more intelligent contract data types;
Inquire the corresponding record variable of the data key values;The record variable is corresponding to occur in block chain network system
The numerical value to be formed is updated when intelligent contract behavior.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810755341.8A CN109035018A (en) | 2018-07-11 | 2018-07-11 | The data record statistical method and device of intelligent contract in a kind of block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810755341.8A CN109035018A (en) | 2018-07-11 | 2018-07-11 | The data record statistical method and device of intelligent contract in a kind of block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109035018A true CN109035018A (en) | 2018-12-18 |
Family
ID=64640967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810755341.8A Withdrawn CN109035018A (en) | 2018-07-11 | 2018-07-11 | The data record statistical method and device of intelligent contract in a kind of block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109035018A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008715A (en) * | 2019-01-31 | 2019-07-12 | 阿里巴巴集团控股有限公司 | The method and node, storage medium of secret protection are realized in block chain |
CN110061887A (en) * | 2019-03-07 | 2019-07-26 | 阿里巴巴集团控股有限公司 | A kind of flow statistical method based on block chain, device and equipment |
CN110175913A (en) * | 2019-04-12 | 2019-08-27 | 阿里巴巴集团控股有限公司 | Data processing system, method, calculating equipment and storage medium based on block chain |
CN111814083A (en) * | 2020-08-31 | 2020-10-23 | 腾讯科技(深圳)有限公司 | Display result generation method, system, device, readable storage medium and equipment |
US11315115B2 (en) | 2019-04-12 | 2022-04-26 | Advanced New Technologies Co., Ltd. | Blockchain-based data processing system, method, computing device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273556A (en) * | 2017-08-23 | 2017-10-20 | 上海点融信息科技有限责任公司 | Block chain data index method and equipment |
CN107767265A (en) * | 2017-11-07 | 2018-03-06 | 中积有限公司 | A kind of data sharing method and server |
CN108052620A (en) * | 2017-12-15 | 2018-05-18 | 泰康保险集团股份有限公司 | The storage system of data mode, the node data processing system of block chain and method |
CN108183959A (en) * | 2017-12-29 | 2018-06-19 | 深圳市轱辘车联数据技术有限公司 | A kind of vehicle sharing method, server and readable storage medium storing program for executing based on block chain |
WO2018115567A1 (en) * | 2016-12-19 | 2018-06-28 | Nokia Technologies Oy | Method and apparatus for private data transfer between parties |
-
2018
- 2018-07-11 CN CN201810755341.8A patent/CN109035018A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018115567A1 (en) * | 2016-12-19 | 2018-06-28 | Nokia Technologies Oy | Method and apparatus for private data transfer between parties |
CN107273556A (en) * | 2017-08-23 | 2017-10-20 | 上海点融信息科技有限责任公司 | Block chain data index method and equipment |
CN107767265A (en) * | 2017-11-07 | 2018-03-06 | 中积有限公司 | A kind of data sharing method and server |
CN108052620A (en) * | 2017-12-15 | 2018-05-18 | 泰康保险集团股份有限公司 | The storage system of data mode, the node data processing system of block chain and method |
CN108183959A (en) * | 2017-12-29 | 2018-06-19 | 深圳市轱辘车联数据技术有限公司 | A kind of vehicle sharing method, server and readable storage medium storing program for executing based on block chain |
Non-Patent Citations (1)
Title |
---|
李赫,何广锋编著: "《区块链技术 金融应用实践》", 30 September 2017 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008715A (en) * | 2019-01-31 | 2019-07-12 | 阿里巴巴集团控股有限公司 | The method and node, storage medium of secret protection are realized in block chain |
CN110008715B (en) * | 2019-01-31 | 2020-05-05 | 阿里巴巴集团控股有限公司 | Method for realizing privacy protection in block chain, node and storage medium |
CN110061887A (en) * | 2019-03-07 | 2019-07-26 | 阿里巴巴集团控股有限公司 | A kind of flow statistical method based on block chain, device and equipment |
US11244348B2 (en) | 2019-03-07 | 2022-02-08 | Advanced New Technologies Co., Ltd. | Blockchain-based traffic statistics collection methods, apparatuses, and devices |
CN110175913A (en) * | 2019-04-12 | 2019-08-27 | 阿里巴巴集团控股有限公司 | Data processing system, method, calculating equipment and storage medium based on block chain |
US11315115B2 (en) | 2019-04-12 | 2022-04-26 | Advanced New Technologies Co., Ltd. | Blockchain-based data processing system, method, computing device and storage medium |
CN111814083A (en) * | 2020-08-31 | 2020-10-23 | 腾讯科技(深圳)有限公司 | Display result generation method, system, device, readable storage medium and equipment |
CN111814083B (en) * | 2020-08-31 | 2020-12-11 | 腾讯科技(深圳)有限公司 | Display result generation method, system, device, readable storage medium and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109035018A (en) | The data record statistical method and device of intelligent contract in a kind of block chain | |
CN110121727B (en) | Method and system for providing authenticated, auditable and immutable input for intelligent contracts | |
WO2018194707A1 (en) | System and computer-implemented method for generating synthetic production data for use in testing and modeling | |
CN108694669A (en) | A kind of block chain intelligence contract implementation method and device | |
CN111476667B (en) | Block chain-based original work transaction method and device and electronic equipment | |
CN107644286A (en) | Workflow processing method and device | |
KR102220246B1 (en) | Data generation | |
CN105074724A (en) | Efficient query processing using histograms in a columnar database | |
CN109598407A (en) | A kind of execution method and device of operation flow | |
CN109299222A (en) | Verification of data method and device | |
CN110263145A (en) | A kind of electronic contract signature method and electronic contract sign equipment | |
CN110347545A (en) | A kind of test method and device of business platform cache policy | |
CN110032598A (en) | Method for updating field and device, electronic equipment | |
CN104951462B (en) | Method and system for managing database | |
CN109960597A (en) | A kind of dynamic registration method and relevant apparatus of Applied layer interface | |
CN109446211A (en) | A kind of consistency desired result method and device | |
CN109657427A (en) | The method and device of permission control | |
CN109615461A (en) | Target user's recognition methods, the recognition methods of violation trade company and device | |
CN109636181A (en) | A kind of user credit divides calculation method and system | |
CN110019111A (en) | Data processing method, device, storage medium and processor | |
CN110019234A (en) | Method and system for fragment storing data | |
CN110516713A (en) | A kind of target group's recognition methods, device and equipment | |
CN109588054A (en) | Accurate and detailed modeling using distributed simulation engine to the system with large complicated data set | |
CN110287223A (en) | Information storage means and device, electronic device and storage medium | |
CN108460038A (en) | Rule matching method and its equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210118 Address after: 215163 No. 9 Xuesen Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province Applicant after: Suzhou Lang run innovation intellectual property operation Co.,Ltd. Address before: 100034 4008, 4 floor, 9 building, 56 half moon street, Xicheng District, Beijing. Applicant before: SINOCHAIN TECHNOLOGY Co.,Ltd. |
|
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20181218 |