CN109462483B - Block chain based mail evidence storage method, device, equipment and storage medium - Google Patents

Block chain based mail evidence storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN109462483B
CN109462483B CN201811423003.0A CN201811423003A CN109462483B CN 109462483 B CN109462483 B CN 109462483B CN 201811423003 A CN201811423003 A CN 201811423003A CN 109462483 B CN109462483 B CN 109462483B
Authority
CN
China
Prior art keywords
block
notarization
hash value
mail
signature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811423003.0A
Other languages
Chinese (zh)
Other versions
CN109462483A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811423003.0A priority Critical patent/CN109462483B/en
Publication of CN109462483A publication Critical patent/CN109462483A/en
Application granted granted Critical
Publication of CN109462483B publication Critical patent/CN109462483B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3297Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Abstract

The present invention relates to the field of e-mail technologies, and in particular, to a method, an apparatus, a device, and a storage medium for storing a mail certificate based on a block chain. The method comprises the following steps: a client node receives a certificate storage request sent by a user and acquires corresponding electronic mail information from an electronic mail server; the client-side carries out uplink signature on the E-mail information, generates a certificate storage block and carries out uplink in a block chain network; and the notarization party node acquires the certificate storage block in the block chain network, performs notarization signature on the electronic mail information and the uplink signature information in the certificate storage block to generate a notarization block, and links the notarization block to the block chain where the certificate storage block is located. The invention introduces a decentralized block chain network, generates the mail content needing to be certified into a certification storing block for chain loading, adds a notarization link and the notarization block for chain loading together, and increases the notarization capability of the mail evidence.

Description

