CN112417178A - On-chain contract processing method and device based on document template definition and electronic equipment - Google Patents

On-chain contract processing method and device based on document template definition and electronic equipment Download PDF

Info

Publication number
CN112417178A
CN112417178A CN202011332549.2A CN202011332549A CN112417178A CN 112417178 A CN112417178 A CN 112417178A CN 202011332549 A CN202011332549 A CN 202011332549A CN 112417178 A CN112417178 A CN 112417178A
Authority
CN
China
Prior art keywords
document
traced
tracing
contract
traceability
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.)
Granted
Application number
CN202011332549.2A
Other languages
Chinese (zh)
Other versions
CN112417178B (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.)
Congfa Information Technology Co ltd
Original Assignee
Congfa Information 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 Congfa Information Technology Co ltd filed Critical Congfa Information Technology Co ltd
Priority to CN202011332549.2A priority Critical patent/CN112417178B/en
Publication of CN112417178A publication Critical patent/CN112417178A/en
Application granted granted Critical
Publication of CN112417178B publication Critical patent/CN112417178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/38Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Library & Information Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the specification provides a document template definition-based chain contract processing method, a transaction party stores an original document in a block chain, a modifiable area of the original document is identified, variable content of the modifiable area is defined and configured, a traceability device of a document template is constructed, the traceability device is added into a traceability contract on the block chain to be associated with the original document, uplink log information is obtained, the uplink result log information is stored in an index base and stored in a record chain table of the traceability contract, the transaction party uplinks the document to be traced, each block node verifies whether the document to be traced is matched with the traceability device corresponding to the original document and votes, and the traceability verification result is obtained by summarizing. The decentralized mode is realized in a block chain intelligent contract mode, document content fractional cochain is reliably supported through automatic verification of a traceability mode and an algorithm, and due to the fact that workload for auditing documents to be traced is small, processing efficiency can be improved.

Description

On-chain contract processing method and device based on document template definition and electronic equipment
Technical Field
The application relates to the field of internet, in particular to a method and a device for processing a chain contract based on document template definition and an electronic device.
Background
In the process of transaction between a user and a bank (transaction party), notarization is often involved, and the contract also needs to be confirmed when the user subsequently defaults. These links relate to a lot of documents, at present, the processing of these materials is mostly performed by using a centralized system, in reality, when the approval is performed, document data needs to be derived from respective systems for approval or verification by a notarization institution or a court (third party), and corresponding tasks are executed after the approval or verification, so as to complete the processing process of the documents.
Documents currently provided to third parties (such as a notary or a court) are mostly provided to the third parties directly, and the third parties review all the contents of the documents, possibly including a format, which takes a long time.
However, this model is too ideal, and may result in wasted improvement space when the reality is met, and there is a need to provide a safe and efficient method for improving the processing efficiency of the transaction document.
Disclosure of Invention
The embodiment of the specification provides a document template definition-based on-chain contract processing method and device and electronic equipment, and the method and device are used for processing transaction documents efficiently.
An embodiment of the present specification provides a method for processing a contract on a chain based on document template definition, including:
applying for a trusted storage space by a transaction direction block chain, acquiring a random factor returned by the block chain, and storing an original document in a block corresponding to the random factor by a block node of a transaction party based on the random factor;
the method comprises the steps that a construction area identification rule identifies a modifiable area of an original document, the variable content of the identified modifiable area is defined and configured, and a source tracing device of a document template is constructed on the basis of the identification of the modifiable area, the position of the modifiable area and the corresponding variable content;
adding the tracing device into a tracing contract on a block chain, associating the tracing contract with the original document, and acquiring uplink log information;
storing the uplink result log information into an index library, and storing the uplink result log information into a record linked list of the tracing contract;
and the transaction party links the document to be traced, each block node verifies whether the document to be traced is matched with a tracing device corresponding to the appointed original document or not, votes are carried out, and the block links summarize the voting results to obtain a tracing verification result.
Optionally, the performing a defined configuration on the variable content of the identified modifiable area includes:
defining variable items of the transaction and constructing a variable content set based on variable contents generated by definition;
and determining the attribute of the modifiable area, and matching the corresponding variable content in the variable content set on the basis of the attribute of the modifiable area to realize the definition configuration.
Optionally, the method further comprises:
the transaction party retrieves the prover associated with the original document it published from the index repository.
Optionally, the tracers correspond to a plurality of document templates;
the method further comprises the following steps:
setting effective intervals of different dates for different tracers;
the verifying, by each block node, whether the document to be traced matches a tracing device corresponding to the original document specified by the document to be traced includes:
determining a current date, and determining a traceability device in a date valid interval from a plurality of template documents based on the current date.
Optionally, the source tracer for constructing the document template based on the identification of the modifiable area, the position of the modifiable area and the corresponding variable content includes:
generating a document template using an identification based on a modifiable area, a location of the modifiable area, and corresponding variable content;
and converting the spatial point pixel information of the document template into time domain information, and constructing a traceability device by combining a time domain comparison rule and the time domain information.
Optionally, the verifying, by each block node, whether the document to be traced matches with the tracing device corresponding to the original document specified by the document to be traced further includes:
and performing time domain conversion on the document to be traced, and comparing the time domain conversion result of the document to be traced with the time domain information of the template document by using a time domain comparison rule.
Optionally, the attributes of the modifiable area include:
a transaction party attribute, a transaction amount attribute, a transaction deadline attribute, and a transaction contingency attribute.
An embodiment of the present specification further provides a device for processing a contract on a chain based on a document template definition, including:
the transaction side block node stores the original document in a block corresponding to the random factor based on the random factor;
the traceability contract module is used for identifying a modifiable area of the original document by a construction area identification rule, defining and configuring variable content of the identified modifiable area, and constructing a traceability of the document template based on the identification of the modifiable area, the position of the modifiable area and the corresponding variable content;
adding the tracing device into a tracing contract on a block chain, associating the tracing contract with the original document, and acquiring uplink log information;
the recording module stores the uplink result log information into an index library and stores the uplink result log information into a recording linked list of the tracing contract;
the tracing contract module is further used for chaining the document to be traced by the transaction party, verifying whether the document to be traced is matched with a tracing device corresponding to the specified original document by each block node, voting, and summarizing the voting result by the block chain to obtain a tracing verification result.
An embodiment of the present specification further provides an electronic device, where the electronic device includes:
a processor; and the number of the first and second groups,
a memory storing computer-executable instructions that, when executed, cause the processor to perform any of the methods described above.
The present specification also provides a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement any of the above methods.
In various technical solutions provided in this specification, a transaction party stores an original document in a block chain, identifies a modifiable area of the original document, defines and configures variable content of the modifiable area, constructs a traceability device of a document template, adds the traceability device to a traceability contract on the block chain to be associated with the original document, obtains uplink log information, stores the uplink result log information in an index library, stores the uplink result log information in a record linked list of the traceability contract, and verifies whether the document to be traced is matched with the traceability device corresponding to the original document and votes for each block node, and collects the traceability verification result. The decentralized mode is realized in a block chain intelligent contract mode, document content fractional cochain is reliably supported through automatic verification of a traceability mode and an algorithm, and due to the fact that workload for auditing documents to be traced is small, processing efficiency can be improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram illustrating a method for on-chain contract processing based on document template definition according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an on-chain contract processing apparatus based on document template definition according to an embodiment of the present specification;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
Detailed Description
The actual scene is analyzed to find that the transaction is performed step by step, before the transaction is finally completed, a plurality of matters are confirmed and agreed step by both transaction parties, and finally the transaction is completed only by determining the rest of the matters.
Therefore, if the third party can check the document in the semi-transaction state in advance in a mode of providing the transaction document for the third party for multiple times, the transaction party only needs to continuously edit a small part of content in the document in the semi-transaction state to provide the small part of content to the third party in the transaction link, and the third party only needs to perform supplementary checking on newly edited content, so that the time can be shortened, and the processing efficiency can be improved.
However, there is no such processing mode, and the difficulty may be that a third party needs to ensure that a document provided by a transaction party later is formed by continuously modifying the original document, rather than replacing the original document with another document, and the transaction party is difficult to directly use a system of the third party to manage the document without departing from its own data system, because the third party only has a right to read the transactions but not an editing right, and the transaction document often relates to business secrets, and the transaction party has no practical meaning in directly using the system of the third party to manage the document without departing from its own data system, and the problem that the document is tampered with cannot be solved and the modified document cannot be correctly traced to the source by using a centralized system or an offline tool alone.
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Fig. 1 is a schematic diagram of a method for processing an on-chain contract based on document template definition according to an embodiment of the present specification, where the method may include:
s101: and applying for a trusted storage space by the transaction direction block chain, acquiring a random factor returned by the block chain, and storing the original document in a block corresponding to the random factor by the block node of the transaction party based on the random factor.
In the embodiments of the present disclosure, a blockchain system may be created and configured with various functional modules, which are used to implement peer-to-peer data transmission, manage distributed accounts, configure consensus algorithms, and the like, and are not described in detail herein.
The transaction party may be a bank, the block node of the transaction party stores the original document in the block corresponding to the random factor based on the random factor, or the bank stores the template document of the transaction contract in the block corresponding to the random factor.
S102: the construction region identification rule identifies a modifiable region of the original document, defines and configures variable content of the identified modifiable region, and constructs a traceability device of the document template based on the identification of the modifiable region, the position of the modifiable region and the corresponding variable content.
The region identification rule may have a correspondence relationship between the image features of the modifiable region and the attributes of the modifiable region.
Wherein the identity of the modifiable area may be taken as an attribute.
Therefore, the images of various modifiable areas can be subjected to feature extraction in advance, and the area identification rule is constructed according to the extracted image features.
Therefore, in this example, constructing the region identification rule may include:
obtaining a sample document, marking a modifiable area in the sample document and configuring the attribute of the modifiable area;
feature extraction is performed on the sample document using feature extraction rules and the extracted features are associated with attributes of the modifiable area.
Wherein identifying modifiable regions of the original document can include:
identifying a modifiable area of the original document;
thus, the defining and configuring the variable content of the identified modifiable area includes:
defining variable items of the transaction and constructing a variable content set based on variable contents generated by definition;
and determining the attribute of the modifiable area, and matching the corresponding variable content in the variable content set on the basis of the attribute of the modifiable area to realize the definition configuration.
Therefore, the attribute content can be defined for the modifiable area of the corresponding attribute in an automatic matching mode without defining a plurality of blank areas of the document one by one, and only by expressing variable content according to the conception and constructing a mixed set, so that convenience is improved.
Wherein determining attributes of the modifiable area may include:
determining that the region-identifying rule identifies an attribute of a modifiable region of the original document.
In this specification embodiment, the attributes of the modifiable area include:
a transaction party attribute, a transaction amount attribute, a transaction deadline attribute, and a transaction contingency attribute.
The source tracing device may be a set of variable contents, or may be a tool obtained by further processing the variable contents.
For example, in this embodiment of the present specification, the source tracer for constructing a document template based on the identification of the modifiable area, the location of the modifiable area, and the corresponding variable content may include:
generating a document template using an identification based on a modifiable area, a location of the modifiable area, and corresponding variable content;
and converting the spatial point pixel information of the document template into time domain information, and constructing a traceability device by combining a time domain comparison rule and the time domain information.
S103: and adding the tracing device into a tracing contract on the block chain, associating the tracing contract with the original document, and acquiring uplink result log information.
The log information of the result of the upload may include index information and certification information of the prover.
S104: and storing the uplink result log information into an index library, and storing the uplink result log information into a record linked list of the tracing contract.
In this example, the uplink result log information can reflect the modification history of the document, and the history version is realized by the intelligent contract calling mode of the block chain, so as to achieve the effect of version tracing.
In an embodiment of the present specification, the method may further include:
the transaction party retrieves the prover associated with the original document it published from the index repository.
In an application scenario, the definition can be performed multiple times, and since the definition result is added to the intelligent contract every time, the traceability of the version can be realized.
S105: and the transaction party links the document to be traced, each block node verifies whether the document to be traced is matched with a tracing device corresponding to the appointed original document or not, votes are carried out, and the block links summarize the voting results to obtain a tracing verification result.
The transaction party stores original documents in a block chain, identifies a modifiable area of the original documents, defines and configures variable contents of the modifiable area, constructs a traceability device of a document template, adds the traceability device to a traceability contract on the block chain to be associated with the original documents, acquires uplink result log information, stores the uplink result log information in an index library, stores the uplink result log information in a record linked list of the traceability contract, uploads the documents to be traced, and verifies whether the documents to be traced are matched with the traceability device corresponding to the designated original documents and votes by each block node, so as to obtain a traceability verification result. The decentralized mode is realized in a block chain intelligent contract mode, document content fractional cochain is reliably supported through automatic verification of a traceability mode and an algorithm, and due to the fact that workload for auditing documents to be traced is small, processing efficiency can be improved.
In an embodiment of the present specification, the tracers correspond to a plurality of document templates;
the method may further comprise:
setting effective intervals of different dates for different tracers;
the verifying, by each block node, whether the document to be traced matches with the tracing device corresponding to the original document specified by the document to be traced may include:
determining a current date, and determining a traceability device in a date valid interval from a plurality of template documents based on the current date.
Therefore, the use scene of the original document can be improved, and the universality of the original document can be improved by corresponding a single original document to different template documents generated by definition in different time intervals.
In this embodiment of the present specification, the verifying, by each block node, whether the document to be traced matches with a tracing device corresponding to the original document specified by the document to be traced may further include:
and performing time domain conversion on the document to be traced, and comparing the time domain conversion result of the document to be traced with the time domain information of the template document by using a time domain comparison rule.
In the embodiment of the specification, the hash processing can be performed on the time domain information in the tracing device, so that the effect of zero knowledge proof can be achieved, the document information can be hidden, and the commercial confidentiality can be protected.
In this embodiment of the present specification, the verifying, by each block node, whether the document to be traced matches with a tracing device corresponding to the original document specified by the document to be traced may include:
and determining an original document specified by the tracing document, indexing the tracing device in the intelligent contract according to the transaction identifier of the original document, and indexing and reading the tracing device.
Wherein a transaction identifier may be created for associating the original document with a prover or the like, which will not be elaborated herein.
In the embodiment of the specification, the document can be subjected to zero-knowledge proof and then stored.
It should be noted that the various embodiments described above may be combined with various technical means existing in the blockchain to implement encryption and decryption of the document, and are not specifically set forth herein.
In an application scenario of strong justice, a bank can firstly chain a transaction contract (original document) in a semi-transaction state, then define contents to be determined in the contract to generate a traceability device, and when a subsequent bank finishes the transaction to chain the contract (document to be traced) in the contract, because the traceability device is generated and added into an intelligent contract, a block node for auditing the contract can verify whether the final chain contract is modified based on the original document by using the traceability device, so that only the newly-finished and consistent contents in the document to be traced need to be additionally audited in the link.
In an embodiment of the present specification, the method may further include:
and the third party checks the document to be traced based on the tracing verification result, and signs the document if the checking is passed.
Wherein the third party may be a notary or court.
Fig. 2 is a schematic structural diagram of an on-chain contract processing apparatus based on document template definition according to an embodiment of the present specification, where the apparatus may include:
the trusted storage module 201, a transaction direction block chain applies for a trusted storage space, obtains a random factor returned by the block chain, and a block node of a transaction party stores an original document in a block corresponding to the random factor based on the random factor;
the traceability contract module 202 is used for identifying a modifiable area of the original document by a construction area identification rule, defining and configuring variable content of the identified modifiable area, and constructing a traceability of a document template based on the identification of the modifiable area, the position of the modifiable area and the corresponding variable content;
adding the tracing device into a tracing contract on a block chain, associating the tracing contract with the original document, and acquiring uplink result log information;
the recording module 203 stores the uplink result log information into an index library, and stores the uplink result log information into a record linked list of the tracing contract;
the tracing contract module is further used for chaining the document to be traced by the transaction party, verifying whether the document to be traced is matched with a tracing device corresponding to the specified original document by each block node, voting, and summarizing the voting result by the block chain to obtain a tracing verification result.
Optionally, the performing a defined configuration on the variable content of the identified modifiable area includes:
defining variable items of the transaction and constructing a variable content set based on variable contents generated by definition;
and determining the attribute of the modifiable area, and matching the corresponding variable content in the variable content set on the basis of the attribute of the modifiable area to realize the definition configuration.
Optionally, the method further comprises:
the transaction party retrieves the prover associated with the original document it published from the index repository.
Optionally, the tracers correspond to a plurality of document templates;
the traceback contract module 202 may also be configured to:
setting effective intervals of different dates for different tracers;
the verifying, by each block node, whether the document to be traced matches a tracing device corresponding to the original document specified by the document to be traced includes:
determining a current date, and determining a traceability device in a date valid interval from a plurality of template documents based on the current date.
Optionally, the source tracer for constructing the document template based on the identification of the modifiable area, the position of the modifiable area and the corresponding variable content includes:
generating a document template using an identification based on a modifiable area, a location of the modifiable area, and corresponding variable content;
and converting the spatial point pixel information of the document template into time domain information, and constructing a traceability device by combining a time domain comparison rule and the time domain information.
Optionally, the verifying, by each block node, whether the document to be traced matches with the tracing device corresponding to the original document specified by the document to be traced further includes:
and performing time domain conversion on the document to be traced, and comparing the time domain conversion result of the document to be traced with the time domain information of the template document by using a time domain comparison rule.
Optionally, the attributes of the modifiable area include:
a transaction party attribute, a transaction amount attribute, a transaction deadline attribute, and a transaction contingency attribute.
The transaction party stores original documents in a block chain, identifies a modifiable area of the original documents, defines and configures variable contents of the modifiable area, constructs a traceability device of a document template, adds the traceability device to a traceability contract on the block chain to be associated with the original documents, acquires uplink result log information, stores the uplink result log information in an index library, stores the uplink result log information in a record linked list of the traceability contract, links the documents to be traced, verifies whether the documents to be traced are matched with the traceability device corresponding to the designated original documents by each block node, votes, and collects the traceability verification results. The decentralized mode is realized in a block chain intelligent contract mode, document content fractional cochain is reliably supported through automatic verification of a traceability mode and an algorithm, and due to the fact that workload for auditing documents to be traced is small, processing efficiency can be improved.
Based on the same inventive concept, the embodiment of the specification further provides the electronic equipment.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as specific physical implementations for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. An electronic device 300 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting the various system components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code executable by the processing unit 310 to cause the processing unit 310 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned processing method section of the present specification. For example, the processing unit 310 may perform the steps as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache storage unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. Network adapter 360 may communicate with other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to implement the above-described method of the invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. A readable storage 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
The computer readable storage medium may include a propagated data signal with 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 readable storage medium may also be any readable medium that is not a readable storage 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 readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for processing contracts on a chain based on document template definition is characterized by comprising the following steps:
applying for a trusted storage space by a transaction direction block chain, acquiring a random factor returned by the block chain, and storing an original document in a block corresponding to the random factor by a block node of a transaction party based on the random factor;
the method comprises the steps that a construction area identification rule identifies a modifiable area of an original document, the variable content of the identified modifiable area is defined and configured, and a source tracing device of a document template is constructed on the basis of the identification of the modifiable area, the position of the modifiable area and the corresponding variable content;
adding the tracing device into a tracing contract on a block chain, associating the tracing contract with the original document, and acquiring uplink log information;
storing the uplink result log information into an index library, and storing the uplink result log information into a record linked list of the tracing contract;
and the transaction party links the document to be traced, each block node verifies whether the document to be traced is matched with a tracing device corresponding to the appointed original document or not, votes are carried out, and the block links summarize the voting results to obtain a tracing verification result.
2. The method of claim 1, wherein the definitively configuring the variable content of the identified modifiable area comprises:
defining variable items of the transaction and constructing a variable content set based on variable contents generated by definition;
and determining the attribute of the modifiable area, and matching the corresponding variable content in the variable content set on the basis of the attribute of the modifiable area to realize the definition configuration.
3. The method of claim 1, further comprising:
the transaction party retrieves the prover associated with the original document it published from the index repository.
4. The method of claim 1, wherein the tracers correspond to a plurality of document templates;
the method further comprises the following steps:
setting effective intervals of different dates for different tracers;
the verifying, by each block node, whether the document to be traced matches a tracing device corresponding to the original document specified by the document to be traced includes:
determining a current date, and determining a traceability device in a date valid interval from a plurality of template documents based on the current date.
5. The method of claim 1, wherein the constructing a document template traceability machine based on an identification of a modifiable area, a location of the modifiable area and corresponding variable content, comprises:
generating a document template using an identification based on a modifiable area, a location of the modifiable area, and corresponding variable content;
and converting the spatial point pixel information of the document template into time domain information, and constructing a traceability device by combining a time domain comparison rule and the time domain information.
6. The method according to any one of claims 1 to 5, wherein each block node verifies whether the document to be traced matches with a tracers corresponding to its designated original document, further comprising:
and performing time domain conversion on the document to be traced, and comparing the time domain conversion result of the document to be traced with the time domain information of the template document by using a time domain comparison rule.
7. The method of any of claims 1-5, wherein the modifiable region attributes comprise:
a transaction party attribute, a transaction amount attribute, a transaction deadline attribute, and a transaction contingency attribute.
8. An on-chain contract processing apparatus based on document template definition, comprising:
the transaction side block node stores the original document in a block corresponding to the random factor based on the random factor;
the traceability contract module is used for identifying a modifiable area of the original document by a construction area identification rule, defining and configuring variable content of the identified modifiable area, and constructing a traceability of the document template based on the identification of the modifiable area, the position of the modifiable area and the corresponding variable content;
adding the tracing device into a tracing contract on a block chain, associating the tracing contract with the original document, and acquiring uplink log information;
the recording module stores the uplink result log information into an index library and stores the uplink result log information into a recording linked list of the tracing contract;
the tracing contract module is further used for chaining the document to be traced by the transaction party, verifying whether the document to be traced is matched with a tracing device corresponding to the specified original document by each block node, voting, and summarizing the voting result by the block chain to obtain a tracing verification result.
9. An electronic device, wherein the electronic device comprises:
a processor; and the number of the first and second groups,
a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202011332549.2A 2020-11-24 2020-11-24 Document template definition-based on-chain contract processing method and device and electronic equipment Active CN112417178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011332549.2A CN112417178B (en) 2020-11-24 2020-11-24 Document template definition-based on-chain contract processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011332549.2A CN112417178B (en) 2020-11-24 2020-11-24 Document template definition-based on-chain contract processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112417178A true CN112417178A (en) 2021-02-26
CN112417178B CN112417178B (en) 2022-09-30

Family

ID=74778530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011332549.2A Active CN112417178B (en) 2020-11-24 2020-11-24 Document template definition-based on-chain contract processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112417178B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966304A (en) * 2021-03-15 2021-06-15 陕煤集团榆林化学有限责任公司 Method and device for preventing process document from being tampered, computer equipment and medium
CN113411189A (en) * 2021-06-16 2021-09-17 北京沃东天骏信息技术有限公司 Data processing method and device, tracing method and device, and electronic device
CN115408590A (en) * 2022-10-31 2022-11-29 北京亿赛通科技发展有限责任公司 Document tracking and tracing method, device and system
CN116506231A (en) * 2023-06-28 2023-07-28 广东长盈科技股份有限公司 Network security event tracing and tracking method and system based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106530088A (en) * 2016-12-19 2017-03-22 杜伯仁 Method for trading stock product based on block chain security nodes
CN107924389A (en) * 2015-07-02 2018-04-17 纳斯达克公司 The system and method traced to the source the safety of distributed transaction database
CN110263015A (en) * 2019-05-07 2019-09-20 深圳壹账通智能科技有限公司 Data source tracing method, device, equipment and readable storage medium storing program for executing based on block chain
CN110349056A (en) * 2019-06-03 2019-10-18 阿里巴巴集团控股有限公司 Transaction processing system and method based on block chain
CN111144133A (en) * 2019-12-23 2020-05-12 传神语联网网络科技股份有限公司 Translation document keyword modification traceability system and method based on block chain
US20200242196A1 (en) * 2019-01-29 2020-07-30 International Business Machines Corporation Generation of an industry template in blockchain networks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107924389A (en) * 2015-07-02 2018-04-17 纳斯达克公司 The system and method traced to the source the safety of distributed transaction database
CN106530088A (en) * 2016-12-19 2017-03-22 杜伯仁 Method for trading stock product based on block chain security nodes
US20200242196A1 (en) * 2019-01-29 2020-07-30 International Business Machines Corporation Generation of an industry template in blockchain networks
CN110263015A (en) * 2019-05-07 2019-09-20 深圳壹账通智能科技有限公司 Data source tracing method, device, equipment and readable storage medium storing program for executing based on block chain
CN110349056A (en) * 2019-06-03 2019-10-18 阿里巴巴集团控股有限公司 Transaction processing system and method based on block chain
CN111144133A (en) * 2019-12-23 2020-05-12 传神语联网网络科技股份有限公司 Translation document keyword modification traceability system and method based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张国英等: "一种基于区块链的去中心化数据溯源方法", 《南京邮电大学学报(自然科学版)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966304A (en) * 2021-03-15 2021-06-15 陕煤集团榆林化学有限责任公司 Method and device for preventing process document from being tampered, computer equipment and medium
CN112966304B (en) * 2021-03-15 2024-04-19 陕煤集团榆林化学有限责任公司 Tamper-proof method and device for flow document, computer equipment and medium
CN113411189A (en) * 2021-06-16 2021-09-17 北京沃东天骏信息技术有限公司 Data processing method and device, tracing method and device, and electronic device
CN115408590A (en) * 2022-10-31 2022-11-29 北京亿赛通科技发展有限责任公司 Document tracking and tracing method, device and system
CN116506231A (en) * 2023-06-28 2023-07-28 广东长盈科技股份有限公司 Network security event tracing and tracking method and system based on block chain
CN116506231B (en) * 2023-06-28 2023-10-03 广东长盈科技股份有限公司 Network security event tracing and tracking method and system based on block chain

