A method, device and equipment for processing trusted format documents

By analyzing and embeding data blocks on layout document files, and using blockchain technology, the problems of consistency and security of layout document layout and content information are solved, and the unique credibility and security of layout documents are achieved.

CN119783162AInactive Publication Date: 2025-04-08BEIJING SUWELL TECHNOLOGY CO LTD +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510265521.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-04-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art cannot guarantee the consistency and security of layout and content information of layout documents, and is easily tampered with and edited.

Method used

By parsing the layout document file, the target data block is generated and embedded in the block area of ​​the layout document file. Then, the signed target layout document file is sent to the blockchain node, and through the decentralization and immutable characteristics of the blockchain, the layout and content information of the layout document are unique and credible.

Benefits of technology

It realizes the unique credibility of the layout and content information of the layout document, ensures that it is not forged, tampered with and unique information, and ensures the security and transparency of the layout document.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119783162A_ABST
    Figure CN119783162A_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and equipment for processing a trusted layout document, the method comprising: obtaining a layout document file; parsing the layout document file to obtain the layout and data feature summary information of the layout document file; generating a target data block according to the layout and data feature summary information of the layout document file; embedding the target data block into the block area of ​​the layout document file to obtain a target layout document file; sending the target layout document file to a first node of a target blockchain, the first node using a signature algorithm to sign the target layout document file to obtain a signed target layout document file, and sending the signed target layout document file to at least one second node of the target blockchain. The scheme of the present invention can realize that the layout and content information of a layout document are unique and credible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer information processing, and in particular to a method, device and equipment for processing a trusted format document. Background Art

[0002] The layout document format is an electronic document format with a fixed layout presentation effect. The presentation of the layout document is independent of the device. When reading, printing or printing on various devices, the presentation results of the layout are consistent. Layout documents are mainly used for the release, dissemination and archiving of written documents. Its characteristics are fixed layout, and its presentation effect will not change due to changes in the software and hardware environment or operation. It is completely consistent with paper documents in terms of layout, layout, font, font size, etc.

[0003] In some scenarios, such as finance, medical and other fields, in formal layout documents such as invoices, medical records, contracts, etc., the layout and content information of the layout documents need to be unique and reliable. However, in the existing technology, the layout and content of the layout documents can be tampered with and edited by some professional tools, and the consistency and security of the layout and content of the layout documents cannot be guaranteed. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and device for processing a trusted layout document, which can ensure that the layout and content information of the layout document are uniquely trusted.

[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows: A method for processing a trusted format document, comprising: Get the layout document file; Parsing the layout document file to obtain the layout and data feature summary information of the layout document file; Generate a target data block according to the layout of the layout document file and the feature summary information of the data; The target data block is embedded in the block area of ​​the layout document file to obtain the target layout document file; the block area stores description information of the layout document file, and the description information includes: all document information of the layout document file from creation to the current version; The target layout document file is sent to the first node of the target blockchain, and the first node uses a signature algorithm to sign the target layout document file to obtain the signed target layout document file, and the signed target layout document file is sent to at least one second node of the target blockchain; the first node and at least the second node are any nodes in the target blockchain, and the first node and at least one second node use the same signature algorithm to verify the signature of the received target layout document file.

[0006] Optionally, the layout document file is parsed to obtain feature summary information of the layout and data of the layout document file, including: For the document structure of the layout document file, obtaining the layout of the layout document file; The content of the layout document file is parsed to obtain feature summary information of the data of the layout document file.

[0007] Optionally, generating a target data block according to the layout of the layout document file and feature summary information of the data includes: The hash value of the layout document file is obtained by using the hash function H(M)=(a*M+b) mod p; wherein: M is the characteristic summary information of the data of the layout document file; a and b are both randomly selected constants, p is a prime number, and H(M) is the hash value; The layout of the layout document file and the hash value are written into the target block of the blockchain to generate a target data block.

[0008] Optionally, embedding the target data block into a block area of ​​the layout document file to obtain a target layout document file includes: The target data block is written into the block area of ​​the metadata of the layout document file to obtain a target layout document file.

[0009] Optionally, the target format document file is signed using a signature algorithm to obtain the signed target format document file, including: Obtaining a hash value of a target data block of the target format document file and a private key stored in a smart contract; The target layout document file and the hash value are encrypted and signed using the private key to obtain the signed target layout document file.

[0010] Optionally, sending the signed target format document file to at least one second node of the target blockchain includes: Obtaining a hash value of the node information of the first node; The signed target layout document file and the hash value of the node information of the first node are sent to at least one second node of the target blockchain, so that the at least one second node stores the signed target layout document file in a local block according to the hash value of the node information of the first node.

[0011] Optionally, the method for processing a trusted format document also includes: If the layout document file is modified, obtain the version information of the modified layout document file; Generate a new target data block according to the version information; Embedding the new target data block into the block area of ​​the modified layout document file to obtain a modified target layout document file; Send the modified target format document file to at least one second node of the target blockchain.

[0012] An embodiment of the present invention further provides a device for processing a trusted format document, comprising: The acquisition module is used to obtain the layout document file; A processing module is used to parse the layout document file to obtain the feature summary information of the layout and data of the layout document file; generate a target data block according to the feature summary information of the layout and data of the layout document file; embed the target data block into the block area of ​​the layout document file to obtain the target layout document file; the block area stores the description information of the layout document file, and the description information includes: all document information of the layout document file from creation to the current version; send the target layout document file to the first node of the target blockchain, and the first node signs the target layout document file using a signature algorithm to obtain the signed target layout document file, and send the signed target layout document file to at least one second node of the target blockchain; the first node and at least the second node are any nodes in the target blockchain, and the first node and at least one second node use the same signature algorithm to verify the signature of the received target layout document file.

[0013] An embodiment of the present invention further provides a computing device, comprising: a processor and a memory storing a computer program, wherein the computer program implements the above method when executed by the processor.

[0014] An embodiment of the present invention further provides a computing device readable storage medium, wherein the computing device readable storage medium stores a program, and when the program is executed by a processor, the method described above is implemented.

[0015] The above technical solution of the present invention has at least the following technical effects: The above-mentioned scheme of the present invention parses the layout document file to obtain the characteristic summary information of the layout and data of the layout document file; generates a target data block according to the characteristic summary information of the layout and data of the layout document file; embeds the target data block into the block area of ​​the layout document file to obtain the target layout document file; sends the target layout document file to the first node of the target blockchain, and the first node signs the target layout document file using a signature algorithm to obtain the signed target layout document file, and sends the signed target layout document file to at least one second node of the target blockchain; the first node and at least the second node are any node in the target blockchain, and the first node and at least one second node use the same signature algorithm to verify the signature of the received target layout document file. Record summary information of each version of the layout document from creation to update, and then record the version changes of the layout document and summary information of related content resource data through the growing data block chain, and synchronize them to the decentralized distributed storage network, so that the layout and content information of the layout document can be uniquely trusted, and the same layout document cannot be forged, tampered with and is unique, ensuring the security and transparency of the layout document. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a schematic diagram of a method for processing a trusted format document of the present invention; Figure 2 It is a module schematic diagram of the processing device of the trusted format document of the present invention. DETAILED DESCRIPTION

[0017] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0018] Blockchain is a decentralized distributed ledger that is tamper-proof, secure and reliable. It combines distributed storage, peer-to-peer transmission, consensus mechanism, cryptography and other technologies to record transactions and information through a growing data block chain to ensure data security and transparency.

[0019] like Figure 1 As shown, an embodiment of the present invention provides a method for processing a trusted format document, comprising: Step 11, obtaining a layout document file; the layout document file here can be a document file in a format such as OFD (open document format), PDF (portable document format), etc.; Step 12, parsing the layout document file to obtain the layout of the layout document file and feature summary information of the data; here, the layout document file is parsed to obtain the document structure, content elements, style and format, and metadata of the layout document file; the layout is the data in the document structure, and the feature summary information of the data is the data in the content elements; Step 13, generating a target data block according to the layout of the layout document file and the feature summary information of the data; Step 14, embedding the target data block into the block area of ​​the layout document file to obtain the target layout document file; the block area stores description information of the layout document file, and the description information includes: all document information of the layout document file from creation to the current version; Step 15, sending the target layout document file to the first node of the target blockchain, having the first node use a signature algorithm to sign the target layout document file to obtain the signed target layout document file, and sending the signed target layout document file to at least one second node of the target blockchain; the first node and at least the second node are any nodes in the target blockchain, and the first node and at least one second node use the same signature algorithm to verify the signature of the received target layout document file.

[0020] In this embodiment, the file structure characteristics of the layout document are utilized, and a specific data block for recording the characteristic summary information of the layout and data of the layout document is added to the file package of the layout document. The version changes of the layout document and the summary information of the related content resource data are recorded through a continuously growing data block chain, and the creation and change process of this layout document is synchronized to multiple nodes by using the propagation and synchronization technology of the blockchain, so as to achieve the same layout document is not forgeable, tamper-proof and unique, thereby ensuring the security and transparency of the layout document.

[0021] In an optional embodiment of the present invention, step 12 may include: Step 121, parsing the document structure of the layout document file to obtain the layout of the layout document file; Step 122: Parse the content of the layout document file to obtain feature summary information of the data of the layout document file.

[0022] In this embodiment, the document structure of the layout document file is parsed to obtain the page (Page) of the layout document file: the basic unit of the layout document is the page, and each page has a fixed size and layout. The page can contain text, images, tables and other content. Layer (Layer): The page content can be displayed in layers, such as background layer, text layer, image layer. Paragraph (Paragraph): The text content is usually laid out in paragraphs. Object (Object): An independent element in a page, such as an image, table, shape, etc.

[0023] Parsing the content of the layout document file can obtain the text (Text) of the layout document file: including font, font size, color, alignment and other attributes. Support rich text format (such as bold, italic, underline). Image (Image): supports embedding or linking external image files. Including attributes such as position, size, rotation. Table (Table): supports cell merging, border style, background color, etc. Shape (Shape): such as rectangle, circle, line, etc., supports fill color, border style, etc.; Furthermore, the layout document file also includes: Style Sheet: defines the global style of the document, such as font, color, paragraph spacing, etc. Formatting: includes text format (such as font, font size), paragraph format (such as alignment, indentation), object format (such as border, fill), etc.; Metadata, Document Properties: Title, Author, Creation Time, Modification Time, etc. Bookmark: Used to quickly locate a specific location in a document. Table of Contents: Provides structural navigation of the document. Annotation: Such as comments, highlights, underlines, etc.

[0024] This embodiment can obtain all the current information of the layout document, including layout information, digital signature information, index and some resource data, by parsing the layout document file, and extract and organize the summary information, which is unique and immutable. For example, a hash algorithm can be used. Once the closing operation is performed, the current summary information of the layout document will be extracted and used as the only inspection standard for this version.

[0025] In an optional embodiment of the present invention, step 13 may include: Step 131, using a hash function H(M)=(a*M+b) mod p, to obtain a hash value of the layout document file; wherein M is feature summary information of the data of the layout document file; a, b are both randomly selected constants, p is a prime number, and H(M) is the hash value; Step 132, write the layout of the layout document file and the hash value into the target block of the blockchain to generate a target data block.

[0026] In this embodiment, a hash calculation is performed on the feature summary information of the data of the layout document file to generate a unique hash value, which is used to verify the integrity of the document without storing the complete document; Write the hash value, timestamp, and metadata (such as document name, author), and layout to the blockchain, use a blockchain platform or decentralized storage network to store the hash value, and use a smart contract to store the hash value.

[0027] This embodiment ensures that the layout document file cannot be tampered with by storing the hash value of the feature summary information of the data of the layout document file in the blockchain.

[0028] In an optional embodiment of the present invention, step 14 may include: Step 141, writing the target data block into the block area of ​​the metadata of the layout document file to obtain the target layout document file.

[0029] In this embodiment, the block area stores description information of the layout document file, and the description information includes: all document information of the layout document file from its creation to the current version, such as the document title, summary, signature and other metadata information, which can be placed in the initial block. The data of the initial block can be stored in the file as an extension field of the layout document; the summary data block that records the layout document includes an information summary of all the contents of a certain version of this layout document, and forms a unique summary value. These contents can be used to restore all layout document information. For example, for OFD format documents, this data block includes the OFD root node XML, digital signature directory file, Pages layout content, indexes of public and self resources, and other resource files.

[0030] This embodiment writes the target data block into the block area of ​​the layout document file so that after the layout document file is put on the chain, it can be synchronized to other nodes, and other nodes can be verified and stored, thereby ensuring the authenticity, integrity and traceability of the layout document after it is put on the chain.

[0031] In an optional embodiment of the present invention, in step 15, the target format document file is signed using a signature algorithm to obtain a signed target format document file, including: Step 151, obtaining the hash value of the target data block of the target format document file and the private key stored in the smart contract; Step 152: Use the private key to encrypt and sign the target layout document file and the hash value to obtain the signed target layout document file.

