CN108550037B - File processing method and device based on block chain - Google Patents

File processing method and device based on block chain Download PDF

Info

Publication number
CN108550037B
CN108550037B CN201810320389.6A CN201810320389A CN108550037B CN 108550037 B CN108550037 B CN 108550037B CN 201810320389 A CN201810320389 A CN 201810320389A CN 108550037 B CN108550037 B CN 108550037B
Authority
CN
China
Prior art keywords
file
certificate
storing
attribute information
storage
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
Application number
CN201810320389.6A
Other languages
Chinese (zh)
Other versions
CN108550037A (en
Inventor
叶季青
杨立峰
叶昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhijinlian Network Technology Co ltd
Original Assignee
Beijing Zhijinlian Network Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Zhijinlian Network Technology Co ltd filed Critical Beijing Zhijinlian Network Technology Co ltd
Priority to CN201810320389.6A priority Critical patent/CN108550037B/en
Publication of CN108550037A publication Critical patent/CN108550037A/en
Application granted granted Critical
Publication of CN108550037B publication Critical patent/CN108550037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The embodiment of the application discloses a file processing method and device based on a block chain. One embodiment of the method comprises: receiving a certificate storage file of a target user and attribute information of the certificate storage file; numbering the certificate storing file and the attribute information to obtain a first certificate storing number of the certificate storing file; performing password calculation on the certificate storing file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate storing file and the attribute information; sending the first certificate storing number and the first file identification to a block chain system; acquiring the height and the inner item indication of the account book block determined by storing the first evidence storage number and the first file identification by the block chain system; generating operational status information including ledger block height and inlining indications, and sending the operational status information to a status system. The embodiment improves the flexibility of file processing and the security of file access.

Description

File processing method and device based on block chain
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a block chain-based file processing method and device.
Background
The blockchain is a novel application technology set of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. From the data perspective, the block chain combines the data blocks in a sequential connection mode into a chain data structure according to the time sequence, and the data structure is guaranteed to be not falsifiable and counterfeitable in a cryptographic mode. From the technical point of view, the blockchain technology integrates various different technologies, and by constructing a blockchain network, each node in the network is allowed to obtain a complete database copy, and updates of the blockchain-based database are maintained based on a consensus mechanism and competition calculation, so that the decentralized and distrust of data storage and management are realized through an end-to-end network formed by communication of a plurality of nodes.
The blockchain technique was first applied to the circulation and billing of internet money. With the continuous highlighting of the advantages, the block chain technology is applied to more and more fields for data recording, evidence storage and the like.
Disclosure of Invention
The embodiment of the application provides a file processing method and device based on a block chain.
In a first aspect, an embodiment of the present application provides a file processing method based on a block chain, where the method includes: receiving a certificate storage file of a target user and attribute information of the certificate storage file; numbering the certificate storing file and the attribute information to obtain a first certificate storing number of the certificate storing file; performing password calculation on the certificate storing file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate storing file and the attribute information; sending the first certificate storing number and the first file identification to a block chain system; acquiring the height and the inner item indication of the account book block determined by storing the first evidence storage number and the first file identification by the block chain system; generating operation state information comprising the height of the account book block and the internal item indication, and sending the operation state information to a state system, wherein the operation state information is used for identifying the operation performed on the deposit and certificate file.
In some embodiments, after sending the operational state information to the state system, the method further comprises: and generating push information comprising the first certificate storing number, and pushing the push information to a target user.
In some embodiments, the operational status information further comprises at least one of: the first certificate storing number, the first file identification, the operation time and the operation times.
In some embodiments, the method further comprises: and associating the storage certificate file, the first storage certificate number and the first file identifier.
In some embodiments, after sending the operational status information to the status system, the method further comprises: in response to receiving a query request including a first certificate storage number of a target user, searching for a certificate storage file corresponding to the first certificate storage number and attribute information of the certificate storage file based on the first certificate storage number; based on a cryptographic algorithm, carrying out cryptographic calculation on the certificate-storing file and the attribute information to obtain a second file identifier for representing the certificate-storing file and the attribute information; sending the first deposit number to a state system, receiving the height and the inner item indication of the account book block, which are sent by the state system and correspond to the first deposit number, and sending the received height and the inner item indication of the account book block to a block chain system; acquiring a third file identifier and a second evidence storage number which are stored in a block chain system and correspond to the extracted height and the inner item indication of the account book block; and in response to determining that the third file identifier, the second file identifier and the first file identifier are the same and that the second certificate storage number is the same as the first certificate storage number, pushing the relevant information of the certificate storage file to the target user.
In a second aspect, an embodiment of the present application provides a block chain-based file processing apparatus, where the apparatus includes: the receiving unit is configured to receive the certificate storing file of the target user and the attribute information of the certificate storing file; the numbering unit is configured to number the certificate storing file and the attribute information to obtain a first certificate storing number of the certificate storing file; the password calculation unit is configured for carrying out password calculation on the certificate storing file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate storing file and the attribute information; the sending unit is configured to send the first certificate storing number and the first file identifier to the block chain system; the acquisition unit is configured to acquire the height and the inner item indication of the account book block determined by the block chain system for storing the first evidence storage number and the first file identifier; the first generation unit is configured to generate operation state information including the height of the ledger block and the internal item indication, and send the operation state information to the state system, wherein the operation state information is used for identifying operation on the evidence storage file.
In some embodiments, the apparatus further comprises: and the second generation unit is configured to generate push information comprising the first deposit number and push the push information to the target user.
In some embodiments, the operational status information further comprises at least one of: the first certificate storing number, the first file identification, the operation time and the operation times.
In some embodiments, the apparatus further comprises: and the storage unit is configured for associating the storage certificate file, the first storage certificate number and the first file identifier.
In some embodiments, the apparatus further comprises: the inquiry unit is configured to respond to a received inquiry request which comprises a first certificate storing number and is sent by a target user, and search certificate storing files corresponding to the first certificate storing number and attribute information of the certificate storing files based on the first certificate storing number; based on a cryptographic algorithm, carrying out cryptographic calculation on the certificate-storing file and the attribute information to obtain a second file identifier for representing the certificate-storing file and the attribute information; sending the first deposit number to a state system, receiving the height and the inner item indication of the account book block, which are sent by the state system and correspond to the first deposit number, and sending the received height and the inner item indication of the account book block to a block chain system; acquiring a third file identifier and a second evidence storage number which are stored in a block chain system and correspond to the extracted height and the inner item indication of the account book block; and in response to determining that the third file identifier, the second file identifier and the first file identifier are the same and that the second certificate storage number is the same as the first certificate storage number, pushing the relevant information of the certificate storage file to the target user.
According to the file processing method and device based on the block chain, password calculation is carried out on the certificate storage files of the user and the attribute information of the certificate storage files, the certificate storage numbers and the file identifications of the certificate storage files are stored in the block chain system, state information used for identifying the operation of the certificate storage files is generated, and the operation state information is stored through the state system, so that the flexibility of file processing and the safety of file access are improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which the present application may be applied;
FIG. 2 is a flow diagram for one embodiment of a blockchain based file processing method according to the present application;
FIG. 3 is a flow diagram of yet another embodiment of a blockchain based file processing method according to the present application;
FIG. 4 is a block chain based document processing device in accordance with one embodiment of the present application;
FIG. 5 is a block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which a block chain based file processing method or a block chain based file processing apparatus according to an embodiment of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various applications, such as a data processing type application, a web browser application, a shopping type application, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop and desktop computers, and the like.
The server 105 may be a server that provides various services, such as a background file processing server that supports the certificate-storing files uploaded by the terminal devices 101, 102, 103. The background file processing server can process the received data such as the certificate storage file and feed back the processing result (such as the certificate storage number of the certificate storage file) to the terminal equipment. The server 105 may further include a blockchain system, and the blockchain system may be disposed in the server 105 or in another electronic device communicatively connected to the server 105.
It should be noted that the block chain based file processing method provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the block chain based file processing apparatus is generally disposed in the server 105.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a blockchain based file processing method according to the present application is shown. The file processing method based on the block chain comprises the following steps:
step 201, receiving the certificate storing file of the target user and the attribute information of the certificate storing file.
In this embodiment, an electronic device (e.g., a server shown in fig. 1) of the file processing method based on the blockchain may receive the certificate authority file of the target user and the attribute information of the certificate authority file through a wired connection manner or a wireless connection manner. The target user may be a user in a preset user list or a preset user set. Such as a user interacting with the blockchain system. The certification file may be a file pre-uploaded by the target user in various formats, such as a text file, a video file, an image file, and the like. The attribute information of the deposit certificate file may include, but is not limited to, at least one of the following: the file management method comprises the following steps of version information of a file, a file name, a type format of the file, a length of the file, a file storage channel source, a name of an operator of the file, submission and storage time of the file, a storage period of the file, an encryption identifier of the file, a message key of the file, a transformation password of the file and the like.
Step 202, numbering the certificate storing file and the attribute information to obtain a first certificate storing number of the certificate storing file.
In this embodiment, based on the certificate-storing file and the attribute information received in step 201, the electronic device may number the certificate-storing file and the attribute information to obtain a first certificate-storing number of the certificate-storing file. The first certificate storage number may be a number used to identify various types of certificate storage files, such as a number type and a text type.
And 203, performing password calculation on the certificate storing file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate storing file and the attribute information.
In this embodiment, based on the certificate-storing file and the attribute information received in step 201, the electronic device may perform password calculation on the certificate-storing file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate-storing file and the attribute information. The basic process of the cryptographic calculation is to process a file or data, which is originally in plaintext, according to some algorithm to make the file or data become an unreadable segment of code, which is generally called "ciphertext", so that the original content can be displayed only after a corresponding key is input. The above-mentioned cryptographic Algorithm may be various types of algorithms, such as a symmetric encryption Algorithm, an asymmetric encryption Algorithm, a Hash Algorithm, a Secure Hash Algorithm (SHA), and the like. By using the above cryptographic algorithm, the first file identifier of the certified file can be obtained. Wherein a first file identifier (e.g., a hash value calculated using a hashing algorithm) may be used to uniquely identify the credential file.
Step 204, the first certificate storing number and the first file identification are sent to the block chain system.
In this embodiment, the electronic device may further send the first license number and the first file identifier to the blockchain system. The block chain can be a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and is a distributed account book which is cryptographically guaranteed to be not falsifiable and counterfeitable. Blockchains can also be a completely new distributed infrastructure and computing approach that utilizes blockchain data structures to verify and store data, distributed node consensus algorithms to generate and update data, cryptographic approaches to secure data transmission and access, and intelligent contracts composed of automated script code to program and manipulate data. The blockchain system described above may be an electronic device that carries the software and hardware used for blockchain technology. Through the interaction with the block chain system, the security of the certificate storage file operation can be improved.
Step 205, obtaining the height and the inner item indication of the account book block determined by the block chain system storing the first evidence storage number and the first file identifier.
In this embodiment, the electronic device may further obtain the height and the inner indication of the ledger block determined by the blockchain system storing the first deposit number and the first file identifier. After receiving the first deposit number and the first file identifier, the blockchain system may store the first deposit number and the first file identifier in the blockchain system in the form of an item in a certain block of the blockchain account book through blockchain calculation. The inlier indication may be an identification of an item stored within a block (the block being determined by the block height) within the blockchain system, by which the storage location of the item (e.g., transaction, access, etc.) in the blockchain system may be located. It should be noted that the above-mentioned blockchain technology and technical terms related to the blockchain technology (such as book block height, etc.) are well-known technologies and well-known terms widely studied and applied by those skilled in the art, and are not described herein again.
Step 206, generating operation state information including the height of the ledger block and the indication of the entries, and sending the operation state information to the state system.
In this embodiment, based on the ledger block height and the indication of the intrinsic item acquired in step 205, the electronic device may further generate operation state information including the ledger block height and the indication of the intrinsic item. The operating state information is then sent to the state system. Wherein the operation state information is used for identifying operations (such as storage, extraction, calculation, query, etc.) performed on the certificate-storing file.
In this embodiment, the status system may be configured to record the deposit number, the file identifier, the height of the book block, the internal indication, and other information of the deposit file. The user can access the state system by using the deposit certificate number, and can obtain various state information corresponding to the deposit certificate number. Therefore, the user can quickly and accurately determine the position of the first file identifier in the block chain and the corresponding operation state information.
The state system may be a memory area previously designated in the electronic device itself, or may be a memory area in another device communicatively connected to the electronic device. In addition, the state system may be a system composed of a combination of software and hardware (e.g., a database with data management, storage).
In some optional implementations of this embodiment, the operation state information may further include, but is not limited to, at least one of the following: the first certificate storing number, the first file identification, the operation time, the operation times and the like.
In some optional implementations of this embodiment, the electronic device may further generate push information including the first license number, and push the push information to a terminal device (e.g., the terminal device shown in fig. 1) used by the target user. The push information may further include information such as time of operating the certificate storing file, the number of times of operating the certificate storing file, and the like.
In some optional implementation manners of this embodiment, the electronic device may further perform associated storage on the received license storage file, the first license storage number, and the first file identifier.
According to the method provided by the embodiment of the application, the certificate storing file of the user and the attribute information of the certificate storing file are encrypted, the certificate storing number and the file identification of the certificate storing file are stored in the block chain system, the state information used for identifying the operation of the certificate storing file is generated, and the operation state information is stored through the state system, so that the flexibility of file processing and the safety of file access are improved.
With further reference to FIG. 3, a flow 300 of yet another embodiment of a blockchain-based file processing method is illustrated. The flow 300 of the block chain-based file processing method includes the following steps:
step 301, receiving the certificate storing file of the target user and the attribute information of the certificate storing file.
In this embodiment, step 301 is substantially the same as step 201 in the embodiment corresponding to fig. 2, and is not described here again.
Step 302, numbering the certificate storing file and the attribute information to obtain a first certificate storing number of the certificate storing file.
In this embodiment, step 302 is substantially the same as step 202 in the corresponding embodiment of fig. 2, and is not described herein again.
And 303, performing password calculation on the certificate storing file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate storing file and the attribute information.
In this embodiment, step 303 is substantially the same as step 203 in the corresponding embodiment of fig. 2, and is not described herein again.
Step 304, the first certificate of deposit number and the first file identifier are sent to the block chain system.
In this embodiment, step 304 is substantially the same as step 204 in the corresponding embodiment of fig. 2, and is not described herein again.
Step 305, obtaining the height and the inner item indication of the account book block determined by the block chain system storing the first evidence storage number and the first file identifier.
In this embodiment, step 305 is substantially the same as step 205 in the corresponding embodiment of fig. 2, and is not described herein again.
Step 306, generating operation state information including the height of the ledger block and the indication of the entries, and sending the operation state information to the state system.
In this embodiment, step 306 is substantially the same as step 206 in the corresponding embodiment of fig. 2, and is not described herein again.
Step 307, in response to receiving a query request including a first certificate storage number of a target user, searching for a certificate storage file corresponding to the first certificate storage number and attribute information of the certificate storage file based on the first certificate storage number; based on a cryptographic algorithm, carrying out cryptographic calculation on the certificate-storing file and the attribute information to obtain a second file identifier for representing the certificate-storing file and the attribute information; sending the first deposit number to a state system, receiving the height and the inner item indication of the account book block, which are sent by the state system and correspond to the first deposit number, and sending the received height and the inner item indication of the account book block to a block chain system; acquiring a third file identifier and a second evidence storage number which are stored in a block chain system and correspond to the extracted height and the inner item indication of the account book block; and in response to determining that the third file identifier, the second file identifier and the first file identifier are the same and that the second certificate storage number is the same as the first certificate storage number, pushing the relevant information of the certificate storage file to the target user.
In this embodiment, the electronic device may perform, in response to receiving a query request including a first certificate storing number from a target user, the following steps:
step 3071, the electronic device searches for the certificate-storing file corresponding to the first certificate-storing number and the attribute information of the certificate-storing file based on the first certificate-storing number.
3072, the electronic device performs cryptographic calculation on the certificate storing file and the attribute information based on a cryptographic algorithm to obtain a second file identifier for representing the certificate storing file and the attribute information. It should be understood that the cryptographic calculation in this step may be the same as the cryptographic calculation in step 303, and will not be described herein.
3073, the electronic device sends the first deposit number to the state system, receives the height and the indication of the entries of the ledger block corresponding to the first deposit number sent by the state system, and sends the received height and the indication of the entries of the ledger block to the block chain system.
In step 3074, the electronic device obtains a third file identifier and a second deposit number stored in the block chain system and corresponding to the received height and the content indication of the account book. In this embodiment, the blockchain system stores a third file identifier and a second deposit number corresponding to the received ledger block height and the indication of the next item (e.g., transaction identifier). The electronic device may obtain the third file identifier and the second license storage number from the block chain system.
3075, in response to determining that the third file identifier, the second file identifier, and the first file identifier are the same, and that the second certificate storage number is the same as the first certificate storage number, the electronic device pushes the related information of the certificate storage file to the target user. The relevant information of the certificate-storing document can include, but is not limited to, at least one of the following: the certificate storing file, the operation state information corresponding to the certificate storing file and the like. In this step, by comparing the third file identifier, the second file identifier and the first file identifier, an error generated when the user inquires the certificate-deposited file can be avoided, and the security of the certificate-deposited file can be improved.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the process 300 of the file processing method based on the blockchain in this embodiment highlights a step of processing the received query request of the target user, which can further improve the accuracy of querying the file by the user and further improve the security of file access.
With further reference to fig. 4, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of a block chain-based file processing apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied in various electronic devices.
As shown in fig. 4, the block chain-based file processing apparatus 400 of the present embodiment includes: a receiving unit 401 configured to receive a certificate storing file of a target user and attribute information of the certificate storing file; a numbering unit 402, configured to number the certificate storing file and the attribute information to obtain a first certificate storing number of the certificate storing file; the encryption unit 403 is configured to perform cryptographic calculation on the certificate storing file and the attribute information based on a preset cryptographic algorithm to obtain a first file identifier for representing the certificate storing file and the attribute information; a sending unit 404, configured to send the first certificate storing number and the first file identifier to the block chain system; an obtaining unit 405 configured to obtain an account book block height and an entry indication determined by the block chain system storing the first deposit evidence number and the first file identifier; the first generating unit 406 is configured to generate operation state information including the height of the ledger block and the indication of the internal item, and send the operation state information to the state system, where the operation state information is used to identify an operation performed on the deposit document.
In this embodiment, the receiving unit 401 may receive the certificate storage file of the target user and the attribute information of the certificate storage file through a wired connection manner or a wireless connection manner. The target user may be a user in a preset user list or a preset user set. The certification file may be a file pre-uploaded by the target user in various formats, such as a text file, a video file, an image file, and the like. The attribute information of the certificate-storing file may include, but is not limited to, at least one of the following: the file management method comprises the following steps of version information of the file, a file name, a file type format, a file length, a file storage channel source, a name of an operator of the file, submission and storage time of the file, a storage period of the file, an encryption identifier of the file, a message key of the file, a transformation password of the file and the like.
In this embodiment, based on the certificate-storing file and the attribute information received by the receiving unit 401, the numbering unit 402 may number the certificate-storing file and the attribute information to obtain a first certificate-storing number of the certificate-storing file. The first certificate storage number may be a number used to identify various types of certificate storage files, such as a number type and a text type.
In this embodiment, based on the certificate-storing file and the attribute information received by the receiving unit 401, the encrypting unit 403 may perform cryptographic calculation on the certificate-storing file and the attribute information based on a preset cryptographic algorithm to obtain a first file identifier for representing the certificate-storing file and the attribute information.
In this embodiment, the sending unit 404 may further send the first file identifier and the first license number to the blockchain system. The blockchain system may be an electronic device that carries software and hardware used in blockchain techniques.
In this embodiment, the obtaining unit 405 may further obtain the ledger block height and the indication of the entries, which are determined by the blockchain system storing the first deposit number and the first file identifier. After receiving the first deposit number and the first file identifier, the blockchain system may store the first deposit number and the first file identifier in the blockchain system in the form of an item in a certain block of the blockchain account book through blockchain calculation. The inlier indication may be an identification of an item stored within the blockchain system for a block (the block being determined by the height of the block), and by means of the inlier indication, the storage location of the item (e.g., transaction, access, etc.) in the blockchain system may be located.
In this embodiment, based on the ledger block height and the indication of the next item acquired by the acquisition unit 405, the first generation unit 406 may further generate the operation state information including the ledger block height and the indication of the next item. The operating state information is then sent to the state system. Wherein the operation state information is used for identifying operations (such as storage, extraction, calculation, query, etc.) performed on the certificate-storing file. In this embodiment, the status system may be configured to record the deposit number, the file identifier, the height of the book block, the internal indication, and other information of the deposit file. The user can access the state system by using the deposit certificate number, and can obtain various state information corresponding to the deposit certificate number. Therefore, the user can quickly and accurately determine the position of the first file identifier in the block chain and the corresponding operation state information.
In some optional implementations of this embodiment, the apparatus may further include: and a second generating unit (not shown in the figure) configured to generate push information including the first credentialing number and push the push information to the target user.
In some optional implementations of this embodiment, the operation state information may further include at least one of: the first certificate storing number, the first file identification, the operation time and the operation times.
In some optional implementations of this embodiment, the apparatus may further include: and a storage unit (not shown in the figure) configured to associate the storage certificate file, the first storage certificate number and the first file identifier.
In some optional implementations of this embodiment, the apparatus may further include: the inquiry unit (not shown in the figure) is configured to respond to a received inquiry request which comprises a first certificate storing number and is sent by a target user, and search certificate storing files corresponding to the first certificate storing number and attribute information of the certificate storing files based on the first certificate storing number; based on a cryptographic algorithm, carrying out cryptographic calculation on the certificate-storing file and the attribute information to obtain a second file identifier for representing the certificate-storing file and the attribute information; sending the first deposit number to a state system, receiving the height and the inner item indication of the account book block, which are sent by the state system and correspond to the first deposit number, and sending the received height and the inner item indication of the account book block to a block chain system; acquiring a third file identifier and a second evidence storage number which are stored in a block chain system and correspond to the extracted height and the inner item indication of the account book block; and in response to determining that the third file identifier, the second file identifier and the first file identifier are the same and that the second certificate storage number is the same as the first certificate storage number, pushing the relevant information of the certificate storage file to the target user.
The device provided by the above embodiment of the present application encrypts the certificate storing file of the user and the attribute information of the certificate storing file, stores the certificate storing number and the file identification of the certificate storing file into the block chain system, and generates the state information for identifying the operation on the certificate storing file, and stores the operation state information through the state system, thereby improving the flexibility of file processing and the security of file access.
Referring now to FIG. 5, a block diagram of a computer system 500 suitable for use in implementing a server according to embodiments of the present application is shown. The server shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 501. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable medium or any combination of the two. A computer readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a numbering unit, an encrypting unit, a transmitting unit, an acquiring unit, and a first generating unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, the receiving unit may also be described as a "unit that receives the certification file of the target user and the attribute information of the certification file".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the server described in the above embodiments; or may exist separately and not be assembled into the server. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: receiving a certificate storage file of a target user and attribute information of the certificate storage file; numbering the certificate storing file and the attribute information to obtain a first certificate storing number of the certificate storing file; performing password calculation on the certificate storing file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate storing file and the attribute information; sending the first certificate storing number and the first file identification to a block chain system; acquiring the height and the inner item indication of the account book block determined by storing the first evidence storage number and the first file identification by the block chain system; generating operation state information comprising the height of the account book block and the internal item indication, and sending the operation state information to a state system, wherein the operation state information is used for identifying the operation performed on the deposit and certificate file.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements in which any combination of the features described above or their equivalents does not depart from the spirit of the invention disclosed above. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (8)

1. A file processing method based on a block chain is characterized by comprising the following steps:
receiving a certificate storing file of a target user and attribute information of the certificate storing file;
numbering the certificate storage file and the attribute information to obtain a first certificate storage number of the certificate storage file;
performing password calculation on the certificate storage file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate storage file and the attribute information;
sending the first certificate storing number and the first file identification to a block chain system;
acquiring the height and the inner item indication of the account book block determined by the block chain system for storing the first evidence storage number and the first file identification;
generating operation state information comprising the height of the account book block and the internal item indication, and sending the operation state information to a state system, wherein the operation state information is used for identifying the operation on the evidence storage file;
after the sending the operational state information to a state system, the method further comprises:
in response to receiving a query request including a first certificate storage number of the target user, searching for a certificate storage file corresponding to the first certificate storage number and attribute information of the certificate storage file based on the first certificate storage number; based on the cryptographic algorithm, carrying out cryptographic calculation on the certificate storage file and the attribute information to obtain a second file identifier for representing the certificate storage file and the attribute information; sending the first deposit number to the state system, receiving the height of the book block and the internal item indication which are sent by the state system and correspond to the first deposit number, and sending the received height of the book block and the internal item indication to the block chain system; acquiring a third file identifier and a second deposit number which are stored by the block chain system and correspond to the received height and the inner item indication of the account book block; and in response to determining that the third file identifier, the second file identifier, and the first file identifier are the same and that the second license storage number is the same as the first license storage number, pushing relevant information of the license storage file to the target user.
2. The method of claim 1, wherein after sending the operational status information to a status system, the method further comprises: and generating push information comprising the first deposit number, and pushing the push information to the target user.
3. The method of claim 1, wherein the operational state information further comprises at least one of:
the first certificate storing number, the first file identification, the operation time and the operation times.
4. The method of claim 1, further comprising:
and storing the certificate storing file, the first certificate storing number and the first file identifier in an associated manner.
5. An apparatus for block chain based file processing, the apparatus comprising:
the receiving unit is configured to receive the certificate storing file of the target user and the attribute information of the certificate storing file;
the numbering unit is configured to number the certificate storage file and the attribute information to obtain a first certificate storage number of the certificate storage file;
the password calculation unit is configured to perform password calculation on the certificate storage file and the attribute information based on a preset password algorithm to obtain a first file identifier for representing the certificate storage file and the attribute information;
the sending unit is configured to send the first certificate storing number and the first file identifier to a block chain system;
the obtaining unit is configured to obtain the height and the inner item indication of the account book block determined by the block chain system storing the first deposit number and the first file identifier;
the first generation unit is configured to generate operation state information including the height of the ledger block and the internal item indication, and send the operation state information to a state system, wherein the operation state information is used for identifying operation on the evidence storage file;
the query unit is configured to respond to a received query request of the target user and including a first certificate storage number, and search a certificate storage file corresponding to the first certificate storage number and attribute information of the certificate storage file based on the first certificate storage number; based on the cryptographic algorithm, carrying out cryptographic calculation on the certificate storage file and the attribute information to obtain a second file identifier for representing the certificate storage file and the attribute information; sending the first deposit number to the state system, receiving the height of the book block and the internal item indication which are sent by the state system and correspond to the first deposit number, and sending the received height of the book block and the internal item indication to the block chain system; acquiring a third file identifier and a second deposit number which are stored by the block chain system and correspond to the extracted height and the inner item indication of the account book block; and in response to determining that the third file identifier, the second file identifier, and the first file identifier are the same and that the second license storage number is the same as the first license storage number, pushing relevant information of the license storage file to the target user.
6. The apparatus of claim 5, further comprising:
and the second generation unit is configured to generate push information including the first deposit number and push the push information to the target user.
7. The apparatus of claim 5, wherein the operational state information further comprises at least one of:
the first certificate storing number, the first file identification, the operation time and the operation times.
8. The apparatus of claim 5, further comprising:
and the storage unit is configured to store the certificate storing file, the first certificate storing number and the first file identifier in an associated manner.
CN201810320389.6A 2018-04-11 2018-04-11 File processing method and device based on block chain Active CN108550037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810320389.6A CN108550037B (en) 2018-04-11 2018-04-11 File processing method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810320389.6A CN108550037B (en) 2018-04-11 2018-04-11 File processing method and device based on block chain

Publications (2)

Publication Number Publication Date
CN108550037A CN108550037A (en) 2018-09-18
CN108550037B true CN108550037B (en) 2022-05-17

Family

ID=63514379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810320389.6A Active CN108550037B (en) 2018-04-11 2018-04-11 File processing method and device based on block chain

Country Status (1)

Country Link
CN (1) CN108550037B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283905A (en) * 2018-10-26 2021-08-20 创新先进技术有限公司 Data storage and acquisition method and device based on block chain
CN111898047B (en) * 2018-10-31 2024-03-29 创新先进技术有限公司 Method and device for conducting blockchain certification on webpage through webpage monitoring
CN109614766B (en) * 2018-10-31 2021-01-22 创新先进技术有限公司 Method and device for carrying out block chaining and evidence saving on webpage through file acquisition
CN110009336A (en) * 2018-12-13 2019-07-12 阿里巴巴集团控股有限公司 Evidence collecting method and device based on block chain
CN109617787A (en) * 2018-12-17 2019-04-12 上海点融信息科技有限责任公司 For the message method of sending and receiving of block chain network, storage medium, calculate equipment
CN109656889B (en) * 2018-12-26 2021-09-14 百度在线网络技术(北京)有限公司 File system implementation method, device, equipment and storage medium based on block chain
CN109740384B (en) * 2019-01-11 2023-11-10 众安信息技术服务有限公司 Data certification method and device based on blockchain
CN110009518A (en) * 2019-04-11 2019-07-12 阿里巴巴集团控股有限公司 Card read/write method and device based on block chain
US10990563B2 (en) 2019-04-11 2021-04-27 Advanced New Technologies Co., Ltd. Information read/write method and apparatus based on blockchain
SG11202002417PA (en) * 2019-05-20 2020-04-29 Alibaba Group Holding Ltd Identifying copyrighted material using copyright information embedded in tables
US10942920B2 (en) 2019-06-03 2021-03-09 Advanced New Technologies Co., Ltd. Service processing system and method based on blockchain
CN112967160A (en) * 2019-06-03 2021-06-15 创新先进技术有限公司 Service processing system and method based on block chain
CN110941676B (en) * 2019-11-27 2021-12-21 腾讯科技(深圳)有限公司 Configuration method, device, equipment and medium
CN112001731B (en) * 2020-04-02 2022-05-24 支付宝(杭州)信息技术有限公司 Block chain account balance deposit certificate and recovery method and device
CN112988901A (en) * 2021-04-06 2021-06-18 湖北央中巨石信息技术有限公司 Evidence-storing data chaining method based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610578A (en) * 2016-01-25 2016-05-25 杭州复杂美科技有限公司 Block chain information archiving and privacy protection method
KR101781583B1 (en) * 2016-08-31 2017-09-27 서강대학교산학협력단 File management and search system based on block chain and file management and search method
CN107292621A (en) * 2017-06-22 2017-10-24 丁江 Really power deposits card method and node to mass data
CN107659410A (en) * 2017-08-30 2018-02-02 湖南众享政联科技有限公司 Based on the anti-tamper official document transmission of block chain and storage method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958987B (en) * 2009-07-14 2013-06-26 中国电信股份有限公司 Method and system for dynamically converting telecommunications service data
CN104735164B (en) * 2015-04-10 2018-05-18 网易(杭州)网络有限公司 A kind of method and apparatus of save file information
US10114980B2 (en) * 2016-07-21 2018-10-30 Acronis International Gmbh System and method for verifying data integrity using a blockchain network
CN106650495B (en) * 2016-12-16 2019-07-16 杭州嘉楠耘智信息科技有限公司 File verification method and device
CN106815530B (en) * 2016-12-26 2020-04-24 北京爱接力科技发展有限公司 Data storage method, data verification method and device
CN107819777B (en) * 2017-11-17 2020-07-24 利姆斯(北京)区块链技术有限公司 Data evidence storing method and system based on block chain technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610578A (en) * 2016-01-25 2016-05-25 杭州复杂美科技有限公司 Block chain information archiving and privacy protection method
KR101781583B1 (en) * 2016-08-31 2017-09-27 서강대학교산학협력단 File management and search system based on block chain and file management and search method
CN107292621A (en) * 2017-06-22 2017-10-24 丁江 Really power deposits card method and node to mass data
CN107659410A (en) * 2017-08-30 2018-02-02 湖南众享政联科技有限公司 Based on the anti-tamper official document transmission of block chain and storage method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Towards data assurance and resilience in IoT using blockchain;Xueping Liang等;《MILCOM 2017 - 2017 IEEE Military Communications Conference (MILCOM)》;20171111;261-266 *
区块链技术在电商存证鉴证中的应用;朱兴雄;《现代商业》;20180108(第1期);35-36 *

Also Published As

Publication number Publication date
CN108550037A (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN108550037B (en) File processing method and device based on block chain
CN108389130B (en) Method for generating multi-transaction mode alliance chain
CN113711536B (en) Extracting data from a blockchain network
US11640474B2 (en) Method and apparatus for operating database
CN109981750B (en) Business process system, business data processing method and device
EP3639465B1 (en) Improved hardware security module management
CN109522330B (en) Cloud platform data processing method, device, equipment and medium based on block chain
CN109189857B (en) Data sharing system, method and device based on block chain
CN108390872B (en) Certificate management method, device, medium and electronic equipment
CN107248984B (en) Data exchange system, method and device
US20110029555A1 (en) Method, system and apparatus for content identification
CN109743161B (en) Information encryption method, electronic device and computer readable medium
CN109905351B (en) Method, device, server and computer readable storage medium for storing data
US11800201B2 (en) Method and apparatus for outputting information
CN108923925B (en) Data storage method and device applied to block chain
CN109254951A (en) A kind of method and apparatus that the card customized deposit system of platform is deposited based on block chain
CN111258602A (en) Information updating method and device
CN112131599A (en) Method, device, equipment and computer readable medium for checking data
WO2019014598A1 (en) Citation and attribution management methods and systems
CN115203749A (en) Data transaction method and system based on block chain
CN115618430A (en) Block chain-based data provider determination method and system
CN110705985A (en) Method and apparatus for storing information
CN108965991B (en) Program ordering state verification method and system, terminal device and storage medium
CN112489742B (en) Prescription circulation processing method and device
CN113129008A (en) Data processing method and device, computer readable medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant