Method, system and equipment for synthesizing handwritten electronic signature file and medium

By acquiring and processing the biometric and auxiliary data in the electronic signature signing process, the electronic signature composite file is constructed, which solves the problems of the correlation between the electronic signature file and the signer and the authenticity of the signature, and realizes the security and insecurity of electronic signatures. Tamper-resistant to meet the needs of forensic identification.

CN118607012APending Publication Date: 2024-09-06CHONGQING WESTERN HANDWRITING BIG DATA RES INST
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410700233.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing electronic signature technology is difficult to determine whether the electronic signature document is directly related to the signer, and there is a risk that the signer's electronic signature will not be used without authorization and personal privacy information will be leaked. It cannot guarantee the authenticity of the signer's identity and the non-tamperability of the signature. .

Method used

By obtaining the biometric data and auxiliary evidence data in the electronic signature signing process, the cryptographic layer is securely processed, the signature appearance is generated, and a handwritten electronic signature document synthesis structure model is constructed according to the electronic document structure, and the signature appearance and the electronic document are correspondingly The layout document format is synthesized to form an electronic signature composite file, including encrypting the signature metadata and calculating the digital signature, and adding a timestamp to ensure the authenticity and non-tamperability of the file.

Benefits of technology

It realizes the authenticity and validity identification of electronic documents and electronic signature handwriting in the forensic environment, ensures the identification of the direct relationship between electronic signatures and individual natural persons, reduces the risk of signature data leakage and unauthorized use, and improves the efficiency of electronic signatures. Security and authenticity of signatures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607012A
    Figure CN118607012A
Patent Text Reader

Abstract

The invention discloses a method for synthesizing a handwritten electronic signature file, which comprises the following steps of: acquiring biological characteristic data and auxiliary certificate data in an electronic signature process, performing security processing on the biological characteristic data and the auxiliary certificate data by a password layer, and storing the biological characteristic data and the auxiliary certificate data in a security domain; generating a signature appearance according to the electronic signature biological characteristics and storing the signature appearance in a display domain; and according to the structure of the to-be-signed electronic file, constructing a handwritten electronic signature file synthesis structure model, and synthesizing the signed appearance and the to-be-signed electronic file according to the packaging structure of the corresponding file format to form a digital file of the electronic signature synthesis file. It is ensured that the electronic document and electronic signature handwriting data are real and effective, and on this basis, the direct relation between the electronic signature and the natural person individual is effectively associated.
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 security, and in particular to a method for synthesizing a handwritten electronic signature file. Background Art

[0002] With the development of informatization and data, in addition to the traditional paper-pen signature, electronic signatures and electronic fingerprints in the form of electronic data storage have also appeared in the signature mode. In order to ensure the authenticity of the recorded documents, all electronic documents must have digital signatures and prevent tampering. Electronic signatures and electronic fingerprints on electronic documents have the same effect as handwritten signatures and fingerprints on paper documents. The application of electronic signature and electronic fingerprint technology should be ensured to be safe and standardized through security authentication and other means to ensure that it cannot be copied or tampered with technically. The authenticity and legality of electronic signatures and electronic fingerprints are the responsibility of the production unit of electronic legal documents; when it is necessary to authenticate the authenticity of electronic signatures and electronic fingerprints on electronic legal documents, the production unit or storage unit of the electronic legal document shall provide the original data files and system logs of the information system; the original data files of electronic signatures and electronic fingerprints and their metadata shall be encapsulated to generate an unchangeable file format, and can be saved and archived away from the original system.

[0003] The current technical implementation method of electronic signature is to use digital signature realized by "digital certificate method". In the judicial appraisal environment, relevant specifications and methods of electronic data appraisal are adopted, and the relevant conclusions issued are mostly "the digital signature certificate of this file is XXXX certificate", "the file has not been tampered with" and other related conclusions. However, in the judicial practice, it is more necessary to give two major conclusions for the electronic documents to be appraised: 1) the electronic document is authentic and has not been tampered with; 2) whether there is a direct relationship between the electronic signature on the document and the natural person. Summary of the invention

[0004] In view of this, the present invention addresses the problems that when authenticating electronically signed documents using the prior art, it is difficult to determine whether the electronically signed document is directly related to the signatory, it is difficult to determine the authentication opinion on the authenticity and validity of the electronically signed document, the electronic signature data is easily leaked, there is a risk of personal privacy information leakage, and it cannot guarantee that the signatory's electronic signature will not be used on other electronic documents without authorization.

[0005] The present invention proposes a method for synthesizing a handwritten electronic signature file, comprising: obtaining biometric data and auxiliary evidence data in the process of electronic signature signing, a cryptographic layer securely processing the biometric data and auxiliary evidence data and storing them in a security domain; generating a signature appearance according to the electronic signature biometrics and storing it in a display domain; constructing a handwritten electronic signature file synthesis structure model according to the structure of the electronic file to be signed, synthesizing the signature appearance with the electronic file to be signed according to the encapsulation structure of the corresponding layout document format, and forming an electronic signature synthesis file.

[0006] Further preferably, the synthetic file for forming the electronic signature includes: using signature metadata to generate a signature image to display the handwriting of the signature appearance, encrypting and protecting the signature metadata, synthesizing the electronic signature and the electronic file according to the structural model of the electronic signature synthetic file, adding original text attributes and calculating the original text summary in accordance with the digital signature specification of the electronic archive to form signature information data, DER-encoding the signature information data and performing digital signature operation to obtain a signature value, adding a trusted timestamp result, a signature algorithm identifier, and a signature public key information to the signature value to assemble it into electronic signature data, and writing the electronic signature data into the electronic file after encoding it according to the DER to form the electronic signature synthetic file.

[0007] Further preferably, the cryptographic layer performs secure processing on the biometric data and auxiliary evidence data, including constructing the key MK required for the block cipher algorithm according to the data length of the file to be signed, constructing a public-private key pair pk, sk for the cryptographic algorithm according to the biometric data, encrypting the key MK with the public key pk to obtain a ciphertext C; then using the key MK to perform encryption calculations on each element in the signature data set QS and the auxiliary data set FZ respectively to obtain ciphertext value sets C1 and C2; combining the obtained ciphertext values ​​C, C1, C2 and the business data set YW into extended data, and storing them in the security domain.

[0008] Further preferably, the formation of the electronic signature composite file includes merging the extended data with the electronic file to be signed, the signature appearance, and the tail of the format file to be encapsulated to form the original text, calculating the hash value of the original text, and digitally signing the hash value to obtain the signature value S1, placing the signature value S1 in front of the file tail of the original text to obtain the electronic signature fusion data, and placing the obtained electronic signature fusion data into a corresponding position according to the electronic file document format to obtain the electronic signature composite file.

[0009] The electronic document to be signed, biometric data, and supporting evidence data are integrated to obtain electronic signature fusion data, and the digital signature is timestamped.

[0010] Further preferably, the digital archive text file of the electronic signature synthesis file generates a result report of a text file in a universal format such as HTML, XML, RTF, TXT, DOC, CSV, PDF, and ODF, and the result report contains original audio files, image files, and video files in a universal format; the signature image generated in the handwritten electronic signature file is in a lossless compressed image format with a transparent channel, and the handwriting part of the image is located in the center of the image; after the handwritten electronic signature image is generated, data anti-counterfeiting steganography is performed on the image, and the steganographic data includes but is not limited to: the electronic signature collection time, the electronic archive metadata of the signature, and the hash value.

[0011] Further preferably, the signature data in the handwritten electronic signature file includes: signature information data, signature algorithm identifier, signature public key information, signature value, and timestamp, wherein the signature information data includes: signature metadata, auxiliary evidence data, electronic file data, and current signature time; the data structure of the signature metadata information is:

[0012] HandwrittenInfo (handwritten information)::=SEQUENCE (sequence) {

[0013] encryptAlg (encryption algorithm)OBJECTIDENTIFIER (object identifier)--encryption algorithm identifierhandwrittenData (hand-signed data)OCTETSTRING (eight-bit string),--encrypted signature metadataencryptInfo (encrypted information)OCTETSTRING (eight-bit string),--encrypted informationhandwrittenPicture (hand-signed picture)PictureInfo (picture information),--electronic signature picture information

[0014] };

[0015] The electronic archive data structure is:

[0016] DocInfo (document information)::=SEQUENCE (sequence) {docHash (document summary)

[0017] OCTETSTRING (octet string), -- original text summary

[0018] docProperty (document property) UTF8String (UTF8 string), --original property signaturePosition (signature position) SignaturePosition (signature position) --signature position

[0019] };

[0020] The data structure of electronic signature image information is:

[0021] PictureInfo (picture information):: = SEQUENCE (sequence) {

[0022] type(type)UTF8String(UTF8 string),--electronic signature image typedata(data)OCTETSTRING(octet string),--electronic signature image datawidth(width)INTEGER(integer),--electronic signature image display width

[0023] height (height) INTEGER (integer), -- the height of the electronic signature image display

[0024] };

[0025] Among them, the original text summary docHash is the signature original text hash value of the electronic file to be signed calculated according to the digital signature specification of the electronic archive. The algorithm used for the original text hash in the signing process should be consistent with the signature algorithm, and the timestamp is stored in DER encoding.

[0026] It is further preferred that, during the collection and storage of handwritten electronic signature data, a domestic cryptographic algorithm is used to encrypt the signer's identity information and the signer's signing process information. The digital signature object identifier OID based on the SM2 algorithm and the SM3 algorithm is 1.2.156.10197.1.501, and the digital signature OID based on the SM9 algorithm and the SM3 algorithm is 1.2.156.10197.1.302.1.1; the signer's digital certificate is stored in the DER encoding format according to the distinguishable encoding rule; when the SM2 cryptographic algorithm is used, the public key information is stored in the DER encoding of the digital certificate; when the SM9 cryptographic algorithm is used, the public key information stores the identification cryptographic public key information structure, which consists of the user identifier and the signature master public key. When block encryption is used, the encryption information encryptInfo stores the block cipher key index; when the IBC cipher is used, encryptInfo stores the encryption master public key, and the user identifier should be consistent with the user identifier in the signature public key information.

[0027] Further preferably, an OFD format electronic signature synthesis file structure model is constructed according to the GB / T33190-2016 standard, including an entry file of an OFD digital document and an OFD document. An OFD format file can contain multiple OFD documents, and the documents include: a digital signature folder, a page folder, and a resource folder; the digital signature folder includes: a digital signature, a digital signature entry file, and the digital signature includes: a digital signature description file and digital signature data; the digital signature folder is used to store the digital signature data of the current document, and can be associated with one or more signature appearances; the digital signature entry file is used to index the digital signature in the current document; the digital signature description file is used to describe the file scope protected by the digital signature, the signing time, the page location where the signature appearance is displayed, and the location of the digital signature data file used.

[0028] Further preferably, a structural model of an electronic signature composite file in PDF format is constructed in accordance with the GB / T 23286.3-2021 standard, including: document metadata, document root directory, wherein the document root directory is the document entry object, and the form tree of the document root directory includes a digital signature, and the digital signature includes: signature appearance and digital signature data; the digital signature is determined according to the form item whose form type is a digital signature, and how the signature appearance displays the electronic signature image on the page is determined.

[0029] It is further preferred that a structural model of an electronic signature composite file in HTML format is constructed according to the GB / T 42146-2022 standard, and a web page electronic file package is composed of a web page electronic file entity, a web page electronic file metadata, a package element description information, and an electronic signature, wherein the package objects include: web page electronic file entities in HTML, OFD, PDF, and WARC formats; the electronic signature is for storing electronic signature structure data, including: a signature object, an electronic signature block, and a locked signature block.

[0030] According to the second aspect of the present invention, a system for synthesizing handwritten electronic signature files is proposed, wherein a handwritten electronic signature device obtains biometric data and supporting evidence data during the electronic signature signing process, and the cryptographic layer securely processes the biometric data and supporting evidence data and stores them in a secure domain; a signature appearance is generated based on the electronic signature biometrics and stored in a display domain; a handwritten electronic signature file synthesis structure model is constructed based on the structure of the electronic file to be signed, and based on the structure model of the electronic signature synthesis file, the signature data and signature appearance are synthesized according to the encapsulation structure of the corresponding layout document format of the electronic file to be signed to form an electronic signature synthesis file.

[0031] Further preferably, the construction of a handwritten electronic signature file synthesis structure model based on the structure of the electronic file to be signed includes constructing an OFD format electronic signature synthesis file structure model according to the GB / T 33190-2016 standard; constructing a PDF format electronic signature synthesis file structure model according to the GB / T23286.3-2021 standard; and constructing an HTML format electronic signature synthesis file structure model according to the GB / T 42146-2022 standard.

[0032] Further preferably, the OFD format electronic signature synthesis file structure model includes an entry file of an OFD digital document and an OFD document. An OFD format file can contain multiple OFD documents, and the documents include: a digital signature folder, a page folder, and a resource folder; the digital signature folder includes: a digital signature, a digital signature entry file, and the digital signature includes: a digital signature description file and digital signature data; the digital signature folder is used to store the digital signature data of the current document and can be associated with one or more signature appearances; the digital signature entry file is used to index the digital signature in the current document; the digital signature description file is used to describe the file scope protected by the digital signature, the signing time, the page location where the signature appearance is displayed, and the location of the digital signature data file used.

[0033] Further preferably, the PDF format electronic signature synthesis file structure model includes document metadata and document root directory, wherein the document root directory is a document entry object, and the form tree of the document root directory includes a digital signature, and the digital signature includes: signature appearance and digital signature data; the digital signature is determined according to the form item whose form type is a digital signature, and how the signature appearance displays the electronic signature image on the page is determined.

[0034] Further preferably, the HTML format electronic signature composite file structure model includes a web page electronic file package consisting of a web page electronic file entity, a web page electronic file metadata, a package element description information, and an electronic signature, wherein the package object includes: a web page electronic file entity in HTML, OFD, PDF, and WARC formats; the electronic signature is for storing electronic signature structure data, including: a signature object, an electronic signature block, and a locked signature block.

[0035] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor; and a memory storing a program, wherein the program comprises instructions, which when executed by the processor enable the processor to execute the method for synthesizing a handwritten electronic signature file as described above.

[0036] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method for synthesizing a handwritten electronic signature file as described above.

[0037] The present invention deeply integrates the electronic signature signatory's biometric data and the auxiliary evidence data in the signing process into the signed synthetic electronic signature file, and constructs a structural model of the corresponding electronic signature synthesis file according to the layout structure of different electronic files. The electronic signature data that deeply integrates the electronic signature biometric data, auxiliary evidence data, and electronic file information is synthesized according to the encapsulation structure of the corresponding layout document format to generate an electronic signature synthesis file.

[0038] Therefore, the handwritten electronic signature made by a natural person in accordance with the above standard technical specifications can be authenticated for authenticity and validity of the electronic document and electronic signature handwriting in a judicial authentication environment based on the relevant specifications, methods and tools for electronic data authentication, to ensure that the electronic document and electronic signature handwriting data are authentic and valid. On this basis, it can be realized to authenticate whether there is a direct relationship between the electronic signature and the natural person, ultimately meeting the needs of judicial practice. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0040] Figure 1 Schematic diagram of the synthesis structure of a handwritten electronic signature file in an exemplary embodiment of the present application;

[0041] Figure 2 A structural model diagram of an OFD format electronic signature composite file in an exemplary embodiment of the present application;

[0042] Figure 3 A structural model diagram of a PDF format electronically signed composite file in this exemplary embodiment;

[0043] Figure 4 A structural model diagram of the electronic signature synthesis file in HTML format in this exemplary embodiment;

[0044] Figure 5 is a structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present application. DETAILED DESCRIPTION

[0045] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.

[0046] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0047] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0048] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0049] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0050] In the existing electronic document synthesis technology, dynamic writing features are difficult to display in the electronic signature image. Therefore, directly using the original electronic signature image as the display appearance of the synthesized electronic file has the risk of leaking personal privacy information. There is a risk of information leakage and the image may be used maliciously by others in multiple links of verifying the authenticity and legality of the document, which poses a security problem. In addition, the signature image in the electronic signature file does not contain the signatory's own characteristic information and the auxiliary information associated with the signature. It is difficult to perform the signatory's handwriting identification like a paper document during the identification, and determine the specific relationship between the electronic signature file and the natural signatory. Therefore, the present invention generates a handwritten electronic signature synthesis file.

[0051] A handwritten electronic signature is a handwritten signature on a data message, where the data message contains or is accompanied by data in electronic form that is used to identify the electronic signatory and indicate his or her approval of the content of the message.

[0052] Handwritten electronic signature device: a device used to write and collect handwritten electronic signatures, including but not limited to mobile terminals, tablet computers, pen-based computing devices or advanced pen systems.

[0053] Electronic signature metadata includes, but is not limited to, signature details, signature carrier information, geographic location information, signature scene details, time information, handwritten electronic signature device information, handwritten electronic signature program information, digital archive information, and other electronic data sets collected when a handwritten electronic signature is signed.

[0054] Handwritten electronic signature program, including but not limited to native handwritten electronic signature program running based on device driver and operating system, web handwritten electronic signature program running based on browser kernel, is used to collect electronic signature metadata.

[0055] Handwritten electronic signature writing tool handwritten electronic writing tool, a tool used by the signatory to sign a handwritten electronic signature to generate signature handwriting.

[0056] Digital archive refers to original records generated and stored in digital form and with preservation value, including related information and electronic archives generated by the digitization of traditional carrier archives, including but not limited to PDF format files, OFD format files and HTML web page files.

[0057] Signing, the signatory drives the handwritten electronic signature device through the handwritten electronic signature program to complete the process of handwritten electronic signature, including the activities of using the electronic signature digital file to record and confirm, and the activities of using the electronic signature for identity recognition and authentication.

[0058] OFD: open fixed layout document, a layout document format that is independent of software, hardware, operating system, and output device.

[0059] PDF: Portable document format, a file format for exchanging files in a way that is independent of applications, operating systems, and hardware.

[0060] HTML: HyperText Markup Language, including a series of tags, through which the document format on the Internet can be unified, so that scattered Internet resources can be connected into a logical whole. HTML text is a descriptive text composed of HTML commands, which can describe text, graphics, animation, sound, table, link, etc.

[0061] PNG: Portable Network Graphics, a bitmap format that uses a lossless compression algorithm and supports three color schemes: index, grayscale, and RGB, as well as alpha channels and other features.

[0062] XML: Extensible Markup Language. It can be used to mark data and define data types. It is a source language that allows users to define their own markup languages.

[0063] WARC: Web Archive (WebARChive document).

[0064] A file format used to store web crawled content. It can be used to store content such as web pages, files, images, videos, and metadata of other Internet resources.

[0065] In the process of collecting and storing handwritten electronic signatures, the signatory uses a handwritten electronic signature device (such as a signature pad or mobile phone) to sign. The electronic signature metadata (including signature details, device information, etc.) is collected through the handwritten electronic signature program and securely transmitted to the handwritten electronic signature storage system to ensure the authenticity and integrity of the signature metadata.

[0066] The synthetic structure of the handwritten electronic signature file. The collected handwritten electronic signature data and the original electronic file are encapsulated into the data package in an encrypted manner according to the encapsulation structure and encapsulation method of the document to be signed, completing the synthesis of the handwritten electronic signature file to ensure the authenticity and integrity of the electronic file.

[0067] In the process of handwritten electronic signature on electronic documents, the signer confirms the electronic document through the handwritten electronic signature. This not only achieves the same visual effect as the traditional paper document signing operation, but also saves the biometric features of the handwritten electronic signature in the electronic file, ensuring the non-repudiation of the signature behavior.

[0068] The synthesis process of handwritten electronic signature files includes three stages: data input, data processing and data synthesis. Data input includes collecting biometric features of handwritten electronic signatures, additional evidence data, etc.; secondly, the input data is processed by a security mechanism and stored in the security domain, and the signature appearance image generated by the biometric features is stored in the display domain; finally, the electronic file format file to be signed (such as OFD, PDF, HTML, etc.), the electronic signature data and the electronic signature appearance are synthesized.

[0069] like Figure 1 The figure shows a schematic diagram of the synthesis structure of the handwritten electronic signature file in the exemplary embodiment of the present application. The handwritten electronic signature device obtains the biometrics and supporting data of the signatory during the electronic signature signing process using a handwritten electronic signature writing tool, securely processes the biometrics and supporting data through the cryptographic layer and stores them in the security domain, generates a signature appearance image based on the electronic signature biometrics and stores it in the display domain, and synthesizes the signature appearance and the original electronic file into a digital file of the format file according to the encapsulation structure of the corresponding document format. Among them, the corresponding document formats include OFD, PDF, HTML and other documents. The supporting data includes the handwritten electronic signature device data and the signatory's identity information.