Block chain based mail evidence storage method, device, equipment and storage medium
Technical Field
The present invention relates to the field of electronic mail technologies, and in particular, to a method, an apparatus, a device, and a storage medium for storing a certificate of a mail based on a block chain.
Background
The generation, storage and transmission of electronic evidence must depend on a specific medium, and corresponding playing and displaying devices can be sensed by people from a storage state so as to be approved and trusted by a court. If the system environment on which the electronic evidence depends changes, the electronic evidence can not show or show wrong information, so that the proving strength of the electronic evidence is directly weakened, and the evidence is difficult to confirm. In addition, the data information of the registration, processing and transmission of the electronic data is stored in an electromagnetic concentration form, the data is easy to change artificially, and the modification of the data text is simple and not easy to leave traces. The destructive nature of electronic data may render electronic evidence unrepresentative of reality.
The e-mail is one of the e-evidences, and has the characteristics of the e-evidences, and besides, because the mail server is a centralized server, key information such as senders, receivers, mail contents, sending time and the like of the mail can be modified and deleted on the mail server side, and further the risk of tampering the mail evidence exists. In the prior art, before an e-mail is taken as evidence, the e-mail needs to be validated only through a notarization process, but the notarization process is high in cost and complicated in notarization process.
Disclosure of Invention
In view of the above, it is necessary to provide a block chain based email verification method, apparatus, device and storage medium for solving the problem that email is easy to tamper as email evidence.
A mail evidence storing method based on a block chain comprises the following steps:
a client node receives an evidence storing request sent by a user, wherein the evidence storing request comprises an electronic mail ID needing to be stored, and the client node acquires corresponding electronic mail information from an electronic mail server according to the electronic mail ID;
the client node adopts the electronic signature of the client to carry out uplink signature on the electronic mail information, generates a certificate storing block by the electronic mail information and the uplink signature information, and carries out uplink in a block chain network to form a new block chain;
and the notarization party node acquires the evidence storage block in the block chain network, performs notarization signature on the electronic mail information and the uplink signature information in the evidence storage block by adopting an electronic signature of a notarization party, generates a notarization block by the electronic mail information, the uplink signature information, the notarization signature information and the current time, and links the notarization block to a block chain where the evidence storage block is located.
In one embodiment, the client node receives an authentication storing request sent by a user, the authentication storing request includes an email ID needing to store the authentication, and the client node acquires corresponding email information from an email server according to the email ID, including:
the method comprises the steps that a mail webpage end or a third-party mail plug-in receives a triggering request triggered by a user, the electronic mail ID of a current electronic mail is obtained from a mail server, the mail webpage end or the third-party mail plug-in calls an API (application programming interface) interface and initiates a certificate storing request to a client node, and the certificate storing request comprises the electronic mail ID;
and the client node receives the certificate storing request and acquires the electronic mail information corresponding to the electronic mail ID from the electronic mail server, wherein the electronic mail information comprises a sender, a receiver, a copying person, a secret sender, a subject, mail content, mail sending time and mail receiving time.
In one embodiment, the method for forming a block chain in a block chain network includes that the ue node performs a ul signature on the e-mail message by using an electronic signature of the ue, generates a certificate storing block together with the e-mail message and the ul signature message, and performs ul transmission in the block chain network to form a new block chain, and includes:
creating a certificate storage block, wherein the certificate storage block comprises a block head and a block body, the block head comprises a hash value variable of a previous block, a hash value variable of a current block and a timestamp variable, and the block body comprises an e-mail information variable;
calculating the e-mail information through a hash function to generate a hash value, performing uplink signing on the hash value, assigning the hash value after uplink signing to a hash value variable of the current block, assigning the current time to the timestamp variable, and assigning the e-mail information to the e-mail information variable;
obtaining a hash value of a chain tail block from a preset block chain list, assigning the hash value of the chain tail block to a hash value variable of the previous block, and generating a certificate storage block;
and adding the hash value after the uplink signature into the block chain list, defining the generated certificate storage block as the chain tail block, and finishing the uplink of the certificate storage block.
In one embodiment, the method for implementing uplink signature on the e-mail information by the client node using the electronic signature of the client, generating a certificate storing block by the e-mail information and the uplink signature information, and implementing uplink in a block chain network to form a new block chain further includes:
the client node broadcasts the certified block which is uplink to other nodes in the blockchain network;
and after reading the hash value of the previous block and the hash value of the current block in the evidence storing blocks by the other nodes, comparing the hash values with a block chain list in the node, when the chain tail of the block chain list is the hash value of the previous block, adding the hash value of the current block into the block chain list, defining the generated evidence storing block as the chain tail block, and completing the synchronization of evidence storing data.
In one embodiment, the obtaining, by the notarization party node, the certificate storing block in the block chain network, and performing notarization signature on the electronic mail information and the uplink signature information in the certificate storing block by using the electronic signature of the notarization party further includes:
calculating the e-mail information in the block body of the evidence storage block through a hash function to obtain a first hash value;
decrypting the hash value after the cochain signature by using a public key corresponding to the cochain signature to obtain a second hash value;
and comparing the first hash value with the second hash value, judging whether the first hash value and the second hash value are equal, if the first hash value and the second hash value are different, determining that the first hash value and the second hash value are tampered, and not performing a notary signature, and if the first hash value and the second hash value are the same, performing a notary signature.
In one embodiment, the notarization signing of the e-mail information and the uplink signature information in the certificate storage block, generating a notarization block by the e-mail information, the uplink signature information, the notarization signature information and the current time, and linking the notarization block to a block chain where the certificate storage block is located includes:
creating a notarization block, wherein the notarization block comprises a block head and a block body, the block head comprises a hash value variable of a previous block, a hash value variable of a current block and a timestamp variable, and the block body comprises an email information variable;
assigning the hash value after notarization signature to the hash value variable of the current block, assigning the current time to the timestamp variable, and assigning the e-mail information in the notarization block to the e-mail information variable;
obtaining the hash value of a chain tail block from the block chain list in the node of the node, assigning the hash value of the chain tail block to the hash value variable of the previous block, and generating a notarization block;
and adding the hash value after notarization signature into the block chain list, defining the generated notarization block as the chain tail block, and finishing the uplink of the notarization block.
In one embodiment, after the notarization signing is performed on the e-mail information and the cochain signature information in the certificate storage block, the e-mail information, the cochain signature information, the notarization signature information and the current time are generated into a notarization block together, and the notarization block is linked to the block chain where the certificate storage block is located, the method further includes:
broadcasting, by the notary node, the notarized block that has been uplinked to other nodes in the blockchain network;
and after reading the hash value of the previous block and the hash value of the current block in the notarization blocks, the other nodes compare the hash values with a block chain list in the nodes, when the chain tail of the block chain list is the hash value of the previous block, the hash value of the current block is added into the block chain list, the generated notarization blocks are defined as the chain tail blocks, and the notarization data synchronization is completed.
A block chain based mail evidence storing device comprises: the receiving and evidence storing request module is set as a client node for receiving an evidence storing request sent by a user, wherein the evidence storing request comprises an electronic mail ID needing to be stored, and the client node acquires corresponding electronic mail information from an electronic mail server according to the electronic mail ID;
a module for generating a certificate storing block, which is set to adopt an electronic signature of a client terminal by the client terminal node, carry out uplink signature on the electronic mail information, generate a certificate storing block by the electronic mail information and the uplink signature information together, carry out uplink in a block chain network and form a new block chain;
and the module for generating the notarization block is set to be that a notarization party node acquires the evidence storage block in a block chain network, performs notarization signature on the electronic mail information and the cochain signature information in the evidence storage block by adopting an electronic signature of a notarization party, generates the notarization block together with the electronic mail information, the cochain signature information, the notarization signature information and the current time, and links the notarization block to a block chain where the evidence storage block is located.
A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the above blockchain based mail credentialing method.
A storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the blockchain-based mail verification method described above.
The mail evidence storing method, the device, the computer equipment and the storage medium based on the block chain comprise that a client node receives an evidence storing request sent by a user, wherein the evidence storing request comprises an electronic mail ID needing to store the evidence, and the client node acquires corresponding electronic mail information from an electronic mail server according to the electronic mail ID; the client node adopts the electronic signature of the client to carry out uplink signature on the electronic mail information, generates a certificate storing block by the electronic mail information and the uplink signature information, and carries out uplink in a block chain network to form a new block chain; and the notarization party node acquires the evidence storage block in the block chain network, performs notarization signature on the electronic mail information and the uplink signature information in the evidence storage block by adopting an electronic signature of a notarization party, generates a notarization block by the electronic mail information, the uplink signature information, the notarization signature information and the current time, and links the notarization block to a block chain where the evidence storage block is located. The invention introduces a decentralized block chain network, generates the mail contents needing evidence storage into an evidence storage block for uplink based on the decentralized advantage of the block chain, and adds a notarization link to uplink together with the notarization block, thereby increasing the notarization power of the mail evidence. Due to the characteristics of the block chain network, multiple nodes in the network can participate in the network, the status is equal, all blocks after uplink have timestamps, and the mail evidence is safe, cannot be tampered and can be traced, so that the block chain network can be used as a legal basis.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention.
FIG. 1 is a flow chart of a block chain based email credentialing method in one embodiment of the present invention;
FIG. 2 is a flowchart of step S1 in one embodiment;
FIG. 3 is a flowchart of step S2 in one embodiment;
FIG. 4 is a flowchart of step S3 in one embodiment;
fig. 5 is a block diagram of a mail evidence storage device based on a block chain according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Fig. 1 is a flowchart of a block chain-based mail evidence storing method in an embodiment of the present invention, and as shown in fig. 1, a block chain-based mail evidence storing method includes the following steps:
step S1, receiving a certificate storage request: the client node receives an evidence storing request sent by a user, the evidence storing request comprises an electronic mail ID needing to be stored, and the client node acquires corresponding electronic mail information from an electronic mail server according to the electronic mail ID.
The blockchain network is a system based on a blockchain technology, also called a distributed ledger technology, and is an internet database technology. The method is characterized by decentralization, openness and transparency, and each user can participate in maintaining database records. The blockchain network is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The block chain network mainly comprises a data layer, an intelligent contract layer and the like, wherein the data layer encapsulates a bottom data block and basic data and basic algorithms such as related data encryption and time stamps, the bottom data block is presented in a chain structure, namely the block chain is a chain data structure formed by combining the data blocks in a sequential connection mode according to a time sequence, and a distributed account book which is not falsified and not forged is ensured in a cryptology mode.
In this step, a blockchain network is introduced, a plurality of client nodes may be provided, and any terminal registered in the blockchain network may be set as a client node. The method comprises the steps that a certificate storage triggering module is arranged on a client node, when an evidence provider user needs to uplink a certain sent or received electronic mail, the certificate storage triggering module is triggered, and the client node receives a certificate storage request sent by the user. The triggering mode of the evidence storing triggering module can be in various modes, such as triggering by a user through a webpage end and triggering by the user through a third-party email plug-in.
In one embodiment, step S1, as shown in fig. 2, includes:
step S101, triggering request: the method comprises the steps that a mail webpage end or a third-party mail plug-in receives a triggering request triggered by a user, the electronic mail ID of the current electronic mail is obtained from a mail server, the mail webpage end or the third-party mail plug-in calls an API (application programming interface), and a certificate storing request is sent to a client node, wherein the certificate storing request comprises the electronic mail ID.
Before a user triggers an evidence storing request through a mail webpage end, a trigger key is preset at the mail webpage end and serves as an existence trigger module, the user selects an electronic mail needing to store the evidence and clicks the trigger key, and the mail webpage end calls an API (application programming interface) interface and initiates the evidence storing request to a client node.
The user can also trigger through a third-party mail plug-in, such as an outlook plug-in, an internet lightning mail plug-in or a Foxmail plug-in, a trigger key is additionally arranged in the mail plug-in, the user selects an electronic mail needing to store the certificate and clicks the trigger key, and the third-party mail plug-in calls an API to initiate a certificate storage request to the client node.
The user can also select a plurality of e-mails needing to be stored, the e-mail webpage end or the third-party e-mail plug-in obtains a plurality of e-mail IDs and sends a storage request to the client node, and the request comprises a plurality of e-mail IDs.
Step S102, acquiring the e-mail information: and the client node receives the certificate storing request and acquires the email information corresponding to the email ID from the email server, wherein the email information comprises a sender, a receiver, a copying person, a secret sender, a subject, email content, email sending time and email receiving time.
The certificate storing request received by the client node does not need to contain specific e-mail information, and the corresponding e-mail information is called from the e-mail server according to the e-mail ID, so that the data is prevented from being lost or distorted due to multiple transmissions. When the client node receives a plurality of e-mail IDs, a plurality of items of e-mail information are obtained through the e-mail IDs respectively, and the plurality of items of e-mail information can be sorted according to the mail sending time.
The embodiment triggers the evidence storing request in two different modes, and meets different use habits of users on the e-mails. The client node of the E-mail information directly obtains the E-mail information from the E-mail server, and loss of a webpage end or a third-party E-mail plug-in during data transmission is avoided.
Step S2, generating a certificate storing block: the client node adopts the electronic signature of the client to carry out the uplink signature on the electronic mail information, generates a certificate storing block together with the electronic mail information and the uplink signature information, carries out uplink in the block chain network and forms a new block chain.
When a client node registers in a blockchain network station, the blockchain network generates a pair of public key and private key by adopting an asymmetric encryption algorithm according to an intelligent contract, the private key is sent to the client node and stored by the client node, and the public key is disclosed to other specific nodes, such as a notarization party node. After the data is encrypted by the private key, only the corresponding public key can be decrypted. The client node carries out uplink signature on the electronic mail information by adopting a specific electronic signature of the client, namely a private key, so that the integrity of the electronic mail information, the identity authenticity of a uplink user and impersonability are ensured.
In one embodiment, step S2, as shown in fig. 3, includes:
step S201, creating a certificate storage block: the evidence storing block comprises a block head and a block body, the block head comprises a hash value variable of a previous block, a hash value variable of a current block and a timestamp variable, and the block body comprises an e-mail information variable.
When creating the storage block, the client node creates the storage block by a new _ block method in a preset Blockchain class. When a new block is created through the Blockchain class, an empty block chain list is also created for storing information of the blocks that have been linked up.
Step S202, the uplink signature and assignment: calculating the e-mail information through a hash function to generate a hash value, performing uplink signature on the hash value, assigning the hash value after uplink signature to a hash value variable of a current block, assigning the current time to a timestamp variable, and assigning the e-mail information to an e-mail information variable.
The hash function is based on a hash algorithm, is a very basic and important technology in the field of information technology, and can map binary values (plaintext) with any length into binary values (hash values) with short fixed lengths, and different plaintexts are difficult to map into the same hash value. Common hash functions include MD4(Message Digest), MD5 (modified version of MD 4), SHA-1, and the like. And after the integrity of the data is stored, the generated hash value is signed, and the identity of the uplink party is determined. In the step, the current time is assigned to a timestamp variable to be used as a time evidence, so that the integrity of the mail evidence is ensured.
Step S203, generating a certificate storage block: and obtaining the hash value of the chain tail block from a preset block chain list, assigning the hash value of the chain tail block to the hash value variable of the previous block, and generating a certificate storage block.
Because each block must contain the hash value of the previous block due to the characteristics of the blockchain network, the step obtains the hash value of the end-of-chain block from the blockchain list of the node of the step as the hash value of the previous block. The end-of-chain block is the block which is newly added into the block chain network.
A blockchain list is preset in any node in the blockchain network, and the blockchain lists of any node should be the same and data synchronized, and the blockchain list may be as shown in table 1 below:
hash value of previous block Hash value of current block Time stamp
Hash value X Hash value 1 201810281514
Hash value 1 Hash value 2 201810290957
TABLE 1
As shown in table 1 above, the hash value of the last block in this step is hash value 2, and the hash value 2 is assigned to the hash value variable of the previous block.
Step S204, update data: and adding the hash value after the uplink signature into a block chain list, and defining the generated certificate storage block as a chain tail block to finish the uplink of the certificate storage block.
In order to ensure that the hash value of the previous block in the blocks which are linked up each time is the block which is newly added into the blockchain network, after each block is linked up, the information corresponding to the evidence storing block which is just linked up is updated into the blockchain list. Specifically, if the hash value after the uplink signature in step S202 is hash value 3, after updating table 1 above, as shown in table 2 below:
hash value of previous block Hash value of current block Time stamp
Hash value X Hash value 1 201810281514
Hash value 1 Hash value 2 201810290957
Hash value 2 Hash value 3 201810291519
TABLE 2
In this embodiment, a certificate storage block is created by a new _ block method in a preset Blockchain class, the certificate storage block is linked, and after the linking is completed, a block chain list is updated, so that the integrity of data in a block chain network is ensured.
After the client node finishes chaining the newly generated evidence storing block, the client node also broadcasts the newly generated evidence storing block to other nodes in the block chain system for the other nodes to synchronize the e-mail information:
in one embodiment, the client node broadcasts the chained credit blocks to other nodes in the blockchain network; and after reading the hash value of the previous block and the hash value of the current block in the evidence storing block by other nodes, comparing the hash values with a block chain list in the node, when the chain tail of the block chain list is the hash value of the previous block, adding the hash value of the current block into the block chain list, and defining the generated evidence storing block as a chain tail block to finish the synchronization of evidence storing data.
When broadcasting, the client node broadcasts to the adjacent nodes one by adopting a networking mode based on a P2P network, and broadcasts the uplink certificate storing block to other nodes. After other nodes receive the broadcast, the newly generated evidence storage block is not subjected to a verification process, and the information corresponding to the evidence storage block is directly synchronized. Only specific nodes, such as notarization party nodes, do further work such as verification and notarization on the evidence storage block.
In this embodiment, a broadcast mode is adopted, so that high synchronization of all the blockchain lists in the blockchain network is ensured, and other nodes can participate in the blockchain together.
Step S3, generating a notarization block: the notarization party node obtains the certificate storage block in the block chain network, electronic signatures of the notarization party are adopted, notarization signatures are conducted on electronic mail information and uplink signature information in the certificate storage block, the electronic mail information, the uplink signature information, the notarization signature information and the current time are generated into a notarization block, and the notarization block is linked to the block chain where the certificate storage block is located.
The number of notarization party nodes in this step may be multiple, and a terminal registered in the block chain system by a notarization organization having the notarization activity capability is set as a notarization party node. And the notarization party node can acquire the evidence storage block after broadcasting through the client node. Or after the user terminal node finishes the uplink, the evidence storing block is automatically broadcast to all notarization party nodes or any notarization party node in the block chain network.
In one embodiment, step S3, as shown in fig. 4, includes:
step S301, creating a notarization block: the notarization block comprises a block head and a block body, the block head comprises a hash value variable of a previous block, a hash value variable of a current block and a timestamp variable, and the block body comprises an e-mail information variable.
The process of creating the notarization block in the step is the same as that in the step S201, and the notarization block is created through a new _ block method in a preset Blockchain class.
Step S302, notarization, signature and assignment: and assigning the hash value after the notarization signature to the hash value variable of the current block, assigning the current time to the timestamp variable, and assigning the e-mail information in the storage block to the e-mail information variable.
Step S303, generating a notarization block: and obtaining the hash value of the block at the chain end from the block chain list in the node, assigning the hash value of the block at the chain end to the hash value variable of the previous block, and generating a notarization block.
Step S304, update data: and adding the hash value after the notarization signature into a block chain list, defining the generated notarization block as a chain tail block, and finishing the uplink of the notarization block.
If the hash value after the notary signature in step S302 is hash value 4, after updating table 2 above, as shown in table 3 below:
hash value of previous block Hash value of current block Time stamp
Hash value X Hash value 1 201810281514
Hash value 1 Hash value 2 201810290957
Hash value 2 Hash value 3 201810291519
Hash value 3 Hash value 4 201810291521
TABLE 3
According to the method, after notarization signing is carried out on the certified storage block which is subjected to the notarization signing through a notarization party node, a notarization block is generated, and then the notarization link is combined with the block chain network in a mode of notarization, so that the notarization power of the mail evidence is increased, the notarization block which is subjected to the uplink can be used as a legal basis and can be obtained and checked by any node in the block chain network at any time, the change and deletion of the mail content and the mail time are avoided, and the risk that the mail evidence is falsified is reduced.
In one embodiment, before step S3, the method further includes: the notarization party node calculates the E-mail information in the block body of the storage block through a Hash function to obtain a first Hash value; decrypting the hash value after the uplink signature by a public key corresponding to the uplink signature to obtain a second hash value; and comparing the first hash value with the second hash value, judging whether the first hash value and the second hash value are equal, if the first hash value and the second hash value are different, considering that the first hash value and the second hash value are tampered, and not performing the notarization signature, and if the first hash value and the second hash value are equal, performing the notarization signature.
The notarization party node acquires the public key of the client node in the blockchain network during registration from the blockchain network, and decrypts the public key by using the embodiment. Through the verification of the embodiment, whether the evidence storage block is generated by the client node or not can be determined, and whether the email information is tampered or not can also be determined. And the notarization party node carries out notarization only under the condition of confirming that the identity of the client node is consistent with the E-mail information.
In one embodiment, after step S3, the method further includes: the notarization party node broadcasts the chained notarization block to other nodes in the block chain network; and after reading the hash value of the previous block and the hash value of the current block in the notarization blocks by other nodes, comparing the hash values with a block chain list in the node, when the chain tail of the block chain list is the hash value of the previous block, adding the hash value of the current block into the block chain list, defining the generated notarization blocks as chain tail blocks, and completing the synchronization of notarization data.
In this embodiment, during broadcasting, a networking mode based on the P2P network may be adopted to broadcast to neighboring nodes one by one. After other nodes receive the broadcast, the newly generated notarization block is not required to be verified, and the information corresponding to the notarization block is directly synchronized. In this embodiment, a high synchronization of all the blockchain lists in the blockchain network is ensured by a broadcasting manner.
The mail evidence storing method based on the block chain combines the mail evidence storing with the block chain network, a plurality of client nodes participate in generating the evidence storing block together, a plurality of notarization party nodes participate in generating the working block together, and the integrity, the non-tampering and the traceability of the electronic mail information are ensured by the way of the common participation of multi-party maintenance, so that the risk of tampering the mail content is avoided, and the electronic mail information can be used as a legal basis for other nodes to check.
In one embodiment, a block chain based mail evidence storing device is provided, as shown in fig. 5, including the following modules:
the receiving and evidence storing request module is set as a client node for receiving an evidence storing request sent by a user, wherein the evidence storing request comprises an electronic mail ID needing to be stored, and the client node acquires corresponding electronic mail information from an electronic mail server according to the electronic mail ID;
a generation certificate storage block module which is set to adopt the electronic signature of the client to carry out the uplink signature on the electronic mail information by the client node, generate a certificate storage block by the electronic mail information and the uplink signature information together, and carry out uplink in a block chain network to form a new block chain;
and the module for generating the notarization block is set to be that a notarization party node acquires the evidence storage block in a block chain network, performs notarization signature on the electronic mail information and the cochain signature information in the evidence storage block by adopting an electronic signature of a notarization party, generates the notarization block together with the electronic mail information, the cochain signature information, the notarization signature information and the current time, and links the notarization block to a block chain where the evidence storage block is located.
In one embodiment, a computer device is provided, which includes a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to implement the steps in the block chain based mail evidence storing method of the embodiments.
In one embodiment, a storage medium storing computer-readable instructions is provided, and the computer-readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps of the blockchain-based mail evidence storing method of the embodiments. The storage medium may be a nonvolatile storage medium.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
All possible combinations of the technical features of the above embodiments may not be described for the sake of brevity, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express some exemplary embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent should be subject to the appended claims.

