CN110489231A - Transaction Information recording method, equipment and computer readable storage medium - Google Patents
Transaction Information recording method, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110489231A CN110489231A CN201910732882.3A CN201910732882A CN110489231A CN 110489231 A CN110489231 A CN 110489231A CN 201910732882 A CN201910732882 A CN 201910732882A CN 110489231 A CN110489231 A CN 110489231A
- Authority
- CN
- China
- Prior art keywords
- block
- accounting nodes
- remainder
- minimum
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5072—Grid computing
-
- 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
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5015—Service provider selection
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Finance (AREA)
- Mathematical Physics (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention provides a kind of Transaction Information recording method, equipment and computer readable storage medium.The embodiment of the present invention determines a number N according to the cryptographic Hash of a block upper in block chain network by accounting nodes, determine the n-th data block of each storing data in multiple storing datas of its storage, the corresponding data of n-th data block of each storing data are calculated divided by the remainder after block chain difficulty value, further, determine the minimum remainder in the corresponding remainder of the multiple storing data, the minimum remainder is related to the expiration time that new block generates.Therefore, accounting nodes are in order to calculate minimum remainder, to successfully create new block, and obtain the book keeping operation power of the new block, which just needs to store more data.Therefore, the method through this embodiment, can promote each accounting nodes actively to provide more storage services for the block chain network, improve the resource utilization of accounting nodes.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of Transaction Information recording methods, equipment and calculating
Machine readable storage medium storing program for executing.
Background technique
In block chain network, accounting nodes need the Transaction Information in block chain network block chain account book is recorded
In, and block chain account book may include the block of one, company.Accounting nodes needs in the block chain network are arrived in plunder
After book keeping operation power, just have the right to create new block.How accounting nodes so in the block chain network grab book keeping operation power,
Specifically, the accounting nodes can look for a random number since 0, so that including the number of the block of the random number and transaction record
Fingerprint is able to satisfy preset condition.
But since the random number for meeting the preset condition is difficult to find, so the accounting nodes in block chain network need
According to the calculation power of oneself, the random number for meeting the preset condition is ceaselessly found.So cause accounting nodes that will more calculate power
For finding the random number for meeting the preset condition, many resources of the accounting nodes is caused to be wasted.
Summary of the invention
The embodiment of the present invention provides a kind of Transaction Information recording method, equipment and computer readable storage medium, to improve
The resource utilization of accounting nodes.
In a first aspect, the embodiment of the present invention provides a kind of Transaction Information recording method, comprising:
Accounting nodes determine a number N according to the cryptographic Hash of a block upper in block chain network;
The accounting nodes determine the n-th data block of each storing data in multiple storing datas of its storage;
The accounting nodes calculate the corresponding data of n-th data block of each storing data divided by block chain difficulty
Remainder after value;
The accounting nodes determine the minimum remainder in the corresponding remainder of the multiple storing data;
Preset time of the accounting nodes after a upper block generates generates new block, the preset time
It is corresponding with the minimum remainder;
The accounting nodes record Transaction Information on the new block.
Second aspect, the embodiment of the present invention provide a kind of accounting nodes, comprising:
Memory;
Processor;
Communication interface;And
Computer program;
Wherein, the computer program stores in the memory, and is configured as being executed by the processor following
Operation:
A number N is determined according to the cryptographic Hash of a block upper in block chain network;
Determine the n-th data block of each storing data in multiple storing datas of its storage;
The corresponding data of n-th data block of each storing data are calculated divided by more than after block chain difficulty value
Number;
Determine the minimum remainder in the corresponding remainder of the multiple storing data;
Preset time after the upper block generates generates new block, more than the preset time and the minimum
Number corresponds to;
Transaction Information is recorded on the new block.
The third aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program,
The computer program is executed by processor to realize method described in first aspect.
Transaction Information recording method, equipment and computer readable storage medium provided in an embodiment of the present invention, pass through book keeping operation
Node determines a number N according to the cryptographic Hash of a block upper in block chain network, determines multiple storage numbers of its storage
The n-th data block of each storing data in, calculate the corresponding data of n-th data block of each storing data divided by
Remainder after block chain difficulty value further determines the minimum remainder in the corresponding remainder of the multiple storing data,
The minimum remainder is related to the expiration time that new block generates, theoretically for, if some accounting nodes storage data get over
It is more, then the accounting nodes search out minimum remainder probability it is bigger.Therefore, accounting nodes are in order to calculate minimum remainder,
To successfully create new block, and the book keeping operation power of the new block is obtained, which just needs to store more data, this
Sample is just there is a greater chance that calculate minimum remainder.Therefore, the method through this embodiment, can promote each book keeping operation section
Point actively provides more storage services for the block chain network, improves the resource utilization of accounting nodes.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of application scenarios provided in an embodiment of the present invention;
Fig. 2 is Transaction Information recording method flow chart provided in an embodiment of the present invention;
Fig. 3 be another embodiment of the present invention provides Transaction Information recording method flow chart;
Fig. 4 is the structural schematic diagram of accounting nodes provided in an embodiment of the present invention.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Transaction Information recording method provided in an embodiment of the present invention, can be adapted for communication system shown in FIG. 1.Such as Fig. 1
Shown, which includes: user node, accounting nodes, cloud storage node 1, cloud storage node 2, cloud storage node 3, cloud
Memory node 4, cloud storage node 5.Wherein, user node, accounting nodes, cloud storage node 1, cloud storage node 2, cloud storage section
Point 3, cloud storage node 4, cloud storage node 5 are the participation nodes in block chain network.It is appreciated that only schematically say herein
It is bright, do not limit node number and type in the block chain network.Wherein, cloud storage node can be one either it is multiple
Cloud server, cloud server i.e. Cloud Server are a server clusters, there is many servers and general meter
Calculation rack structure is similar, and the composition of cloud server includes processor, hard disk, memory, system bus etc..User node specifically can be with
It is user terminal, for example, smart phone, tablet computer, personal computer etc..
Transaction Information recording method provided in an embodiment of the present invention, it is intended to solve the technical problem as above of the prior art.
How to be solved with technical solution of the specifically embodiment to technical solution of the present invention and the application below above-mentioned
Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 2 is Transaction Information recording method flow chart provided in an embodiment of the present invention.The embodiment of the present invention is directed to existing skill
The technical problem as above of art provides Transaction Information recording method, and specific step is as follows for this method:
Step 201, accounting nodes determine a number N according to the cryptographic Hash of a block upper in block chain network.
In the present embodiment, the data that user node can be to be stored are stored to multiple cloud storage nodes, the user
Node can also sign to the cryptographic Hash of the data to be stored using the private key of oneself, and the cryptographic Hash after signature is broadcasted
Into the block chain network.Accounting nodes in the present embodiment can be the node that block book keeping operation is participated in the block chain network,
Alternatively, the accounting nodes are also possible to the cloud storage node in the block chain network.In the present embodiment, accounting nodes not only have
The function of having block chain to keep accounts also has the function of data storage.It is appreciated that in the block chain network, there are multiple book keeping operations
Node, multiple accounting nodes grab the book keeping operation power of block chain account book, i.e., meet certain item when some accounting nodes calculates one
When the numerical value of part, which can increase a block, the block in the block chain account book in the block chain account book
Be it is end to end, i.e., record has the information of a upper block in current block, for example, recording the area You Shangyige in current block
The cryptographic Hash of block.
By taking an accounting nodes as an example, which can be true according to the cryptographic Hash of a block upper in the block chain network
A number N is made, for example, the accounting nodes can take out the 5th byte on this in cryptographic Hash of block, and according to
Bit value in 5th byte calculates number N according to the algorithm made an appointment.
Step 202, the accounting nodes determine the n-th data of each storing data in multiple storing datas of its storage
Block.
In the present embodiment, each accounting nodes have data storage function, correspondingly, an accounting nodes can store
There are multiple storing datas, multiple storing data can be the data uploaded from different user node.Assuming that some is remembered
Account node is stored with 3 storing datas, for example, storing data 1, storing data 2 and storing data 3.The accounting nodes respectively from
N-th data block, i.e. the n-th data block of storing data 1, storage are extracted in storing data 1, storing data 2 and storing data 3
The n-th data block of data 2 and the n-th data block of storing data 3.In the present embodiment, the size of each data block can be with
It is 256 bytes, alternatively, the size of each data block can be the word of certain fixed quantity of Uniform provisions in block chain network
Section.
Step 203, the accounting nodes calculate the corresponding data of n-th data block of each storing data divided by area
Remainder after block chain difficulty value.
When the accounting nodes extract the n-th data block, the n-th data block of storing data 2 and storage of storing data 1
After the n-th data block of data 3, the corresponding data of n-th data block of storing data 1 can be further calculated divided by block
The corresponding data of n-th data block of remainder, storing data 2 after chain difficulty value are divided by more than after block chain difficulty value
It counts, the corresponding data of n-th data block of storing data 3 are divided by the remainder after block chain difficulty value.The remainder represents
Time phase Deadline.The expiration time, which refers to from a upper block, generates the moment to the time the new block generation moment
Interval.Optionally, the value of remainder is equal to the value of the Deadline, and the unit of the Deadline can be millisecond or second.
Step 204, the accounting nodes determine the minimum remainder in the corresponding remainder of the multiple storing data.
Further, which determines storing data 1, storing data 2, in the corresponding remainder of storing data 3
Minimum remainder.Assuming that the corresponding data of n-th data block of storing data 3 are storages divided by the remainder after block chain difficulty value
Data 1, storing data 2, the minimum remainder in the corresponding remainder of storing data 3.Assuming that the minimum remainder is 23, then this is most
The corresponding expiration time Deadline of small remainder be 23 milliseconds or second.
The preset time of step 205, the accounting nodes after a upper block generates generates new block, described
Preset time is corresponding with the minimum remainder.
For example, the accounting nodes can generate new block behind 23 seconds after the generation of a upper block.
Optionally, preset time of the accounting nodes after a upper block generates generates new block, comprising:
In the preset time after a upper block generates, if other accounting nodes do not determine minimum remainder, the note
Account node generates new block.
For example, the accounting nodes more than one in block chain network, other accounting nodes are also stored with multiple storage numbers
According to, and multiple storing datas that other accounting nodes also find oneself storage using method as described above are corresponding
Minimum remainder in remainder.
For example, behind 23 seconds after the generation of a upper block, if other accounting nodes do not calculate it is smaller than 23
Remainder, then the new block generates successfully.That is, each accounting nodes can calculate the more of oneself storage
The corresponding minimum remainder of a storing data.And each calculated minimum remainder of accounting nodes may be also not identical, thus may be used
To determine that the calculated minimum remainder of which accounting nodes is the smallest.Therefore, more than the calculated minimum of which accounting nodes
Number is minimum, which can successfully create a new block.For theoretically, if the storage of some accounting nodes
Data are more, then the accounting nodes search out minimum remainder probability it is bigger.Therefore, accounting nodes are in order to calculating minimum
Remainder to successfully create new block, and obtains the book keeping operation power of the new block, which just needs to store more numbers
According to so just there is a greater chance that calculating minimum remainder.Therefore, the method through this embodiment, can promote each
Accounting nodes actively provide more storage services for the block chain network.
Step 206, the accounting nodes record Transaction Information on the new block.
The accounting nodes can record Transaction Information in the new block.
The embodiment of the present invention determines one according to the cryptographic Hash of a block upper in block chain network by accounting nodes
Digital N determines the n-th data block of each storing data in multiple storing datas of its storage, calculates each storage number
According to the corresponding data of n-th data block divided by the remainder after block chain difficulty value, further, determine the multiple storage number
According to the minimum remainder in corresponding remainder, the minimum remainder is related to the expiration time that new block generates, theoretically for,
If the data of some accounting nodes storage are more, the probability which searches out minimum remainder is bigger.Therefore, it keeps accounts
Node is in order to calculate minimum remainder, to successfully create new block, and obtains the book keeping operation power of the new block, the book keeping operation
Node just needs to store more data, so just there is a greater chance that calculating minimum remainder.Therefore, institute through this embodiment
The method stated can promote each accounting nodes actively to provide more storage services for the block chain network, improve book keeping operation
The resource utilization of node.
Fig. 3 be another embodiment of the present invention provides Transaction Information recording method flow chart.On the basis of above-described embodiment
On, the accounting nodes after the preset time after a upper block generates generates new block, also wrap by the method
Include following steps:
The minimum remainder is sent to time stamp server by step 301, the accounting nodes, by the time-stamping service
Device gives the minimum remainder to identify upper timestamp, and using the private key of the time stamp server to the upper timestamp of mark
The minimum remainder is signed.
When some accounting nodes finds minimum remainder i.e. minimum Deadline and generates new block, the accounting nodes
It needs to stamp timestamp to the minimum remainder by time stamp server immediately.If accounting nodes are found most there are two or more
Small remainder is identical, then is subject to the earliest minimum remainder of the timestamp stamped.
For example, when some accounting nodes finds minimum remainder i.e. minimum Deadline and generates new block, the note
Account node sends the minimum remainder to time stamp server immediately.When the time stamp server receives the minimum remainder, give
The minimum remainder identifies upper timestamp, and using the private key of the time stamp server to described in the timestamp in the mark most
Small remainder is signed.Further, the time stamp server is by the minimum remainder of timestamp described in the mark after signature
It is sent to the accounting nodes.
Step 302, the accounting nodes receive the time in the mark after the signature that the time stamp server is sent
The minimum remainder of stamp.
Correspondingly, the accounting nodes receive the time stamp server transmission signature after mark on the timestamp institute
State minimum remainder.
Step 303, the accounting nodes send broadcast message in the block chain network, and the broadcast message includes institute
The cryptographic Hash of the minimum remainder of the timestamp and the corresponding storing data of the minimum remainder in mark after stating signature.
In mark after the accounting nodes receive the signature of time stamp server transmission described in the timestamp
When minimum remainder, which sends broadcast message in the block chain network immediately, which includes by the time
The minimum remainder of the timestamp and the corresponding storage number of the minimum remainder in mark after stabbing privacy key signature
According to cryptographic Hash.For example, the corresponding data of n-th data block of storing data 3 mentioned above divided by block chain difficulty value it
Remainder afterwards is minimum, then the corresponding storing data of minimum remainder is the storing data 3, the corresponding storing data of minimum remainder
Cryptographic Hash be storing data 3 cryptographic Hash.The cryptographic Hash that the accounting nodes send the storing data 3 is in order to avoid the block
There are other accounting nodes to forge the minimum remainder in chain network to grab book keeping operation power.When other book keeping operation sections in the block chain network
When point receives broadcast message, which can be confirmed.
Optionally, before the accounting nodes send broadcast message in the block chain network, the method also includes:
The accounting nodes sign to the broadcast message using the private key of oneself;The accounting nodes are in the block chain network
Middle transmission broadcast message, comprising: the accounting nodes are by the broadcast after signature into the block chain network.
For example, the accounting nodes, when sending the broadcast message, which can be first using the private key of oneself to this
Broadcast message is signed, then again by the broadcast after signature into the block chain network.
The embodiment of the present invention determines one according to the cryptographic Hash of a block upper in block chain network by accounting nodes
Digital N determines the n-th data block of each storing data in multiple storing datas of its storage, calculates each storage number
According to the corresponding data of n-th data block divided by the remainder after block chain difficulty value, further, determine the multiple storage number
According to the minimum remainder in corresponding remainder, the minimum remainder is related to the expiration time that new block generates, theoretically for,
If the data of some accounting nodes storage are more, the probability which searches out minimum remainder is bigger.Therefore, it keeps accounts
Node is in order to calculate minimum remainder, to successfully create new block, and obtains the book keeping operation power of the new block, the book keeping operation
Node just needs to store more data, so just there is a greater chance that calculating minimum remainder.Therefore, institute through this embodiment
The method stated can promote each accounting nodes actively to provide more storage services for the block chain network, improve book keeping operation
The resource utilization of node.
Fig. 4 is the structural schematic diagram of accounting nodes provided in an embodiment of the present invention.Book keeping operation section provided in an embodiment of the present invention
Point can execute the process flow of Transaction Information recording method embodiment offer, as shown in figure 4, accounting nodes 40 include: storage
Device 41, processor 42, computer program and communication interface 43;Wherein, computer program is stored in memory 41, and is configured
To execute following operation by processor 42: determining a number N according to the cryptographic Hash of a block upper in block chain network;Really
The n-th data block of each storing data in multiple storing datas of its fixed storage;Calculate the n-th of each storing data
The corresponding data of data block are divided by the remainder after block chain difficulty value;Determine the corresponding remainder of the multiple storing data
In minimum remainder;Preset time after the upper block generates generates new block, the preset time with it is described
Minimum remainder is corresponding;Transaction Information is recorded on the new block.
Optionally, the processor is after the preset time after a upper block generates generates new block, also
For: the minimum remainder is sent to by time stamp server by the communication interface, by the time stamp server to institute
It states minimum remainder and identifies upper timestamp, and using the private key of the time stamp server to identifying described in the upper timestamp most
Small remainder is signed;When described in mark after receiving the signature that the time stamp server is sent by the communication interface
Between the minimum remainder that stabs.
Optionally, the processor receives the mark after the signature that the time stamp server is sent by the communication interface
In knowledge after the minimum remainder of the timestamp, it is also used to: is sent out in the block chain network by the communication interface
Send broadcast message, the broadcast message include in mark after the signature the minimum remainder of the timestamp and it is described most
The cryptographic Hash of the corresponding storing data of small remainder.
Optionally, before the processor sends broadcast message by the communication interface in the block chain network,
It is also used to: being signed using the private key of oneself to the broadcast message;The processor is by the communication interface described
When sending broadcast message in block chain network, it is specifically used for: by the communication interface that the broadcast message after signature is wide
It is multicast in the block chain network.
Optionally, the processor is when the preset time after a upper block generates generates new block, specifically
For: in the preset time after a upper block generates, if other accounting nodes do not determine minimum remainder, institute
It states accounting nodes and generates new block.
The accounting nodes of embodiment illustrated in fig. 4 can be used for executing the technical solution of above method embodiment, realization principle
Similar with technical effect, details are not described herein again.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, it is stored thereon with computer program, institute
Computer program is stated to be executed by processor to realize Transaction Information recording method described in above-described embodiment.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module
Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules
At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On
The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (11)
1. a kind of Transaction Information recording method characterized by comprising
Accounting nodes determine a number N according to the cryptographic Hash of a block upper in block chain network;
The accounting nodes determine the n-th data block of each storing data in multiple storing datas of its storage;
The accounting nodes calculate the corresponding data of n-th data block of each storing data divided by block chain difficulty value it
Remainder afterwards;
The accounting nodes determine the minimum remainder in the corresponding remainder of the multiple storing data;
Preset time of the accounting nodes after a upper block generates generates new block, the preset time and institute
It is corresponding to state minimum remainder;
The accounting nodes record Transaction Information on the new block.
2. the method according to claim 1, wherein the accounting nodes are after a upper block generates
After preset time generates new block, the method also includes:
The minimum remainder is sent to time stamp server by the accounting nodes, gives the minimum by the time stamp server
Remainder identifies upper timestamp, and using the private key of the time stamp server to the minimum remainder for identifying the upper timestamp
It signs;
The accounting nodes receive the minimum of the timestamp in the mark after the signature that the time stamp server is sent
Remainder.
3. according to the method described in claim 2, it is characterized in that, the accounting nodes receive the time stamp server transmission
Signature after mark on the timestamp the minimum remainder after, the method also includes:
The accounting nodes send broadcast message in the block chain network, and the broadcast message includes the mark after the signature
The cryptographic Hash of the minimum remainder of the timestamp and the corresponding storing data of the minimum remainder in knowledge.
4. according to the method described in claim 3, it is characterized in that, the accounting nodes are sent extensively in the block chain network
Before broadcasting message, the method also includes:
The accounting nodes sign to the broadcast message using the private key of oneself;
The accounting nodes send broadcast message in the block chain network, comprising:
The accounting nodes are by the broadcast after signature into the block chain network.
5. the method according to claim 1, wherein the accounting nodes are after a upper block generates
Preset time generates new block, comprising:
In the preset time after a upper block generates, if other accounting nodes do not determine minimum remainder, institute
It states accounting nodes and generates new block.
6. a kind of accounting nodes characterized by comprising
Memory;
Processor;
Communication interface;And
Computer program;
Wherein, the computer program stores in the memory, and is configured as executing following operation by the processor:
A number N is determined according to the cryptographic Hash of a block upper in block chain network;
Determine the n-th data block of each storing data in multiple storing datas of its storage;
The corresponding data of n-th data block of each storing data are calculated divided by the remainder after block chain difficulty value;
Determine the minimum remainder in the corresponding remainder of the multiple storing data;
Preset time after a upper block generates generates new block, the preset time and the minimum remainder pair
It answers;
Transaction Information is recorded on the new block.
7. accounting nodes according to claim 6, which is characterized in that the processor is after a upper block generates
Preset time generate new block after, be also used to:
The minimum remainder is sent to time stamp server by the communication interface, by the time stamp server to described
Minimum remainder identifies upper timestamp, and using the private key of the time stamp server to the minimum for identifying the upper timestamp
Remainder is signed;
In mark after receiving the signature that the time stamp server is sent by the communication interface described in the timestamp
Minimum remainder.
8. accounting nodes according to claim 7, which is characterized in that the processor receives institute by the communication interface
In mark after stating the signature of time stamp server transmission after the minimum remainder of the timestamp, it is also used to:
Broadcast message is sent in the block chain network by the communication interface, the broadcast message is including after the signature
Mark on the minimum remainder of the timestamp and the cryptographic Hash of the corresponding storing data of the minimum remainder.
9. accounting nodes according to claim 8, which is characterized in that the processor is by the communication interface described
Before sending broadcast message in block chain network, it is also used to:
It is signed using the private key of oneself to the broadcast message;
When the processor sends broadcast message by the communication interface in the block chain network, it is specifically used for:
By the communication interface by the broadcast after signature into the block chain network.
10. accounting nodes according to claim 6, which is characterized in that the processor is generated in a upper block
When preset time afterwards generates new block, it is specifically used for:
In the preset time after a upper block generates, if other accounting nodes do not determine minimum remainder, institute
It states accounting nodes and generates new block.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The method according to claim 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910732882.3A CN110489231B (en) | 2019-08-09 | 2019-08-09 | Transaction information recording method, apparatus and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910732882.3A CN110489231B (en) | 2019-08-09 | 2019-08-09 | Transaction information recording method, apparatus and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110489231A true CN110489231A (en) | 2019-11-22 |
CN110489231B CN110489231B (en) | 2023-08-22 |
Family
ID=68550388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910732882.3A Active CN110489231B (en) | 2019-08-09 | 2019-08-09 | Transaction information recording method, apparatus and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110489231B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064776A (en) * | 2019-12-05 | 2020-04-24 | 全链通有限公司 | Method and device for generating blocks in block chain and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018059334A1 (en) * | 2016-09-29 | 2018-04-05 | 腾讯科技(深圳)有限公司 | Blockchain network, branch node, blockchain network application method and storage medium |
CN109086626A (en) * | 2018-08-09 | 2018-12-25 | 全链通有限公司 | The bookkeeping methods and system of block chain network |
CN109102287A (en) * | 2018-08-13 | 2018-12-28 | 中国联合网络通信集团有限公司 | Block chain bookkeeping methods, device, equipment and storage medium |
CN109408595A (en) * | 2018-10-26 | 2019-03-01 | 全链通有限公司 | Block chain bookkeeping methods, equipment and computer readable storage medium |
CN109447648A (en) * | 2018-12-07 | 2019-03-08 | 深圳市智税链科技有限公司 | The method of recorded data zone block, accounting nodes and medium in block chain network |
US20190228386A1 (en) * | 2018-01-19 | 2019-07-25 | Xapo Holdings Limited | Recording evidence of address/account allocations in a distributed ledger |
-
2019
- 2019-08-09 CN CN201910732882.3A patent/CN110489231B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018059334A1 (en) * | 2016-09-29 | 2018-04-05 | 腾讯科技(深圳)有限公司 | Blockchain network, branch node, blockchain network application method and storage medium |
US20190228386A1 (en) * | 2018-01-19 | 2019-07-25 | Xapo Holdings Limited | Recording evidence of address/account allocations in a distributed ledger |
CN109086626A (en) * | 2018-08-09 | 2018-12-25 | 全链通有限公司 | The bookkeeping methods and system of block chain network |
CN109102287A (en) * | 2018-08-13 | 2018-12-28 | 中国联合网络通信集团有限公司 | Block chain bookkeeping methods, device, equipment and storage medium |
CN109408595A (en) * | 2018-10-26 | 2019-03-01 | 全链通有限公司 | Block chain bookkeeping methods, equipment and computer readable storage medium |
CN109447648A (en) * | 2018-12-07 | 2019-03-08 | 深圳市智税链科技有限公司 | The method of recorded data zone block, accounting nodes and medium in block chain network |
Non-Patent Citations (2)
Title |
---|
BING MO等: ""A Solution for Internet of Things based on Blockchain Technology"", 《2018 IEEE INTERNATIONAL CONFERENCE ON SERVICE OPERATIONS AND LOGISTICS, AND INFORMATICS (SOLI)》 * |
黎江等: ""区块链、分布式账本技术解读"", 《金融电子化》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064776A (en) * | 2019-12-05 | 2020-04-24 | 全链通有限公司 | Method and device for generating blocks in block chain and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110489231B (en) | 2023-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107147501B (en) | Timestamp processing method and processing device | |
CN109522330B (en) | Cloud platform data processing method, device, equipment and medium based on block chain | |
CN113347164B (en) | Block chain-based distributed consensus system, method, device and storage medium | |
CN109102287A (en) | Block chain bookkeeping methods, device, equipment and storage medium | |
CN109639782B (en) | Message sending platform and method | |
JP6716727B2 (en) | Streaming data distributed processing method and apparatus | |
CN110351363A (en) | Data back up method, equipment and computer readable storage medium | |
CN112800466B (en) | Data processing method and device based on privacy protection and server | |
CN106815254B (en) | Data processing method and device | |
CN111698315B (en) | Data processing method and device for block and computer equipment | |
CN105677673B (en) | Method for processing business, apparatus and system | |
CN110365766A (en) | Cloud storage method, equipment and computer readable storage medium based on block chain | |
CN106603711B (en) | Communication method, system and message server | |
CN106055630A (en) | Log storage method and device | |
CN110597922A (en) | Data processing method, device, terminal and storage medium | |
CN106126519A (en) | The methods of exhibiting of media information and server | |
CN110347689A (en) | Date storage method, equipment and computer readable storage medium | |
CN110351276A (en) | Data processing method, equipment and computer readable storage medium | |
CN109325056A (en) | A kind of big data processing method and processing device, communication equipment | |
CN110059136A (en) | Information storage means, equipment and storage medium based on domain name block chain | |
CN110351364A (en) | Date storage method, equipment and computer readable storage medium | |
CN110351362A (en) | Data verification method, equipment and computer readable storage medium | |
CN108076149B (en) | Session maintaining method and device | |
CN110489231A (en) | Transaction Information recording method, equipment and computer readable storage medium | |
CN108063814B (en) | Load balancing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |