A blockchain-based electronic seal verification method and system
By introducing a dynamic consensus mechanism and zero-knowledge proof technology into the blockchain electronic seal system, the problems of key leakage and verification complexity in traditional systems are solved, security and efficiency optimization under different network conditions are achieved, and electronic technology is improved. Reliability and trust in document management.
Patent Information
- Application Number
- CN202410696862.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-31
AI Technical Summary
The traditional electronic seal system has the risk of key leakage, complex verification process, lack of dynamic monitoring and response mechanism, difficulty in responding to security threats in real time, and reduced processing efficiency when the network is loaded.
Adopting a dynamic consensus mechanism based on the blockchain, through AES encryption, zero-knowledge proof and digital signature technology, combined with dynamic consensus algorithm adjustment, the consensus mechanism can be optimized in real time according to network conditions, and a consensus algorithm with high security or efficiency can be selected to improve the system's security. safety and processing efficiency.
It achieves security guarantee when the network is unstable or has high security risks, improves transaction processing efficiency under good network conditions, ensures the security and privacy of seal use, and enhances the reliability and trust of electronic document management.
Smart Images

Figure CN118277489B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electronic seal verification, and specifically relates to an electronic seal verification method and system based on blockchain. Background Art
[0002] With the development of Internet technology and the acceleration of digital transformation, enterprises have an increasing demand for the secure management of documents and contracts, and electronic contracts have begun to be widely used. As a type of digital signature, the security and convenience of electronic seals have become the focus of attention.
[0003] In the traditional electronic seal system, the seal administrator enters the seal information (such as seal pattern, corporate or personal logo, etc.) into the system, and this information is bound to a specific digital key or certificate; when a document or contract needs to be stamped with an electronic seal, the authorized user uses the corresponding key to sign the document; during the signing process, the seal information may be embedded into the document in the form of a graphic, and a digital signature may be attached to ensure non-repudiation and integrity; the recipient or third-party verifier verifies the authenticity and integrity of the electronic seal through the tools provided by the system; the verification process usually requires verification of the digital signature and may require access to public certificate information. Traditional electronic seal systems are usually based on fixed keys or digital signature technology to achieve secure management of documents and contracts, which have the following problems: there is a risk of key leakage and theft, which may lead to seal tampering or forgery; verifying the authenticity of electronic seals usually requires specific software and access to certificate information, and the verification process is complicated; in traditional systems, seal usage records may be stored in a scattered manner or difficult to access, making it difficult to track and audit seal usage; traditional electronic seal systems usually lack dynamic monitoring and response mechanisms, making it difficult to respond to security threats or policy changes in real time; in some scenarios, the process of verifying electronic seals may expose document content, which is not conducive to protecting information privacy.
[0004] In response to the problems of traditional electronic seal systems, some research has also been conducted in the prior art. For example, patent application CN112801606A discloses an electronic contract system of a pyramidal blockchain, which uses a pyramidal blockchain architecture to achieve real-time authentication of personal identity, record the entire process of electronic contract signing, and provide real-time reliable traceability; however, it is a fixed key and cannot be adjusted in real time according to the situation, and its security remains to be discussed; the network processing efficiency is significantly reduced when the network reaches a certain load. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides an electronic seal verification method and system based on blockchain. Through an improved dynamic consensus mechanism, verification is performed according to different network conditions, which not only ensures security when the network is unstable or the security risk is high, but also improves the efficiency of transaction processing when the network conditions are good, thereby realizing dynamic optimization of the consensus mechanism.
[0006] The electronic seal verification method based on blockchain described in the present invention comprises the following steps:
[0007] The seal administrator registers the seal information through the blockchain platform, including the seal pattern and authorized user information;
[0008] Build a dynamic consensus mechanism and apply it to electronic seal verification, specifically:
[0009] S1. The blockchain platform uses AES to encrypt the seal information and generate a unique seal ID;
[0010] S2. The user submits a seal application, including the hash value of the required document and application information; the blockchain platform uses a dynamic consensus mechanism to approve the seal application;
[0011] S3. After approval, the seal record is encrypted and stored on the chain;
[0012] S4. The third party uses zero-knowledge proof technology to verify the legitimacy of the seal;
[0013] S5. Use digital signature technology for electronic documents and seals to ensure the binding relationship between the two and enhance the security of documents;
[0014] S6. When verifying the authenticity of a document, by matching the seal ID and the document hash value, the user uses a dynamic consensus mechanism to quickly confirm the integrity and non-tampering of the document.
[0015] Furthermore, the construction of the dynamic consensus mechanism is specifically as follows:
[0016] Collect relevant data, including network transaction volume, block generation time, node participation, transaction confirmation time, network bandwidth utilization, security incident frequency, node geographical distribution and node resource status;
[0017] Build a collection of consensus algorithms;
[0018] Design strategies to adjust formula calculation thresholds;
[0019] Based on the threshold, a corresponding consensus algorithm is selected from the consensus algorithm collection according to a judgment condition.
[0020] Furthermore, the consensus algorithm collection includes a high-security consensus algorithm and a high-efficiency consensus algorithm, and the corresponding algorithm is selected according to the strategy adjustment result.
[0021] Furthermore, the strategy adjustment formula is expressed as:
[0022] ,
[0023] in, Indicates the threshold value; Indicates network bandwidth usage Exponential impact on consensus mechanism selection, represents the base of natural logarithms, , , , , , All are weight coefficients; Indicates the frequency of safety events, represents the higher integral function, Indicates the network transaction volume; Represents the overall impact of quantified block generation time on the choice of consensus mechanism; Represents the block generation time function from 0 to the current transaction volume T The integral of Indicates the change in block generation speed over time. is a constant, t is time; D represents the geographical distribution breadth of the nodes; It is a complex information filtering function that comprehensively evaluates the current node participation P; ,in and are the minimum and maximum values of node participation, respectively.
[0024] Furthermore, based on the threshold, a corresponding consensus algorithm is selected from the consensus algorithm collection according to the judgment condition:
[0025] 1) The system monitors key network parameters in real time and calculates the current threshold according to the strategy adjustment formula The value of
[0026] 2) The preset threshold is ;
[0027] when , it means that the current network is facing high load or security risks, or the node participation is low, and a high-security consensus algorithm is selected;
[0028] when , it means the current network status is good and a highly efficient consensus algorithm is selected;
[0029] 3) Based on the judgment results, the system automatically applies or switches to the corresponding consensus algorithm;
[0030] 4) The system uses the consensus algorithm selection results and network operation performance as feedback to adjust the preset threshold .
[0031] The present invention also provides an electronic seal verification system based on blockchain, which can implement the above method. The system includes:
[0032] The seal registration and management module is responsible for the entry, encryption and management of seal information, including seal patterns and authorized user information;
[0033] Dynamic consensus mechanism module, dynamically adjusts consensus nodes and verification processes according to network load and security requirements;
[0034] The seal application and approval module receives and processes the user's seal application, including the document hash value and application information, as well as the management of the approval process;
[0035] The data encryption and on-chain storage module encrypts the approved seal usage records and writes them securely into the blockchain;
[0036] Zero-knowledge proof verification module, supporting third-party verification of the legitimacy of seal use;
[0037] Digital signature and verification module, which uses digital signature technology for electronic documents and seals to verify the authenticity of documents;
[0038] The user interface UI module provides a user interface for users to submit seal applications, view approval status and verification results;
[0039] The monitoring and logging module monitors the system operation status and records key operations and event logs to facilitate troubleshooting and security audits.
[0040] Furthermore, the zero-knowledge proof verification module introduces a Bloom filter based on the Merkle tree to construct a BMerkle tree data model; it quickly verifies whether an element is in the current data set through a binary vector and a series of random mapping functions;
[0041] In the BMerkle tree data model, leaf nodes store the hash value of data, non-leaf nodes store the calculation results of sub-hash values, and the BMerkle tree root is a triple , H is a compact representation of the hash value of all data, BF is a Bloom filter constructed from the data to be stored, It is a zero-knowledge proof parameter generated by the data to be stored, which is used for subsequent verification; a new address pointer is added to the block structure, pointing to the next group of data stored in the current block.
[0042] Furthermore, the workflow of the zero-knowledge proof verification module is as follows:
[0043] Assumptions is the number of hash functions, is the length of the Bloom filter, is the number of inserted elements, is the false positive rate; then a normally functioning Bloom filter should meet the following requirements:
[0044] 1) Worst case scenario elements can be obtained hash positions, ;
[0045] 2) Hash functions do not affect each other;
[0046] 3) After each element is hashed, the position where it is inserted into the hashed array is completely random;
[0047] For the length The probability that the corresponding bit in the hash array is not set to 1 after an element is hashed once is ,go through The probability that the corresponding bit is not set to 1 after the next , Elements pass through The probability that the corresponding bit is not set to 1 after the hash is , so when the Bloom filter works normally, the probability of this bit being set to 1 is ;
[0048] The formula for calculating the probability of misjudgment is:
[0049] ;
[0050] Assume the function: ,make , take the logarithm and Taking the derivative, we get:
[0051] ;
[0052] when The misjudgment rate is the lowest when:
[0053] ;
[0054] Substitute it into the misjudgment probability calculation formula to obtain:
[0055] ;
[0056] In summary, the error rate At the lowest point, The value of is the ideal number of hash functions: ;
[0057] and , , The relationship between them is:
[0058] .
[0059] The beneficial effects described in the present invention are as follows: the present invention utilizes the immutability provided by blockchain technology, combined with AES encryption, dynamic consensus mechanism, zero-knowledge proof and digital signature technology, to ensure the security, privacy and efficiency of seal use, and greatly enhance the reliability and trust of electronic document management; the present invention can adjust the consensus algorithm used for verification in real time according to specific circumstances, and the blockchain system can flexibly respond to changes in different network conditions; after introducing Bloom filters to zero-knowledge proof, the verification time is greatly reduced; it not only ensures security when the network is unstable or the security risk is high, but also improves the efficiency of transaction processing when the network conditions are good, realizes dynamic optimization of the consensus mechanism, and is conducive to using limited resources to maximize the security of seal information. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a schematic diagram of the overall process of the method of the present invention;
[0061] Figure 2 This is a schematic diagram of the dynamic consensus mechanism process of the present invention;
[0062] Figure 3 It is a structural schematic diagram of the system of the present invention;
[0063] Figure 4 A BMerkle tree data model after introducing a Bloom filter into the zero-knowledge proof verification module of the system;
[0064] Figure 5 A comparison chart of the time consumption of data verification before and after the introduction of Bloom filter into the zero-knowledge proof verification module of the system;
[0065] Figure 6 A schematic diagram comparing the frequency of security events and the impact of network load on the throughput of the system before and after the dynamic consensus mechanism module is introduced. DETAILED DESCRIPTION
[0066] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments in conjunction with the accompanying drawings.
[0067] like Figure 1 As shown, the electronic seal verification method based on blockchain described in the present invention includes:
[0068] The seal administrator registers the seal information through the blockchain platform, including the seal pattern and authorized user information;
[0069] Build a dynamic consensus mechanism and apply it to the following steps:
[0070] S1. The platform uses the Advanced Encryption Standard (AES) to encrypt the seal information and generate a unique seal ID to ensure information security and uniqueness;
[0071] S2. The user submits a seal application, including the hash value of the required documents and application information. During the approval process, the dynamic consensus mechanism adjusts the consensus nodes and verification process according to the network load and security requirements to ensure that the approval process is fast and secure.
[0072] S3. After approval, the seal record is encrypted and stored on the chain, and the dynamic consensus mechanism ensures fast and secure data writing;
[0073] S4. When a third party verifies, a verification request is initiated and the legality of the seal usage is verified using zero-knowledge proof technology without exposing usage details;
[0074] S5. Use digital signature technology for electronic documents and seals to ensure the binding relationship between the two and enhance the security of documents;
[0075] S6. When verifying the authenticity of a document, the integrity and non-tampering of the document can be quickly confirmed by matching the seal ID and the document hash value and using a dynamic consensus mechanism.
[0076] The dynamic consensus mechanism is constructed as follows: Figure 2 As shown, specifically:
[0077] Collect relevant data, including network transaction volume, block generation time, node participation, transaction confirmation time, network bandwidth utilization, security incident frequency, node geographical distribution and node resource status;
[0078] Network transaction volume: It can be directly collected from the public data of the blockchain network. Each transaction is recorded in the block, so it is objective and quantifiable.
[0079] Block generation time: Each block has a timestamp on the chain. By comparing the timestamps of adjacent blocks, the block generation time can be objectively calculated;
[0080] Node participation: Through the network's consensus log or by querying the network nodes, the number of nodes participating in the consensus process can be counted, which is objective and measurable;
[0081] Transaction confirmation time: The time from when a transaction is initiated to when it is confirmed (written to the blockchain), which can be objectively calculated by analyzing the transaction records on the blockchain;
[0082] Network bandwidth utilization: By monitoring network traffic, the network bandwidth utilization can be quantified, which is related to the network capacity and transaction processing speed;
[0083] Frequency of security incidents: Security incidents (such as double spending, forks, etc.) can be quantified by analyzing abnormal behavior of the blockchain network, which is crucial for adjusting the consensus mechanism to enhance the security protection of the network;
[0084] Geographic distribution of nodes: The IP address of a node can be used to infer the node's geographic location. Through geographic information system (GIS) technology, the breadth and diversity of node distribution can be quantified;
[0085] Node resource status: The resource status of the node (such as CPU and memory usage) can be obtained through the node’s own monitoring system. This data is critical for evaluating the node’s consensus ability and the overall performance of the network.
[0086] Build a collection of consensus algorithms;
[0087] Design strategy to adjust formula to calculate threshold value;
[0088] Automatically switch to the corresponding consensus algorithm from the consensus algorithm collection according to the threshold.
[0089] The consensus algorithm collection includes two categories: high-security consensus algorithms and high-efficiency consensus algorithms. For example, algorithms such as Proof of Work (PoW), Proof of Stake (PoS), and Delegated Proof of Stake (DPoS) are preset in the system, among which PoW is highly secure, while DPoS tends to be more efficient.
[0090] The strategy adjustment formula is expressed as:
[0091] ,
[0092] in, Indicates the threshold value; Indicates network bandwidth usage Exponential impact on consensus mechanism selection, represents the base of natural logarithms, , , , , , are weight coefficients; this expression shows that the higher the bandwidth utilization rate, the greater the impact on the consensus mechanism selection;
[0093] Indicates the frequency of security incidents The linear impact on the consensus mechanism, which shows that the increase in security incidents directly affects the choice of consensus mechanism;
[0094] middle, is the weight coefficient is a higher integral function , used to evaluate the impact of transaction volume T on the choice of consensus algorithm; T represents the network transaction volume. This part emphasizes the impact of transaction volume on the choice of consensus mechanism;
[0095] Represents the overall impact of quantified block generation time on the choice of consensus mechanism; Represents the block generation time function from 0 to the current transaction volume T The integral of Indicates the change in block generation speed over time. is a constant, t is time;
[0096] In the above equation, D represents the geographical distribution breadth of nodes. This term is used to quantify the impact of the breadth of node distribution on the choice of consensus mechanism.
[0097] middle, It is a complex information filtering function that comprehensively evaluates the current node participation P. This item is used to evaluate the impact of node participation on the choice of consensus mechanism.
[0098] ,in and are the minimum and maximum values of node participation, respectively.
[0099] Automatically switch to the corresponding consensus algorithm from the consensus algorithm collection according to the threshold:
[0100] 1) The system monitors key network parameters in real time and calculates the current thresholds based on the policy adjustment formula The value of
[0101] 2) The preset threshold is ;
[0102] when , it means that the current network is facing high load or security risks, or the node participation is low, and a high-security consensus algorithm is selected;
[0103] when , it means the current network status is good and a highly efficient consensus algorithm is selected;
[0104] 3) Based on the judgment results, the system automatically applies or switches to the corresponding consensus algorithm;
[0105] 4) The system uses the consensus algorithm selection results and network operation performance as feedback to adjust the preset threshold .
[0106] like Figure 3 As shown, the electronic seal verification system based on blockchain of the present invention comprises:
[0107] The seal registration and management module is responsible for the entry, encryption and management of seal information, including seal patterns and authorized user information;
[0108] Dynamic consensus mechanism module, dynamically adjusts consensus nodes and verification processes according to network load and security requirements;
[0109] The seal application and approval module receives and processes the user's seal application, including the document hash value and application information, as well as the management of the approval process;
[0110] The data encryption and on-chain storage module encrypts the approved seal usage records and writes them securely into the blockchain;
[0111] Zero-knowledge proof verification module supports third-party verification of the legitimacy of seal usage without exposing specific usage details;
[0112] Digital signature and verification module, which uses digital signature technology for electronic documents and seals to verify the authenticity of documents;
[0113] The user interface (UI) module provides a user interface for users to submit seal applications, view approval status, and verify results;
[0114] The monitoring and logging module monitors the system operation status and records key operations and event logs to facilitate troubleshooting and security audits.
[0115] The Merkle tree data model of the zero-knowledge proof verification module of the system introduces Bloom filter and evolves into a BMerkle tree data model, such as Figure 4 As shown:
[0116] In the BMerkle tree data model, leaf nodes store the hash value of data, non-leaf nodes store the calculation results of sub-hash values, and the BMerkle tree root is a triple , H is a compact representation of the hash value of all data, BF is a Bloom filter constructed from the data to be stored, It is a zero-knowledge proof parameter generated by the data to be stored, which is used for subsequent verification; in addition, a new address pointer is added to the block structure to point to the next group of data stored in the current block.
[0117] The workflow of the Bloom filter introduced by the zero-knowledge proof verification module of the system is as follows:
[0118] Assumptions is the number of hash functions, is the length of the Bloom filter, is the number of inserted elements, is the false positive rate; then a normally functioning Bloom filter should meet the following requirements:
[0119] 1) Worst case scenario elements can be obtained hash positions, ;
[0120] 2) Hash functions do not affect each other;
[0121] 3) After each element is hashed, the position where it is inserted into the hashed array is completely random;
[0122] For the length The probability that the corresponding bit in the hash array is not set to 1 after an element is hashed once is ,go through The probability that the corresponding bit is not set to 1 after the next , Elements pass through The probability that the corresponding bit is not set to 1 after the hash is , so when the Bloom filter works normally, the probability of this bit being set to 1 is ;
[0123] The formula for calculating the probability of misjudgment is:
[0124] ;
[0125] Assume the function: ,make , take the logarithm and Taking the derivative, we get:
[0126] ;
[0127] when The misjudgment rate is the lowest when:
[0128] ;
[0129] Substitute it into the misjudgment probability calculation formula to obtain:
[0130] ;
[0131] In summary, the error rate At the lowest point, The value of is the ideal number of hash functions: ;
[0132] and , , The relationship between them is:
[0133] .
[0134] like Figure 5 As shown in Figure 2, the verification time of the zero-knowledge proof verification module is compared. After the introduction of the Bloom filter, the verification time of the zero-knowledge proof verification module is greatly reduced.
[0135] The steps of zero-knowledge set membership proof are as follows: Step (1) Initialize the set to generate public parameters; Step (2) Generate random numbers; Step (3) Provide proof; Step (1) takes the longest time and increases with the number of elements. It is usually adopted DIV This method allows step (1) to be performed only once, but DIV The method does not involve the selection of a set. If it is necessary to prove that a certain parameter belongs to a certain set, step (3) needs to be executed continuously, which consumes a lot of time. The present invention can solve this problem by introducing a Bloom filter for fast judgment in step (3).
[0136] like Figure 6 As shown, (a) is a schematic diagram comparing the impact of different security event frequencies on throughput, and (b) is a schematic diagram comparing the impact of network load changes on throughput. Let the network load be 50%. Before the introduction of the dynamic consensus mechanism module, when the frequency of security events is between 0-40 per minute, the throughput fluctuates between 100-400 transactions per minute, and gradually decreases to 0 throughput after 40 transactions; after the introduction of the dynamic consensus mechanism module, it has been fluctuating between 350-500 transactions per minute. Let the frequency of security events be 30 per minute. Before the introduction of the dynamic consensus mechanism module, when the network load is between 0%-60%, the throughput fluctuates between 50-400 transactions per minute, and the network load gradually decreases to 200 transactions per minute between 60%-100%; after the introduction of the dynamic consensus mechanism module, the throughput fluctuates between 400 transactions per minute from 0 to 100%.
[0137] The above description is only a preferred embodiment of the present invention and is not intended to be a further limitation of the present invention. All equivalent changes made using the contents of the present specification and drawings are within the protection scope of the present invention.
Claims
1. A blockchain-based electronic seal verification method, characterized in that: The following steps are involved: The seal administrator registers the seal information through the blockchain platform, including the seal pattern and authorized user information; Build a dynamic consensus mechanism and apply it to electronic seal verification, specifically: S1. The blockchain platform uses AES to encrypt the seal information and generate a unique seal ID; S2. The user submits a seal application, including the hash value of the required document and application information; the blockchain platform uses a dynamic consensus mechanism to approve the seal application; S3. After approval, the seal record is encrypted and stored on the chain; S4. The third party uses zero-knowledge proof technology to verify the legitimacy of the seal; S5. The platform uses digital signature technology for electronic documents and seals to bind the two; S6. The user uses a dynamic consensus mechanism to verify the authenticity of the document and quickly confirm the integrity and non-tampering of the document by matching the seal ID and the document hash value; The dynamic consensus mechanism is specifically constructed as follows: Collect relevant data, including network transaction volume, block generation time, node participation, transaction confirmation time, network bandwidth utilization, security incident frequency, node geographical distribution and node resource status; Build a collection of consensus algorithms; Design strategies to adjust formula calculation thresholds; Based on the threshold, selecting a corresponding consensus algorithm from the consensus algorithm collection according to a judgment condition; The consensus algorithm collection includes a high-security consensus algorithm and a high-efficiency consensus algorithm, and the corresponding algorithm is selected according to the strategy adjustment result; The strategy adjustment formula is expressed as: , in, Indicates the threshold value; Indicates network bandwidth usage Exponential impact on consensus mechanism selection, represents the base of natural logarithms, , , , , , All are weight coefficients; represents the frequency of safety events, represents a higher integral function, Indicates the network transaction volume; Represents the overall impact of quantified block generation time on the choice of consensus mechanism; Represents the block generation time function from 0 to the current transaction volume T The integral of Indicates the change in block generation speed over time. is a constant, t is time; D represents the geographical distribution breadth of the nodes; It is a complex information filtering function that comprehensively evaluates the current node participation P; ,in and are the minimum and maximum values of node participation, respectively.
2. According to the blockchain-based electronic seal verification method of claim 1, it is characterized in that: Based on the threshold, select the corresponding consensus algorithm from the consensus algorithm collection according to the judgment condition: 1) The system monitors key network parameters in real time and calculates the current threshold according to the strategy adjustment formula The value of 2) The preset threshold is ; when , it means that the current network is facing high load or security risks, or the node participation is low, and a high-security consensus algorithm is selected; when , it means the current network status is good and a highly efficient consensus algorithm is selected; 3) Based on the judgment results, the system automatically applies or switches to the corresponding consensus algorithm; 4) The system uses the consensus algorithm selection results and network operation performance as feedback to adjust the preset threshold .
3. An electronic seal verification system based on blockchain, characterized in that: The method according to any one of claims 1 and 2 can be implemented, wherein the system comprises: The seal registration and management module is responsible for the entry, encryption and management of seal information, including seal patterns and authorized user information; Dynamic consensus mechanism module, dynamically adjusts consensus nodes and verification processes according to network load and security requirements; The seal application and approval module receives and processes the user's seal application, including the document hash value and application information, as well as the management of the approval process; The data encryption and on-chain storage module encrypts the approved seal usage records and writes them securely into the blockchain; Zero-knowledge proof verification module, supporting third-party verification of the legitimacy of seal use; Digital signature and verification module, which uses digital signature technology for electronic documents and seals to verify the authenticity of documents; The user interface UI module provides a user interface for users to submit seal applications, view approval status and verification results; The monitoring and logging module monitors the system operation status and records key operations and event logs to facilitate troubleshooting and security audits.
4. According to the blockchain-based electronic seal verification system of claim 3, it is characterized in that: The zero-knowledge proof verification module introduces a Bloom filter based on the Merkle tree to construct a BMerkle tree data model, which quickly verifies whether an element is in the current data set through a binary vector and a series of random mapping functions; In the BMerkle tree data model, leaf nodes store the hash value of data, non-leaf nodes store the calculation results of sub-hash values, and the BMerkle tree root is a triple , H is a compact representation of the hash value of all data, BF is a Bloom filter constructed from the data to be stored, It is a zero-knowledge proof parameter generated by the data to be stored, which is used for subsequent verification; a new address pointer is added to the block structure, pointing to the next group of data stored in the current block.
5. According to the blockchain-based electronic seal verification system of claim 4, it is characterized in that: The workflow of the zero-knowledge proof verification module is as follows: Assumptions is the number of hash functions, is the length of the Bloom filter, is the number of inserted elements, is the false positive rate; then a normally functioning Bloom filter should meet the following requirements: (1) Worst case scenario elements can be obtained hash positions, ; (2) Hash functions do not affect each other; (3) After each element is hashed, the position where it is inserted into the hashed array is completely random; For length The probability that the corresponding bit in the hash array is not set to 1 after an element is hashed once is ,go through The probability that the corresponding bit is not set to 1 after the next , Elements pass through The probability that the corresponding bit is not set to 1 after the hash is , so when the Bloom filter works normally, the probability of this bit being set to 1 is ; The formula for calculating the probability of misjudgment is: ; Assume the function: ,make , take the logarithm and Taking the derivative, we get: ; when The misjudgment rate is the lowest when: ; Substitute it into the misjudgment probability calculation formula to obtain: ; In summary, the error rate At the lowest point, The value of is the ideal number of hash functions: ; and , , The relationship between them is: 。
Citation Information
Patent Citations
Electronic contract system of cone block chain
CN112801606A
Electronic seal generation method and device and electronic device
CN108109187A
Electronic signature system and method taking PDF signature as core
CN116842583A
Matrix consortium blockchain based sponsoring method capable of concealing real name
WO2023082690A1
