Judicial data processing method based on blockchain
By building a blockchain network and smart contracts in the judicial field, we solve the problems of judicial data storage and safe transfer, realize the safe storage and query of data, improve the efficiency and security of judicial business processes, and meet the requirements of domestic independent credibility. control and execution requirements on the entire process chain.
Patent Information
- Application Number
- CN202410247652.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-03-05
AI Technical Summary
Existing technology lacks full-process data storage and secure transfer methods, smart contract design models and vulnerability detection technologies for the judicial field, and it is difficult for public chains or non-domestic consortium chains to achieve domestic independent controllability, and the judicial business processing process is cumbersome, and participants It is difficult to clearly view the progress of the case.
Based on blockchain technology, we build judicial data storage and query methods, use Ethereum to build a blockchain network, set up consensus nodes and observation nodes, form a single chain and dual ledgers, and realize data on-chain and secure storage through smart contracts. Hitch pointers and Merkle Tree ensure that data is difficult to tamper with, enabling information synchronization sharing and multi-party collaboration efficiency.
It realizes the safe storage and query of judicial data, breaks the barriers to information exchange between departments, improves the security of judicial storage data and the efficiency of multi-party collaboration, and provides clear case progress supervision and authorized query functions.
Smart Images

Figure CN118133306B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a judicial data processing method based on blockchain. Background Art
[0002] In terms of on-chain evidence storage, domestic experts and scholars have conducted relevant research on the secure storage of on-chain data. Hou Yibin and others combined the electronic evidence storage with secure and reliable blockchain technology, designed an electronic evidence storage system architecture, realized the batch packaging of electronic evidence, and realized the credibility of the system evidence data. In response to the continuous privacy leakage problem when users use centralized applications, Wang Yujiang and others proposed a privacy data protection solution based on the combination of blockchain technology and attribute-based encryption. The solution realizes one-to-many secure transmission and access control of personal data. Users can control the access rights of applications through the proposed attribute-based encryption solution. In order to solve the threat of single-point information system problems to data sharing, Liu Mingda and others introduced the current research results of blockchain in data CIA (confidentiality, integrity and availability), and looked forward to future research prospects.
[0003] Foreign experts and scholars have also made many research results. In response to the problem of easy tampering of evidence management in digital forensics, Bonomi et al. proposed an improved monitoring chain developed by Ethereum to achieve the process of automating the monitoring chain, so as to ensure the integrity of evidence in the system and the traceability of the evidence owner. In response to the problem of data management when mobile health information data is stored in the server, Ichikawa D et al. developed and evaluated a trusted, auditable, tamper-proof mobile health system based on blockchain technology using a distributed network. In response to the problem that the current digital forensics tools, investigation frameworks and processes of law enforcement agencies in the Internet of Things environment cannot meet the heterogeneity and distribution characteristics, Ryu et al. proposed a digital forensics framework for the Internet of Things infrastructure based on blockchain technology, thereby improving the robustness of the existing evidence data hosting process.
[0004] The above methods have the following problems: ① There are currently no methods, devices, systems and equipment for data storage and secure transfer that are specifically targeted at the judiciary and can cover the entire case handling process; ② The blockchain framework adopted by some solutions is a public chain or a non-domestic alliance chain, which cannot well achieve the goal of domestic independent control; ③ Smart contracts are very helpful for evidence storage and retrieval solutions, but the current technical solutions are only applied to the secure storage and query of evidence data, lacking on-chain execution of the entire judicial business process, and corresponding smart contract solutions, and lacking research and application of smart contract design patterns and vulnerability detection technologies for the judicial field. ④ The judicial business processing process is cumbersome, and participants must be able to clearly view the progress of relevant documents and cases. The present invention aims to solve these problems. Summary of the invention
[0005] In order to solve the above technical problems, the present invention proposes a judicial data processing method based on blockchain, which utilizes blockchain and other technologies to construct judicial data storage and query and an extensible storage method based on smart contracts, thereby breaking down the barriers to information exchange between departments and further improving the security of judicial evidence data.
[0006] In order to achieve the above object, the technical solution of the present invention is as follows:
[0007] Judicial data processing methods based on blockchain include:
[0008] Construction steps: Use Ethereum as the infrastructure to build a blockchain network. The four institutions, namely the Public Security Department, the Procuratorate, the Court and the Department of Justice, are equipped with consensus nodes, observation nodes and disk encryption servers. The nodes of the four institutions and the nodes of the Public Security Department, the Procuratorate and the Court are respectively built into two groups to form a single chain and dual ledgers.
[0009] Evidence storage step: pre-process the case file to be transferred and scan it to convert it into a file image file; add the corresponding case and the additional information of the handler to the file image file; send the file image file to the distributed file system, obtain the file data fingerprint hash calculated by it and return it to the system; send the hash value of the file image file, the case corresponding to the file file, the additional information such as the external handler, etc. to the blockchain network, so that the blockchain network stores the information of the file image file;
[0010] Acquisition steps: input case information for query, query on the blockchain network through smart contracts to obtain the file image file hash fingerprint and corresponding additional information; query in the distributed file system based on the obtained file image file hash fingerprint as a query condition; obtain the file image file from the distributed file system;
[0011] Storage steps: According to the software engineering specifications, the UML modeling language is used to sort out the business model, and the judicial evidence storage requirements are described as unified modeling written symbols; the domain-specific language DSL is used to provide a smart contract design pattern based on the unified modeling language UML; the smart contract design pattern multi-contract overall structure design; combined with the existing smart contract security issues, an example model description in the judicial field is given to realize the basic mode of on-chain execution of judicial business logic;
[0012] Regulatory steps: Determine modular smart contracts based on legal contracts and case management specifications; use multi-signature contract templates to upgrade smart contracts; record the progress of relevant cases in real time in the audit log and upload it to the blockchain network; select participants for authorization, and authorize participants to query case information through smart contracts.
[0013] Preferably, the pre-processing includes signing and stamping operations.
[0014] Preferably, the input case information for query includes inputting the case information corresponding to the file image file, including but not limited to the case number.
[0015] Preferably, the blockchain network includes alliance chain, domestic FISCO BCOS, Changan Chain, and Ant Chain.
[0016] Preferably, the distributed file system includes the InterPlanetary File System and the Hadoop HDFS distributed file system.
[0017] Preferably, the smart contract design pattern description includes: automatic destruction, data-logic separation, contract registry, post-external call, automatic delay, contract function decomposition and emergency shutdown.
[0018] Preferably, the modular smart contract description includes: contract function, query function, signature template, privacy protection, smart contract vulnerability detection, and identity verification.
[0019] The above smart contract design patterns implement a guiding framework for security and functionality, while modular smart contracts serve as the basic unit for implementing basic business functions.
[0020] Based on the above technical solution, the beneficial effects of the present invention are as follows: the present invention utilizes blockchain technology to jointly build an alliance system through various judicial institutions, and the various departments under the institutions are interconnected as nodes and deploy smart contracts to jointly maintain the alliance blockchain network. Case information and other data are uploaded to the chain by calling the deployed and implemented smart contract for evidence storage. The hash pointer and Merkle Tree technologies between blocks are used to ensure that the data is difficult to tamper with. Each node stores all the information on the blockchain. Through the consensus algorithm of the network, information synchronization and sharing are achieved, thereby improving the efficiency of multi-party collaboration. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a flow chart of the judicial data evidence storage method in this embodiment;
[0022] Figure 2 Flow chart of the judicial data acquisition method based on the judicial data evidence storage method in this embodiment;
[0023] Figure 3 This is a structural diagram of the judicial evidence storage and query system in this embodiment;
[0024] Figure 4 This is a flow chart of the judicial evidence storage solution based on smart contracts in this embodiment;
[0025] Figure 5This is a schematic diagram of the structure of the blockchain network in the judicial data storage and extraction method in this embodiment;
[0026] Figure 6 This is a structural diagram of judicial evidence storage contract management based on smart contracts in this embodiment;
[0027] Figure 7 This is a flow chart of the judicial process supervision scheme based on smart contracts in this embodiment. DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0029] The embodiment of the present invention discloses a judicial data processing method based on blockchain. The blockchain technology is used to jointly build an alliance system through judicial institutions. The various departments under the institutions are interconnected as nodes and deploy smart contracts to jointly maintain the alliance blockchain network. Case information and other data are uploaded to the chain by calling the deployed smart contract for evidence storage. The difficulty of data tampering is ensured by technologies such as hash pointers and Merkle Tree between blocks. Each node stores all the information on the blockchain. Through the consensus algorithm of the network, information synchronization and sharing are achieved, thereby improving the efficiency of multi-party collaboration.
[0030] In the judicial data processing method based on blockchain in the embodiment of the present invention, Ethereum is used as the infrastructure to build a blockchain network. The four institutions of the Public Security Department, the Procuratorate, the Court and the Justice Department are all equipped with consensus nodes, observation nodes and disk encryption servers. The nodes of the four institutions and the nodes of the Public Security Department, the Procuratorate and the Court respectively form two groups to form a single-chain dual-ledger.
[0031] In the description of the four steps of evidence storage, acquisition, storage and supervision, the evidence storage step describes the on-chain evidence storage operation based on blockchain judicial documents, so as to achieve security protection for judicial documents; the acquisition step describes the files stored in the evidence storage step, and can perform integrity verification and other operations on the evidence files; the storage step describes the execution of operations on the chain after the judicial business modeling based on smart contracts, so as to achieve full business traceability; the supervision step describes the management and supervision operations such as the deployment, upgrade, business log and query authorization of smart contracts on the chain. The details are as follows:
[0032] The judicial data processing method based on blockchain in the embodiment of the present invention also discloses a judicial data storage method, such as Figure 1 shown. Figure 1 This is a flow chart of a judicial data evidence storage method in an embodiment of the present invention. The method includes:
[0033] In step S101, the case file to be transferred is signed or fingerprinted, and then scanned and processed into a file image file.
[0034] The execution subject of the embodiment of the present invention may be a backend processing server, such as Figure 3 As shown, the server interacts with the front-end user and the blockchain network and the distributed file system.
[0035] In step S102, additional information such as the corresponding case and the person handling the case is added to the above-mentioned file image file for off-chain storage. Off-chain data storage refers to the secure storage of the original data files uploaded by the business user to the system. The original files are stored in the off-chain database, which is convenient for users to compare the files with their corresponding on-chain fingerprints when downloading them, perform file integrity verification, and verify whether the evidence files have been tampered with.
[0036] In step S103, the user stores data such as file images and files to the off-chain distributed database, including the following steps:
[0037] Initialization of the judicial evidence storage system and distribution of user keys. When the system is initialized, the data center of each institution is set as a blockchain node, and the institution administrator assigns the user number U i Sent to the business user, the organization generates encryption, decryption and signature key pairs, represented as {U i ,PK encode α ,SKe ncode α ,PK sign α ,SK sign α}.
[0038] Department business users upload evidence files and file information to the evidence storage system, encrypt them with the institution's public key, add user numbers, and the system generates index values based on the data type, the case to which the file is uploaded, and the current timestamp. Generate storage data Upload_data1.
[0039] Upload_data1={I||U i ||E PK encode α (m i )}
[0040] Store Upload_data1 in the organization's interplanetary file system IPFS and return the processing result to the user.
[0041] In step 104, the hash value of the file image file, the case corresponding to the file file, and additional information such as the person handling the case are sent to the blockchain network, so that the blockchain network stores the information of the file image file. The steps are as follows:
[0042] Initialization of the judicial evidence storage system and distribution of user keys. When the system is initialized, the data center of each institution is set as a blockchain node, and the institution administrator assigns the user number U i Sent to the business user, the organization generates encryption, decryption and signature key pairs, represented as {U i ,PK encode α ,SKe ncode α ,PK sign α ,SK sign α}.
[0043] Department business users upload the evidence files and file information to the evidence storage system. User U i The constructed data is sent to the blockchain node DC where the institution is located α The structure data FR_data1 is:
[0044] FR_data1={I||m2||Sign SK sign α (m2)},
[0045] Where m2={hash(m i )||U i ||Timestamp},m i For U i The raw data to upload.
[0046] After receiving the data, the local blockchain node verifies whether it is a legal signature. If it is illegal, it will be discarded and a log will be recorded. If it passes, it will proceed to the next step. The verification process is as follows:
[0047] Design PK sign α (m2)@=@Sign SK sign α (m2)? ,
[0048] The signature algorithm should be one-way to ensure that the original information will not be obtained during the signature verification process. Design is an algorithm that uses PKsignα to verify the original data, and @=@ indicates that the verification of the signature algorithm passes the equivalent condition.
[0049] After verifying the validity of the signature, the local blockchain node operates through the contract interface deployed on the chain, and the transaction is sent to the network in the form of a transaction, processed by the PBFT consensus algorithm, and finally stored in the blockchain system. After successful storage, the processing result is returned to the business user.
[0050] The characteristics of the blockchain network are distributed collaboration, data security and difficulty in tampering, and a P2P peer-to-peer network at the bottom. Optionally, the blockchain network structure is as follows:
[0051] Use the FISCO BCOS framework to build a blockchain network, such as Figure 5 As shown in the figure, each department sets up consensus nodes, observation nodes and disk encryption servers. The four departments form a blockchain evidence storage network, and each blockchain node has a unique node identifier. The consensus node is responsible for building a consortium chain network with consensus nodes of other institutions. The node uses the PBFT consensus algorithm to reach consensus with other nodes and participate in the synchronization of transactions and blocks in the network. The blockchain network is set up as two groups. All nodes in the network together form group 1, and the nodes of the three departments of public security, procuratorial and judicial departments form group 2, forming a single chain with two ledgers, reflecting that the nodes on the chain can be combined according to business changes.
[0052] Observation nodes are also in the network with consensus nodes, but they do not participate in the PBFT consensus process. They only participate in block synchronization, are responsible for real-time synchronization of data from consensus nodes, and send transactions to the network. The PBFT consensus algorithm used in the network is a BFT consensus. Like the CFT consensus algorithm, the PBFT consensus program is highly complex and does not have infinite scalability. Most of these business frameworks have only some nodes as consensus nodes, and the other nodes are business processing nodes that interact with the outside of the chain. They do not participate in the consensus and relieve the pressure on the consensus nodes, but have all the data of the blockchain.
[0053] The disk encryption (Key Manager) server is responsible for managing the disk encryption processing of all types of node data. Each organization must have its own disk encryption key management server to control the confidentiality of node storage data. The so-called disk encryption refers to the encryption of the hard disk of the node in the department's intranet environment to prevent the data from being obtained when the node hard disk is not in the original network due to objective or subjective reasons, and thereby protect the confidentiality of the data from being destroyed.
[0054] Optionally, when designing a smart contract, encapsulate the smart contract where the core function is located into another smart contract. This smart contract only has the constructor of the core contract but no core function, so as to solve the problem of contract API and address exposure. A layered contract structure is adopted, with factory contract, evidence contract and query contract. Three Solidity contracts jointly complete the functions of the contract factory. Only the factory contract is exposed to the outside world, and the factory contract creates a new sub-contract. All sub-contracts are maintained by a unified factory. After agreement, all parties can call the contract to initiate a new sub-contract, which is convenient for continued expansion as the project progresses.
[0055] The evidence storage contract is generated by the factory contract. After verifying the uploader's signature, it stores the electronic evidence number, hash and other uploaded information as well as the local address and other related information. The query contract is generated by the factory contract, executes the query operation of electronic data stored on the chain, and returns the evidence information. The evidence query contract is used in FISCO BCOS by calling the system precompiled contract KVTable system table.
[0056] The judicial data processing method based on blockchain in the embodiment of the present invention also includes a judicial data acquisition method, such as Figure 2 shown. Figure 2 The following is a flow chart of a judicial data acquisition method according to an embodiment of the present invention. The method includes:
[0057] In step 201, first, the judicial evidence storage system is initialized and user keys are distributed. When the system is initialized, the data center in each institution is set as a blockchain node, and the institution administrator assigns the user number U i Sent to the business user, the organization generates encryption, decryption and signature key pairs, represented as {U i ,PK encode α ,SKe ncode α ,PK sign α ,SK sign α The user enters relevant information for query, and obtains the hash fingerprint of the file image file and the corresponding additional information through the smart contract on-chain query.
[0058] In step 202, the requester U R Upload evidence to U i Send an authorization request, where U R Belongs to the institution DC α , U i Belongs to the institution DC β .U R The construction request information is as follows:
[0059] Request1 = {E PKencode β (I||rand_num||Sign SK sign α (I))},
[0060] Among them, rand_num is used to prevent replay attacks.
[0061] Uploader U i By RequesterU R Public Key PK sign α Verify the signature to prevent data forgery: First, U i Decrypt the data.
[0062] D SK encode β (Request1)=>I||rand_num||Sign SK sign α (I)
[0063] Then, verify U R Signature, if passed, it proves the identity of the user of α organization, if not, the data will be discarded
[0064] Design PK sign α(I)@=@Sign SK sign α (I)?
[0065] Uploader U i Obtain the ciphertext E from the local database by querying I PK encode β (m i ), decrypt the data:
[0066] M1={D SK encode β (E PK encode β (m i ))}=m i
[0067] In step 203, the uploader U i Return to the requester U R Using public key PK encode α Encrypted evidence file, requesting party U R You can use the plaintext file data to decode:
[0068] response = E PK encode α (M i ||Sign SK sign β (M1)), Design SK encode α (response)=>M i
[0069] The judicial data processing method based on blockchain in the embodiment of the present invention also discloses a judicial evidence storage scheme, such as Figure 4 shown. Figure 4 This is a flowchart of a judicial evidence storage solution in an embodiment of the present invention. The method includes:
[0070] In step 401, the UML modeling language is used to comb the business model, and the judicial evidence needs are described as unified modeling written symbols. According to software engineering specifications, the combing of business models often starts with demand analysis. The demand analysis using traditional software engineering can use the UML modeling language to more accurately describe the needs, and the judicial evidence needs can be described as unified modeling written symbols. This method can better solve the smart contract development problem solution that is also applicable to this demand analysis model. As an object-oriented software modeling language, the unified modeling language plays an important role in the software analysis and design process. It has a wide range of modeling capabilities and reflects entities, properties, relationships, structures and dynamic changes. UML can more accurately describe the business process of the judicial evidence system.
[0071] Optionally, the UML elements include: participant behavior, state machine, class and interface, etc.
[0072] In step 402, a domain-specific language DSL is used to provide a more standard model description based on the unified modeling language UML. Optionally, the corresponding relationship between the UML and DSL elements includes: pater=>Actors, action=>actors, initial state, decision, final state=>Events objects, class=>value ports, interface=>value objects.
[0073] In step 403, the overall structure design of multiple contracts is determined according to the needs of judicial evidence storage. According to business needs, the smart contract is automatically triggered to complete the circulation after reading the file for real-time approval. Because some files have obvious life cycle characteristics, the file needs to be approved by one department before it can be transferred to the next department; after the business model is determined, it is necessary to select a suitable smart contract design pattern, consider the design pattern of smart contracts that meet security and performance requirements in the design phase, and introduce an overall architecture design that can complete the full life cycle management of smart contracts. Some existing design patterns are suitable for smart contract development in public security, prosecution and judicial systems, and it is crucial to adopt appropriate standards in the selection process. Communication between the demand side and the customer during the analysis and design of smart contracts. How to ensure effective communication between the two parties is one of the solutions that this study needs to provide.
[0074] According to the needs of judicial evidence storage, determine the overall structural design of multi-contract management. Figure 6 As shown, all contract addresses are recorded in the contract registry, and the business process control module reads the process information from the lower-level process record contract, and then changes the case status, evidence and document contracts at the same level. This realizes the unification of data flow and service flow.
[0075] In step 404, the smart contract design pattern description may include: automatic destruction, data-logic separation, contract registry, post-external call, automatic delay, contract function decomposition, and emergency shutdown, etc. Among them, automatic destruction realizes the automatic planned stop of the business contract by executing the self-destruction of the contract; data-logic separation makes the contract upgrade convenient by separating the on-chain data and business logic; the contract registry facilitates the management of business contracts by recording the contract status; post-external call reduces the probability of security risks such as reentrancy by post-calling; the automatic delay mode reduces the risk of attacks such as DDoS by independently setting the transaction completion time; the contract function decomposition realizes the update of some contract functions in specific scenarios; and the emergency shutdown realizes the emergency stop of the contract function when the contract is attacked maliciously.
[0076] The judicial data processing method based on blockchain in the embodiment of the present invention also discloses a judicial process supervision scheme, such as Figure 7 As shown, Figure 7 This is a flowchart of a judicial process supervision scheme in an embodiment of the present invention. The method includes:
[0077] In step 701, smart contract language (Solidity language, etc.) is used to build contract management and case management, and a modular smart contract architecture is adopted. In building contract management, it is ensured that the deadline, liability terms, condition trigger points, etc. stipulated in the contract are accurately reflected in the smart contract. The contract status is updated through the contract function ContractUpdated to achieve transparency and traceability.
[0078] The modular smart contract description includes: contract function, query function, signature template, privacy protection, smart contract vulnerability detection, and identity verification. Among them, contract function and query function are the basic units for implementing functions; signature template implements signature authorization and other modes; smart contract vulnerability detection implements regular security checks on on-chain contracts; and identity verification implements identity verification for those who call the contract.
[0079] The smart contract for case management should reflect the standardization and strictness of the judicial system, including case registration, court records, evidence collection, trial decisions, etc. The contract contains the case information data structure CaseManager, which is used to store multiple key information such as case CaseId, party information Plaintiff, Defendant, case type CaseType, etc., to ensure that each link of the case can be accurately located and recorded, so as to clearly implement the obligations and responsibilities of the corresponding subject.
[0080] In step 702, according to the constantly updated business needs in the judicial department, there should also be a corresponding upgrade plan for the smart contract. The signature template in the present invention adopts a multi-signature contract template, in which each participant sets a multi-signature account, which needs to be signed by a specific number of participants to execute the contract, and set its corresponding voting weight, in order to ensure that different participants have different influences on the vote on the upgrade proposal. Using a multi-signature contract to upgrade the smart contract can improve the security and decentralized governance of the smart contract; the multi-signature contract requires the signatures of multiple accounts to execute the operation, which helps to increase the credibility and fairness of the decision-making, prevent potential abuse risks, and support decentralized democratic governance. In order to ensure sufficient support, a voting weight of 51% is set to determine whether the upgrade proposal is passed. At the same time, in order to prevent multiple votes, a unique identifier (hash value) is assigned to each upgrade proposal. The user of each address can only vote for one proposal. The final voting result will be stored on the blockchain, and a query interface is provided to ensure the transparency of the vote. When the vote fails, the fallback mechanism in the upgrade plan is adopted, and the proposal expiration time is set to prevent invalid resource occupation.
[0081] In step 703, the real-time record of case information includes case number CaseId, party information Plaintiff, Defendant, litigation materials Proceedings; court decisions include Adjudication and related files Files; execution progress includes court notices and payment status Payment, and the state variables of these smart contracts are updated in real time. At the same time, the audit log Log is used as a special state variable, event information is added regularly, and the integrity of the audit log is ensured by using the immutability and hash function of the blockchain. The real-time update of the case status and the automatic execution of the trial decision are realized through the contract function CaseUpdated to ensure the accuracy and credibility of the judicial data. In order to upload data to the blockchain, web3.js is used to create a transaction through the interface of the smart contract. For the data to be uploaded, it is signed with the private key of the head of the judicial department. If multiple parties are required to participate, a multi-signature contract is used to implement multi-party signature.
[0082] Use zero-knowledge proof to process sensitive data to protect privacy. Set the party information (Plaintiff, Defendant), litigation materials (Proceedings), court decisions (Adjudication) and related files) as sensitive information. Select the proof scheme of zero-knowledge interactive non-interactive proof (zk-SNARKs) to convert sensitive information into zero-knowledge proof statements. Integrate the verification logic of zero-knowledge proof in smart contracts to implement smart contract functions that process sensitive information. After preprocessing sensitive information, use the zero-knowledge proof tool library to generate a zero-knowledge proof containing sensitive information. Finally, transmit the generated zero-knowledge proof together with related operations to the smart contract.
[0083] In step 704, in order to enable authorized participants to query historical information through smart contracts, a permission management mechanism is applied in the smart contract to ensure that only authorized participants can query historical information. The getHistory query function in the contract accepts parameters such as case number CaseId, party information Plaintiff, Defendant, Adjudication, and court notices, and returns a data structure containing case information, court decisions, and execution progress.
[0084] In order to protect privacy, the RSA encryption algorithm is adopted, and a key rotation mechanism is introduced in key management. First, the system generates a pair of asymmetric keys, including a public key and a private key, where the public key is used for encryption and the private key is used for decryption. This pair of keys is securely generated and stored by the system. Subsequently, key rotation is performed regularly to enhance the security of the keys. During the key rotation process, the system generates a new pair of keys and sets them as effective keys to ensure that only legitimate participants in the entire system can access the decryption key. When recording historical information, the system uses the currently effective public key for encryption. When querying historical information, only legitimate participants holding the corresponding private key can decrypt and view the data, ensuring the privacy and security of historical information. This design of asymmetric encryption and key rotation not only improves the confidentiality of the data, but also effectively reduces the risk of key leakage by regularly rotating keys, providing a strong guarantee for the security of the judicial data supervision scheme.
[0085] The above are only preferred embodiments of the embodiments of the present application and are not intended to limit the embodiments of the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.
Claims
1. A judicial data processing method based on blockchain, characterized in that: include: Construction steps: Use Ethereum as the infrastructure to build a blockchain network. The four institutions, namely the Public Security Department, the Procuratorate, the Court and the Department of Justice, are equipped with consensus nodes, observation nodes and disk encryption servers. The nodes of the four institutions and the nodes of the Public Security Department, the Procuratorate and the Court are respectively built into two groups to form a single chain and dual ledgers. Evidence storage step: pre-process the case file to be transferred and scan it to convert it into a file image file; add the corresponding case and the additional information of the handler to the file image file; send the file image file to the distributed file system, obtain the file data fingerprint hash calculated by it and return it to the system; send the hash value of the file image file, the case corresponding to the file image file, the additional information such as the external handler, etc. to the blockchain network, so that the blockchain network stores the information of the file image file; Acquisition steps: input case information for query, query on the blockchain network through smart contracts to obtain the file image file hash fingerprint and corresponding additional information; query in the distributed file system based on the obtained file image file hash fingerprint as a query condition; obtain the file image file from the distributed file system; Storage step: According to software engineering specifications, use the UML modeling language to sort out the business model and describe the judicial evidence storage requirements as unified modeling written symbols; Use domain-specific language DSL to provide smart contract design patterns based on the unified modeling language UML; The smart contract design pattern multi-contract overall structure design; Combined with existing smart contract security issues, an example model description in the judicial field is given; The smart contract design pattern description includes: automatic destruction, data-logic separation, contract registry, post-external call, automatic delay, contract function decomposition and emergency shutdown, among which automatic destruction realizes the automatic planned stop of business contracts by executing contract self-destruction; data-logic separation makes contract upgrade convenient by separating the on-chain data and business logic; contract registry facilitates business contract management by recording contract status; post-external call reduces the probability of reentrant security risks by post-calling; automatic delay mode reduces the risk of DDoS attacks by independently setting the transaction completion time; contract function decomposition realizes the update of some contract functions in specific scenarios; emergency shutdown realizes the emergency stop of contract functions when the contract is attacked maliciously; Regulatory steps: Determine modular smart contracts based on legal contracts and case management specifications; use multi-signature contract templates to upgrade smart contracts; record the progress of relevant cases in real time in the audit log and upload it to the blockchain network; select participants for authorization, and authorize participants to query case information through smart contracts.
2. The judicial data processing method based on blockchain according to claim 1 is characterized in that: The pre-processing includes signing and stamping operations.
3. The judicial data processing method based on blockchain according to claim 1 is characterized in that: The input of case information for query includes inputting case information corresponding to the file image file, including but not limited to the case number.
4. The blockchain-based judicial data processing method according to claim 1 is characterized in that: The blockchain network includes alliance chain, domestic FISCO BCOS, Changan Chain and Ant Chain.
5. The blockchain-based judicial data processing method according to claim 1 is characterized in that: The distributed file system includes the InterPlanetary File System and the Hadoop HDFS distributed file system.
6. The judicial data processing method based on blockchain according to claim 1 is characterized in that: The smart contract design pattern description includes: automatic destruction, data-logic separation, contract registry, post-external call, automatic delay, contract function decomposition and emergency shutdown.
7. The blockchain-based judicial data processing method according to claim 1 is characterized in that: The modular smart contract description includes: contract function, query function, signature template, privacy protection, smart contract vulnerability detection, and identity verification.