[0070] Depending on the device type of the electronic signature device, the following data is collected as device data: For signature pad devices, the data to be collected includes but is not limited to: device brand and model, device serial number, acquisition resolution and line density, operating system type and version number, device driver version, device pressure sensitivity level, and device sampling frequency.

[0071] For mobile terminals, etc., the data to be collected include but are not limited to: device brand and model, device unique identification (such as device serial number, IMEI, etc.), device screen display resolution and DPI, operating system type and version number.

[0072] For tablet computers, the data that should be collected includes but is not limited to: device brand and model, device serial number, browser identifier used by the device (user agent UserAgent), screen information (screen width, height, visible area size), and browser fingerprint.

[0073] The collected signatory's identity information shall include but not be limited to: the signatory's name; the identity identification type and identity identification number, as shown in Table 1, which is a comparison table of identity identification types and identity identification numbers.

[0074] Table 1: Identification Types and Identification Numbers

[0075] Identifier Type Identification Number Remark A. ID number 111 B. ID Number 414 C. ID number 553 D. ID number 511 E-ID Number 516 F ID number 552 G. ID number 281 H. ID number 282 I. ID Number 283 J ID Number 285 K ID number 286 L ID number 287 M ID number 288 N ID number 289 O ID number 290 Other valid ID documents 990 Custom identity types 1001-1999 Business Department Definition

[0076] During the collection process, the signatory's identity identifier is uniquely bound to the signatory, and the authenticity and validity of the signatory's identity is confirmed.

[0077] The data structure of the auxiliary evidence data includes: a digital sequence consisting of the auxiliary evidence object identification type, importance, and auxiliary evidence data string. Specifically,

[0078] EvidenceData::=SEQUENCE{typeOBJECTIDENTIFIER,--the type of auxiliary evidence object identifier, importanceINTEGER,--the degree of importance, dataOCTETSTRING,--the auxiliary evidence data string}.

[0079] Wherein, type: auxiliary evidence object identification type, auxiliary evidence types include but are not limited to the original text, hash value, block hash, etc. of audio; the original text, hash value, block hash, etc. of video; the original text, hash value, block hash, etc. of audio and video; the original text of pictures;

[0080] importance: The importance of auxiliary evidence includes: unimportant, important, very important, and particularly important. The importance of key auxiliary evidence is marked from 1 to 4.

[0081] data: auxiliary evidence data. Depending on the type, the auxiliary evidence data can be the auxiliary evidence original text, the auxiliary evidence original text hash value, or the auxiliary evidence blockchain node value.

[0082] The data structure of the supporting evidence data list is defined as: SupportingEvidence::=SEQUENCEofEvidenceData.

[0083] Electronic signature biometric data includes handwritten electronic signature data. For handwritten electronic signature data, data collection should be performed according to the following steps: set the effective collection range of the device screen, and collect the original handwriting point data output by the device driver, including but not limited to: handwriting point horizontal and vertical coordinate data, handwriting point pressure data, handwriting point output time, handwriting point status, handwriting pen tilt angle, handwriting point valid status, horizontal and vertical coordinate effective range, handwriting point trigger type (the default is pen writing type). Table 2 shows the definition of handwriting point trigger type in the exemplary embodiment of the present application.

[0084] Table 2: Pen point trigger types

[0085]

[0086] Preprocessing of handwriting point data includes:

[0087] Additional record of handwriting point output time, record the timestamp of the current handwriting point collection time (unit: milliseconds); additional handwriting point status, as shown in Table 3, which is the handwriting point status and value in the exemplary embodiment of the present application; additional processing of the valid status of handwriting points that exceed the valid collection range.

[0088] Table 3: Status and value of handwriting points

[0089] Pen point status name The value of the pen point status Start writing 0 Stroke 1 Lift the pen 2 Hanging pen 3

[0090] A structural model for synthesizing a handwritten electronic signature file is constructed according to the document format of the electronic file to be synthesized, including: a structural model for an electronic signature synthesis file in OFD format, a structure for an electronic signature synthesis file in PDF format, and a structural model for an electronic signature synthesis file in HTML format.

[0091] like Figure 2 The structure model diagram of the OFD format electronic signature synthesis file in the exemplary embodiment of the present application is shown. The structure model of the OFD format electronic signature synthesis file is constructed according to GB / T33190-2016, including the entry file and document of the OFD digital document. The document includes: digital signature folder, page folder, resource folder; the digital signature folder includes: digital signature, digital signature entry file, and the digital signature includes: digital signature description file and digital signature data.

[0092] Among them, the entry file is the OFD parsing entry file, which defines the file version, metadata, digital signature entry file, document entry file and other data; one OFD file can contain multiple OFD documents, and each OFD document contains a document entry file, a page folder, a digital signature folder, a resource folder, a public resource entry file, a document resource entry file, etc. Among them, the page folder stores the content data related to the OFD document page; the resource folder stores the resources required for the OFD page, including pictures, text, audio and video, color definitions, etc.; the digital signature folder is used to store the digital signature data of the current document, which can be associated with one or more signature appearances; the digital signature entry file is used to index the digital signature in the current document; the digital signature description file is used to describe the file scope protected by the digital signature, the signing time, the page location displayed by the signature appearance, the location of the digital signature data file used, etc.; the digital signature data stores the electronic signature structure data or other standardized digital signature data.

[0093] The structural model of the electronic signature synthesis file in PDF format is constructed according to GB / T23286.3-2021, such as Figure 3 Shown is a structural model diagram of a PDF format electronically signed composite file in this exemplary embodiment.

[0094] The structure of the PDF format electronic signature composite file is that the PDF digital document includes: document metadata, document root directory, where the document root directory includes: form tree, page tree, directory tree. The form tree includes digital signatures and other forms, and the digital signature includes: signature appearance and digital signature data; the page tree contains pages.

[0095] Document metadata: stores metadata used for archiving, including document creation time, modification time, author, subject, etc.; the document root directory is the document entry object, which defines entry objects such as form tree, page tree, directory tree, etc.; the page tree is composed of a collection of PDF document pages; the directory tree is composed of a PDF document page content directory structure; the form tree is composed of a collection of PDF forms; forms of other form types except digital signatures, such as buttons, input boxes, options, etc. constitute other forms; the digital signature is determined by the form item whose form type is digital signature, and the signature appearance is determined by how the electronic signature image is displayed on the page; the digital signature data of objects that can store electronic signature structure data or other standardized digital signature data.

[0096] The structural model of HTML format electronic signature synthesis file is constructed according to GB / T 42146-2022, such as Figure 4 The structure model diagram of the electronic signature composite file in HTML format in this exemplary embodiment is shown. Based on the HTML webpage electronic file packaging specification, the webpage electronic file packaging package is composed of the webpage electronic file entity, webpage electronic file metadata, packaging package element description information, and electronic signature.

[0097] When an electronic signature is required on a web page, the structural model of the electronic signature synthesis file in HTML format is called to synthesize the layout electronic file and the electronic signature data.

[0098] The webpage electronic file entity is the main object of encapsulation, which can include electronic files in other formats, such as HTML, OFD, PDF, WARC, etc. When a certain format of electronic files in the webpage electronic file entity needs to be signed, the structural model of the corresponding electronic signature synthesis file is called to complete the synthesis of the electronic signature data and the file.

[0099] This embodiment is applicable to web electronic file entities in HTML format. The metadata of web electronic files is formed in the process of web electronic file management, and the metadata of web electronic files is recorded in accordance with the requirements of GB / T 42147-2022. The package element description information includes package creation information, package modification information, packaging method, package format, and web electronic file relationship information. The electronic signature is the storage of electronic signature structure data or other standardized digital signature data. Among them, the electronic signature located in the electronic file package includes: signature object, electronic signature block, and locked signature block.

[0100] Synthesis of handwritten electronic signature files. Use signature metadata to generate signature images for handwriting display in electronic files; encrypt and protect signature metadata, and the encryption algorithm can use national secret algorithms such as SM2 algorithm, SM4 algorithm, SM9 algorithm, etc.; synthesize electronic signatures and electronic files according to the structural model of electronic signature synthesis files, including: synthesizing electronic signature synthesis files in OFD format according to GB / T33190-2016, synthesizing electronic signature synthesis files in PDF format according to GB / T23286.3-2021, and synthesizing electronic signature synthesis files in HTML format according to GB / T42146-2022. According to the digital signature specification of electronic archives, the original text attributes are added and the original text summary is calculated. The calculation result is composed of signature information data. After the signature information data is DER-encoded, a digital signature operation is performed to obtain a signature value. A trusted timestamp operation is performed on the signature value to obtain a trusted timestamp. The calculation result, signature algorithm identifier, and signature public key information are assembled into electronic signature data. According to the digital signature specification of electronic archives, the electronic signature data is DER-encoded and written into the electronic file to form a composite file of the electronic signature.

[0101] The following is a detailed description of the solution for integrating electronic signature data with formatted electronic files using a specific example.