Also Published As

Publication number Publication date
CN112417178B (en) 2022-09-30

Similar Documents

Publication Publication Date Title
CN112417178B (en) Document template definition-based on-chain contract processing method and device and electronic equipment
US20240028587A1 (en) System and method for a hybrid contract execution environment
US11887055B2 (en) System and method for forming, storing, managing, and executing contracts
WO2022160707A1 (en) Human-machine interaction method and apparatus combined with rpa and ai, and storage medium and electronic device
Rai et al. Exploring the factors influencing the cloud computing adoption: a systematic study on cloud migration
US9569288B2 (en) Application pattern discovery
CN109189379A (en) code generating method and device
US9998450B2 (en) Automatically generating certification documents
US20210133903A1 (en) Digitized contract generation with colocation security
US20220138328A1 (en) Validation of transaction ledger content using java script object notation schema definition
CN112307513B (en) Uplink document security management method and device based on time domain consensus and electronic equipment
Hedberg Jr et al. Embedding x. 509 digital certificates in three-dimensional models for authentication, authorization, and traceability of product data
CN111753324A (en) Private data processing method, private data computing method and applicable equipment
CN112070608A (en) Information processing method, information processing apparatus, information processing medium, and electronic device
CN110727948B (en) Intelligent contract auditing method and device, computer equipment and storage medium
US20240143909A1 (en) System and Method for Electronic Document Interaction with External Resources
CN116974999A (en) Electronic document signing method and device, electronic device and storage medium
Küpper et al. Blockchain in the Factory of the Future
KR20230132878A (en) Reduce transaction cancellations in execute-order-verify blockchain models
EP4165825A1 (en) Verified templates
CN112187909A (en) Financing information generation system and method based on block chain
US11755782B2 (en) Validating primary subsets of received sensor data using computer cryptographic processing
US20230368157A1 (en) Digital Asset Agreement Generation and Verification System
CN113269538B (en) Method, device, equipment and storage medium for forwarding parallel approval nodes
US20230206364A1 (en) Systems and Methods in a Decentralized Network

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