[0032] In this embodiment, when a document needs to be verified, the document hash value is recalculated and compared with the hash value stored on the blockchain. The digital signature is verified using the public key to ensure that the document has not been tampered with.

[0033] In an optional embodiment of the present invention, in step 15, sending the signed target format document file to at least one second node of the target blockchain includes: Step 153, obtaining a hash value of the node information of the first node; Step 154, sending the signed target layout document file and the hash value of the node information of the first node to at least one second node of the target blockchain, so that the at least one second node stores the signed target layout document file in a local block according to the hash value of the node information of the first node.

[0034] In this embodiment, after a new data block is created, it is sent to other participants in the network for verification. Once other participants verify that the new block is valid, they will include the new block in their own copy of the blockchain. Over time, the blockchain will continue to grow, and each new block will contain the hash value of the previous block, forming a chain. This process will continue until the blockchain reaches a preset length or is terminated by other mechanisms. In this embodiment, the network used for the propagation of the layout document blockchain can be a wide area network or a local area network, depending on the environmental requirements of the application. Regardless of the type of network, it will be propagated according to the propagation rules of the blockchain. For example, each new block will contain the hash value of the previous block to ensure its integrity.

[0035] In order to improve the efficiency of dissemination, you can set up an independent shared node server to speed up the dissemination, but this does not affect the overall decentralization characteristics. The shared node server is just a concept of a super client. Therefore, in some application scenarios, you can also use a reward mechanism to encourage more users to join the block data storage and consensus nodes. In order to achieve faster dissemination and faster verification.

[0036] In an optional embodiment of the present invention, the method for processing a trusted format document may further include: Step 16, if the layout document file is modified, obtain the version information of the layout document file after the modification; Step 17, generating a new target data block according to the version information; Step 18, embedding the new target data block into the block area of ​​the modified layout document file to obtain a modified target layout document file; Step 19: Send the modified target format document file to at least one second node of the target blockchain.

[0037] In this embodiment, the document will be modified to cause the version change, and the change represents the change of the document. Each version change (transaction) requires the generation of a new block data, which will also record the summary of the change information and use an irreversible algorithm for encryption and storage to form a new blockchain, and at the same time link it with the previous block to form a blockchain. However, not all nodes can change the document, because if multiple nodes change and record at the same time, data inconsistency will occur, resulting in the unreliability of the document. For all documents, only one node is allowed to have the right to change the document at the same time. For example, only the original author of the initial block has this accounting right. After the document is propagated, the accounting right can be transferred to allow other nodes to change the document. The transfer process can be bound through the business system, which can be designed according to the business scenario. Of course, multiple nodes will change the document, but the principle of blockchain accounting rights cannot be changed. If multiple change blocks appear, it can be considered as multiple documents, but the original document can still be traced, and the credible feature can still be guaranteed.

[0038] The specific implementation process of the above embodiment of the present invention is described below: Step 111, when a layout document is first created, there will be an initial author, and this author has the right to record the initial block of this document. The initial block data uses some irreversible encryption methods to summarize some basic information of this layout document, such as the document title, summary, signature and other metadata information, which can all be placed in the initial block.

[0039] Step 112, the data of the initial block can be stored in the file as an extension field of the layout document, or can be stored centrally on a server, depending on the needs of the scenario.

[0040] Step 113, after the initial block is created, it needs to be propagated and diffused. This process is to transmit the initial block data of this document through the network or other nodes. This process is similar to P2P. The purpose is to allow as many nodes as possible to store the block for the purpose of mutual authentication.

[0041] Step 114, the document will be modified to cause the version to change. This process of change is very similar to the transaction process of blockchain. In blockchain transactions, changes refer to changes in accounts, while in the method of the present invention, changes represent changes in documents. Each version change (transaction) requires the generation of a new block data, which will also record a summary of the change information and be encrypted and stored using an irreversible algorithm to form a new blockchain, which is linked to the previous block to form a blockchain.

[0042] Step 115, not all people (nodes) can change the document, because if multiple people change and record at the same time, data inconsistency will occur, resulting in the unreliability of the document. For each document, only one person is allowed to have the right to change the document at the same time, which is similar to the accounting right in the blockchain. For example, only the original author of the initial block has this accounting right. After the document is disseminated, the accounting right can be transferred to allow other people (nodes) to change the document. The transfer process can be bound by the business system, which can be designed according to the business scenario. Of course, multiple people (nodes) will change the document, but the principle of blockchain accounting rights cannot be changed. If there are multiple change blocks, it can be considered as multiple documents, but the original document can still be traced, and the trustworthy feature can still be guaranteed.

[0043] Step 116, after the blockchain link of a document is completed, how to ensure credibility? This is also the basic characteristic of blockchain. The following is divided into several aspects to explain: In addition to document change information, each block also contains information about the block's creator, that is, the author of the change, and information about the owner of the accounting rights (the author of the change and the owner of the accounting rights may not be the same person). This information is calculated using an irreversible algorithm and is only used for one-way comparison.

[0044] There will be many nodes in a blockchain network of a trusted document. This network can be a private network or a wide area network (the more network nodes, the more reliable it is). All block information of a document will be synchronized to all nodes in real time, which means that all nodes can verify the credibility of the document.

[0045] When we need to determine whether a document is credible and has not been tampered with, we can use multiple nodes to compare block information one by one. That is to say, if the document version of a certain node has been tampered with, it cannot be recognized by other nodes. Except for the nodes with accounting rights that can add new blockchains, all other nodes can only compare blockchains and cannot change or add new blocks. Therefore, we only need to manage the nodes with accounting rights to ensure the credibility of the documents.

[0046] The above-mentioned embodiments of the present invention embed data blocks in layout documents and ensure the security and credibility of data through cryptography technology and consensus mechanism. Each participant has a copy of the entire blockchain, and each new block needs to be verified by other participants before it can be included in the blockchain. This makes the blockchain a highly secure and decentralized database that can be used to record the entire life cycle of version file creation and version update, and use a consensus mechanism to ensure the uniqueness of all documents included in the layout document blockchain. Ultimately, a layout document blockchain network is realized that can be controlled by the layout document publisher and can enable all readers who use this document to read and use this document in a trusted manner.

[0047] like Figure 2 As shown, the embodiment of the present invention further provides a trusted format document processing device 20, comprising: An acquisition module 21 is used to acquire a layout document file; The processing module 22 is used to parse the layout document file to obtain the feature summary information of the layout and data of the layout document file; generate a target data block according to the feature summary information of the layout and data of the layout document file; embed the target data block into the block area of ​​the layout document file to obtain the target layout document file; the block area stores the description information of the layout document file, and the description information includes: all document information of the layout document file from creation to the current version; send the target layout document file to the first node of the target blockchain, and the first node signs the target layout document file using a signature algorithm to obtain the signed target layout document file, and send the signed target layout document file to at least one second node of the target blockchain; the first node and at least the second node are any nodes in the target blockchain, and the first node and at least one second node use the same signature algorithm to verify the signature of the received target layout document file.

[0048] Optionally, the layout document file is parsed to obtain feature summary information of the layout and data of the layout document file, including: Parsing the document structure of the layout document file to obtain the layout of the layout document file; The content of the layout document file is parsed to obtain feature summary information of the data of the layout document file.

[0049] Optionally, generating a target data block according to the layout of the layout document file and feature summary information of the data includes: The hash value of the layout document file is obtained by using the hash function H(M)=(a*M+b) mod p; wherein: M is the characteristic summary information of the data of the layout document file; a and b are both randomly selected constants, p is a prime number, and H(M) is the hash value; The layout of the layout document file and the hash value are written into the target block of the blockchain to generate a target data block.

[0050] Optionally, embedding the target data block into a block area of ​​the layout document file to obtain a target layout document file includes: The target data block is written into the block area of ​​the metadata of the layout document file to obtain a target layout document file.

[0051] Optionally, the target format document file is signed using a signature algorithm to obtain the signed target format document file, including: Obtaining a hash value of a target data block of the target format document file and a private key stored in a smart contract; The target layout document file and the hash value are encrypted and signed using the private key to obtain the signed target layout document file.

[0052] Optionally, sending the signed target format document file to at least one second node of the target blockchain includes: Obtaining a hash value of the node information of the first node; The signed target layout document file and the hash value of the node information of the first node are sent to at least one second node of the target blockchain, so that the at least one second node stores the signed target layout document file in a local block according to the hash value of the node information of the first node.

[0053] Optionally, the processing module 22 is also used to obtain version information of the modified layout document file if the layout document file is modified; generate a new target data block according to the version information; embed the new target data block into the block area of ​​the modified layout document file to obtain a modified target layout document file; and send the modified target layout document file to at least one second node of the target blockchain.