[0102] After the user handles the business and signs, the signature data QS, auxiliary data FZ and business data YW are obtained to obtain the signature data set Auxiliary Data Collection and business data collection Among them, v1 represents the size of the signature data set, v2 represents the size of the auxiliary data set, and v3 represents the size of the business data set. The elements in the set represent the original handwriting biometric data of the electronic signature, the signature device information feature data, and the business related information. For example, [ Indicates the horizontal and vertical coordinates of the handwriting point of the signatory. Indicates the pressure of the handwriting point. Indicates the signatory's ID number. Indicates the signing device type, Indicates the MAC address of the signing device. Indicates the IP address of the signing device. Indicates the business number. Indicates the business name, Indicates the name of an electronic file, etc.

[0103] Among them, the metadata items in the signature data set QS include: horizontal and vertical coordinates of the signature handwriting point, handwriting point pressure, ..., signature timestamp, signer's name, signer's ID type, ID number; auxiliary data FZ includes: signing device type, MAC address..., IP address, on-site video information; business data YW includes: business number, business name..., acceptance agency, business type, file_id, file name.

[0104] The business system constructs the hash function h required for the cryptographic hash algorithm. The hash function can be constructed according to the length of the signature data, auxiliary data and business data, and then the hash function h is used to perform hash calculations on each element in the signature data set QS and the auxiliary data set FZ to obtain the hash value sets hash1 and hash2, and upload them to the evidence storage center.

[0105] Use the hash function h to sign each data in the data set QS Calculate its hash value and get the signed data set hash hash1.

[0106]

[0107] in, Representation data The hash value calculated by the hash function h, i = {1, ..., v1}.

[0108] The business system then uses the hash function h to hash each data in the auxiliary data set FZ Calculate its hash value and get the auxiliary data set hash hash2.

[0109]

[0110] in, Representation data The hash value calculated by the hash function h, j = {1, ..., v2}.

[0111] The business system uploads the hash value sets hash1 and hash2 to the evidence storage center for storage.

[0112] The key MK required by the block cipher algorithm is constructed according to the length of the file to be signed. Then, the public and private key pair pk, sk used by the signer for the cipher algorithm is constructed according to the ID number of the signer in the signed data. In order to ensure the security of the key MK, the public key pk is used to encrypt the key MK to obtain the ciphertext C.

[0113] The key MK is then used to encrypt each element in the signature data set QS and the auxiliary data set FZ to obtain the ciphertext value sets C1 and C2.

[0114] Use encryption algorithm to sign each data in the data set QS Encrypt and obtain the ciphertext value C1: Use the encryption algorithm to encrypt each data in the auxiliary data set FZ Encryption is performed to obtain a ciphertext value C2: the obtained ciphertext values ​​C, C1, C2 and the business data set YW are combined into extended data, so as to integrate the data that can prove the authenticity of the electronic file into the electronic file.

[0115] The extended data is combined with the file to be signed, the signature appearance, and the format file tail to form the original text, and the original text and the signature data are fused, that is, the signature data is placed in front of the file tail in the original text, and the data fusion is completed to obtain the file after data fusion, whose data structure includes: the file to be signed, the signature appearance, the extended data, the signature data and the file tail.

[0116] The ciphertext values ​​C, C1, C2 and the business data set YW are recorded as extended data KZ, which can be in the form of KZ = C||C1||C2||YW. The document to be signed, the signature appearance and the extended data are recorded as M 11 , record the end of the file as M 12 , merge M 11 、M 12 Get the original text M. Calculate the hash value of the original text, and digitally sign the hash value to obtain the signature value S1, and place the signature value S1 in the M of the original text M. 11 and M 12 The data fusion of the electronic signature is completed, and the obtained electronic signature fusion data is placed in the corresponding position of the document according to the electronic file format to obtain the electronic signature synthesis file that integrates the electronic signature. The signature value of the digital signature is stamped with a timestamp to provide support for the subsequent forensic identification of the signature time.

[0117] The above method is used to integrate the document to be signed, the signature data, the auxiliary data and the business data. The encryption and integration of the signature data and the auxiliary data is to protect the personal privacy of the signatory and facilitate the subsequent verification of the electronic document.

[0118] The synthesized handwritten electronic signature file generates a result report of a text file in the required format. The text file uses HTML, XML, RTF, TXT, DOC (DOCX), CSV, PDF and ODF as common formats; the result report includes audio files, image files and video files in original formats. For audio files, image files and video files in non-common formats, the result report converts the original formats into audio files, image files and video files in common formats, such as WAV and MP3 as common formats for audio files, JPEG (JPG) and PNG as common formats for image files, and MP4, AVI and MOV as common formats for video files.

[0119] The signature image generated in the handwritten electronic signature file is a lossless compressed image format with a transparent channel. The handwriting part in the image should be located in the center of the image. The blank space between the edge of the handwriting and the surrounding area should not exceed 5 pixels. When the handwriting is displayed on a 72DPI display device, the handwriting should remain clear and complete. The handwriting image should be generated in accordance with the paper writing habits, and the strokes should have characteristics such as pauses, pen tips, and smoothness. After the handwritten electronic signature image is generated, the image is steganographically protected. The image data steganography method includes but is not limited to: the least significant bit transform is used in the spatial domain, and the discrete cosine transform, discrete wavelet transform, and discrete Fourier transform are used in the transform domain. The image steganographic data includes but is not limited to: the electronic signature collection time, the electronic file metadata of the signature, the hash value, etc. If the image is steganographically recorded with steganographic data, the verification process should verify the steganographic data.

[0120] Extract the electronic signature data from the electronic signature composite file and verify the integrity of the electronic signature data format. Including,

[0121] The validity of the timestamp and the data it protects: extract the timestamp from the electronic signature data and verify the validity of the timestamp; extract the signature value from the electronic signature data and verify whether the signature is the data protected by the timestamp; perform a signature verification operation on the signature value and the timestamp to verify whether the signature is consistent with the data protected by the timestamp.

[0122] Verify the validity of the signature information data, extract the public key information, signature algorithm identifier and signature information data from the electronic signature, verify whether the signature information data is correct, and verify whether the signature information data is correct through the signature algorithm used in the signature algorithm identifier.

[0123] Extract the electronic file from the electronically signed composite file and verify the matching between the electronic file content and the signature information data. The verification content includes:

[0124] Verify whether the electronic signature image is consistent; verify whether the original text summary in the electronic file is consistent with the original text summary recorded in the electronic signature data; verify whether the signature position in the electronic file is consistent with the signature position recorded in the electronic signature data; verify the electronic signature handwriting in accordance with the Technical Specifications for Handwritten Electronic Signature Handwriting Identification.

[0125] The electronic signature data in the handwritten electronic signature file consists of signature information, signature algorithm identifier, signature public key information, signature value, timestamp, etc. The electronic signature data structure is shown in Table 4.

[0126] Table 4 Electronic signature data structure

[0127] Signature Information Signature algorithm identifier Signature public key information Signature value Timestamp

[0128] Specifically expressed as:

[0129] Signature::=SEQUENCE{

[0130] toSignToSign,--Signature information

[0131] signatureAlgOBJECTIDENTIFIER, --Signature algorithm identifier

[0132] publicKeyInfoPublicKeyInfo, --Signature public key information

[0133] signature OCTECTSTRING, --signature value

[0134] timestamp OCTECTSTRING, --timestamp

[0135] }

[0136] Among them, the signature information data ToSign includes: signature metadata, supporting evidence data, electronic file data, signature time, etc. The signature information data structure is shown in Table 5.

[0137] Table 5 Signature information data structure

[0138] Signature metadata Supporting data Electronic file data Signing time

[0139] The specific expression can be:

[0140] ToSign::=SEQUENCE{

[0141] versionINTEGER,--data version number, fixed to "1"

[0142] handwrittenInfoHandwrittenInfo,--signature metadata information

[0143] supportingEvidenceSupportingEvidence,--List of supporting evidence data

[0144] docInfo DocInfo, -- electronic file data information

[0145] signatureTime GeneralizedTime,--Signature time

[0146] }

[0147] version: represents the data version number, the current version is fixed at "1"; the signature metadata information is handwrittenInfo: the processed electronic signature data; supportingEvidence: the auxiliary data list; the electronic file data information is docInfo: the electronic file related data to be protected; signatureTime: the time of this signature.

[0148] The data structure of the electronic signature metadata information is:

[0149] HandwrittenInfo::=SEQUENCE{

[0150] encryptAlg OBJECTIDENTIFIER--encryption algorithm identifier

[0151] handwrittenDataOCTETSTRING, -- encrypted signature metadata

[0152] encryptInfo OCTETSTRING, --encryption information

[0153] handwrittenPicturePictureInfo, --electronic signature picture information

[0154] }

[0155] Among them, the encryption algorithm identifier encryptAlg is combined with the encryption information data encryptInfo to complete the encryption and decryption operations of the signature metadata; the encrypted electronic signature metadata handwrittenData, the electronic signature metadata is collected in accordance with the "Technical Specifications for Data Collection and Storage of Electronic Signatures"; encryptInfo encrypted information data: the electronic signature system can complete the decryption of handwrittenData data based on the correlation between the acquired signature data and the encrypted information data. When using block encryption, encryptInfo should store the block cipher key index; when using IBC cipher, encryptInfo should store the encryption master public key, and the user ID should be consistent with the user ID in the signature public key information;

[0156] Use signature metadata to generate an electronic signature image handwrittenPicture,

[0157] The electronic signature image data structure includes:

[0158] PictureInfo::=SEQUENCE{

[0159] type UTF8String,--Electronic signature image type

[0160] data OCTET STRING,--Electronic signature image data

[0161] width INTEGER,--electronic signature image display width

[0162] height INTEGER,--electronic signature image display height

[0163] }

[0164] The electronic archive information data structure includes:

[0165] DocInfo::=SEQUENCE{

[0166] docHash OCTET STRING, --original summary

[0167] docProperty UTF8String, --original text properties

[0168] signaturePosition SignaturePosition--Signature position

[0169] }

[0170] Among them, the original text summary docHash: is the signature original text hash value of the electronic file to be signed, and the signature original text hash value is calculated according to the digital signature specification of the electronic file. For example, the original text hash value of the OFD file is calculated with reference to the digital signature in GB / T33190-2016; docProperty: is the original text property, including but not limited to: docHash hash value original text range, electronic file original file hash value, document ID of the digital document; signature position signaturePosition: is the specific position where this signature should be displayed in the electronic file.

[0171] The signature location data structure is:

[0172] SignaturePosition::=SEQUENCE{

[0173] page INTEGER, --page number, the value range is 1 to ∞

[0174] x Real, -- the horizontal coordinate of the signature display, with the lower left corner of the page as the origin, in millimeters

[0175] y Real, --Signature display vertical coordinate, with the lower left corner of the page as the origin, unit: millimeters

[0176] width Real,--Signature display width, in millimeters

[0177] height Real,--Signature display height, in millimeters

[0178] }

[0179] Signature Time signatureTime: records the time when the signer completes the signature and confirms submission.

[0180] The collection and storage process of handwritten electronic signature data supports encryption to protect the data and uses domestic cryptographic algorithms to encrypt the data; this includes encryption of the signatory's identity information and encryption of the signatory's signature details information.

[0181] The signature algorithm identifier signatureAlg digital signature algorithm identifier shall comply with the provisions of GB / T 33560-2017. For example, the digital signature OID (object identifier) ​​based on the SM2 algorithm and SM3 algorithm is 1.2.156.10197.1.501, and the digital signature OID based on the SM9 algorithm and SM3 algorithm is 1.2.156.10197.1.302.1.1.

[0182] Signature public key information data structure, the data structure of the public key when the electronic signature data is digitally signed:

[0183] PublicKeyInfo::=SEQUENCE{

[0184] type INTEGER--public key type, 0 is the certificate type, 1 is the identification password type

[0185] key CHOICE{

[0186] Cert,--Digital Certificate

[0187] IBCPublicKeyInfo--identify password public key information

[0188] }

[0189] }

[0190] The digital certificate is:

[0191] Cert::=OCTETSTRING

[0192] The signer's digital certificate Cert should comply with the definition of Certificate in GB / T20518-2018 and be stored in the DER encoding format. The DER encoding rule is a rule of ASN.1 that is used to serialize data into a byte stream for transmission or storage on the network. DER encoding is a binary format that is more compact and efficient than other text formats (such as JSON and XML).

[0193] The identification password public key information data structure is:

[0194] IBCPublicKeyInfo::=SEQUENCE{

[0195] identifyOCTETSTRING,--User identification

[0196] masterPublicKeyOCTETSTRING,--signature master public key

[0197] }

[0198] Among them, when using the SM2 cryptographic algorithm, the public key information should be stored in the digital certificate and stored in DER encoding; when using the SM9 cryptographic algorithm, the public key information should be stored in the identification cryptographic public key information structure, which consists of the user identifier and the signature master public key.

[0199] The signature value signature is the result obtained by the signer digitally signing the signature information ToSign after encoding it in DER.

[0200] Among them, the algorithm used for hashing the original text in the signing process should be coordinated with the signature algorithm. For example, if the signature algorithm is SM2 or SM9, the hashing algorithm should adopt the SM3 algorithm; if the signature algorithm uses SM2, it should comply with the provisions of GB / T35276-2017; if the signature algorithm uses SM9, it should comply with the provisions of GB / T38635.2-2020.

[0201] The timestamp is the time of the signature value, which should comply with the timestamp format specified in GB / T20520-2006 and be stored in DER encoding.

[0202] When collecting and storing handwritten electronic signature data, the user's data should be protected. The protection measures include but are not limited to:

[0203] After obtaining the user's authorization and consent, save the handwritten electronic signature data; encrypt, store and display sensitive information such as the handwritten electronic signature data, the signatory's identity information data, and the signing time information data; use the national secret algorithm to desensitize or encrypt sensitive data such as the handwritten electronic signature data, the signatory's identity information data, and the signing time information data; select a security protocol (such as SSH, IPSec, TLS, etc.) to protect the transmitted data; allow external systems to set privacy, and protect the privacy they consider private according to the user's customized privacy. For important data, identification information and important business data, a certain strength of encryption algorithm or other effective measures should be used to encrypt the information; authenticate the sender and receiver, and use cryptographic technology to initialize the session verification before establishing a connection.

[0204] The handwritten electronic signature data collection and storage process establishes a trusted transmission path, including but not limited to: clarifying the categories and scope of information that can be transmitted; for sensitive data, such as electronic signature data, signatory identity information data, signing time information data, etc., adopt encryption transmission strategies and procedures; data summary, signature, authentication and other cryptographic algorithms adopt summary, signature, authentication and other cryptographic algorithms and their combinations required by national regulations or national mandatory standards.

[0205] The exemplary embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present application when executed by the at least one processor.

[0206] The exemplary embodiment of the present application further provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present application.

[0207] The exemplary embodiments of the present application further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, it is used to enable the computer to execute the method according to the embodiment of the present application.

[0208] refer to Figure 5 , the structural block diagram of the electronic device 300 that can be used as the server or client of the present application will now be described, which is an example of a hardware device that can be applied to various aspects of the present application. The electronic device is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present application described and / or required herein.

[0209] like Figure 5 As shown, the electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0210] A plurality of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, an output unit 307, a storage unit 308, and a communication unit 309. The input unit 306 may be any type of device capable of inputting information to the electronic device 300, and the input unit 306 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 307 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 308 may include, but is not limited to, a disk, an optical disk. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0211] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above. For example, in some embodiments, the reconstruction and decomposition of the muscle movement trajectory redrawn according to the original trajectory of the signature stroke, and the decomposition of its logarithmic velocity curve, etc. can be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. In some embodiments, the computing unit 301 can be configured to execute the signature handwriting dynamic acquisition implementation method by any other appropriate means (e.g., by means of firmware).

