CN104735164B - A kind of method and apparatus of save file information - Google Patents
A kind of method and apparatus of save file information Download PDFInfo
- Publication number
- CN104735164B CN104735164B CN201510169759.7A CN201510169759A CN104735164B CN 104735164 B CN104735164 B CN 104735164B CN 201510169759 A CN201510169759 A CN 201510169759A CN 104735164 B CN104735164 B CN 104735164B
- Authority
- CN
- China
- Prior art keywords
- fileinfo
- file
- request
- network
- account
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/306—User profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Abstract
Embodiments of the present invention provide a kind of method of save file information.For example, this method can include:Obtain fileinfo, the export request for being related to export information to the first account of block chain network is broadcasted between other network nodes of block chain network, in response to receiving confirmation of other network nodes to export request, fileinfo is written in the first account of block chain network.By by fileinfo write-in block chain network, it ensure that unique legitimacy of the fileinfo in block chain network, the needs such as public's retrieval file or verification file validation can be met, moreover, because block chain network is the peer-to-peer network based on P2P technology decentralizations, controlled from the third-party institution, user can carry out self-management, there is no fileinfo not available problem is made due to the third-party institution terminates, user benefit is contained, better experience is brought for user.In addition, embodiments of the present invention provide a kind of device of save file information.
Description
Technical field
Embodiments of the present invention are related to internet arena, more specifically, embodiments of the present invention are related to a kind of preservation
The method and apparatus of fileinfo.
Background technology
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein
Description recognizes it is the prior art not because not being included in this part.
Client-server mode is a kind of network architecture, is carried by the friendship user for each other between client and server
For service.
At present, there are some third parties for save file information based on client-server mode to take
Be engaged in mechanism.The fileinfo that user uploads is stored in third-party server side and retrieves text to meet the public by the third party service organization
The needs such as part or verification file validation.But due to the third party service organization it is possible that because uncertain factor terminate, so as to
Cause the fileinfo for being stored in third-party server side no longer available, compromise the interests of user.
The content of the invention
Therefore, in the prior art, how to make the fileinfo of preservation continuously available is very bothersome problem.
Therefore, it is also very desirable to a kind of method of improved save file information, so that the fileinfo for ensureing to preserve continues
It can use.
In the present context, embodiments of the present invention are intended to provide a kind of method and apparatus of save file information.
In the first aspect of embodiment of the present invention, a kind of method of save file information is provided.For example, this method
It can include:Fileinfo is obtained, the export for being related to the export fileinfo to described piece of the first account of chain network is asked
It is broadcasted between other network nodes of described piece of chain network, the export is asked in response to receiving other network nodes
Confirmation, the fileinfo is written in first account of described piece of chain network.
In the second aspect of embodiment of the present invention, a kind of device of save file information is provided.For example, the device
It can include:Fileinfo acquiring unit may be configured to obtain fileinfo.Radio unit may be configured to relate to
And other network sections in described piece of chain network are asked in the export of the export fileinfo to described piece of the first account of chain network
It is broadcasted between point.Fileinfo storage unit may be configured in response to receiving other network nodes to the export
The fileinfo is written in first account of described piece of chain network by the confirmation of request.
The method and apparatus of the save file information of embodiment according to the present invention, using the network section of the embodiment of the present invention
Point exists the export request for being related to the export fileinfo to described piece of the first account of chain network after fileinfo is obtained
It is broadcasted between other network nodes of described piece of chain network, passes through the broadcast so that receive the network node of broadcast according to area
Historical record in block chain carries out the fileinfo that export request is related to and is written to the whether certifiable calculating of the first account, from
And the network node of present invention method is applied when receiving the confirmation that other network nodes ask the export, it can
To determine for fileinfo to be written to the first account of block chain network, and block chain can also preserve this document information and be written to
The record of first account of block chain network, since recording for block chain is irreversible, it may therefore be assured that the file in block chain network
Unique legitimacy of information can meet the needs such as public's retrieval file or verification file validation.Moreover, because block chain network
It is the peer-to-peer network based on P2P technology decentralizations, is controlled from the third party service organization, user can carry out self-management,
The problem of there is no making fileinfo no longer available due to service organization terminates, will not damage the interests of user, for
Family brings better experience.
Description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to attached drawing
, feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation
Dry embodiment, wherein:
Fig. 1 schematically shows the schematic network structure of embodiment according to the present invention;
Fig. 2 schematically shows the method flow schematic diagram of the save file information of embodiment according to the present invention;
Fig. 3 schematically shows according to an embodiment of the invention piece of link composition;
Fig. 4 schematically shows the apparatus structure schematic diagram of the save file information of embodiment according to the present invention;
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that provide this
A little embodiments are not with any just for the sake of better understood when those skilled in the art and then realize the present invention
Mode limits the scope of the invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy
It is enough that the scope of the present disclosure is intactly communicated to those skilled in the art.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, equipment,
Method or computer program product.Therefore, the disclosure can be implemented as following form, i.e.,:It is complete hardware, complete soft
The form that part (including firmware, resident software, microcode etc.) or hardware and software combine.
According to the embodiment of the present invention, it is proposed that a kind of method and apparatus of save file information.
Herein, it is to be understood that any number of elements in attached drawing is used to example and unrestricted and any
Name is only used for distinguishing, without any restrictions meaning.
Below with reference to several representative embodiments of the present invention, the principle and spirit of the invention are illustrated in detail.
Summary of the invention
The inventors discovered that fileinfo can be obtained by the network node of block chain network, the export file will be related to
The export request of information to described piece of the first account of chain network is broadcasted between other network nodes of described piece of chain network,
After other network nodes are received to the confirmation of the export request, the fileinfo is written to the institute of described piece of chain network
It states in the first account.Since recording for block chain is irreversible, it may therefore be assured that unique conjunction of the fileinfo in block chain network
Method can meet the needs such as public's retrieval file or verification file validation.Moreover, because block chain network is based on P2P skills
The peer-to-peer network of art decentralization controls from the third party service organization, and user can carry out self-management, thus, there is no
The problem of making fileinfo no longer available due to service organization terminates, maintains the interests of user, is brought preferably for user
Experience.
After the basic principle of the present invention is described, lower mask body introduces the various nonrestrictive embodiment party of the present invention
Formula.
Application scenarios overview
With reference first to Fig. 1, Fig. 1 is a kind of possible network architecture schematic diagram of the embodiment of the present invention.As shown in Figure 1,
Can specifically show as running on terminal device using the block chain network node 101 of present invention method one should
With or client.Network node 101 can obtain the fileinfo of user's submission.Network node 101 will be related to the export text
The export request of part information to described piece of the first account of chain network is broadcasted between other network nodes of block chain network.If
Network node 101 receives confirmation of other network nodes to the export request, and fileinfo is written to described piece of link network
In first account of network.
Illustrative methods
With reference to the application scenarios of Fig. 1, be described with reference to Figure 2 illustrative embodiments according to the present invention is applied to block
The method of the arbitrary network node of chain network.It should be noted that above application scene, which is for only for ease of, understands the present invention's
Spirit and principle and show, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can
To be applied to applicable any scene.
In order to which the embodiment of the present invention is made more easily to understand, block chain network is simply introduced first.As shown in Figure 1
Block chain network, by several network nodes formed based on P2P (Peer to Peer, P2P computing) technology decentralization
Peer-to-peer network.Wherein, a network node can show as running on an application or the client on terminal device.Block
Each network node in chain network maintain a string using cryptography method be associated generation block chain and, it is a
Account list.Newest number of blocks and block information are obtained between each network node by broadcasting, it is each so as to ensure
Block chain and account list between a network node are synchronous maintenances.For example, block chain as shown in Figure 3 is in program generation
Realization on code can be as follows:
struct Block{
hash HASH(S[n])
hash S[n-1]
};
Wherein, comprising a HASH (S [n]) in the head of each block of block chain, wherein S [n] is to produce next time
By the key of generation during block.Current block also includes the key S [n-1] of a upper block simultaneously.Due in block chain really
In the block recognized, the historical record item for being certified as owner's write-in fileinfo of fileinfo to account can be preserved, after
The block cryptographic Hash that block generates comprising before in the block head that face generates, it is not possible to reverse, in this way, just foring historical record
Irreversible block chain.
In some possible embodiments, the block chained record can be stored in encrypted P2P database mediums,
Such as, Berkeley DB.
In the following, with reference to Fig. 2, to the preservation text of the arbitrary network node provided in an embodiment of the present invention applied to block chain network
The method flow of part information is introduced.As shown in Fig. 2, this method can include:
S210, fileinfo is obtained.
For example, using the block chain network node of present invention method can specifically show as running on terminal device it
On an application or client, and accordingly provide and present a paper for user or the interface of fileinfo, pass through the interface
The file or fileinfo of user's submission can be obtained.
For example, the fileinfo can include:File content in the file specified to the first user performs default school
Unique check value that checking method is generated.Correspondingly, the step of obtaining fileinfo can include:It is adjusted in response to the interface
With the file submitted by the interface the first user of acquisition reads the file content of the file, the file content is held
The default checking algorithm of row generates unique check value of the file.Wherein, the default checking algorithm specific embodiment is not
Limit, for example, MD5 may be employed, the checking algorithms such as SHA.For example, network node can show as running on one on terminal
Using or client, user only need to read file using the application or client, just can by unique check value of file and only
The corresponding other information of one check value is written in block chain network.
For another example the fileinfo can include:The fileinfo of first user setting.Correspondingly, file letter is obtained
The step of breath, can include:It is called in response to the interface, the fileinfo of the first user setting is obtained by the interface.
It is understood that the fileinfo of the first user setting is not necessary fileinfo.It is provided using the embodiment of the present invention
The network node of method user can be supplied to select to set or the option that is not provided with.Decide whether to set by user.When with
After family triggers the option for determining setting, the interface can be called, and then user can be with typing or the file that it is selected to set
Information.(interface comprising option can be provided to supply for example, the fileinfo of the first user setting can include user's typing or selection
User makes choice) file creation time, author's title, author description etc. information.
With reference to above two embodiment, the fileinfo can include:Text in the file specified to the first user
The unique check value and the fileinfo of the first user setting that the default checking algorithm of part content execution is generated.
S220, export request of the export fileinfo to described piece of the first account of chain network will be related in described piece of chain
It is broadcasted between other network nodes of network.
Wherein, will export asks the specific implementation broadcasted between other network nodes of block chain network unlimited,
The general embodiment for being referred to the peer-to-peer network broadcast message based on P2P technologies is realized.For example, adjacent networks can be passed through
The export request is broadcast to full block chain network by the mode of node relay.
S230, the confirmation asked in response to receiving other network nodes the export, the fileinfo is write
Into first account of described piece of chain network.
As it can be seen that using the network node of the embodiment of the present invention after fileinfo is obtained, the export file will be related to
The export request of information to described piece of the first account of chain network is broadcasted between other network nodes of described piece of chain network, is led to
Cross the broadcast so that receive historical record of the network node of broadcast in block chain and carry out the file letter that export request is related to
Breath is written to the whether certifiable calculating of the first account, so as to which the network node of application present invention method is receiving
During the confirmation that other network nodes ask the export, it may be determined that fileinfo is written to the first account of block chain network
Family, and block chain can also preserve the record that this document information is written to the first account of block chain network, due to block chain
Record irreversible, as long as by fileinfo write-in block chain network, the whole world can be used in conjunction with this file system to ensure
The uniqueness of file, it may therefore be assured that unique legitimacy of the fileinfo in block chain network, can meet the public and retrieve text
The needs such as part or verification file validation, moreover, because block chain network is the peer-to-peer network based on P2P technology decentralizations, no
It is controlled by the third party service organization, user can carry out self-management, and there is no make fileinfo not due to service organization terminates
The problem of can using again, the interests of user will not be damaged, better experience is brought for user.
In the following, several possible embodiments for the fileinfo being stored in block chain network are utilized to the embodiment of the present invention
It is illustrated.
In some possible embodiments, if the fileinfo includes the file in the file specified to the first user
Content performs unique check value that default checking algorithm is generated, then can utilize the private of the account present in unique check value
Key, the timestamp of corresponding file, document describe any one or more persons in three, to the ownership of file into line justification.By
In traditional watermark need not be stamped hereof, it therefore, that is, can guarantee the authenticity of the ownership of file, and can guarantee U.S. of document
The property seen.Specifically, such as:It may also respond to receive file school using the network node of method provided in an embodiment of the present invention
Request is tested, according to the file verification acquisition request file to be tested, institute is performed to the file content in the file to be verified
Default checking algorithm is stated, the corresponding unique check value of the file to be verified is generated, is protected in each account of described piece of chain network
In the unique check value deposited, find out with the matched unique check value of file to be verified, utilize matched unique check value
The private key of existing account, timestamp, the matched unique check value of the corresponding file of matched unique check value are corresponding
The document description of file, any one in three or more persons mutually tackle the private key, described of the user of the file verification request
The timestamp of file to be verified, document description are verified, and the ownership person of the file to be verified is determined according to check results.Example
Such as, if the private key of the account present in matched unique check value it is consistent with the private key of the file owning user to be verified,
And the timestamp of the corresponding file of matched unique check value is consistent with the timestamp of the file to be verified and matched unique
The document description of the corresponding file of check value is consistent with the document description of the file to be verified, then can determine described to be verified
File owning user is the real owner of the file to be verified.
According to the above embodiment, in a possible scene, it is assumed that for user A there are one document, user B to pass through certain hand
Section has also held the document, proves the real owner which user is the document if necessary, then can submit the document
To any network node of application present invention method, so as to the corresponding timestamp of unique check value, the text to this document
Shelves description and private key holder are verified, and determine the real ownership person of file.
In other possible embodiments, if the fileinfo includes the text in the file specified to the first user
Part content performs unique check value that default checking algorithm is generated, then can carry out document retrieval using unique check value.Tool
Body, such as:It may also respond to receive file retrieval request using the network node of method provided in an embodiment of the present invention,
File to be retrieved is obtained according to the file retrieval request, in unique check value that each account of described piece of chain network preserves
In, it finds out and the matched unique check value of file to be retrieved, the corresponding relevant information of the matched unique check value of feedback.
For example, the corresponding relevant information of unique check value can include the relevant informations such as author's title, the author profile of file.Unique school
The corresponding relevant information of value is tested corresponding with unique check value to be stored in identical or different account.
According to the above embodiment, in a possible scene, user A has found some file by certain approach, thinks
Its author is contacted, but does not have any author information on file, then user A can submit to this document using the present invention
Any network node of embodiment method so that unique check value according to file in block chain network is retrieved, finds work
Person's information.
In other possible embodiment, if the fileinfo includes the fileinfo of the first user setting,
Document retrieval can be carried out using the fileinfo of the first user setting.Specifically, such as:Using provided in an embodiment of the present invention
The network node of method may also respond to receive file retrieval request, in the use that each account of described piece of chain network preserves
In the fileinfo that family is set, inquiry whether there is the information for meeting the search condition that the retrieval request is related to, if it does,
Feedback meets the information of search condition.For example, the fileinfo of the first user setting can include file creation time, authors' name
Title, author's description etc. information.The search condition that the retrieval request is related to can include retrieval and specify the file of author, retrieval
The author of the file of specified creation time, etc..The feedack can include file, author's title, author profile etc.
Deng.
According to the above embodiment, in a possible scene, the document that user A obtains file by certain approach is retouched
It states, it is desirable to find file or contact author, then the document can be described to submit to using present invention method by user A
Network node, so as to network node according to document description retrieved, find the document describe corresponding file and author letter
Breath.
It, can be first using the network node of method provided in an embodiment of the present invention in some possible embodiments
User gives tacit consent to the fileinfo of its setting for the open state that can be retrieved by after the fileinfo write-in account of setting.
Can be the fileinfo of the first user setting to protect privacy of user in other possible embodiments
Two kinds of preserving types of alternative disclosure or anonymity are provided.Specifically.For example, using method provided in an embodiment of the present invention
Network node can also obtain selection of first user to open or anonymous two options, if the first user select it is open,
Other users is then allowed to retrieve the fileinfo of first user setting, if the first user selects anonymity, no
Other users is allowed to retrieve the fileinfo of first user setting.
By above-mentioned several embodiments as it can be seen that the embodiment of the present invention is by by the unique check value of file and user setting
In the account of fileinfo write-in block chain network, the document retrieval of a variety of search conditions can be provided.For example, file can be utilized
Unique check value, creation time, author, document description etc. information, as search condition carry out document retrieval, for user examine
Rope file or fileinfo bring great convenience.
In some possible embodiments, method provided in an embodiment of the present invention can also include:In response to receiving
The importing request of tripartite's application, wherein, it is described import request be related to the fileinfo in first account is imported into it is described
In corresponding second account of third-party application.Described import is asked to carry out extensively between other network nodes of described piece of chain network
It broadcasts.In response to receiving other network nodes to the confirmation for importing request, by the fileinfo from first account
Middle deletion, and the confirmation message that the fileinfo is imported into corresponding second account is sent to the third-party application.It needs
It should be noted that these steps are not the steps necessaries of method provided in an embodiment of the present invention.However it should be appreciated that
It, can be by electronics using the network node of present invention method when method provided in an embodiment of the present invention includes these steps
The third-party applications such as reading access block chain network, and then, fileinfo is transferred in these third-party applications and is used.
In some possible embodiments of the invention, in order to ensure the safety of account in block chain network, each account has
There are corresponding a pair of of public key and private key.Private key can be stored in the terminal local of network node operation.Obtaining other network sections
When point needs fileinfo writing account to exporting request or importing the confirmation asked, it can ask or import to ask from exporting
It asks middle and obtains its public key carried.Wherein, the public key can be a variety of by md5, sha256 etc. by information such as the accounts of account
Encryption Algorithm encrypts to obtain.The all-network node that the broadcast is received in block chain network can be according to the public key, by file
Information is written in account.The owner of account can utilize the corresponding private key of the public key to prove that it really possesses for account
Person, the fileinfo in accessing to your account.
It should be noted that the embodiment of the present invention asks or imports what request confirmed to the export to other network nodes
Specific embodiment is unlimited.For example, general proof of work mechanism (Proof of Work) can be taken to realize.For another example
The node that the embodiment of the present invention is provided can be taken to prove that mechanism is realized.In the following, the node provided the embodiment of the present invention
Proof mechanism (Proof of Node) describes in detail.
In node proof mechanism, it is described import request or export request be broadcast to block chain network all-network node it
Afterwards, each active network node can receive broadcast and described import is asked or current tailer is put into export request
In block, and validity check calculating is carried out to tailer request in the block.For example, the request in the block to tailer has
The verification of effect property is calculated and can included:Whether it is to need the fileinfo being written into request by the user for proving to send request
Whether owner is effective to judge export request or importing request.Complete the validity check of all requests in current tail block
The current tail block for completing to calculate can be broadcast to full block link network by the network node for calculating and calculating next block at first
Network, full block chain network only can carry out synchronous current tail block according to the network node for calculating next block at first, so that it is guaranteed that
Effective export request or the uniqueness for importing request.For not completing the network node calculated, calculated at first receiving
During the current tail block that the network node of next block is broadcasted, you can to abandon calculating, according to received current tail
Portion's block synchronizes update to the current tail block of itself.In network node all requests in the block to current tail area
It carries out in validity check calculating process, effective export request or importing request can be retained in current tail block, nothing
The export request or importing request of effect can be abandoned.
As it can be seen that in the node proof mechanism realized in the embodiment of the present invention, the export request or importing request are in institute
It states and is broadcasted between other network nodes of block chain network, the network section that the broadcast is received in described piece of chain network can be made
Point asks the export or importing request is added in the afterbody block of itself block chain, and the export is asked or imported to ask
It asks and carries out validity check calculating.Wherein, the confirmation process of the export request or importing request can include:Using the present invention
The network node of embodiment method is in response to receiving the network section for being initially completed the verification of all requests in afterbody block and calculating
The broadcast out afterbody block of point, synchronizes the afterbody block of itself block chain according to received afterbody block update,
If the export request or described import are asked included in effective request of received afterbody block, determine to obtain
Other network nodes are to the export request or the confirmation for importing request.Even due to superpower calculation power attacker not yet
It must be the network node for being initially completed the calculating of current tail block, therefore, be proved by node provided in an embodiment of the present invention
Mechanism confirms request, can prevent the attack of the attacker of superpower calculation power, it is ensured that block chain network safety.
Example devices
After the method for exemplary embodiment of the invention is described, next, with reference to figure 4 to the exemplary reality of the present invention
The device for applying the save file information of the arbitrary network node for being configured at block chain network of mode is introduced.
It is a kind of structure diagram of the device of save file information provided in an embodiment of the present invention for example, with reference to Fig. 4.
As shown in figure 4, the device can include:
Fileinfo acquiring unit 410 may be configured to obtain fileinfo.Export request radio unit 420, can be with
It is configured to be related to and exports export request of the fileinfo to described piece of the first account of chain network in described piece of chain network
Other network nodes between broadcasted.Fileinfo storage unit 430 may be configured in response to receiving other networks
Confirmation of the node to the export request, the fileinfo is written in first account of described piece of chain network.
In some possible embodiments, the fileinfo that fileinfo acquiring unit 410 obtains can include:To first
File content in the file that user specifies performs unique check value that default checking algorithm is generated.
It is the embodiment of unique check value of file with reference to the fileinfo, it is provided in an embodiment of the present invention to preserve text
The device of part information can also include:File obtaining unit 440 is verified, may be configured to please in response to receiving file verification
It asks, according to the file verification acquisition request file to be tested.Check value generation unit 441 may be configured to treat to described
The file content verified in file performs the default checking algorithm, generates the corresponding unique check value of the file to be verified.
First matching unit 442 may be configured in unique check value of each account preservation of described piece of chain network, find out
With the matched unique check value of file to be verified.Verification unit 443 may be configured to utilize matched unique check value
The private key of existing account, timestamp, the matched unique check value of the corresponding file of matched unique check value are corresponding
The document description of file, any one in three or more persons mutually tackle the private key, described of the file owning user to be verified
The timestamp of file to be verified, document description are verified.Belong to determination unit 444, may be configured to according to check results
Determine the ownership person of the file to be verified.
It is the embodiment of unique check value of file with reference to the fileinfo, it is provided in an embodiment of the present invention to preserve text
The device of part information can also include:Retrieval file acquiring unit 450, may be configured to please in response to receiving document retrieval
It asks, file to be retrieved is obtained according to the file retrieval request.Second matching unit 451 may be configured in described piece of chain
In unique check value that each account of network preserves, find out and the matched unique check value of file to be retrieved.Feedback
Unit 452 may be configured to feed back the corresponding relevant information of matched unique check value.
In other possible embodiments, the fileinfo that fileinfo acquiring unit 410 obtains can include:First
The fileinfo of user setting.
It is the embodiment of the fileinfo of the first user setting with reference to the fileinfo, it is provided in an embodiment of the present invention
The device of save file information can also include:Configuration information query unit 460, is configured in response to receiving document retrieval
Request, in the fileinfo of the user setting of each account preservation of described piece of chain network, inquiry is with the presence or absence of described in satisfaction
The information for the search condition that retrieval request is related to, configuration information feedback unit 461, if being configured to the configuration information inquiry
Unit 460 is inquired in the presence of the information for meeting the search condition that the retrieval request is related to, and feedback meets the information of search condition.
It is the embodiment of the fileinfo of the first user setting with reference to the fileinfo, it is provided in an embodiment of the present invention
The device of save file information can also include:Type selection unit 470 is preserved, may be configured to obtain the first user to public affairs
It opens or the selection of anonymous two options, if the first user selects open, allows other users to first user setting
Fileinfo retrieved, if the first user selects anonymous, do not allow other users to first user setting
Fileinfo is retrieved.
In some possible embodiments, the device of save file information provided in an embodiment of the present invention can also include:
Tripartite applies access unit 480, may be configured to ask in response to the importing for receiving third-party application, wherein, it is described to lead
Enter and ask to be related to that the fileinfo in first account is imported into corresponding second account of the third-party application.It imports
Radio unit 481 is asked, may be configured to ask to carry out between other network nodes of described piece of chain network by described import
Broadcast.Fileinfo buanch unit 482 may be configured to import what is asked to described in response to receiving other network nodes
Confirm, the fileinfo from first account is deleted, and is sent to the third-party application by the fileinfo
It imported into the confirmation message of corresponding second account.
Wherein, the export request or importing request are broadcasted between other network nodes of described piece of chain network, can
Itself is added to so as to receive export request described in the network node of the broadcast in described piece of chain network or import request
In the afterbody block of block chain, and the export is asked or imported request and carry out validity check calculating.Wherein, the transfer is single
Member 430 may be configured in response to receiving the network node for being initially completed the verification of all requests in afterbody block and calculating
The afterbody block broadcast out synchronizes update, such as according to received afterbody block to the afterbody block of itself block chain
Export request described in fruit or described import are asked included in effective request of received afterbody block, determine to have obtained it
The confirmation that his network node asks the export request or the importing.
As it can be seen that using the embodiment of the present invention network node by fileinfo acquiring unit 410 obtain fileinfo it
Afterwards, can the export fileinfo leading to described piece of the first account of chain network will be related to by export request radio unit 420
Go out request to be broadcasted between other network nodes of described piece of chain network, pass through the broadcast so that receive the network section of broadcast
What historical record of the point in block chain carried out the fileinfo that export request is related to is written to whether the first account can confirm
Calculating, so as to application present invention method network node can it received by fileinfo storage unit 430
During the confirmation that his network node asks the export, determine for fileinfo to be written to the first account of block chain network, and area
Block chain can also preserve the record that this document information is written to the first account of block chain network, since the record of block chain can not
Inverse, as long as file is accessed block chain network, the whole world can be used in conjunction with this file system to ensure the uniqueness of file,
It may therefore be assured that unique legitimacy of the fileinfo in block chain network, can meet public's retrieval file or verification file
The needs such as legitimacy.Moreover, because block chain network is the peer-to-peer network based on P2P technology decentralizations, from third party's service
Mechanism controls, user can carry out self-management, the problem of there is no making fileinfo no longer available due to service organization terminates,
The interests of user will not be damaged, better experience is brought for user.
It should be noted that file obtaining unit 440, the check value generation unit are verified described in the embodiment of the present invention
441st, first matching unit 442, the verification unit 443, the ownership determination unit 444, the retrieval file obtain
Unit 450, second matching unit 451, the feedback unit 452, the configuration information query unit 460, the setting
Information feedback unit 461, the preservation type selection unit 470, the tripartite ask using access unit 480, described import
Radio unit 481, the fileinfo buanch unit 482 are in Fig. 4 with dotted lines, to represent these units or subelement not
It is the necessary unit of the device of save file information provided in an embodiment of the present invention.
It should be noted that although several units of the device of save file information or son list are referred in above-detailed
Member, but this division is only not enforceable.In fact, according to the embodiment of the present invention, above-described two or
More multiunit feature and function can embody in a unit.Conversely, the feature and work(of an above-described unit
It can be further divided into being embodied by multiple units.
In addition, although the operation of the method for the present invention is described with particular order in the accompanying drawings, this do not require that or
The operation that these operations must be performed or have to carry out shown in whole according to the particular order by implying could be realized desired
As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and performed and/or by one by some steps
Step is decomposed into execution of multiple steps.
Although describe spirit and principles of the present invention by reference to several specific embodiments, it should be appreciated that, this
Invention is not limited to disclosed specific embodiment, does not also mean that the feature in these aspects cannot to the division of each side
Combination is to be benefited, and this division is merely to the convenience of statement.It is contemplated that cover appended claims spirit and
In the range of included various modifications and equivalent arrangements.
Claims (9)
1. a kind of method of save file information, applied to the arbitrary network node of block chain network, including:
Obtain fileinfo;The fileinfo includes:The fileinfo of first user setting;
By the export for being related to the export fileinfo to described piece of the first account of chain network ask described piece of chain network its
He is broadcasted between network node;
In response to receiving confirmation of other network nodes to the export request, the fileinfo is written to described piece of chain
In first account of network.
2. according to the method described in claim 1, wherein, the fileinfo includes:In the file specified to the first user
File content performs unique check value that default checking algorithm is generated.
3. it according to the method described in claim 2, further includes:
In response to receiving file verification request, according to the file verification acquisition request file to be tested;
In the unique check value preserved in each account of described piece of chain network, find out matched only with the file to be verified
One check value;
Utilize the time of the private key of the account present in matched unique check value, the corresponding file of matched unique check value
The document description of stamp, the corresponding file of matched unique check value, any one in three or more persons, mutually treat school described in reply
The private key of file owning user, the timestamp of the file to be verified, document is tested to describe to be verified;
The ownership person of the file to be verified is determined according to check results.
4. it according to the method described in claim 2, further includes:
In response to receiving file retrieval request, file to be retrieved is obtained according to the file retrieval request;
In the unique check value preserved in each account of described piece of chain network, find out matched only with the file to be retrieved
One check value;
Feed back the corresponding relevant information of matched unique check value.
5. it according to the method described in claim 1, further includes:
In response to receiving file retrieval request, in the fileinfo for the user setting that each account of described piece of chain network preserves
In, inquiry is with the presence or absence of the information for meeting the search condition that the retrieval request is related to, if it does, feedback meets search condition
Information.
6. it according to the method described in claim 1, further includes:
Obtain selection of first user to open or anonymous two options;
If the first user selects disclosure, other users is allowed to retrieve the fileinfo of first user setting;
If the first user selects anonymity, other users is not allowed to examine the fileinfo of first user setting
Rope.
7. it according to the method described in claim 1, further includes:
It is asked in response to the importing for receiving third-party application, wherein, the importing request is related to will be in first account
Fileinfo is imported into corresponding second account of the third-party application;
Described import is asked to broadcast between other network nodes of described piece of chain network;
In response to receiving other network nodes to the confirmation for importing request, by the fileinfo from first account
Middle deletion, and the confirmation message that the fileinfo is imported into corresponding second account is sent to the third-party application.
8. the method according to claim 1 or 7, wherein, the export request or request is imported in described piece of chain network
It is broadcasted between other network nodes, makes to receive in described piece of chain network to export described in the network node of the broadcast and ask
Or import request and be added in the afterbody block of itself block chain, and the export is asked or imported request and carry out validity check
It calculates;
Wherein, the confirmation process of the export request or importing request includes:
The afterbody that the network node of the verification calculating of all requests in afterbody block is broadcast out is initially completed in response to receiving
Block synchronizes update according to received afterbody block to the afterbody block of itself block chain, if the export request
Or described import is asked included in effective request of received afterbody block, determines to have obtained other network nodes to institute
State export request or the confirmation for importing request.
9. a kind of device of save file information is configured at the arbitrary network node of block chain network, including:
Fileinfo acquiring unit is configured to obtain fileinfo;The fileinfo includes:The file of first user setting
Information;
Radio unit is configured to exist the export request for being related to the export fileinfo to described piece of the first account of chain network
It is broadcasted between other network nodes of described piece of chain network;
Fileinfo storage unit is configured to the confirmation in response to receiving other network nodes to the export request, will
The fileinfo is written in first account of described piece of chain network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510169759.7A CN104735164B (en) | 2015-04-10 | 2015-04-10 | A kind of method and apparatus of save file information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510169759.7A CN104735164B (en) | 2015-04-10 | 2015-04-10 | A kind of method and apparatus of save file information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104735164A CN104735164A (en) | 2015-06-24 |
CN104735164B true CN104735164B (en) | 2018-05-18 |
Family
ID=53458590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510169759.7A Active CN104735164B (en) | 2015-04-10 | 2015-04-10 | A kind of method and apparatus of save file information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104735164B (en) |
Families Citing this family (39)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209947B (en) * | 2015-05-07 | 2020-08-04 | 中兴通讯股份有限公司 | Data processing method and system for decentralized autonomous organization |
JP6355168B2 (en) * | 2015-11-09 | 2018-07-11 | 日本電信電話株式会社 | Block chain generation device, block chain generation method, block chain verification device, block chain verification method and program |
CN105487816B (en) * | 2015-11-26 | 2019-01-11 | 布比(北京)网络技术有限公司 | A kind of method and device of data transfer |
JP6608256B2 (en) * | 2015-11-26 | 2019-11-20 | 株式会社bitFlyer Blockchain | Electronic data existence certification program and existence certification server |
KR101678795B1 (en) * | 2015-11-30 | 2016-11-22 | 전삼구 | Iot-basesd things management system and method using block chain authentification |
CN106911641A (en) * | 2015-12-23 | 2017-06-30 | 索尼公司 | For authorizing the client terminal device for accessing, server unit and access control system |
CN105678546B (en) * | 2016-01-04 | 2020-06-09 | 布比(北京)网络技术有限公司 | Digital asset processing method based on distributed shared general ledger |
CN105608588A (en) * | 2016-01-04 | 2016-05-25 | 布比(北京)网络技术有限公司 | Tracing record processing method and apparatus |
CN105678545B (en) * | 2016-01-04 | 2020-10-16 | 布比(北京)网络技术有限公司 | Digital asset transaction system based on distributed shared general ledger and construction method thereof |
EP3193299A1 (en) * | 2016-01-15 | 2017-07-19 | Accenture Global Services Limited | Device, method and system for autonomous selection of a commodity supplier through a blockchain distributed database |
CN105430767B (en) * | 2016-01-17 | 2019-04-16 | 罗轶 | Intelligence row packet |
CN105719172A (en) * | 2016-01-19 | 2016-06-29 | 布比(北京)网络技术有限公司 | Information issuing method and device |
CN105827410A (en) * | 2016-03-11 | 2016-08-03 | 邓迪 | Block chain transmission method and system with trusted node/satellite node construction |
US10990704B2 (en) * | 2016-03-23 | 2021-04-27 | Nokia Technologies Oy | Management of cryptographic transactions |
CN105912283A (en) * | 2016-04-29 | 2016-08-31 | 邓迪 | Block chain based printer and realization method |
CN106130728B (en) * | 2016-04-29 | 2019-07-26 | 北京太一云科技有限公司 | A kind of digital asset register method and its server based on block chain |
JP6514831B1 (en) * | 2016-05-13 | 2019-05-15 | エヌチェーン ホールディングス リミテッドNchain Holdings Limited | Method and system for verifying ownership of digital assets using distributed hash tables and peer-to-peer distributed ledgers |
CN107438003B (en) * | 2016-05-27 | 2022-08-09 | 索尼公司 | Electronic device, method for electronic device, and information processing system |
CN106100847B (en) * | 2016-06-14 | 2021-10-26 | 惠众商务顾问(北京)有限公司 | Method and device for verifying identity information of asymmetric encryption block chain |
CN105976231A (en) * | 2016-06-24 | 2016-09-28 | 深圳前海微众银行股份有限公司 | Asset management method based on intelligent block chain contracts and nodes |
DE102016215915A1 (en) * | 2016-08-24 | 2018-03-01 | Siemens Aktiengesellschaft | Secure configuration of a device |
BR112019002548A2 (en) * | 2016-09-09 | 2019-05-21 | Microsoft Technology Licensing, Llc | track objects through different parts |
CN106656784B (en) * | 2016-10-14 | 2020-01-21 | 中国银联股份有限公司 | Data stream propagation system and method for block chain network |
CN106506493A (en) * | 2016-10-27 | 2017-03-15 | 摩登大道时尚电子商务有限公司 | Data processing method based on block platform chain |
CN106776820A (en) * | 2016-11-25 | 2017-05-31 | 中国银行股份有限公司 | Obtain method and system, block chain, the centralized system of different blocks chain data |
CN106650494B (en) * | 2016-12-16 | 2019-07-16 | 杭州嘉楠耘智信息科技有限公司 | Data processing method and device |
CN106713495B (en) * | 2017-01-20 | 2018-04-06 | 北京海泰方圆科技股份有限公司 | The method for uploading and access method in IP geographical position, device and access system |
CN110709872A (en) * | 2017-05-22 | 2020-01-17 | 区块链控股有限公司 | Constraint injection to unlock transaction bytecodes |
CN107145605A (en) * | 2017-06-07 | 2017-09-08 | 北京天德科技有限公司 | One kind is based on block chain unified interface(OBCC)License chain application system |
CN107294963B (en) * | 2017-06-14 | 2019-09-06 | 广东工业大学 | A kind of safe encryption method and device of the data based on alliance's block chain |
CN107333088B (en) * | 2017-08-18 | 2023-10-27 | 北京麦哲科技有限公司 | Audio and video communication device |
CN107992621A (en) * | 2017-12-22 | 2018-05-04 | 杭州云象网络技术有限公司 | A kind of intelligent cinematic industry service system based on block chain multichain technological incorporation |
CN108573741A (en) * | 2017-12-25 | 2018-09-25 | 北京金山云网络技术有限公司 | Business datum recording method, device, equipment and storage medium |
CN108256353B (en) * | 2018-01-11 | 2021-01-01 | 武汉斗鱼网络科技有限公司 | Data integrity checking method and device and client |
JP2021105750A (en) * | 2018-04-02 | 2021-07-26 | ソニーグループ株式会社 | Information processing device, information processing method, and program |
CN108550037B (en) * | 2018-04-11 | 2022-05-17 | 北京知金链网络技术有限公司 | File processing method and device based on block chain |
CN109218082B (en) * | 2018-08-24 | 2021-08-24 | 维沃移动通信有限公司 | Network configuration parameter processing method, device and equipment |
CN112910663B (en) * | 2021-01-14 | 2022-06-14 | 网易(杭州)网络有限公司 | Method, device, equipment and storage medium for message broadcasting and terminal registration |
CN113760453A (en) * | 2021-08-04 | 2021-12-07 | 南方电网科学研究院有限责任公司 | Container mirror image distribution system and container mirror image pushing, pulling and deleting method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927659A (en) * | 2014-04-18 | 2014-07-16 | 刘志望 | Immediate transfer and secure payment method of virtual currency |
WO2014110519A1 (en) * | 2013-01-11 | 2014-07-17 | Brian Mark Shuster | Medium of exchange based on right to use or access information |
CN104580253A (en) * | 2015-01-30 | 2015-04-29 | 网易(杭州)网络有限公司 | Method and device for processing user data |
CN104320262B (en) * | 2014-11-05 | 2017-07-21 | 中国科学院合肥物质科学研究院 | The method and system of client public key address binding, retrieval and the verification of account book technology are disclosed based on encryption digital cash |
-
2015
- 2015-04-10 CN CN201510169759.7A patent/CN104735164B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014110519A1 (en) * | 2013-01-11 | 2014-07-17 | Brian Mark Shuster | Medium of exchange based on right to use or access information |
CN103927659A (en) * | 2014-04-18 | 2014-07-16 | 刘志望 | Immediate transfer and secure payment method of virtual currency |
CN104320262B (en) * | 2014-11-05 | 2017-07-21 | 中国科学院合肥物质科学研究院 | The method and system of client public key address binding, retrieval and the verification of account book technology are disclosed based on encryption digital cash |
CN104580253A (en) * | 2015-01-30 | 2015-04-29 | 网易(杭州)网络有限公司 | Method and device for processing user data |
Also Published As
Publication number | Publication date |
---|---|
CN104735164A (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104735164B (en) | A kind of method and apparatus of save file information | |
LU93377B1 (en) | P2p network data distribution and retrieval using blockchain log | |
CN113572618B (en) | Fabric and IPFS combined decentralized storage system and data storage method thereof | |
CN108811519B (en) | System and method for establishing a link between identifiers without disclosing specific identification information | |
US9767299B2 (en) | Secure cloud data sharing | |
EP3510743B1 (en) | Interchangeable retrieval of sensitive content via private content distribution networks | |
US9535658B2 (en) | Secure private database querying system with content hiding bloom filters | |
US10341103B2 (en) | Data analytics on encrypted data elements | |
CN105593871A (en) | Attribute information providing method, and attribute information providing system | |
US10025811B2 (en) | Method and apparatus for deduplicating encrypted data | |
CN112836225A (en) | Electronic medical record sharing method based on block chain | |
CN112804133B (en) | Encryption group chat method and system based on blockchain technology | |
CN115225409B (en) | Cloud data safety duplicate removal method based on multi-backup joint verification | |
CN113901505B (en) | Data sharing method and device, electronic equipment and storage medium | |
Costantino et al. | Investigating the privacy versus forwarding accuracy tradeoff in opportunisticinterest-casting | |
CN114205093B (en) | Block chain message transmission method, device, client and storage medium | |
CN116032667A (en) | Online trace query method, system and related equipment supporting efficient update | |
CN109101841B (en) | Data processing method, device and system, computer equipment and storage medium | |
JPWO2018116826A1 (en) | Message transmission system, communication terminal, server device, message transmission method, and program | |
US10785025B1 (en) | Synchronization of key management services with cloud services | |
CN107196918A (en) | A kind of method and apparatus of matched data | |
CN110784318B (en) | Group key updating method, device, electronic equipment, storage medium and communication system | |
CN109450636A (en) | The integrity verification method of group data in a kind of cloud storage | |
Wang et al. | Location-based distributed group key agreement scheme for vehicular ad hoc network | |
CN106254226B (en) | A kind of information synchronization method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |