Summary of the invention
In order to solve the problems, such as that it is lower that existing electronic document deposits efficiency existing for card method, this specification embodiment is provided
A kind of electronic document deposits card method and device, and technical solution is as follows:
According to the 1st of this specification embodiment aspect, a kind of electronic document is provided and deposits card method, is set applied to card service is deposited
Standby, the card service equipment of depositing butts up against block chain network, which comprises
Obtain at least two electronic documents of card to be deposited;
Hash calculation is executed according at least two electronic document, obtains depositing card cryptographic Hash;
Building comprising it is described deposit card cryptographic Hash deposit card transaction, and deposit card transaction by described and submit to the block link network
Network, so that the block chain network deposits card transaction write-in block chain for described;
And for each electronic document, the electronic document and the corresponding relationship deposited between card cryptographic Hash are recorded.
According to the 2nd of this specification embodiment aspect, provide it is a kind of deposit card method of calibration for electronic document, be applied to
Card service equipment is deposited, the card service equipment of depositing butts up against block chain network, which comprises
The card verification of depositing that user sends is received to request;It is described deposit card verification request include target electronic file;
According to the corresponding relationship recorded in method described in the 1st aspect, the target electronic file pair is judged whether there is
That answers deposits card cryptographic Hash;
If it exists, then depositing for card cryptographic Hash is deposited comprising described in by block chain network verification and demonstrate,proves whether transaction has been written into
Block chain, and check results are fed back into the user.
According to the 3rd of this specification embodiment aspect, a kind of electronic document is provided and deposits card device, described device butts up against area
Block chain network, described device include:
Module is obtained, at least two electronic documents of card to be deposited are obtained;
Computing module executes Hash calculation according at least two electronic document, obtains depositing card cryptographic Hash;
Module is submitted in building, building comprising it is described deposit card cryptographic Hash deposit card transaction, and deposit card transaction by described and submit to
The block chain network, so that the block chain network deposits card transaction write-in block chain for described;
Corresponding relationship logging modle records the electronic document and described deposit is demonstrate,proved between cryptographic Hash for each electronic document
Corresponding relationship.
According to the 4th of this specification embodiment aspect, provides and a kind of deposit card calibration equipment, the dress for electronic document
It sets and butts up against block chain network, described device includes:
Receiving module receives the card verification of depositing that user sends and requests;It is described deposit card verification request include target electronic file;
Judging treatmenting module, the corresponding relationship recorded in method according to any one of claims 1 to 4, judgement are
It is no to deposit card cryptographic Hash there are the target electronic file is corresponding;If it exists, then institute is included by block chain network verification
State deposit card cryptographic Hash deposit card transaction whether written block chain, and check results are fed back into the user.
Technical solution provided by this specification embodiment, on the one hand, deposit card service equipment by based on card to be deposited at least
Card cryptographic Hash that two electronic documents obtained deposit is packaged into one and deposits card transaction, is once submitted to block chain network, in this way,
It can submit operation that more than one electronic document is anchored in block chain by once trading;On the other hand, card service is deposited to set
The standby each electronic document that will record at least two electronic document and the corresponding relationship deposited between card cryptographic Hash, such as
This, be equivalent to have recorded each electronic document be specifically anchored to block chain which of deposit card transaction on, will not influence and be directed to
Single Electron file carries out depositing card verification.By this specification embodiment, can not influence to carry out for Single Electron file
Under the premise of depositing card verification, the efficiency for deposit to electronic document card is promoted.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
This specification embodiment can be limited.
In addition, any embodiment in this specification embodiment does not need to reach above-mentioned whole effects.
Specific embodiment
It is deposited in card method in existing electronic document, as shown in Figure 1, carrying out individually depositing card and single school to electronic document
It tests.Specifically, it is assumed that user wants to deposit card more than one electronic document, then needing for each electronic document, by the electricity
Subfile, which is individually uploaded to, deposits card service equipment, and one can be encapsulated into for the cryptographic Hash of the electronic document and deposit card by depositing card service equipment
In transaction, and this to be deposited into card transaction and submits to block chain network, this is deposited card transaction and block chain eventually is written by block chain network,
This means that the electronic document is anchored in block chain, also it is achieved that and card is deposited to the electronic document.It is subsequent right if necessary
Some electronic document carries out depositing card verification, then positions the anchor of the electronic document in block chain according to the cryptographic Hash of the electronic document
Point (i.e. the card of depositing of the cryptographic Hash comprising the electronic document is traded), if there is anchor point, it is assumed that passing through verification.
And in this specification embodiment, as shown in Fig. 2, carrying out batch to electronic document deposits card and single verification, such as
This, can promote the effect for deposit to electronic document card under the premise of not influencing to carry out depositing card verification to Single Electron file
Rate.
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with this
Attached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that described
Embodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual,
Those of ordinary skill in the art's every other embodiment obtained, all should belong to the range of protection.
Below in conjunction with attached drawing, the technical solution that each embodiment of this specification provides is described in detail.
Fig. 3 is that a kind of electronic document that this specification embodiment provides deposits the flow diagram of card method, including walks as follows
It is rapid:
S300: at least two electronic documents of card to be deposited are obtained.
The executing subject of this method deposits card service equipment for data Cun Zheng service provider, specifically can be data and deposits card clothes
The server of business quotient.Described deposit is equipped with block chain program on card service equipment, for carrying out data interaction with block chain network,
Docking for card service equipment and block chain network is deposited described in realization.
Electronic document described herein refers to be generated in digital device and environment, with digital form be stored in tape,
The carriers such as disk, CD rely on the file that the equipment such as computer are read, handle and can be transmitted on a communication network.For example,
Under the scene of webpage evidence obtaining, the electronic document of card to be deposited can be webpage capture file, or record evidence obtaining webpage process
Video file.
S302: Hash calculation is executed according at least two electronic document, obtains depositing card cryptographic Hash.
As an alternative embodiment, in step s 302, at least two electronic document can be packaged into
One file packet executes hash algorithm by object of file packet, obtains depositing card cryptographic Hash.
As another optional embodiment, in step S300, card service equipment specifically available file pressure is deposited
Contracting packet (for example, can be also possible to rar format with zip format), the compressing file packet is to treat at least two electronics for depositing card
It is obtained after file progress compression processing.In step s 302, Hash calculation is executed by object of the compressing file packet, obtained
Deposit card cryptographic Hash.
Further, in step S300, at least two electronic documents of the card to be deposited of user's upload be can receive, and right
At least two electronic document carries out compression processing, obtains compressing file packet.Also it can receive the compressing file of user's upload
Packet.
In addition, as another optional embodiment, it in step s 302, can be based at least two electricity of card to be deposited
The cryptographic Hash of each electronic document in subfile constructs Merkel tree;The root cryptographic Hash of the Merkel tree is determined as depositing
Demonstrate,prove cryptographic Hash.
S304: building comprising it is described deposit card cryptographic Hash deposit card transaction, and deposit card transaction by described and submit to the block
Chain network.
In this specification embodiment, card cryptographic Hash write-in is deposited by what at least two electronic documents based on card to be deposited obtained
Card transaction is deposited, and card transaction will be deposited and submit to block chain network, so that block chain network deposits card transaction write-in block chain for described.
In this way, which operation can be submitted by once trading, just more than one electronic document mass is anchored in block chain,
Promotion deposits card efficiency to electronic document.
S306: being directed to each electronic document, records the electronic document and the corresponding relationship deposited between card cryptographic Hash.
In this specification embodiment, anchor point of at least two electronic document in block chain is same (the i.e. anchor
Due to it is same deposit card transaction), however, deposit card transaction in encapsulate be not Single Electron file cryptographic Hash, but according to
Obtain one of at least two electronic document deposits card cryptographic Hash.
In practical applications, user generally requires to carry out depositing card verification to Single Electron file, it will usually by Single Electron
File, which is submitted to, deposits card service equipment request verification.It, can not be in area according only to the electronic document for depositing card service equipment
The anchor point of the electronic document is navigated in block chain.
Therefore, it deposits card service equipment and needs to record to be written each to deposit in block chain and demonstrate,prove the corresponding electronic document of cryptographic Hash and have
Which.Card cryptographic Hash is deposited accordingly in this way, depositing card service equipment and can be mapped to according to some electronic document to be verified, thus
It will include that the card transaction of depositing for depositing card cryptographic Hash is determined as anchor point of the electronic document in block chain.
Furthermore it should be noted that in this specification embodiment, the execution opportunity of step S306 is not specifically limited.
For example, can before executing step S302, execute step S302 simultaneously or execute step S302 after, execute step S306.
Further, in step S306, it can be directed to each electronic document, execute Hash by object of the electronic document
It calculates, obtains the cryptographic Hash of the electronic document;Then, the cryptographic Hash and described deposit for recording each electronic document are demonstrate,proved between cryptographic Hash
Corresponding relationship.
Fig. 4 is a kind of flow diagram for depositing card method of calibration for electronic document that this specification embodiment provides,
Include the following steps:
S400: it receives the card verification of depositing that user sends and requests.
The executing subject of method shown in Fig. 4 is to deposit card service equipment.
It is described deposit card verification request be user be uploaded to before needing to oneself deposit card service equipment card to be deposited electricity
Subfile (herein referred as target electronic file), which deposit, to be issued when card verification (verify and whether deposited card).It is described to deposit card school
It tests request and carries target electronic file.
S402: the corresponding relationship recorded in method according to Fig.3, judges whether there is the Kazakhstan of the target electronic file
It is uncommon that value is corresponding deposits card cryptographic Hash.
S404: if it exists, then deposit whether depositing for card cryptographic Hash demonstrate,proves transaction comprising described by block chain network verification
Written block chain, and check results are fed back into the user.
Card transaction is deposited for each of write-in block chain as previously mentioned, depositing card service equipment, record has this to deposit card transaction packet
What is contained deposits each electronic document (or cryptographic Hash of electronic document) corresponding to card cryptographic Hash.Therefore, if there is the target
Electronic document is corresponding to deposit card cryptographic Hash, then deposits card service equipment by block chain network and judge that this deposits whether card cryptographic Hash has been write
Enter block chain, if had been written into, just illustrate that target electronic file has deposited card, if be not written, just illustrates target electronic text
Part does not deposit card.
Further, card cryptographic Hash is deposited if there is no the target electronic file is corresponding, then depositing card service equipment can
To deposit card verification request described in refusal.
Pass through Fig. 3 and method shown in Fig. 4, on the one hand, deposit card service equipment at least two electronics based on card to be deposited
Card cryptographic Hash that file obtained deposit is packaged into one and deposits card transaction, is once submitted to block chain network, in this way, can pass through
Primary transaction submits operation that more than one electronic document is anchored in block chain;On the other hand, depositing card service equipment will record
Each electronic document and the corresponding relationship deposited between card cryptographic Hash at least two electronic document, in this way, quite
In have recorded each electronic document be specifically anchored to block chain which of deposit card transaction on, will not influence for Single Electron
File carries out depositing card verification.By this specification embodiment, can not influence to carry out depositing card verification for Single Electron file
Under the premise of, promote the efficiency for deposit to electronic document card.
Fig. 5 is the structural schematic diagram that a kind of electronic document that this specification embodiment provides deposits card device, described device pair
It is connected to block chain network, described device includes:
Module 501 is obtained, at least two electronic documents of card to be deposited are obtained;
Computing module 502 executes Hash calculation according at least two electronic document, obtains depositing card cryptographic Hash;
Module 503 is submitted in building, building comprising it is described deposit card cryptographic Hash deposit card transaction, and deposit card transaction by described and submit
To the block chain network, so that the block chain network deposits card transaction write-in block chain for described;
Corresponding relationship logging modle 504, for each electronic document, record the electronic document and it is described deposit card cryptographic Hash it
Between corresponding relationship.
The acquisition module 501 obtains compressing file packet;The compressing file packet is to treat at least two electronics for depositing card
It is obtained after file progress compression processing;
The computing module 502 executes Hash calculation by object of the compressing file packet, obtains depositing card cryptographic Hash.
The acquisition module 501 receives at least two electronic documents of the card to be deposited that user uploads, and to described at least two
A electronic document carries out compression processing, obtains compressing file packet;Or receive the compressing file packet that user uploads.
The computing module 502 constructs Merkel tree based on the cryptographic Hash of each electronic document;By the Merkel tree
Root cryptographic Hash be determined as depositing card cryptographic Hash.
The corresponding relationship logging modle 504 executes Hash as object using the electronic document and counts for each electronic document
It calculates, obtains the cryptographic Hash of the electronic document;Record the cryptographic Hash of each electronic document with it is described deposit it is corresponding between card cryptographic Hash
Relationship.
Fig. 6 is a kind of structural schematic diagram for depositing card calibration equipment for electronic document that this specification embodiment provides,
Described device butts up against block chain network, and described device includes:
Receiving module 601 receives the card verification of depositing that user sends and requests;It is described deposit card verification request include target electronic text
Part;
Judging treatmenting module 602, the corresponding relationship recorded in method according to Fig.3, judges whether there is the mesh
Electronic document is corresponding deposits card cryptographic Hash for mark;If it exists, then card cryptographic Hash is deposited comprising described by block chain network verification
Deposit card transaction whether written block chain, and check results are fed back into the user.
The judging treatmenting module 602 then deposits card verification request if it does not exist described in refusal.
This specification embodiment also provides a kind of computer equipment, includes at least memory, processor and is stored in
On reservoir and the computer program that can run on a processor, wherein processor is realized shown in Fig. 3 or 4 when executing described program
The function of method.
Fig. 7 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram,
The equipment may include: processor 1410, memory 1420, input/output interface 1430, communication interface 1440 and bus
1450.Wherein processor 1410, memory 1420, input/output interface 1430 and communication interface 1440 are real by bus 1450
The now communication connection inside equipment each other.
Processor 1410 can use general CPU (Central Processing Unit, central processing unit), micro- place
Reason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one
Or the modes such as multiple integrated circuits are realized, for executing relative program, to realize technical side provided by this specification embodiment
Case.
Memory 1420 can use ROM (Read Only Memory, read-only memory), RAM (Random Access
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 1420 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 1420, and execution is called by processor 1410.
Input/output interface 1430 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 1440 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1450 include an access, equipment various components (such as processor 1410, memory 1420, input/it is defeated
Outgoing interface 1430 and communication interface 1440) between transmit information.
It should be noted that although above equipment illustrates only processor 1410, memory 1420, input/output interface
1430, communication interface 1440 and bus 1450, but in the specific implementation process, which can also include realizing normal fortune
Other assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising real in above equipment
Component necessary to existing this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The function of method shown in Fig. 3 or 4 is realized when sequence is executed by processor.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, method, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for method and
For apparatus embodiments, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method
The part of embodiment illustrates.Embodiment of the method described above is only schematical, wherein described be used as separation unit
The module that part illustrates may or may not be physically separated, can be when implementing this specification example scheme
The function of each module is realized in the same or multiple software and or hardware.It can also select according to the actual needs therein
Some or all of the modules achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not making the creative labor
In the case where, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.