[0212] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0213] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0214] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0215] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0216] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0217] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

Claims

1. A method for synthesizing a handwritten electronic signature document, characterized in that: The biometric data and supporting evidence data are obtained during the electronic signature process, and the cryptographic layer securely processes the biometric data and supporting evidence data and stores them in the security domain; the signature appearance is generated according to the electronic signature biometrics and stored in the display domain; a handwritten electronic signature file synthesis structure model is constructed according to the structure of the electronic file to be signed; based on the structural model of the electronic signature synthesis file, the signature data and signature appearance are synthesized according to the encapsulation structure of the corresponding layout document format of the electronic file to be signed, to form a digital archive of the electronic signature synthesis file.

2. The method according to claim 1, characterized in that The synthetic file for forming the electronic signature includes: using signature metadata to generate a signature image to display the handwriting of the signature appearance, adding original text attributes and calculating the original text summary according to the digital signature specification of the electronic file to form signature information data, DER encoding the signature information data to perform digital signature operation to obtain a signature value, adding a trusted timestamp result, a signature algorithm identifier, and signature public key information to the signature value to assemble it into electronic signature data, and writing the electronic signature data into an electronic file after encoding it according to DER to form an electronic signature synthetic file.

3. The method according to claim 1, characterized in that The cryptographic layer performs secure processing on biometric data and auxiliary evidence data, including constructing the key MK required for the block cipher algorithm according to the data length of the file to be signed, constructing a public-private key pair pk, sk for the cryptographic algorithm according to the biometric data, encrypting the key MK with the public key pk to obtain the ciphertext C; then using the key MK to perform encryption calculations on each element in the signature data set QS and the auxiliary data set FZ respectively to obtain the ciphertext value sets C1 and C2; combining the obtained ciphertext values ​​C, C1, C2 and the business data set YW into extended data and storing them in the security domain.

4. The method according to claim 3, characterized in that The formation of the electronic signature composite file includes merging the extended data with the electronic file to be signed, the signature appearance, and the tail of the format file to be encapsulated to form the original text, calculating the hash value of the original text, and digitally signing the hash value to obtain the signature value S1, placing the signature value S1 in front of the tail of the original text to obtain the electronic signature fusion data, and placing the obtained electronic signature fusion data in the corresponding position according to the electronic file document format to obtain the electronic signature composite file.

5. The method according to claim 1, characterized in that The digital archive text file of the electronic signature composite file generates a text file result report in the common format of HTML, XML, RTF, TXT, DOC, CSV, PDF, ODF, which contains the original audio file, image file and video file in the common format; The signature image generated in the handwritten electronic signature file is in a lossless compression image format with a transparent channel, and the handwriting part of the image is located in the center of the image; after the handwritten electronic signature image is generated, the image is subjected to data anti-counterfeiting steganography, and the image data steganography methods include but are not limited to: spatial domain and transform domain, and the steganographic data includes but is not limited to: electronic signature collection time, electronic file metadata of the signature, and hash value.