Claims (10)

1. A mail evidence storing method based on a block chain is characterized by comprising the following steps:
a client node receives a certificate storing request sent by a user, wherein the certificate storing request comprises an electronic mail ID needing to store a certificate, and the client node acquires corresponding electronic mail information from an electronic mail server according to the electronic mail ID;
the client node adopts the electronic signature of the client to carry out uplink signature on the electronic mail information, generates a certificate storing block by the electronic mail information and the uplink signature information, and carries out uplink in a block chain network to form a new block chain;
and the notarization party node acquires the evidence storage block in a block chain network, performs notarization signature on the electronic mail information and the cochain signature information in the evidence storage block by adopting the electronic signature of a notarization party, generates a notarization block by the electronic mail information, the cochain signature information, the notarization signature information and the current time, and links the notarization block to a block chain where the evidence storage block is located.
2. The method for storing the certificate of the mail based on the block chain as claimed in claim 1, wherein the client node receives the certificate storing request sent by the user, the certificate storing request includes an e-mail ID that needs to be stored, the client node obtains the corresponding e-mail information from the e-mail server according to the e-mail ID, comprising:
the method comprises the steps that a mail webpage end or a third-party mail plug-in receives a triggering request triggered by a user, an electronic mail ID of a current electronic mail is obtained from a mail server, the mail webpage end or the third-party mail plug-in calls an API (application programming interface) interface, and an evidence storing request is initiated to a client node, wherein the evidence storing request comprises the electronic mail ID;
and the client node receives the certificate storing request and acquires the e-mail information corresponding to the e-mail ID from the e-mail server, wherein the e-mail information comprises a sender, a receiver, a copying person, a secret sender, a subject, mail content, mail sending time and mail receiving time.
3. The method of claim 1, wherein the client node performs a ul signature on the email message by using an electronic signature of the client, generates a certificate storing block by using the email message and the ul signature message, and performs ul transmission in a block chain network to form a new block chain, comprising:
creating a certificate storage block, wherein the certificate storage block comprises a block head and a block body, the block head comprises a hash value variable of a previous block, a hash value variable of a current block and a timestamp variable, and the block body comprises an e-mail information variable;
calculating the e-mail information through a hash function to generate a hash value, performing uplink signing on the hash value, assigning the hash value after uplink signing to a hash value variable of the current block, assigning the current time to the timestamp variable, and assigning the e-mail information to the e-mail information variable;
obtaining a hash value of a chain tail block from a preset block chain list, assigning the hash value of the chain tail block to a hash value variable of the previous block, and generating a certificate storage block;
and adding the hash value after the uplink signature into the block chain list, defining the generated certificate storage block as the chain tail block, and finishing the uplink of the certificate storage block.
4. The method of claim 1, wherein the ue performs a ul signature on the e-mail message by using an electronic signature of the ue, generates a certificate storing block with the e-mail message and the ul signature information, performs ul transmission in a block chain network, and forms a new block chain, and further comprising:
the client node broadcasts the certified block which is uplink to other nodes in the blockchain network;
and after reading the hash value of the previous block and the hash value of the current block in the evidence storing blocks, the other nodes compare the hash values with a block chain list in the node, when the chain tail of the block chain list is the hash value of the previous block, the hash value of the current block is added into the block chain list, and the generated evidence storing blocks are defined as chain tail blocks to finish the synchronization of evidence storing data.
5. The block chain-based email evidence storing method of claim 1, wherein the notarization party node obtains the evidence storing block in a block chain network, and adopts an electronic signature of a notarization party before notarization signing the email information and the uplink signature information in the evidence storing block, further comprising:
calculating the e-mail information in the block body of the evidence storage block through a hash function to obtain a first hash value;
decrypting the hash value after the uplink signature by using a public key corresponding to the uplink signature to obtain a second hash value;
and comparing the first hash value with the second hash value, judging whether the first hash value and the second hash value are equal, if the first hash value and the second hash value are different, determining that the first hash value and the second hash value are tampered, and not performing a notary signature, and if the first hash value and the second hash value are the same, performing a notary signature.
6. The method of claim 1, wherein the notarizing the e-mail information and the uplink signature information in the evidence storing block, generating a notarization block by the e-mail information, the uplink signature information, the notarization signature information and a current time, and linking the notarization block to a block chain where the evidence storing block is located, comprises:
creating a notarization block, wherein the notarization block comprises a block head and a block body, the block head comprises a hash value variable of a previous block, a hash value variable of a current block and a timestamp variable, and the block body comprises an email information variable;
assigning the hash value after notarization and signature to the hash value variable of the current block, assigning the current time to the timestamp variable, and assigning the email information in the evidence storage block to the email information variable;
obtaining a hash value of a chain tail block from a block chain list in a node of the node, assigning the hash value of the chain tail block to a hash value variable of a previous block, and generating a notarization block;
and adding the hash value after notarization signature into the block chain list, defining the generated notarization block as the chain tail block, and finishing the uplink of the notarization block.
7. The method of claim 1, wherein the notarization signing is performed on the e-mail information and the uplink signature information in the evidence storage block, the e-mail information, the uplink signature information, the notarization signature information and the current time are generated into a notarization block, and the notarization block is linked to a block chain where the evidence storage block is located, and the method further comprises:
broadcasting, by the notary node, the notarized block that has been uplinked to other nodes in the blockchain network;
and after reading the hash value of the previous block and the hash value of the current block in the notarization block, the other nodes compare the hash values with a block chain list in the node, when the chain tail of the block chain list is the hash value of the previous block, the hash value of the current block is added into the block chain list, the generated notarization block is defined as a chain tail block, and the notarization data synchronization is completed.
8. A block chain based mail evidence storing device is characterized by comprising:
the receiving and evidence storing request module is set as a client node for receiving an evidence storing request sent by a user, wherein the evidence storing request comprises an electronic mail ID needing to store evidence, and the client node acquires corresponding electronic mail information from an electronic mail server according to the electronic mail ID;
a generation certificate storage block module which is set to adopt the electronic signature of the client to carry out the uplink signature on the electronic mail information by the client node, generate a certificate storage block by the electronic mail information and the uplink signature information together, and carry out uplink in a block chain network to form a new block chain;
and the notarization block generation module is used for setting a notarization party node to acquire the evidence storage block in a block chain network, adopting an electronic signature of a notarization party to carry out notarization signature on the electronic mail information and the uplink signature information in the evidence storage block, generating the notarization block by the electronic mail information, the uplink signature information, the notarization signature information and the current time, and linking the notarization block to a block chain where the evidence storage block is located.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the blockchain based mail attestation method of any of claims 1 to 7.
10. A storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the blockchain-based mail attestation method of any one of claims 1 to 7.
CN201811423003.0A 2018-11-27 2018-11-27 Block chain based mail evidence storage method, device, equipment and storage medium Active CN109462483B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811423003.0A CN109462483B (en) 2018-11-27 2018-11-27 Block chain based mail evidence storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811423003.0A CN109462483B (en) 2018-11-27 2018-11-27 Block chain based mail evidence storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109462483A CN109462483A (en) 2019-03-12
CN109462483B true CN109462483B (en) 2022-09-30

Family

ID=65611705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811423003.0A Active CN109462483B (en) 2018-11-27 2018-11-27 Block chain based mail evidence storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109462483B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918874B (en) * 2019-03-14 2022-09-02 度小满科技(北京)有限公司 Physical information storage method and device and physical information searching method and device
CN109981673B (en) * 2019-04-04 2021-10-08 上海人行道网络信息技术有限公司 Block chain-based data evidence storage method, device, equipment and storage medium
CN110062041B (en) * 2019-04-12 2023-04-07 深圳前海微众银行股份有限公司 Method and device for changing IOT (input/output) equipment based on block chain
CN110324149B (en) * 2019-05-17 2021-12-07 杭州亦笔科技有限公司 Evidence fixed verification method after multi-party consensus signature
CN110489676A (en) * 2019-07-19 2019-11-22 平安科技(深圳)有限公司 Webpage evidence collecting method, device, storage medium and server based on block chain
CN110598477A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Block chain based information processing method and device, storage medium and equipment
CN111355579A (en) * 2019-11-07 2020-06-30 上海百事通信息技术股份有限公司 E-mail certificate storage method, system, transmission medium and terminal
CN111130806A (en) * 2019-12-30 2020-05-08 论客科技(广州)有限公司 E-mail filing and evidence saving method and device based on block chain technology
CN111464494A (en) * 2020-02-26 2020-07-28 北京十安赛恩科技有限公司 E-mail encryption method, first client and block chain system
CN111444549A (en) * 2020-03-23 2020-07-24 杭州溪塔科技有限公司 Communication content evidence storing method and system based on block chain and electronic equipment
CN111475574B (en) * 2020-04-09 2023-07-11 成都九宽科技有限公司 Data acquisition device based on block chain
CN111339574B (en) * 2020-05-19 2021-03-16 卓尔智联(武汉)研究院有限公司 Block data processing method and device, computer equipment and storage medium
CN111696006A (en) * 2020-06-15 2020-09-22 中国银行股份有限公司 Evidence storing method and scheme setting method based on alliance chain and related equipment
CN112118112B (en) * 2020-09-08 2022-09-02 中国联合网络通信集团有限公司 Certificate copy using method and node equipment
CN112272155B (en) * 2020-09-15 2022-12-23 山东鲁能软件技术有限公司 E-mail receiving and sending method based on block chain
CN112272156B (en) * 2020-09-15 2022-12-23 山东鲁能软件技术有限公司 E-mail receiving and sending system based on block chain
CN112383407B (en) * 2020-09-22 2023-05-12 法信公证云(厦门)科技有限公司 Block chain-based online notarization full-flow log processing method and system
CN112737923B (en) * 2020-12-22 2022-12-06 网易(杭州)网络有限公司 Processing method and processing system of electronic mail
CN113051625B (en) * 2021-03-24 2024-02-20 中国工商银行股份有限公司 Data storage method and device based on blockchain
CN113282662B (en) * 2021-06-03 2023-11-03 广东辰宜信息科技有限公司 Block information processing method, device, equipment and medium
CN113468201B (en) * 2021-09-06 2021-11-02 环球数科集团有限公司 Cross-channel data linkage updating system based on resource element evidence storage channel

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018041066A1 (en) * 2016-08-29 2018-03-08 北京瑞卓喜投科技发展有限公司 Data processing method, apparatus and system based on block chain technology
CN107888375A (en) * 2017-11-08 2018-04-06 深圳市携网科技有限公司 A kind of electronic evidence safety system and method based on block chain technology
CN108717431A (en) * 2018-05-11 2018-10-30 中国科学院软件研究所 A kind of electronic evidence based on block chain deposits card, verification method and system
CN108833111A (en) * 2018-05-29 2018-11-16 浪潮软件集团有限公司 Block chain-based file evidence storage and identification realization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018041066A1 (en) * 2016-08-29 2018-03-08 北京瑞卓喜投科技发展有限公司 Data processing method, apparatus and system based on block chain technology
CN107888375A (en) * 2017-11-08 2018-04-06 深圳市携网科技有限公司 A kind of electronic evidence safety system and method based on block chain technology
CN108717431A (en) * 2018-05-11 2018-10-30 中国科学院软件研究所 A kind of electronic evidence based on block chain deposits card, verification method and system
CN108833111A (en) * 2018-05-29 2018-11-16 浪潮软件集团有限公司 Block chain-based file evidence storage and identification realization method

