CN110335125A - A kind of information reporting method and device - Google Patents
A kind of information reporting method and device Download PDFInfo
- Publication number
- CN110335125A CN110335125A CN201910631828.XA CN201910631828A CN110335125A CN 110335125 A CN110335125 A CN 110335125A CN 201910631828 A CN201910631828 A CN 201910631828A CN 110335125 A CN110335125 A CN 110335125A
- Authority
- CN
- China
- Prior art keywords
- information
- record
- cryptographic hash
- putting
- stored
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2255—Hash tables
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0605—Supply or demand aggregation
-
- 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0609—Buyer or seller confidence or verification
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Development Economics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Storage Device Security (AREA)
Abstract
The application provides a kind of information reporting method and device.The information approach of putting on record includes: that information is put in reception on record;The information of putting on record is subjected to Hash operation, obtains the cryptographic Hash for putting information on record;It obtains in block chain and has stored the cryptographic Hash for putting information on record;The cryptographic Hash for putting information on record and described stored are put on record the cryptographic Hash of information and compared, whether the cryptographic Hash for putting information described in judgement on record is identical as the cryptographic Hash that information is put in described having stored on record;If so, putting information on record described in giving up;If it is not, then put information on record described in record, and information is put on record and the cryptographic Hash for putting information on record is stored into the block chain for described.Information reporting method and device provided by the present application can be improved the stability and safety for putting information storage on record, effectively improve the mutual trust degree for putting both parties on record.
Description
Technical field
This application involves field of computer technology, in particular to a kind of information reporting method and device calculate equipment and meter
Calculation machine readable storage medium storing program for executing.
Background technique
Cargo buying for wholesale, it is general that system, i.e. wholesale cargo transaction are put on record using transaction, it needs to report in advance in advance
It is standby, after only putting on record, goods could be taken.Supplier, which needs that information will be put on record in advance, to be supplied to producer and puts on record, and producer receives
Supplier put information on record after, can unify register, then arrange sale follow up.If having there is supplier to put same item on record in advance
Mesh puts information on record, puts on record then subsequent supplier refuses in producer, only and first hand cooperation.
But the method put on record of trading at present is usually that purchaser (producer) uses excel registration or simple information system
System carries out putting management, such transaction reporting method on record, and supplier can worry that the information put on record is revealed by purchaser, and purchaser carries on a shoulder pole
Heart supplier does not accept the ability of project, causes the mutual distrust between supplier and producer.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of information reporting method and device, calculates equipment and computer can
Storage medium is read, to solve technological deficiency existing in the prior art.
The embodiment of the present application discloses a kind of information reporting method, comprising:
Information is put in reception on record;
The information of putting on record is subjected to Hash operation, obtains the cryptographic Hash for putting information on record;
It obtains in block chain and has stored the cryptographic Hash for putting information on record;
The cryptographic Hash for putting information on record and described stored are put on record the cryptographic Hash of information and compared, judges the report
Whether the cryptographic Hash of standby information is identical as the cryptographic Hash that information is put in described having stored on record;
If so, putting information on record described in giving up;
If it is not, then put information on record described in record, and by it is described put information on record and the cryptographic Hash for putting information on record store to
In the block chain.
Further, the information of putting on record includes project name information, purchaser's information and supplier information, described by institute
It states and puts information progress Hash operation on record, obtain the cryptographic Hash for putting information on record, comprising:
The project name information, purchaser's information and supplier information are subjected to Hash operation respectively, obtain the item
Cryptographic Hash, the cryptographic Hash of purchaser's information and the cryptographic Hash of supplier information of mesh name information.
Further, described to have stored that put the cryptographic Hash of information on record include the cryptographic Hash of stored items name information,
The cryptographic Hash of storage purchaser's information and the cryptographic Hash of storage vendor's information;
Whether the cryptographic Hash for putting information described in the judgement on record puts the cryptographic Hash phase of information on record with having stored in block chain
Together, comprising:
Judge the cryptographic Hash of the project name information and the cryptographic Hash of the name information of stored items, the buying
The cryptographic Hash of quotient's information has been deposited with the cryptographic Hash for having stored purchaser's information, the cryptographic Hash of the supplier information with described
Store up supplier information cryptographic Hash in whether at least two groups cryptographic Hash it is identical;
If so, putting information on record described in giving up;
If it is not, then put information on record described in record, and by it is described put information on record and the cryptographic Hash for putting information on record store to
In the block chain.
Further, the block chain includes at least two block chain nodes, described to put information and the report on record for described
The cryptographic Hash of standby information is stored into the block chain, comprising:
By any one block chain node by it is described put on record information and it is described put information on record cryptographic Hash generate block, and
The block is broadcasted to other block chain nodes;
Either block chain node in other described block chain nodes verifies the block, and will be verified
Block is recorded to the block chain node.
Further, the block includes block head and block body, is put on record by any one block chain node by described
Information and the cryptographic Hash for putting information on record generate block, comprising:
The cryptographic Hash for putting information on record is written into the block head by any one block chain node, and by institute
It states and puts information on record and be written into the block body, generate the block.
Further, the information reporting method, further includes:
Receive carry that target puts information on record put inquiry request on record;
Put whether information has stored into the block chain on record based on the inquiry request inquiry target of putting on record;
If so, feedback puts successful information on record;
If it is not, then feedback puts failure information on record.
Further, put whether information has stored to institute on record based on the inquiry request inquiry target of putting on record described
Before stating in block chain, further includes:
It puts the target on record information and carries out Hash operation, obtain the cryptographic Hash that the target puts information on record;
It is described to put whether information has stored into the block chain on record based on the inquiry request inquiry target of putting on record,
Include:
Put inquiry request on record based on described, inquire the target put on record information cryptographic Hash whether in the block chain
Stored put on record information cryptographic Hash it is identical;
If so, feedback puts successful information on record;
If it is not, then feedback puts failure information on record.
The embodiment of the present application discloses a kind of information and puts device on record, comprising:
Receiving module is configured as receiving and puts information on record;
Computing module is configured as the information of putting on record carrying out Hash operation, obtains the cryptographic Hash for putting information on record;
Module is obtained, is configured as having stored the cryptographic Hash for putting information on record in acquisition block chain;
Judgment module, be configured as by the cryptographic Hash for putting information on record and it is described stored put on record the cryptographic Hash of information into
Row compares, and whether the cryptographic Hash for putting information described in judgement on record is identical as the cryptographic Hash that information is put in described having stored on record;
If so, putting information on record described in giving up;
If it is not, then put information on record described in record, and by it is described put information on record and the cryptographic Hash for putting information on record store to
In the block chain.
Information reporting method and device provided by the present application, are stored into block chain by that will put information on record, utilize block
The distributed network frame of chain and the decentralization of common recognition system provide a kind of transparent, disclosed consistency storage to put information on record,
Information is put on record once storing can not distort, the stability and safety for putting information storage on record is effectively improved, effectively improves and put friendship on record
The mutual trust degree of easy both sides.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the calculating equipment of the embodiment of the present application;
Fig. 2 is the step flow diagram of the information reporting method of the embodiment of the present application;
Fig. 3 is the structural schematic diagram for putting system and block chain on record of the embodiment of the present application;
Fig. 4 is the step flow diagram of the information reporting method of the embodiment of the present application;
Fig. 5 is that the information of the embodiment of the present application puts the structural schematic diagram of device on record.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with
Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where
Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments,
It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims
The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly
Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes
One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment
Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other
It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments
As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to
" ... when " or " when ... " or " in response to determination ".
Firstly, the vocabulary of terms being related to one or more embodiments of the invention explains.
Block chain: being the new of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Type application model.
In this application, a kind of information reporting method and device are provided, calculates equipment and computer readable storage medium,
It is described in detail one by one in the following embodiments.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100
Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130,
Database 150 is for saving data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or
Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network
(WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless
One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area
Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect
Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, other unshowned portions in the above-mentioned component and Fig. 1 of equipment 100 are calculated
Part can also be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 merely for the sake of
Exemplary purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increases or replaces it
His component.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter
Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement
Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting
Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type
Server.
Wherein, processor 120 can execute the step in method shown in Fig. 2.
Fig. 2 is to show the step flow diagram of the information reporting method according to the embodiment of the present application, including step
S210 to step S242.
Step S210: information is put in reception on record.
Wherein, it puts on record and refers to that, for the considerations of avoiding risk or firsting impressions are strongest, progress is a series of to be reported and put on record.It puts on record
Information is to be based on putting details provided by project on record.By taking procurement item as an example, in procurement item, information is put on record as buying
Information, it is described to put on record in information (procurement information) including at least project name information, purchaser's information and three kinds of supplier information
Essential information can also include product name information, budget information, commodity amount information, monovalent information, contact information etc.
Information, the application are without limitation.
For example, it is assumed that A mechanism carries out the buying of air-conditioning, the information of putting on record from a company, supplier, content such as table are received
Shown in 1.
Table 1
Project name | Air-conditioning buying |
Purchaser | A mechanism |
Supplier | A company |
Commodity | Air-conditioning |
Budget | 100000 yuan |
Commodity amount | 50 |
Unit price | 1888 |
Contact method | 18888886666 |
Step S220: the information of putting on record is subjected to Hash operation, obtains the cryptographic Hash for putting information on record.
Wherein, Hash operation is that text generation is known as to the code of informative abstract, i.e. cryptographic Hash using hash function.It breathes out
Uncommon value is the numerical value obtained according to the data of the content of file by logical operation, and different files is (even identical file
Name) obtained cryptographic Hash is different.
It is possible to further which the project name information, purchaser's information and supplier information are carried out Hash fortune respectively
It calculates, obtains the cryptographic Hash, the cryptographic Hash of purchaser's information and the cryptographic Hash of supplier information of the project name information.
Step S230: it obtains in block chain and has stored the cryptographic Hash for putting information on record.
Further, stored put on record information be it is stored put information on record into block chain, stored and put information on record
May include stored items name information, stored purchaser's information, storage vendor's information etc., described stored is put on record
The cryptographic Hash of information may include the cryptographic Hash of stored items name information, stored the cryptographic Hash of purchaser's information and deposited
Store up the cryptographic Hash etc. of supplier information.
Not yet storage is in the case where put information on record in block chain, and it is sky that having stored of getting, which puts the cryptographic Hash of information on record,
It is white.Be stored in block chain it is a plurality of stored in the case where put information on record, obtain each respectively and stored and puts information on record
Cryptographic Hash.
Each stored put on record information content that information includes and information type both can it is identical there may also be
Little bit different, but each stored put on record in information include at least stored items name information, stored purchaser's information
Three kinds of essential informations of storage vendor's information.
For example, it is assumed that including having stored put information A on record, stored to put information B on record and stored and put information on record in block chain
C, wherein stored five kinds of information for putting information A on record including three kinds of essential informations and budget information and monovalent information,
Four kind information of the information B including three kinds of essential informations and marque information are put in storage on record, have been stored and have been put information C on record only
Only include three kinds of essential informations, as example, other situations can and so on.
Step S240: putting the cryptographic Hash for putting information on record and described stored the cryptographic Hash of information on record and compare,
Whether the cryptographic Hash for putting information described in judgement on record with described has stored that put the cryptographic Hash of information on record identical.
It is possible to further judge the cryptographic Hash of the project name information and the Kazakhstan of the name information of stored items
The Kazakhstan of uncommon value, the cryptographic Hash of purchaser's information and the cryptographic Hash for having stored purchaser's information, the supplier information
Uncommon value with whether the cryptographic Hash of at least two groups is identical in the cryptographic Hash of the information of storage vendor.If so, thening follow the steps
S241;If it is not, thening follow the steps S242.
Step S241: information is put on record described in giving up.
Step S242: it puts information described in record on record, and puts information and the cryptographic Hash storage for putting information on record on record for described
To in the block chain.
Specifically, respectively to the cryptographic Hash of project name information and each the cryptographic Hash of stored items name information,
The cryptographic Hash of purchaser's information has stored the cryptographic Hash of purchaser's information, the cryptographic Hash of supplier information with each and has stored
The cryptographic Hash of supplier information compares, and the cryptographic Hash for judging whether there is at least two groups is identical.
If the cryptographic Hash of project name information and the cryptographic Hash of stored items title, the cryptographic Hash of purchaser's information with
The cryptographic Hash, the cryptographic Hash of supplier information and the cryptographic Hash of storage vendor's information for storing purchaser's information are all the same, then
This is put information on record and has stored and puts information on record and belong to a procurement item, puts information on record to be identical, puts this on record information and give up, no
It is recorded and is uploaded.
If the cryptographic Hash of project name information is identical as the cryptographic Hash of stored items title, the cryptographic Hash of purchaser's information
Identical as the cryptographic Hash for having stored purchaser's information, the cryptographic Hash of the cryptographic Hash of supplier information and storage vendor's information is not
Together, then illustrate that other existing suppliers' of this procurement item puts information on record, this is put information on record and information is put on record and belonged to having stored
One procurement item puts information on record to be identical, puts this on record information and give up, without recording and uploading.
If the cryptographic Hash of project name information is identical as the cryptographic Hash of stored items title, the cryptographic Hash of purchaser's information
It is different from the cryptographic Hash for having stored purchaser's information, the cryptographic Hash phase of the cryptographic Hash of supplier information and storage vendor's information
Together, then illustrate to provide and put the supplier of information on record this project is put on record, this is put information on record and has stored that put information on record same
Belong to a procurement item, puts information on record to be identical, put this on record information and give up, without recording and uploading.
If the cryptographic Hash of project name information is different from the cryptographic Hash of stored items title, the cryptographic Hash of purchaser's information
It is identical as the cryptographic Hash for having stored purchaser's information, the cryptographic Hash phase of the cryptographic Hash of supplier information and storage vendor's information
Together, then illustrate that the supplier puts on record with regard to the project of the purchaser, this put on record information with stored put on record information be it is identical
It puts information on record, puts this on record information and give up, without recording and uploading.In addition, the same purchaser exist simultaneously it is multiple not
In the case where with procurement item, letter can be put on record to determine by the way that whether further judge the cryptographic Hash of project name information identical
It whether identical ceases.
If put on record the cryptographic Hash of information stored with any one put on record information cryptographic Hash be all different or only with its
In a group information cryptographic Hash it is identical, it is determined that it is described put on record information from stored that put information on record different, i.e., it is right in block chain
It is not yet stored in the procurement item of the purchaser and puts information on record, put information and the cryptographic Hash for putting information on record described in record on record
It stores into block chain.
Further, as shown in figure 3, the block chain includes at least two block chain nodes, any one can be passed through
Block chain node puts information and the cryptographic Hash generation block for putting information on record on record for described, and the block is broadcasted to other
Block chain node;Either block chain node in other described block chain nodes verifies the block, and verifying is logical
The block crossed is recorded to the block chain node.
Specifically, block chain node is the computer in block chain network, including mobile phone, mine machine, desktop computer and server
Deng.
Further, the block includes block head and block body, can be by any one block chain node by institute
It states and puts the cryptographic Hash of information on record and be written into the block head, and the information of putting on record is written into the block body, generate
The block.
Specifically, face stores the head information of block to block in front, including the cryptographic Hash for putting information on record, i.e. this block
Block body in the information such as cryptographic Hash of cryptographic Hash and timestamp, difficulty value, a upper block held.It is stored in block body
The detailed data of this block, this data include several rows record, can be Transaction Information, be also possible to other certain letter
Breath, in the present embodiment, the data stored in block body are to put information on record.
The block chain node for generating the block broadcasts the block into block chain network, its in block chain network
He can receive the block by block chain node, other block chain nodes carry out authenticity verification to the block, and verifying is logical
Later other block chain nodes just record the block to local, complete storage.
Information reporting method provided by the present application is stored by that will put information on record into block chain, utilizes point of block chain
The decentralization of cloth network frame and common recognition system provides a kind of transparent, disclosed consistency storage to put information on record, puts on record
Information improves the stability and safety for putting information storage on record once storing can not distort.
By taking procurement item as an example, information will be put on record and store into block chain the letter that can solve between supplier and purchaser
Appoint problem, prevents the rival that puts information reveal to supplier of the purchaser by supplier;And it is directed to the same buying item
Mesh, block chain only store first upload put information on record, it can also be ensured that the fair competition between different suppliers facilitates
Procurement item is gone on smoothly.
As shown in figure 4, a kind of information reporting method, including step S410 to step S462.
Step S410: information is put in reception on record.
Step S420: the information of putting on record is subjected to Hash operation, obtains the cryptographic Hash for putting information on record;
Step S430: it obtains in block chain and has stored the cryptographic Hash for putting information on record;
Step S440: putting the cryptographic Hash for putting information on record and described stored the cryptographic Hash of information on record and compare,
Whether the cryptographic Hash for putting information described in judgement on record is identical as the cryptographic Hash that information is put in described having stored on record;If so, executing step
Rapid S441, if it is not, thening follow the steps S442.
Step S441: information is put on record described in giving up.
Step S442: it puts information described in record on record, and puts information and the cryptographic Hash storage for putting information on record on record for described
To in the block chain.
Wherein, the particular content of step S410 to step S442 can refer to above-described embodiment, and details are not described herein.
Step S450: receive carry that target puts information on record put inquiry request on record.
Specifically, it is to be based on putting details provided by project on record that target, which puts information on record,.By taking procurement item as an example, adopting
In purchase project, it is procurement information that target, which puts information on record, and the target, which is put on record, includes at least project name information, purchaser in information
Three kinds of essential informations of information and supplier information can also include product name information, budget information, commodity amount information, list
Information, the application such as valence information, loco information are without limitation.
Hash operation is carried out it is possible to further put the target on record information, obtains the Kazakhstan that the target puts information on record
Uncommon value.
Specifically, the target can be put on record to destination item name information, the target purchaser information, target in information
Supplier information etc. carries out Hash operation respectively and obtains corresponding cryptographic Hash.
Step S460: put whether information has stored to the block on record based on the inquiry request inquiry target of putting on record
In chain.If so, thening follow the steps S461;If it is not, thening follow the steps S462.
Step S461: feedback puts successful information on record.
Step S462: feedback puts failure information on record.
It is possible to further putting inquiry request on record based on described, inquire the target put on record information cryptographic Hash whether with
The cryptographic Hash that having stored in the block chain puts information on record is identical.
It has stored if so, the target puts information on record into the block chain, feedback puts successful information on record.
If it is not, then the target is put on record in the information block chain, feedback puts failure information on record.
Specifically, stored put on record information be it is stored put information on record into block chain, stored put information on record can
With include stored items name information, stored purchaser's information, storage vendor's information etc., described stored puts letter on record
The cryptographic Hash of breath may include the cryptographic Hash of stored items name information, stored the cryptographic Hash of purchaser's information and stored
The cryptographic Hash etc. of supplier information.
Can respectively the cryptographic Hash to destination item name information and each the cryptographic Hash of stored items name information,
The cryptographic Hash and each of target purchaser's information have stored the cryptographic Hash of the cryptographic Hash of purchaser's information, target offerings quotient's information
It is compared with the cryptographic Hash of storage vendor's information, and judges whether that the cryptographic Hash of each group information is all the same.If each
The cryptographic Hash of group information is all the same, then illustrates that target is put information on record and successfully put on record, and store into block chain, if any one group
The cryptographic Hash of information is different, then illustrates that target puts information on record and puts failure on record, not stored into block chain.
Above-described embodiment is described further below with reference to specific example.
For example, it is assumed that is got puts information a on record1Including " project name: air-conditioning buying, purchaser: first mechanism, supply
Quotient: Ding Gongsi " obtains putting information a on record by Hash operation1Cryptographic Hash include " H(project name: air-conditioning buying), H(purchaser: first mechanism),
H(supplier: Ding Gongsi)", the storage in block chain puts information on record and only has one, puts information b on record to have stored1, content includes " item
Mesh title: air-conditioning remote control buying, purchaser: the third mechanism, supplier: company B ", obtains its cryptographic Hash, including
“H(project name: air-conditioning remote control buying), H(purchaser: the third mechanism), H(supplier: company B)", by comparison, put information a on record1Information b is put on record with having stored1Item
Mesh name information, purchaser's information and supplier information are all different, and are not existed in block chain and are put information a on record1It is identical
Storage put information on record.
Based on putting information a on record1And put information a on record1Cryptographic Hash it is raw by computer (block chain node) at purchaser
It broadcasts at a new block, and by the block into block chain network, other block chain nodes carry out authenticity to the block
After verifying, which is stored, then puts information a on record in the block1It is converted to have stored and puts information a on record1。
It obtains again and puts information on record, what is got puts information a on record2Including " project name: air-conditioning buying, purchaser: first machine
Structure, supplier: company B, commodity amount: 20 ", it obtains putting information a on record by Hash operation2Cryptographic Hash include
“H(project name: air-conditioning buying), H(purchaser: first mechanism), H(supplier: company B), H(commodity amount: 20)", the storage in block chain puts information totally two on record, point
It Wei not store and put information b on record1It has stored and has put information a on record1。
Wherein, it has stored and has put information b on record1Including " project name: air-conditioning remote control buying, purchaser: the third mechanism, supply
Quotient: company B " has stored and has put information b on record1Cryptographic Hash include " H(project name: air-conditioning remote control buying), H(purchaser: the third mechanism), H(supplier: company B)",
By comparison, information a is put on record1Information b is put on record with having stored1Between only supplier information cryptographic Hash it is identical, illustrate to put letter on record
Cease a2Information b is put on record with having stored1It is not identical.It has stored and has put information a on record1Including " project name: air-conditioning buying, purchaser:
First mechanism, supplier: Ding Gongsi " has been stored and has been put information a on record1Cryptographic Hash include " H(project name: air-conditioning buying), H(purchaser: first mechanism),
H(supplier: Ding Gongsi)", by comparison, put information a on record2Information a is put on record with having stored1Project name information cryptographic Hash and purchaser
The cryptographic Hash of information is identical, then illustrates that the existing correlation of this project puts information on record, give up and put information a on record2.As example, other
Situation can and so on, details are not described herein.
Inquiry request is put in reception on record, it is assumed that is put on record and is carried target in inquiry request and put information c on record1, including " entry name
Claim: air-conditioning buying, purchaser: first mechanism, supplier: penta company ", target, which is obtained, by Hash operation puts information c on record1Hash
Value includes " H(project name: air-conditioning buying), H(purchaser: first mechanism), H(supplier: penta company)", it is same as described above to store procurement information, including stored report
Standby information b1It has stored and has put information a on record1.By comparison, target puts information c on record1Information b is put on record with having stored1Project name
Information, purchaser's information and supplier information are all different, and target puts information c on record1Information a is put on record with having stored1Project name
Information and purchaser's information are identical, but supplier information is different, then target puts information c on record1Put failure on record.As example, other
Situation can and so on, details are not described herein.
Information reporting method provided by the present application can inquire information of putting on record stored in block chain, with
Know that information puts situation on record.It puts that information is open and clear on record, can effectively improve the degree of belief put on record between both parties.
As shown in figure 5, a kind of information puts device on record, comprising:
Receiving module 510 is configured as receiving and puts information on record.
Computing module 520 is configured as the information of putting on record carrying out Hash operation, obtains the Hash for putting information on record
Value.
Module 530 is obtained, is configured as having stored the cryptographic Hash for putting information on record in acquisition block chain.
Judgment module 540 is configured as putting the cryptographic Hash for putting information on record and described stored the Hash of information on record
Value compares, and whether the cryptographic Hash for putting information described in judgement on record is identical as the cryptographic Hash that information is put in described having stored on record.
If so, putting information on record described in giving up.
If it is not, then put information on record described in record, and by it is described put information on record and the cryptographic Hash for putting information on record store to
In the block chain.
Optionally, the information of putting on record includes project name information, purchaser's information and supplier information, the calculating mould
Block 520, is further configured as:
The project name information, purchaser's information and supplier information are subjected to Hash operation respectively, obtain the item
Cryptographic Hash, the cryptographic Hash of purchaser's information and the cryptographic Hash of supplier information of mesh name information.
Optionally, it is described stored put on record information cryptographic Hash include the cryptographic Hash of stored items name information, deposited
The cryptographic Hash of storage purchaser's information and the cryptographic Hash of storage vendor's information.
The judgment module 540, is further configured as:
Judge the cryptographic Hash of the project name information and the cryptographic Hash of the name information of stored items, the buying
The cryptographic Hash of quotient's information has been deposited with the cryptographic Hash for having stored purchaser's information, the cryptographic Hash of the supplier information with described
Store up supplier information cryptographic Hash in whether at least two groups cryptographic Hash it is identical.
If so, putting information on record described in giving up.
If it is not, then put information on record described in record, and by it is described put information on record and the cryptographic Hash for putting information on record store to
In the block chain.
Optionally, the block chain includes at least two block chain nodes, and the judgment module 540 is further matched
It is set to:
By any one block chain node by it is described put on record information and it is described put information on record cryptographic Hash generate block, and
The block is broadcasted to other block chain nodes.
Either block chain node in other described block chain nodes verifies the block, and will be verified
Block is recorded to the block chain node.
Optionally, the block includes block head and block body, and the judgment module 540 is further configured as:
The cryptographic Hash for putting information on record is written into the block head by any one block chain node, and by institute
It states and puts information on record and be written into the block body, generate the block.
Optionally, the information puts device on record, further includes:
Second receiving module, be configured as receiving carry that target puts information on record put inquiry request on record.
Enquiry module, be configured as based on it is described put on record inquiry request inquire the target put on record information whether stored to
In the block chain.
If so, feedback puts successful information on record.
If it is not, then feedback puts failure information on record.
Optionally, the information puts device on record, further includes:
Second computing module is configured as putting the target into information progress Hash operation on record, obtains the target and put on record
The cryptographic Hash of information.
The enquiry module, is further configured as:
Put inquiry request on record based on described, inquire the target put on record information cryptographic Hash whether in the block chain
Stored put on record information cryptographic Hash it is identical.
If so, feedback puts successful information on record.
If it is not, then feedback puts failure information on record.
Information provided by the present application puts device on record, is stored by that will put information on record into block chain, utilizes point of block chain
Can not distorting for information is put in the decentralization of cloth network frame and common recognition system, guarantee on record, improves the stabilization for putting information storage on record
Property and safety.
One embodiment of the application also provides a kind of calculating equipment, including memory, processor and storage are on a memory simultaneously
The computer instruction that can be run on a processor, the processor perform the steps of when executing described instruction
Information is put in reception on record.
The information of putting on record is subjected to Hash operation, obtains the cryptographic Hash for putting information on record.
It obtains in block chain and has stored the cryptographic Hash for putting information on record.
The cryptographic Hash for putting information on record and described stored are put on record the cryptographic Hash of information and compared, judges the report
Whether the cryptographic Hash of standby information is identical as the cryptographic Hash that information is put in described having stored on record.
If so, putting information on record described in giving up.
If it is not, then put information on record described in record, and by it is described put information on record and the cryptographic Hash for putting information on record store to
In the block chain.
One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer instruction, the instruction
The step of information reporting method as previously described is realized when being executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited
The technical solution of storage media and the technical solution of above-mentioned information reporting method belong to same design, the technical solution of storage medium
The detail content being not described in detail may refer to the description of the technical solution of above- mentioned information reporting method.
The computer instruction includes computer program code, the computer program code can for source code form,
Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute
State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code
Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory),
Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior
Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts
Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen
It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment
All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification,
It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain the application
Principle and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only
It is limited by claims and its full scope and equivalent.
Claims (10)
1. a kind of information reporting method, which is characterized in that for putting system on record, comprising:
Information is put in reception on record;
The information of putting on record is subjected to Hash operation, obtains the cryptographic Hash for putting information on record;
It obtains in block chain and has stored the cryptographic Hash for putting information on record;
The cryptographic Hash for putting information on record and described stored are put on record the cryptographic Hash of information and compared, puts letter described in judgement on record
Whether the cryptographic Hash of breath is identical as the cryptographic Hash that information is put in described having stored on record;
If so, putting information on record described in giving up;
If it is not, then put information on record described in record, and information is put on record and the cryptographic Hash for putting information on record is stored to described for described
In block chain.
2. information reporting method according to claim 1, which is characterized in that the information of putting on record includes project name letter
Breath, purchaser's information and supplier information, it is described that the information of putting on record is subjected to Hash operation, obtain the Kazakhstan for putting information on record
Uncommon value, comprising:
The project name information, purchaser's information and supplier information are subjected to Hash operation respectively, obtain the entry name
Claim cryptographic Hash, the cryptographic Hash of purchaser's information and the cryptographic Hash of supplier information of information.
3. information reporting method according to claim 2, which is characterized in that described to have stored the cryptographic Hash packet for putting information on record
The cryptographic Hash and the Hash of storage vendor's information for including the cryptographic Hash of stored items name information, having stored purchaser's information
Value;
Put cryptographic Hash identical, the packet of whether with having stored in block chain putting the cryptographic Hash of information on record of information described in the judgement on record
It includes:
Judge that the cryptographic Hash of the project name information and the cryptographic Hash of the name information of stored items, the purchaser are believed
The cryptographic Hash of breath has stored confession with described with the cryptographic Hash for having stored purchaser's information, the cryptographic Hash of the supplier information
Answer in the cryptographic Hash of quotient's information whether at least two groups information cryptographic Hash it is identical;
If so, putting information on record described in giving up;
If it is not, then put information on record described in record, and information is put on record and the cryptographic Hash for putting information on record is stored to described for described
In block chain.
4. information reporting method according to claim 1, which is characterized in that the block chain includes at least two block chains
Node, it is described to put information on record and the cryptographic Hash for putting information on record is stored into the block chain for described, comprising:
Information is put on record and the cryptographic Hash for putting information on record generates block for described by any one block chain node, and by institute
Block is stated to broadcast to other block chain nodes;
The block that either block chain node in other described block chain nodes is verified the block, and will be verified
It records to the block chain node.
5. information reporting method according to claim 4, which is characterized in that the block includes block head and block body,
Information and the cryptographic Hash generation block for putting information on record are put on record by described by any one block chain node, comprising:
The cryptographic Hash for putting information on record is written into the block head by any one block chain node, and by the report
Standby information is written into the block body, generates the block.
6. information reporting method according to claim 1, which is characterized in that further include:
Receive carry that target puts information on record put inquiry request on record;
Put whether information has stored into the block chain on record based on the inquiry request inquiry target of putting on record;
If so, feedback puts successful information on record;
If it is not, then feedback puts failure information on record.
7. information reporting method according to claim 6, which is characterized in that put inquiry request on record based on described described and look into
The target is ask to put on record before whether information stored into the block chain, further includes:
It puts the target on record information and carries out Hash operation, obtain the cryptographic Hash that the target puts information on record;
It is described to put whether information has stored into the block chain on record based on the inquiry request inquiry target of putting on record, it wraps
It includes:
Put inquiry request on record based on described, inquire the target put on record information cryptographic Hash whether with having deposited in the block chain
The cryptographic Hash that information is put in storage on record is identical;
If so, feedback puts successful information on record;
Failure information is put on record if it is not, then feeding back.
8. a kind of information puts device on record characterized by comprising
Receiving module is configured as receiving and puts information on record;
Computing module is configured as the information of putting on record carrying out Hash operation, obtains the cryptographic Hash for putting information on record;
Module is obtained, is configured as having stored the cryptographic Hash for putting information on record in acquisition block chain;
Judgment module is configured as that the cryptographic Hash for putting information on record and described stored are put on record the cryptographic Hash of information and carried out pair
Than whether the cryptographic Hash for putting information described in judgement on record is identical as the cryptographic Hash that information is put in described having stored on record;
If so, putting information on record described in giving up;
If it is not, then put information on record described in record, and information is put on record and the cryptographic Hash for putting information on record is stored to described for described
In block chain.
9. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine instruction, which is characterized in that the processor realizes the step of claim 1-7 any one the method when executing described instruction
Suddenly.
10. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the instruction is held by processor
The step of claim 1-7 any one the method is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910631828.XA CN110335125A (en) | 2019-07-12 | 2019-07-12 | A kind of information reporting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910631828.XA CN110335125A (en) | 2019-07-12 | 2019-07-12 | A kind of information reporting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110335125A true CN110335125A (en) | 2019-10-15 |
Family
ID=68144948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910631828.XA Pending CN110335125A (en) | 2019-07-12 | 2019-07-12 | A kind of information reporting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110335125A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111125020A (en) * | 2019-12-20 | 2020-05-08 | 西安翻译学院 | Block chain-based information security management method, system and server |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008005156A (en) * | 2006-06-21 | 2008-01-10 | Matsushita Electric Ind Co Ltd | Information processing terminal and state reporting method |
CN102523112A (en) * | 2011-12-14 | 2012-06-27 | 华为技术有限公司 | Information processing method and equipment |
CN107194666A (en) * | 2017-05-19 | 2017-09-22 | 中链科技有限公司 | Report Server Management method and terminal device based on block chain technology |
CN107396360A (en) * | 2017-08-15 | 2017-11-24 | 中国联合网络通信集团有限公司 | Block verification method and device |
CN108805585A (en) * | 2018-05-28 | 2018-11-13 | 广州中国科学院软件应用技术研究所 | Distributed commodity data storage system, circulation and source tracing method based on block chain |
CN109088871A (en) * | 2018-08-14 | 2018-12-25 | 深圳市人民政府金融发展服务办公室 | Datagram delivery method and system based on block chain technology |
-
2019
- 2019-07-12 CN CN201910631828.XA patent/CN110335125A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008005156A (en) * | 2006-06-21 | 2008-01-10 | Matsushita Electric Ind Co Ltd | Information processing terminal and state reporting method |
CN102523112A (en) * | 2011-12-14 | 2012-06-27 | 华为技术有限公司 | Information processing method and equipment |
CN107194666A (en) * | 2017-05-19 | 2017-09-22 | 中链科技有限公司 | Report Server Management method and terminal device based on block chain technology |
CN107396360A (en) * | 2017-08-15 | 2017-11-24 | 中国联合网络通信集团有限公司 | Block verification method and device |
CN108805585A (en) * | 2018-05-28 | 2018-11-13 | 广州中国科学院软件应用技术研究所 | Distributed commodity data storage system, circulation and source tracing method based on block chain |
CN109088871A (en) * | 2018-08-14 | 2018-12-25 | 深圳市人民政府金融发展服务办公室 | Datagram delivery method and system based on block chain technology |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111125020A (en) * | 2019-12-20 | 2020-05-08 | 西安翻译学院 | Block chain-based information security management method, system and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Seok et al. | Collaborative capacity sharing among manufacturers on the same supply network horizontal layer for sustainable and balanced returns | |
CN108009778A (en) | A kind of supply chain management method | |
TW201935344A (en) | Method and apparatus for acquiring multi-tag user portrait | |
CN108874890A (en) | A kind of band can openly record the block catenary system of man-machine system | |
CN108960863A (en) | A kind of food block chain retroactive method, device and electronic equipment | |
CN113159327A (en) | Model training method and device based on federal learning system, and electronic equipment | |
CN111079015B (en) | Recommendation method and device, computer equipment and storage medium | |
CN107609153A (en) | A kind of book management system | |
CN108876538B (en) | A kind of order information processing method | |
CN108764696A (en) | A kind of purchasing management method and platform | |
CN106097019A (en) | Virtual objects packet transmission method, device and system | |
CN110400200A (en) | A kind of method and apparatus of electronic transaction | |
Lee et al. | Applying geo-social networking and the theory of inventive problem-solving in service innovation and evaluation | |
CN112182399A (en) | Multi-party security calculation method and device for federated learning | |
Nguyen et al. | Logistics revolution for e-commerce in Vietnam: a brief review | |
CN110335125A (en) | A kind of information reporting method and device | |
Du et al. | From Buzzword to Biz World: Realizing Blockchain’s Potential in the International Business Context | |
CN109345178A (en) | A kind of procurement process control method and platform calculate equipment and storage medium | |
CN117422553A (en) | Transaction processing method, device, equipment, medium and product of blockchain network | |
WO2017162088A1 (en) | Multi-user operation successively associated computer network and architecture method therefor | |
US20230092093A1 (en) | System and method for carrier identification | |
CN106600374A (en) | Household electrical appliance product quotation sales system utilizing Internet | |
JP2021039712A (en) | User customization type commodity recommendation device through artificial intelligence-based machine learning | |
CN116861107A (en) | Business content display method, device, equipment, medium and product | |
CN110428309A (en) | A kind of differentiation procurement practice 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 |