6. The method according to claim 2, characterized in that The signature data includes: signature information data, signature algorithm identifier, signature public key information, signature value, and timestamp, wherein the signature information data includes: signature metadata, supporting evidence data, electronic file data, and current signature time; the data structure of the signature metadata information is: HandwrittenInfo::=SEQUENCE{ encryptAlgOBJECTIDENTIFIER--encryption algorithm identifier handwrittenDataOCTETSTRING,--Encrypted signature metadata encryptInfoOCTETSTRING,--encryption information handwrittenPicturePictureInfo,--electronic signature picture information }; The electronic archive data structure is: DocInfo::=SEQUENCE{ docHashOCTETSTRING,--Original Abstract docPropertyUTF8String,--original text properties signaturePositionSignaturePosition--Signature position }; The data structure of electronic signature image information is: PictureInfo::=SEQUENCE{ typeUTF8String,--Electronic signature image type dataOCTETSTRING,--Electronic signature image data widthINTEGER,--electronic signature image display width heightINTEGER,--electronic signature image display height }; Among them, the original text summary docHash is the signature original text hash value of the electronic file to be signed calculated according to the digital signature specification of the electronic archive. The algorithm used for the original text hash in the signing process should be consistent with the signature algorithm, and the timestamp is stored in DER encoding.

7. The method according to claim 1, characterized in that During the collection and storage of biometric data and auxiliary evidence data, domestic cryptographic algorithms are used to encrypt the signer's identity information and the signer's signing process information. The digital signature object identifier OID based on the SM2 algorithm and the SM3 algorithm is 1.2.156.10197.1.501, and the digital signature OID based on the SM9 algorithm and the SM3 algorithm is 1.2.156.10197.1.302.1.1; the signer's digital certificate is stored in the DER encoding format according to the distinguishable encoding rule; when using the SM2 cryptographic algorithm, the public key information is stored in the digital certificate in DER encoding; When using the SM9 cryptographic algorithm, the public key information stores the identification cipher public key information structure, which consists of the user ID and the signature master public key. When using block encryption, the encryption information encryptInfo stores the block cipher key index; when using the IBC cipher, encryptInfo stores the encryption master public key, and the user ID should be consistent with the user ID in the signature public key information.

8. The method according to any one of claims 1 to 7, characterized in that: According to GB / T 33190-2016 standard, an OFD format electronic signature synthesis file structure model is constructed, including the entry file of the OFD digital document and the OFD document. An OFD format file can contain multiple OFD documents. The documents include: digital signature folder, page folder, resource folder; the digital signature folder includes: digital signature, digital signature entry file, digital signature includes: digital signature description file and digital signature data; the digital signature folder is used to store the digital signature data of the current document, which can be associated with one or more signature appearances; the digital signature entry file is used to index the digital signature in the current document; the digital signature description file is used to describe the file scope protected by the digital signature, the signing time, the page position displayed by the signature appearance, and the position of the digital signature data file used.

9. The method according to any one of claims 1 to 7, characterized in that: The structural model of the electronic signature composite file in PDF format is constructed in accordance with the GB / T23286.3-2021 standard, including: document metadata, document root directory, where the document root directory is the document entry object, and the form tree of the document root directory includes the digital signature, and the digital signature includes: signature appearance and digital signature data; determine the digital signature according to the form item whose form type is digital signature, and determine how the signature appearance displays the electronic signature image on the page.

10. The method according to any one of claims 1 to 7, characterized in that: The structural model of the electronic signature composite file in HTML format is constructed in accordance with the GB / T42146-2022 standard. The web electronic file package consists of the web electronic file entity, web electronic file metadata, package element description information, and electronic signature. The package objects include: web electronic file entities in HTML, OFD, PDF, and WARC formats; the electronic signature is for storing electronic signature structure data, including: signature object, electronic signature block, and locked signature block.

11. A system for synthesizing handwritten electronic signature documents, characterized in that: The handwritten electronic signature device obtains the biometric data and supporting evidence data during the electronic signature signing process. The cryptographic layer securely processes the biometric data and supporting evidence data and stores them in the security domain; the signature appearance is generated according to the electronic signature biometrics and stored in the display domain; a handwritten electronic signature file synthesis structure model is constructed according to the structure of the electronic file to be signed; based on the structural model of the electronic signature synthesis file, the signature data and signature appearance are synthesized according to the encapsulation structure of the corresponding layout document format of the electronic file to be signed, forming a digital archive of the electronic signature synthesis file.

12. The system according to claim 11, characterized in that The method of constructing a handwritten electronic signature file synthesis structure model according to the structure of the electronic file to be signed includes constructing an OFD format electronic signature synthesis file structure model according to the GB / T 33190-2016 standard; constructing a PDF format electronic signature synthesis file structure model according to the GB / T 23286.3-2021 standard; and constructing an HTML format electronic signature synthesis file structure model according to the GB / T 42146-2022 standard.

13. The system according to claim 12, characterized in that The OFD format electronic signature synthesis file structure model includes an entry file of an OFD digital document and an OFD document. An OFD format file can contain multiple OFD documents, and the documents include: a digital signature folder, a page folder, and a resource folder; the digital signature folder includes: a digital signature, a digital signature entry file, and the digital signature includes: a digital signature description file and digital signature data; the digital signature folder is used to store the digital signature data of the current document and can be associated with one or more signature appearances; the digital signature entry file is used to index the digital signature in the current document; the digital signature description file is used to describe the file scope protected by the digital signature, the signing time, the page location where the signature appearance is displayed, and the location of the digital signature data file used.

14. The system according to claim 12, characterized in that The PDF format electronic signature synthesis file structure model includes document metadata and document root directory, wherein the document root directory is a document entry object, and the form tree of the document root directory includes a digital signature, and the digital signature includes: signature appearance and digital signature data; the digital signature is determined according to the form item whose form type is a digital signature, and how the signature appearance displays the electronic signature image on the page.

15. The system according to claim 12, characterized in that The HTML format electronic signature composite file structure model includes a web page electronic file package consisting of a web page electronic file entity, a web page electronic file metadata, package element description information, and an electronic signature, wherein the package object includes: a web page electronic file entity in HTML, OFD, PDF, and WARC formats; the electronic signature is for storing electronic signature structure data, including: a signature object, an electronic signature block, and a locked signature block.

16. An electronic device, characterized in that: include: processor; and a memory storing a program, wherein the program includes instructions, which, when executed by the processor, cause the processor to execute the method for synthesizing a handwritten electronic signature file according to any one of claims 1-10.

17. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: in, The computer instructions are used to enable the computer to execute the method for synthesizing a handwritten electronic signature file according to any one of claims 1-10.

Citation Information

Cited By

  • Device for signing and extracting original text based on large model generation result comparison

    CN120216658A