Also Published As

Publication number Publication date
CN109462483A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN109462483B (en) Block chain based mail evidence storage method, device, equipment and storage medium
US10848315B2 (en) Contract agreement method, agreement verification method, contract agreement system, agreement verification device, contract agreement device, contract agreement program and agreement verification program
US7620824B2 (en) Data communicating apparatus, data communicating method, and program
Acs et al. Provably secure on-demand source routing in mobile ad hoc networks
CN109104271B (en) Digital signature method, device and system
KR20180029695A (en) System and method for transmitting data using block-chain
CN104158816A (en) Authentication method and device as well as server
CN112219371A (en) Bidirectional block chain
US9397984B1 (en) Apparatus and method for secure file transfer
CN110990484B (en) Information storage method, system, computer equipment and storage medium based on block chain
CN106934628A (en) The generation verification method and system of a kind of passive anti-fake two-dimension code
CN110597836B (en) Information inquiry request response method and device based on block chain network
CN109962777A (en) The key in block catenary system is permitted to generate, obtain the method and apparatus of key
CN113254972A (en) Information security management method based on block chain
CN109978543B (en) Contract signing method and device, electronic equipment and storage medium
CN115396115A (en) Block chain data privacy protection method, device, equipment and readable storage medium
CN112910661B (en) Block chain consensus method, device, equipment and medium suitable for electronic subscription
CN110941672A (en) Household registration management method, device, equipment and storage medium
KR20230093432A (en) Identification of Denial of Service Attacks
CN110083786B (en) Link verification method and device
CN111131311A (en) Data transmission method based on block chain and block chain link point
US10200356B2 (en) Information processing system, information processing apparatus, information processing method, and recording medium
CN110851804A (en) Alliance chain identity authentication method based on electronic contract
CN113626848A (en) Sample data generation method and device, electronic equipment and computer readable medium
CN109214425B (en) Picture verification method, picture processing method, equipment and system

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