[0054] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.

[0055] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0056] The embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0057] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0058] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0059] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0060] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0061] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0062] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0063] In addition, it should be pointed out that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understandable that all or any steps or components of the method and apparatus of the present invention can be implemented in hardware, firmware, software or a combination thereof in any computing device (including processors, storage media, etc.) or a network of computing devices, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0064] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0065] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for processing a trusted format document, characterized in that: include: Get the layout document file; Parsing the layout document file to obtain the layout and data feature summary information of the layout document file; Generate a target data block according to the layout of the layout document file and the feature summary information of the data; Embedding the target data block into the block area of ​​the layout document file to obtain a target layout document file; The block area stores description information of the layout document file, and the description information includes: all document information of the layout document file from creation to the current version; The target layout document file is sent to the first node of the target blockchain, and the first node uses a signature algorithm to sign the target layout document file to obtain the signed target layout document file, and the signed target layout document file is sent to at least one second node of the target blockchain; the first node and at least the second node are any nodes in the target blockchain, and the first node and at least one second node use the same signature algorithm to verify the signature of the received target layout document file.

2. The method for processing a trusted format document according to claim 1, characterized in that: Parsing the layout document file to obtain the layout and data feature summary information of the layout document file includes: Parsing the document structure of the layout document file to obtain the layout of the layout document file; The content of the layout document file is parsed to obtain feature summary information of the data of the layout document file.

3. The method for processing a trusted format document according to claim 1, characterized in that: Generate a target data block according to the layout of the layout document file and the feature summary information of the data, including: The hash value of the layout document file is obtained by using the hash function H(M)=(a*M+b) mod p; wherein: M is the characteristic summary information of the data of the layout document file; a and b are both randomly selected constants, p is a prime number, and H(M) is the hash value; The layout of the layout document file and the hash value are written into the target block of the blockchain to generate a target data block.

4. The method for processing a trusted format document according to claim 3, characterized in that: Embedding the target data block into the block area of ​​the layout document file to obtain the target layout document file includes: The target data block is written into the block area of ​​the metadata of the layout document file to obtain a target layout document file.

5. The method for processing a trusted format document according to claim 4, characterized in that: The target format document file is signed by using a signature algorithm to obtain the signed target format document file, including: Obtaining a hash value of a target data block of the target format document file and a private key stored in a smart contract; The target layout document file and the hash value are encrypted and signed using the private key to obtain the signed target layout document file.

6. The method for processing a trusted format document according to claim 5, characterized in that: Sending the signed target format document file to at least one second node of the target blockchain includes: Obtaining a hash value of the node information of the first node; The signed target layout document file and the hash value of the node information of the first node are sent to at least one second node of the target blockchain, so that the at least one second node stores the signed target layout document file in a local block according to the hash value of the node information of the first node.

7. The method for processing a trusted format document according to claim 1, characterized in that: Also includes: If the layout document file is modified, obtain the version information of the modified layout document file; Generate a new target data block according to the version information; Embedding the new target data block into the block area of ​​the modified layout document file to obtain a modified target layout document file; Send the modified target format document file to at least one second node of the target blockchain.

8. A device for processing trusted format documents, characterized in that: include: The acquisition module is used to obtain the layout document file; A processing module, used to parse the layout document file to obtain the layout and data feature summary information of the layout document file; and generate a target data block according to the layout and data feature summary information of the layout document file; Embedding the target data block into the block area of ​​the layout document file to obtain a target layout document file; The block area stores description information of the layout document file, and the description information includes: all document information of the layout document file from creation to the current version; The target layout document file is sent to the first node of the target blockchain, and the first node uses a signature algorithm to sign the target layout document file to obtain the signed target layout document file, and the signed target layout document file is sent to at least one second node of the target blockchain; the first node and at least the second node are any nodes in the target blockchain, and the first node and at least one second node use the same signature algorithm to verify the signature of the received target layout document file.

9. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by the processor.

10. A computing device readable storage medium, characterized in that: The computing device readable storage medium stores a program, which implements the method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Method and device for creating layout file through block chain, electronic equipment and storage medium

    CN113468862A

  • Electronic archive management method and system based on block chain

    CN116304265A

  • Data processing method and system based on block chain, medium and equipment

    CN117390666A

  • Scientific and technological archive authentication method based on traceable digital signature technology and intelligent management system

    CN117454440A

  • Method and device for generating digital signature, and server

    WO2022116176A1