Emergency record secure storage method and system based on block chain technology
By using blockchain technology, hashing algorithms, zero-knowledge proofs and smart contracts in the first aid record management system, the shortcomings in existing systems in terms of security, transparency and traceability are solved, and the safe, transparent and efficient management of first aid records are achieved.
Patent Information
- Application Number
- CN202411940173.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2044-12-26
AI Technical Summary
The existing first aid record management system has shortcomings in terms of security, transparency and traceability, is vulnerable to attacks, is time-consuming and error-prone to manual audits, and lacks strict access control mechanisms.
Using a blockchain technology method, we use hash algorithms and zero-knowledge proof to build tamper-free data packets by receiving and attaching time stamps and geographic location information, using hash algorithms and zero-knowledge proofs to automatically review the compliance and permissions of the data packets through smart contracts, and synchronize them between multiple nodes using distributed consensus algorithms, introducing off-chain computer system to process a large number of transactions, and ultimately providing an access control interface to ensure the security and transparency of the data.
It realizes the safety, transparency and traceability of first aid records, reduces the risk of attacks on the system, improves audit efficiency and accuracy, ensures the security and privacy of data, and improves the efficiency and response speed of the system.
Smart Images

Figure CN119966598A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of blockchain and zero-knowledge proof technology, and in particular to a method and system for securely storing first aid records based on blockchain technology. Background Art
[0002] In the field of emergency medicine, it is crucial to quickly and accurately record and transmit emergency event data. Emergency records need to contain not only detailed patient information, but also accurate timestamps and geographic location information to ensure the timeliness and effectiveness of rescue operations. In addition, in order to ensure the authenticity and integrity of data and prevent tampering or forgery, advanced encryption technology and distributed storage mechanisms must be introduced.
[0003] At present, the management and storage of emergency records mainly rely on traditional centralized database systems. These systems usually process emergency records in the following ways: All emergency records are stored in a central server for easy management and query. The compliance and permissions of emergency records are manually reviewed to ensure the validity of the data. Basic encryption algorithms are used to protect the security of data, but there is a lack of complex verification mechanisms.
[0004] However, the existing emergency record management system meets basic needs to a certain extent, but there are still significant deficiencies: centralized databases are easy targets for attack, and once hacked, a large amount of sensitive data may be leaked or tampered with. The manual review process is time-consuming and error-prone, and it is impossible to process a large number of emergency records in real time, affecting the speed of emergency response. Since the data is centrally managed by a single institution, it is difficult for other relevant parties to verify the authenticity and integrity of the data, reducing the transparency of the system and the trust between all parties. The traditional system lacks a strict access control mechanism, cannot effectively protect the privacy of patients, and is prone to unauthorized access and data abuse. Summary of the invention
[0005] The embodiments of the present application provide a method and system for secure storage of first aid records based on blockchain technology, so as to solve the problems of low security, transparency and traceability of first aid records in the prior art.
[0006] In a first aspect, the embodiment of the present application provides a method for securely storing first aid records based on blockchain technology, including:
[0007] Receiving first aid record data generated in the first aid event, and attaching a timestamp and geographic location information to each first aid record data, to obtain first aid record data containing the timestamp and geographic location information;
[0008] The first aid record data including the timestamp and geographic location information is converted using a hash algorithm, and combined with the identity verification information of the first aid personnel and the identifier of the first aid equipment, an unalterable data packet is constructed based on a zero-knowledge proof algorithm to obtain a data packet containing the authenticity and integrity proof of the first aid information;
[0009] According to the data packet containing the authenticity and integrity proof of the emergency information, the compliance and authority of the data packet are automatically reviewed through the smart contract, and the emergency record data packet allowed to join the blockchain network is obtained;
[0010] Using a distributed consensus algorithm, the emergency record data packets allowed to join the blockchain network are synchronized among multiple nodes, and an off-chain computing mechanism is introduced to process a large number of transactions, so as to obtain emergency records that are securely and transparently stored without centralized management;
[0011] Based on the secure and transparently stored first aid records, an access control interface is provided to enable relevant parties to query and verify the first aid records in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed.
[0012] Optionally, the first aid record data containing the timestamp and geographic location information is converted using a hash algorithm, and combined with the identity verification information of the first aid personnel and the identifier of the first aid equipment, an unalterable data packet is constructed based on a zero-knowledge proof algorithm to obtain a data packet containing the authenticity and integrity proof of the first aid information, including:
[0013] Using a secure hash algorithm, the first aid record data containing timestamp and geographic location information is processed to obtain a unique hash value, which is used as a digital fingerprint of the first aid record data to ensure the integrity and uniqueness of the data;
[0014] Based on the unique hash value, combined with the identity authentication information of the first aid personnel and the unique identifier of the first aid equipment, a composite data structure is constructed, wherein the composite data structure includes the content of the first aid record, associates the specific executor of the first aid operation and the equipment used, and increases the traceability and responsibility of the data;
[0015] A proof is created based on the composite data structure using a zero-knowledge proof algorithm, wherein the proof allows providing evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without revealing any actual first aid record content, thereby obtaining a zero-knowledge proof;
[0016] Based on the zero-knowledge proof, the original first aid record hash value, the identity verification information of the first aid personnel and the identifier of the first aid equipment are packaged together to form an unalterable data packet. The data packet can be verified by the nodes in the blockchain network to ensure that the first aid record has not been tampered with from the generation to the storage process, and to verify the authenticity and reliability of the source of the first aid record, and finally obtain a data packet containing the authenticity and integrity proof of the first aid information.
[0017] Optionally, the method of using a secure hash algorithm to process the emergency record data containing the timestamp and geographic location information to obtain a unique hash value, wherein the unique hash value is used as a digital fingerprint of the emergency record data to ensure the integrity and uniqueness of the data, including:
[0018] Based on the first aid record data including timestamp and geographic location information, selecting a recognized secure hash algorithm, wherein the secure hash algorithm has collision resistance;
[0019] Using the secure hash algorithm, the emergency record data containing timestamp and geographic location information is processed to obtain a unique hash value, which serves as a digital fingerprint of the emergency record data. Any slight change to the original data will result in a completely different hash value, ensuring the integrity and uniqueness of the data.
[0020] According to the unique hash value, before adding the unique hash value to the blockchain, checking whether there is an existing hash value identical to the unique hash value in the current blockchain network to verify the uniqueness of the hash value and obtain a verified hash value;
[0021] Based on the verified hash value, the verified hash value is associated with the corresponding first aid record data to ensure that each first aid record has a unique digital fingerprint, which helps to subsequently build an unalterable data package and quickly locate and verify a specific first aid record when needed.
[0022] Optionally, the zero-knowledge proof algorithm is used to create a proof based on the composite data structure, which allows providing evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without revealing any actual first aid record content, and obtains a zero-knowledge proof, including:
[0023] Based on the constructed composite data structure, preparing basic data for generating a zero-knowledge proof using the composite data structure;
[0024] The basic data is processed using a zero-knowledge proof algorithm to ensure that a zero-knowledge proof is created and obtained without revealing any actual first aid record content. The zero-knowledge proof can provide evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without disclosing the specific content of the first aid record;
[0025] According to the zero-knowledge proof, combined with the hash value in the composite data structure, the identity authentication information of the first aid personnel and the identifier of the first aid equipment, the necessary verification information is provided for the subsequent construction of an unalterable data packet, ensuring that the first aid record has not been tampered with from generation to storage, and verifying the authenticity and reliability of the source of the first aid record.
[0026] Optionally, the distributed consensus algorithm is used to synchronize the emergency record data packets allowed to join the blockchain network among multiple nodes, and an off-chain computing mechanism is introduced to process a large number of transactions, so as to obtain emergency records that are securely and transparently stored without centralized management, including:
[0027] Using a distributed consensus algorithm, the first aid record data packets that have passed the smart contract review and are allowed to join the blockchain network are synchronized between nodes to obtain first aid record data packets that are agreed upon and verified to be valid by most nodes;
[0028] According to the agreed and verified first aid record data package, the agreed and verified first aid record data package is added to the blockchain under decentralized management to generate valid first aid record data that is confirmed without a single controlling entity;
[0029] Based on the valid first aid record data, an off-chain calculation mechanism is introduced to process a large amount of first aid record data or non-critical transactions that do not need to be reflected on the chain immediately, so as to meet the needs of efficient processing and obtain preliminary results after off-chain calculation;
[0030] Using a distributed consensus algorithm, the preliminary results after off-chain calculation are verified again to ensure that the preliminary results after off-chain calculation meet the standards for joining the main chain, and generate the first aid record data that is finally officially added to the blockchain;
[0031] According to the first aid record data finally formally added to the blockchain, by further combining the distributed consensus algorithm and the off-chain computing mechanism, first aid records that are securely and transparently stored under decentralized management are obtained.
[0032] Optionally, the first aid record stored securely and transparently provides an access control interface, so that relevant parties can query and verify the first aid record in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed, including:
[0033] Based on the first aid records that are securely and transparently stored without centralized management, an access control system is constructed, and the access control system is configured to identify and verify the identity of the parties requesting to query or verify the first aid records, so as to obtain an access control system that can ensure that only authorized users operate in accordance with strict privacy protection rules;
[0034] The access control system is enhanced by using encryption technology and a rights management system to ensure that each query or verification request undergoes strict identity authentication and rights checks, and to generate a protected access control interface that only allows requests that meet preset rights rules to pass;
[0035] According to the protected access control interface, different access levels and permission ranges are customized according to different roles and needs of relevant parties to obtain customized access permission settings to ensure that different roles have appropriate access permissions;
[0036] Combined with the tamper-proof nature of blockchain, all query and verification activities based on the customized access rights settings are recorded and processed to generate unchangeable and transparent access logs to ensure the transparency and post-audit capabilities of the system;
[0037] Automatically execute access control policies through smart contracts, automatically process access requests recorded in the immutable and transparent access log according to pre-set rules, and generate an access control execution mechanism protected by smart contracts to ensure that unauthorized modification or deletion operations are not allowed;
[0038] Provide a logging function to record in detail every successful or attempted access behavior in the access control execution mechanism based on the smart contract, including information about the visitor's identity, access time, and access content, and generate a secure and tamper-proof log record stored on the blockchain.
[0039] Optionally, the data packet containing the authenticity and integrity certificate of the first aid information is automatically reviewed by a smart contract for compliance and authority of the data packet to obtain a first aid record data packet that is allowed to join the blockchain network, including:
[0040] Based on the data packet containing the authenticity and integrity certificate of the first aid information, receiving and processing the data packet containing the authenticity and integrity certificate of the first aid information, ensuring that each data packet contains the timestamp and geographic location information of the first aid event, as well as the identity verification information of the first aid personnel and the identifier of the first aid equipment, and generating a first aid record data packet ready for review;
[0041] Using smart contracts to define audit standards, based on the emergency record data package to be audited, pre-set the rules and conditions in the smart contract, including data format, validity of timestamps, rationality of geographic location information, identity verification information of emergency personnel and accuracy of emergency equipment identifiers, and generate a smart contract rule set;
[0042] Based on the smart contract rule set, the first aid record data package to be reviewed is automatically reviewed for compliance, and the data package is verified to see whether it meets all preset conditions, thereby obtaining a data package that has passed the preliminary compliance check;
[0043] Performing permission verification processing based on the data packet that has passed the preliminary compliance check, using the smart contract to confirm the identity and operation authority of the emergency personnel or submitter, and generating a data packet with sufficient authority;
[0044] Based on the data packet with sufficient authority, the smart contract is used to perform a final audit process. If the data packet with sufficient authority passes all compliance and authority checks, a positive audit result is generated. For the data packet that fails the audit, a negative audit result is generated, and a notification mechanism is triggered to inform the relevant parties of the reason.
[0045] According to the positive audit result, the data packet that has passed the smart contract audit is marked to obtain a first aid record data packet that is allowed to join the blockchain network.
[0046] In a second aspect, the embodiment of the present application provides a first aid record security storage system based on blockchain technology, including:
[0047] A receiving module, used to receive the first aid record data generated in the first aid event, and to add a timestamp and geographic location information to each first aid record data, so as to obtain the first aid record data containing the timestamp and geographic location information;
[0048] A conversion construction module is used to convert the emergency record data containing the timestamp and geographic location information using a hash function, and to construct an unalterable data packet based on a zero-knowledge proof algorithm in combination with the identity verification information of the emergency personnel and the identifier of the emergency equipment, so as to obtain a data packet containing the authenticity and integrity proof of the emergency information;
[0049] An audit module is used to automatically audit the compliance and authority of the data packet containing the authenticity and integrity certificate of the first aid information through a smart contract, and obtain a first aid record data packet that is allowed to join the blockchain network;
[0050] A processing module, used to synchronize the first aid record data packets allowed to join the blockchain network among multiple nodes using a distributed consensus algorithm, and introduce an off-chain computing mechanism to process a large number of transactions, so as to obtain first aid records that are securely and transparently stored without centralized management;
[0051] A module is provided for providing an access control interface based on the secure and transparently stored first aid records, so that relevant parties can query and verify the first aid records in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed.
[0052] In a third aspect, an embodiment of the present application provides a computing device, comprising a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement a method for secure storage of first aid records based on blockchain technology as described in any one of the first aspects.
[0053] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing a computer program. When the computer program is executed by a computer, it implements a method for securely storing first aid records based on blockchain technology as described in any one of the first aspects.
[0054] In an embodiment of the present application, first aid record data generated in an emergency event is received, and a timestamp and geographic location information are added to each piece of first aid record data to obtain first aid record data containing a timestamp and geographic location information; the first aid record data containing the timestamp and geographic location information is converted using a hash algorithm, and combined with the identity authentication information of the first aid personnel and the identifier of the first aid equipment, an unalterable data packet is constructed based on a zero-knowledge proof algorithm to obtain a data packet containing a proof of authenticity and integrity of the first aid information; based on the data packet containing the proof of authenticity and integrity of the first aid information, the compliance and authority of the data packet are automatically reviewed through a smart contract to obtain a first aid record data packet that is allowed to join the blockchain network; using a distributed consensus algorithm, the first aid record data packet that is allowed to join the blockchain network is synchronized between multiple nodes, and an off-chain computing mechanism is introduced to process a large number of transactions, so as to obtain a first aid record that is securely and transparently stored under decentralized management; based on the securely and transparently stored first aid record, an access control interface is provided to enable relevant parties to query and verify the first aid record in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed.
[0055] The technical solution of this application has the following beneficial effects:
[0056] The data package constructed by hash algorithm and zero-knowledge proof ensures the authenticity and integrity of the emergency information and prevents data tampering. The distributed consensus algorithm is used to achieve the secure storage of emergency records without centralized management, which increases the transparency of the system and the trust between all parties. Smart contracts automatically review the compliance and permissions of data packages, reducing manual intervention and improving the efficiency and accuracy of audits. The access control interface provided allows relevant parties to query and verify emergency records under the premise of strictly complying with privacy protection rules, ensuring the security and privacy of data. The introduction of off-chain computing mechanism can effectively process a large number of transactions, improve the efficiency and response speed of the system, and adapt to the high concurrency requirements in emergency scenarios.
[0057] Furthermore, the first aid record data containing timestamp and geographic location information is processed using a secure hash algorithm to generate a unique hash value as a digital fingerprint to ensure the integrity and uniqueness of the data. Based on the generated hash value, a composite data structure is constructed in combination with the identity verification information of the first aid personnel and the unique identifier of the first aid equipment. This structure not only contains the content of the first aid record, but also associates the specific executors and equipment used in the first aid operation, increasing the traceability and responsibility of the data. Based on the composite data structure, a proof is created using a zero-knowledge proof algorithm. This proof allows evidence to be provided to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without revealing any actual first aid record content. The zero-knowledge proof, the original first aid record hash value, the identity verification information of the first aid personnel and the identifier of the first aid equipment are packaged together to form an unalterable data packet. This data packet can be verified by nodes in the blockchain network to ensure that the first aid record has not been tampered with from generation to storage, and to verify the authenticity and reliability of its source, and finally obtain a data packet containing the authenticity and integrity proof of the first aid information. The first aid record data packet that is allowed to join the blockchain network after passing the smart contract review is synchronized between nodes using a distributed consensus algorithm to ensure that most nodes reach a consensus and verify the valid first aid record data packet. The first aid record data packets that have been agreed upon and verified to be valid are added to the blockchain under decentralized management to generate valid first aid record data that is confirmed without a single controlling entity. The off-chain computing mechanism is introduced to process a large amount of first aid record data or non-critical transactions that do not need to be reflected on the chain immediately, so as to meet the needs of efficient processing and obtain preliminary results after off-chain calculation. The preliminary results after off-chain calculation are verified again to ensure that they meet the standards for joining the main chain, and generate the first aid record data that is finally officially added to the blockchain. Through the combination of further distributed consensus algorithms and off-chain computing mechanisms, the first aid records can be stored safely and transparently without centralized management.
[0058] The data package constructed by hash algorithm and zero-knowledge proof ensures the authenticity and integrity of the emergency information and prevents data tampering. The distributed consensus algorithm is used to achieve the secure storage of emergency records without centralized management, which increases the transparency of the system and the trust between all parties. Smart contracts automatically review the compliance and permissions of data packages, reducing manual intervention and improving the efficiency and accuracy of audits. The access control interface provided allows relevant parties to query and verify emergency records under the premise of strictly complying with privacy protection rules, ensuring the security and privacy of data. The introduction of off-chain computing mechanism effectively handles a large number of transactions, improves the efficiency and response speed of the system, and adapts to the high concurrency requirements in emergency scenarios. By combining the identity authentication information of emergency personnel and the identifier of emergency equipment, the traceability and responsibility of the data are increased, which facilitates the subsequent responsibility identification and audit.
[0059] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0061] Figure 1 A flowchart of a method for securely storing first aid records based on blockchain technology provided in an embodiment of the present application;
[0062] Figure 2 A schematic diagram of the structure of a secure storage system for first aid records based on blockchain technology provided in an embodiment of the present application;
[0063] Figure 3 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0065] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0066] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0067] Figure 1 A flowchart of a method for securely storing first aid records based on blockchain technology is provided for an embodiment of the present application. Figure 1 As shown, the method includes:
[0068] 101. Receive first aid record data generated in the first aid event, and add a timestamp and geographic location information to each first aid record data to obtain first aid record data including the timestamp and geographic location information;
[0069] In this step, in emergency medical scenarios, emergency records are crucial documents, which include the patient's basic information, condition description, treatment measures, etc. In order to ensure the time accuracy and geographic location accuracy of these records, the system automatically attaches accurate timestamps and geographic location information when receiving each emergency record data. The timestamp is used to record the specific time when the emergency incident occurred, while the geographic location information identifies the location where the emergency incident occurred. The combination of the two can provide a solid foundation for subsequent data verification and responsibility tracing.
[0070] First aid personnel use mobile devices equipped with GPS modules and time synchronization functions to record first aid events. When first aid personnel submit first aid records, the system automatically obtains the current timestamp and geographic location information from the device and saves it together with the first aid record. In this way, each first aid record not only contains detailed medical information, but also comes with accurate time and location information, ensuring data integrity and traceability.
[0071] In a specific embodiment, medical staff on the ambulance record the patient's preliminary diagnosis and treatment measures through a dedicated application. The application automatically obtains the current location from the GPS module integrated in the ambulance and the current time from the device's system clock, and then uploads this information to the central server together with the emergency record. For example, a certain emergency incident occurred at 13:05 on December 17, 2024, at No. 1000 Lujiazui Ring Road, Pudong New District, Shanghai. This information is accurately attached to the emergency record, providing a reliable time and geographic reference for subsequent data processing.
[0072] 102. Use a hash algorithm to convert the emergency record data containing the timestamp and geographic location information, and combine the identity authentication information of the emergency personnel and the identifier of the emergency equipment to construct an unalterable data packet based on a zero-knowledge proof algorithm to obtain a data packet containing the authenticity and integrity proof of the emergency information;
[0073] In this step, the hash algorithm is a one-way encryption technology that maps data of arbitrary length to a fixed-length output, and is often used to generate digital fingerprints of data. The first aid record data processed by the hash algorithm can ensure that its content has not been tampered with during transmission and storage. In addition, combined with the first aid personnel's identity verification information and the unique identifier of the first aid equipment, the authenticity and source legitimacy of the data can be further enhanced. The zero-knowledge proof algorithm allows the authenticity of the data to be verified without revealing the specific content, which ensures the credibility of the data while protecting privacy.
[0074] The system first uses a secure hash algorithm to hash the emergency record data containing timestamp and geolocation information to generate a unique hash value as a digital fingerprint. The system then constructs a composite data structure that combines the generated hash value, the first responder's authentication information, and the unique identifier of the emergency equipment. Next, based on this composite data structure, a zero-knowledge proof algorithm is used to create a proof that can provide evidence to a third party to prove the authenticity, integrity, and source legitimacy of the emergency record without revealing any actual emergency record content.
[0075] Continuing with the previous embodiment, after the first aid record is uploaded, the system uses the SHA-256 algorithm to calculate the hash value of the record. Subsequently, the system combines this hash value with the digital signature of the first aid personnel and the serial number of the first aid equipment into a composite data structure. Next, the system uses a zero-knowledge proof algorithm to generate a proof for this composite data structure. For example, first aid personnel Zhang San signed the first aid record using his own private key and combined it with the serial number of the first aid equipment "GJ123456". The system generates a zero-knowledge proof for this record, ensuring that any inquiring party can verify the authenticity of this first aid record without having to view the specific content.
[0076] Optionally, the first aid record data containing timestamp and geographic location information is converted by using a hash algorithm in step 102, and combined with the identity verification information of the first aid personnel and the identifier of the first aid equipment, an unalterable data packet is constructed based on a zero-knowledge proof algorithm to obtain a data packet containing the authenticity and integrity proof of the first aid information, including: using a secure hash algorithm to process the first aid record data containing timestamp and geographic location information to obtain a unique hash value, and the unique hash value is used as a digital fingerprint of the first aid record data to ensure the integrity and uniqueness of the data; based on the unique hash value, combined with the identity verification information of the first aid personnel and the unique identifier of the first aid equipment, a composite data structure is constructed, and the composite data structure contains the content of the first aid record and is associated with the first aid. The specific executors of the operation and the equipment used increase the traceability and responsibility of the data; according to the composite data structure, a proof is created using a zero-knowledge proof algorithm, which allows evidence to be provided to a third party without revealing any actual first aid record content to prove the authenticity, integrity and source legitimacy of the first aid record, and obtain a zero-knowledge proof; based on the zero-knowledge proof, as well as the original first aid record hash value, the first aid personnel's identity authentication information and the first aid equipment identifier are packaged together to form an unalterable data packet, which can be verified by nodes in the blockchain network to ensure that the first aid record has not been tampered with from generation to storage, and to verify the authenticity and reliability of the source of the first aid record, and finally obtain a data packet containing the authenticity and integrity proof of the first aid information.
[0077] Optionally, the step 102 of using a secure hash algorithm to process the first aid record data containing timestamp and geographic location information to obtain a unique hash value, and the unique hash value is used as a digital fingerprint of the first aid record data to ensure the integrity and uniqueness of the data, including: based on the first aid record data containing timestamp and geographic location information, selecting a recognized secure hash algorithm, the secure hash algorithm has collision resistance; using the secure hash algorithm to process the first aid record data containing timestamp and geographic location information to obtain a unique hash value, the unique hash value is used as the digital fingerprint of the first aid record data, any slight change to the original data will result in a completely different hash value, ensuring the integrity and uniqueness of the data; based on the unique hash value, before adding the unique hash value to the blockchain, checking whether there is an existing hash value identical to the unique hash value in the current blockchain network to verify the uniqueness of the hash value and obtain a verified hash value; based on the verified hash value, associating the verified hash value with the corresponding first aid record data to ensure that each first aid record has a unique digital fingerprint, which is helpful for the subsequent construction of an unalterable data packet and the rapid location and verification of a specific first aid record when needed.
[0078] In emergency record management, ensuring the integrity and uniqueness of data is crucial. Generating a unique hash value as a digital fingerprint through a secure hash algorithm can effectively prevent data tampering. In addition, combining the first responder's authentication information and the identifier of the emergency equipment can enhance data traceability and accountability. The zero-knowledge proof algorithm allows the authenticity, integrity, and source legitimacy of data to be verified without revealing specific content.
[0079] In this step, the secure hash algorithm is a one-way encryption technology that maps data of arbitrary length to an output of fixed length and has collision resistance, that is, it is almost impossible to find two different inputs that produce the same output. Common secure hash algorithms include SHA-256, SHA-3, etc. Collision resistance refers to the property of the hash algorithm that it is difficult to find two different inputs that produce the same hash value, ensuring the uniqueness and integrity of the data. Any slight change to the original data will result in a completely different hash value. The composite data structure combines the content of the first aid record with the first aid personnel's authentication information and the identifier of the first aid equipment to form a data structure containing more information. This not only increases the traceability of the data, but also facilitates subsequent responsibility identification and auditing. Zero-knowledge proof is a cryptographic protocol that allows one party to prove the authenticity of a statement to another party without revealing any additional information. In first aid record management, it can be used to verify the authenticity of data without revealing the specific content.
[0080] First, according to the characteristics and security requirements of the emergency record data, select a recognized secure hash algorithm, such as SHA-256 or SHA-3. These algorithms have good anti-collision properties and can ensure the uniqueness and integrity of the generated hash value.
[0081] Then, the selected secure hash algorithm is used to process the emergency record data containing timestamp and geographic location information to generate a unique hash value. This hash value serves as the digital fingerprint of the emergency record data. Any slight change to the original data will result in a completely different hash value, ensuring the integrity and uniqueness of the data.
[0082] Next, before adding the generated hash value to the blockchain, the system checks whether there is an existing hash value in the current blockchain network that is identical to the hash value. If there is a duplicate, it means that the first aid record may have been recorded or there is a conflict, which requires further investigation. Otherwise, the uniqueness of the hash value is confirmed.
[0083] Then, based on the verified hash value, it is associated with the corresponding emergency record data, ensuring that each emergency record has a unique digital fingerprint. This helps to build an unalterable data package in the future and quickly locate and verify specific emergency records when needed.
[0084] Furthermore, the verified hash value, the identity verification information of the first aid personnel, and the unique identifier of the first aid equipment are combined into a composite data structure. This structure not only contains the content of the first aid record, but also associates the specific executor of the first aid operation and the equipment used, enhancing the traceability and responsibility of the data.
[0085] Furthermore, a proof is created based on the composite data structure using a zero-knowledge proof algorithm. This proof can provide evidence to a third party to prove the authenticity, integrity, and legitimacy of the first aid record without revealing any actual first aid record content.
[0086] Finally, the zero-knowledge proof, the original first aid record hash value, the first aid personnel's identity verification information and the first aid equipment identifier are packaged together to form an unalterable data packet. This data packet can be verified by nodes in the blockchain network to ensure that the first aid record has not been tampered with from generation to storage, and to verify the authenticity and reliability of its source.
[0087] In the embodiments of the present application, it is assumed that in a specific embodiment, the medical staff on the ambulance use a dedicated application to record the patient's preliminary diagnosis and treatment measures. The application automatically obtains the current location from the GPS module integrated in the ambulance and the current time from the system clock of the device, and then uploads this information to the central server together with the emergency record. For example, a first aid incident occurred at 13:05 on December 17, 2024, at No. 1000 Lujiazui Ring Road, Pudong New District, Shanghai.
[0088] First, the system chooses SHA-256 as the secure hash algorithm because of its strong collision resistance and wide application base.
[0089] Secondly, the system uses the SHA-256 algorithm to calculate the hash value of the first aid record. Assuming that the text content of the first aid record is "Patient Zhang San, abnormal heart rate, oxygen has been given", its hash value is a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6.
[0090] The system then queries the current blockchain network to confirm that there is no other first aid record with the same hash value a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6, ensuring the uniqueness of the hash value.
[0091] The system then associates the verified hash value with the emergency record, ensuring that each emergency record has a unique digital fingerprint.
[0092] Furthermore, the system combines the hash value a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6, the digital signature of the first aid worker Zhang San, and the serial number "GJ123456" of the first aid equipment into a composite data structure.
[0093] Furthermore, the system uses a zero-knowledge proof algorithm to generate a proof for this composite data structure, ensuring that any querying party can verify the authenticity of this first aid record without having to view the specific content.
[0094] Finally, the system packages the zero-knowledge proof, hash value, first aid personnel's authentication information and first aid equipment identifier together to form an unalterable data packet. This data packet is sent to each node in the blockchain network for verification, ensuring that the first aid record has not been tampered with from generation to storage, and verifying the authenticity and reliability of its source.
[0095] Through the above steps, the present invention not only ensures the authenticity and integrity of the first aid record, but also provides an efficient verification mechanism and strict privacy protection, which is suitable for the high reliability and high security requirements in the field of emergency medical care.
[0096] Optionally, the step 102 of creating a proof based on the composite data structure using a zero-knowledge proof algorithm, wherein the proof allows providing evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without revealing any actual first aid record content, and obtaining a zero-knowledge proof, includes: based on the constructed composite data structure, using the composite data structure to prepare basic data for generating a zero-knowledge proof; using a zero-knowledge proof algorithm, processing the basic data to ensure that a zero-knowledge proof is created and obtained without revealing any actual first aid record content, wherein the zero-knowledge proof can provide evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without disclosing the specific content of the first aid record; based on the zero-knowledge proof, combined with the hash value in the composite data structure, the identity verification information of the first aid personnel and the identifier of the first aid equipment, provide necessary verification information for the subsequent construction of an unalterable data packet, ensure that the first aid record has not been tampered with from generation to storage, and verify the authenticity and reliability of the source of the first aid record.
[0097] In this step, zero-knowledge proof is a cryptographic protocol that allows one party to prove the truth of a statement to another party without revealing any additional information. In emergency record management, zero-knowledge proof can be used to verify the authenticity, integrity and source legitimacy of data without disclosing the specific contents of the emergency record, thereby protecting patient privacy. The composite data structure contains the contents of the emergency record, timestamp, geographic location information, identity verification information of the emergency personnel, and the unique identifier of the emergency equipment. Together, these pieces of information form a data structure containing more information, which not only increases the traceability of the data, but also facilitates subsequent responsibility identification and auditing. Basic data refers to the initial input data used to generate zero-knowledge proofs. It includes key information extracted from the composite data structure, such as hash values, identity verification information, and device identifiers. These basic data will serve as input to the zero-knowledge proof algorithm to ensure that the generated proof can effectively verify the authenticity, integrity, and source legitimacy of the emergency record. Verification information refers to the combination of zero-knowledge proofs and key elements in the composite data structure to provide the necessary verification information for the subsequent construction of an unalterable data package. These verification information ensures that the emergency record has not been tampered with from generation to storage, and verifies the authenticity and reliability of its source.
[0098] First, based on the constructed composite data structure, the system extracts and prepares the basic data for generating zero-knowledge proofs. This includes but is not limited to the hash value of the first aid record, the first aid personnel's authentication information, and the unique identifier of the first aid equipment. These basic data are the key inputs for generating zero-knowledge proofs.
[0099] Secondly, the basic data is processed using a zero-knowledge proof algorithm to ensure that a zero-knowledge proof is created and obtained without revealing any actual emergency record content. This proof can provide evidence to a third party to prove the authenticity, integrity, and source legitimacy of the emergency record without disclosing the specific content of the emergency record. For example, the prover can use a zero-knowledge proof to show hospital administrators the validity of the emergency record without revealing the medical information of specific patients.
[0100] Finally, based on the generated zero-knowledge proof, combined with the hash value in the composite data structure, the first aid personnel's authentication information, and the identifier of the first aid equipment, the necessary verification information is provided for the subsequent construction of an unalterable data packet. This verification information ensures that the first aid record has not been tampered with from generation to storage, and verifies the authenticity and reliability of the source of the first aid record. For example, the verifier can confirm the integrity of the first aid record by checking the zero-knowledge proof and the associated hash value.
[0101] In the embodiments of the present application, it is assumed that in a specific embodiment, the medical staff on the ambulance record the patient's preliminary diagnosis and treatment measures through a dedicated application. The application automatically obtains the current location from the GPS module integrated in the ambulance and the current time from the system clock of the device, and then uploads this information to the central server together with the emergency record. For example, a first aid incident occurred at 13:05 on December 17, 2024, at No. 1000 Lujiazui Ring Road, Pudong New District, Shanghai.
[0102] The system first constructs a composite data structure, which includes the content of the first aid record, the timestamp "2024-12-17, 13:05", the geographic location information "No. 1000, Lujiazui Ring Road, Pudong New District, Shanghai", the digital signature of the first aid worker Zhang San, and the serial number of the first aid equipment "GJ123456".
[0103] Next, the system extracts basic data from the composite data structure, including the hash value of the first aid record a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6, the digital signature of the first aid worker Zhang San, and the serial number of the first aid equipment "GJ123456".
[0104] Furthermore, the system uses a zero-knowledge proof algorithm to process the basic data and create a zero-knowledge proof. This proof can provide evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without revealing any actual first aid record content.
[0105] For example, if the content of an emergency record involves sensitive medical information, a zero-knowledge proof can prove the validity of the record without revealing specific medical details. This protects the privacy of the patient and ensures the credibility of the emergency record.
[0106] Furthermore, based on the generated zero-knowledge proof, combined with the hash value a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6 in the composite data structure, the digital signature of first aid worker Zhang San and the serial number "GJ123456" of the first aid equipment, the system provides the necessary verification information for the subsequent construction of an unalterable data packet.
[0107] This verification information ensures that the emergency record has not been tampered with from generation to storage, and verifies the authenticity and reliability of its source. For example, when hospital administrators need to query a specific emergency record, they can quickly confirm the validity and authenticity of the record by verifying the zero-knowledge proof and the associated hash value without having to view the specific medical information.
[0108] Through the above steps, the present invention not only ensures the authenticity and integrity of the first aid record, but also provides an efficient verification mechanism and strict privacy protection, which is suitable for the high reliability and high security requirements in the field of emergency medical care. In addition, the application of zero-knowledge proof enables first aid records to be reliably verified while maintaining privacy, enhancing trust and transparency among all parties.
[0109] This application takes into account that in the field of emergency medicine, it is crucial to ensure the authenticity and integrity of emergency records. Traditional centralized data management systems are vulnerable to the risk of tampering and privacy leakage, especially when sensitive medical information is involved. In order to overcome these challenges, the R&D team proposed a solution based on zero-knowledge proof, combined with weighted hash values, composite data structures and random salt values to ensure data security and privacy protection of emergency records. This solution can not only verify the authenticity, integrity and source legitimacy of emergency records, but also provide evidence without revealing any actual content, enhancing the transparency and trust of the system. Therefore, a new optional solution is proposed, which includes:
[0110] Optionally, in step 102, a proof is created using a zero-knowledge proof algorithm based on the composite data structure, wherein the proof allows providing evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without revealing any actual first aid record content, and obtains a zero-knowledge proof, including:
[0111] Generate the weighted hash value H using the following formula: w :
[0112]
[0113] Among them, data timestamp It is timestamp data, indicating the time information of the first aid record; data location Geographic location information, indicating the location where the emergency incident occurred; t , w l are the weight factors of timestamp data and geographic location information; exp t , exp l is the exponential factor; (missing the definition of "SHA")
[0114] The weighted composite data structure CDS is constructed using the following formula:
[0115]
[0116] Among them, CSD is a composite data structure with weights; ID personnel First responder identification information; ID equipment is a unique identifier for the emergency equipment; p , w e are the weighting factors of the first responder authentication information and the first responder equipment identifier, respectively;
[0117] Prepare the basic data BD for generating zero-knowledge proof using the following formula:
[0118] BD=prepare(CDS)+salt
[0119] Among them, BD is used to generate zero-knowledge proof to prepare basic data; prepare is a preparation function that converts the composite data structure into a basic data format suitable for zero-knowledge proof algorithm processing; salt is a random salt value used to further obfuscate the basic data to ensure that different outputs will be generated even if the input is the same, preventing pre-computation attacks;
[0120] Create a weighted zero-knowledge proof ZKP using the following formula: w :
[0121]
[0122] Among them, ZKP w It is a weighted zero-knowledge proof; ZKProofGen is a zero-knowledge proof generation algorithm that uses a specific mathematical method or protocol to create a zero-knowledge proof; exp z kp is the exponential factor;
[0123] The weighted, tamper-proof data packet P is constructed using the following formula: w :
[0124]
[0125] Among them, P w It is a weighted, unalterable data packet; Pack is a packing function that combines all necessary verification information into an unalterable data packet; k is the overall scaling factor of the data packet, ensuring that each data packet is unique, thereby preventing replay attacks.
[0126] The following are detailed comments on each parameter:
[0127] When generating a weighted hash value H w In the formula, H w It is a weighted hash value used to ensure the integrity and uniqueness of the timestamp and geolocation information of the emergency record. SHA is a secure hash algorithm, such as SHA-256, which is used to generate a fixed-length hash value. It is a one-way encryption technology that ensures that any change in the input data will result in a completely different output. timestamp It is timestamp data, indicating the time information of the emergency record. It is usually expressed in Unix timestamp format (i.e. the number of seconds since January 1, 1970). location It is the geographical location information, indicating the location where the emergency incident occurred. It can be latitude and longitude coordinates or other geocoding formats. t It is the weight factor of the timestamp data, which is used to adjust the importance of the timestamp in the hash calculation. l It is the weight factor of the geographic location information, which is used to adjust the importance of the geographic location in the hash calculation. t It is the exponential factor of the timestamp data, which is used to further adjust the influence of the timestamp in the hash calculation. l It is the exponential factor of the geographic location information, which is used to further adjust the influence of the geographic location in the hash calculation. || is the concatenation operator, which is used to merge two strings or data sequences into a whole.
[0128] In the formula for constructing a weighted composite data structure CDS, CDS is a weighted composite data structure that contains a weighted hash value, the identity verification information of the first aid personnel, and the identifier of the first aid equipment. wis the weighted hash value generated in the previous step. ID personnel It is the first responder's authentication information, usually a unique user ID or digital signature. equipment is a unique identifier for the emergency device, such as the device serial number or other unique identifier. p is the weight factor of the first responder authentication information, used to adjust its importance in the composite data structure. e is the weight factor of the emergency equipment identifier, used to adjust its importance in the composite data structure.
[0129] In preparing the basic data BD for generating the zero-knowledge proof formula, BD is used to generate the basic data for zero-knowledge proof to ensure that it is suitable for zero-knowledge proof algorithm processing. prepare is a preparation function that converts the composite data structure CDS into a basic data format suitable for zero-knowledge proof algorithm processing. This function may include operations such as data formatting and encoding conversion. salt is a random salt value used to further obfuscate the basic data to ensure that different outputs are generated even if the input is the same, preventing pre-computation attacks. The random salt value is a randomly generated string or value.
[0130] Creating a weighted zero-knowledge proof ZKP w In the formula, ZKP w It is a weighted zero-knowledge proof used to verify the authenticity, integrity, and source legitimacy of first aid records without revealing the actual content. ZKProofGen is a zero-knowledge proof generation algorithm that uses a specific mathematical method or protocol to create a zero-knowledge proof. zkp is an exponential factor used to further enhance the security and complexity of zero-knowledge proofs.
[0131] In constructing a weighted, unalterable data packet P w In the formula, P w It is a weighted, unalterable data packet that contains all necessary verification information and ensures that each data packet is unique, thereby preventing replay attacks. Pack is a packing function that combines all necessary verification information into an unalterable data packet. This function may include operations such as data serialization and encryption. k is the scaling factor of the entire data packet, which is used to ensure that each data packet is unique. The scaling factor can be a randomly generated value or a fixed value determined based on other factors.
[0132] Through the above detailed parameter annotations, we can better understand the specific role and significance of each part of each formula. These formulas together constitute a complete process, from generating weighted hash values to finally building weighted and unalterable data packets, ensuring the authenticity and integrity of emergency records, while providing an efficient verification mechanism and strict privacy protection. This solution is particularly suitable for the field of emergency medical care and can effectively improve the security and transparency of data.
[0133] Assume that in a city emergency system, each emergency incident generates an emergency record containing a timestamp, geographic location, emergency personnel authentication information, and emergency equipment identifier. To ensure the security and authenticity of these records, the system uses the following formula to create a weighted zero-knowledge proof and construct an unalterable data package. The following example steps and calculation process
[0134] The following is to generate the weighted hash value H w Steps:
[0135] Setting parameters: time data timestamp =2024-12-17T13:05:00 (converted to Unix timestamp: 1734469500);
[0136] Geographic location information data timestamp = "No. 1000, Lujiazui Ring Road, Pudong New Area, Shanghai" (converted to latitude and longitude coordinates: 31.2304, 121.5097); weight factor w t =0.6, w l =0.4; exponential factor exp t =2, exp l =3;
[0137] Calculation formula:
[0138] H w =SHA((1734469500×0.6) 2 ||(31.2304×0.4) 3 )
[0139] Calculation results:
[0140] H w =SHA(624388620 2 ||12.49216 3 )
[0141] H w =SHA(38986654500000000||1972.988)
[0142] Hw =SHA(389866545000000001972.988)
[0143] H w =SHA("389866545000000001972.988")
[0144] Assume the output of SHA-256 is a1b2c3d4e5f6g7h8i9j0k112m3n4o5p6q7r8s9t0u1v2w3x4y5z6;
[0145] The following are the steps to construct a weighted composite data structure GDS:
[0146] Setting parameters: First responder's identity verification ID personnel = "Zhang San" (converted to unique ID: P001); unique identifier ID of the emergency equipment equipment = "GJ123456"; weight factor w p =0.7, w e =0.3;
[0147] Calculation formula:
[0148] CDS=(H w ,P001 0.7 ,GJ123456 0.3 )
[0149] CDS=(a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6,P001 0.7 ,GJ123456 0.3 )
[0150] The following are the steps to prepare the basic data BD for generating zero-knowledge proof:
[0151] Setting parameters: random salt value salt = "random_salt_value"
[0152] Calculation formula: BD = prepare (CDS) + salt;
[0153] Assume that the prepare function converts CDS into a basic data format suitable for zero-knowledge proof algorithm processing and appends a random salt value.
[0154] The following is to create a weighted zero-knowledge proof ZKP w Steps:
[0155] Setting parameters: exponential factor exp zkp =2;
[0156] Calculation formula:
[0157]
[0158] Assume that the ZKProofGen function generates a zero-knowledge proof and that exponential operations further enhance the security of the proof.
[0159] The following is to construct a weighted, unalterable data packet P w Steps:
[0160] Setting parameters: scaling factor k = 1.5;
[0161] Calculation formula:
[0162] P w =Pack(H w ,P001 0.7 ,GJ123456 0.3 , ZKP w )×1.5
[0163] Assume that the Pack function combines all necessary authentication information into an unalterable data packet and ensures that each data packet is unique by a scaling factor.
[0164] Weighted hash value H w :The calculated hash value a1b2c3d4e5f6g7h8i9j0k112m3n405p6q7r8s9t6u1v2w3x4y5z6 is a weighted representation of the timestamp and geographic location information of the emergency record, ensuring the integrity and uniqueness of the data.
[0165] Weighted composite data structure CDS: CDS contains weighted hash values, first responder authentication information, and first responder equipment identifiers, enhancing data traceability and accountability.
[0166] Base data BD: Through the prepare function and random salt value, the base data BD is further obfuscated before generating the zero-knowledge proof, ensuring that different outputs will be generated even if the input is the same, preventing pre-computation attacks.
[0167] Zero-knowledge proof with weights ZKP w : Created ZKP w Without disclosing any actual contents of the first aid record, evidence can be provided to a third party to prove the authenticity, completeness and legitimacy of the source of the first aid record.
[0168] Weighted, unalterable data packet P w : Constructed P wThe data packet not only contains all the verification information, but also ensures that each data packet is unique through a scaling factor to prevent replay attacks. Finally, this data packet can be verified by nodes in the blockchain network to ensure that the emergency record has not been tampered with from generation to storage, and to verify the authenticity and reliability of its source.
[0169] Through the above steps, the present invention not only ensures the authenticity and integrity of emergency records, but also provides an efficient verification mechanism and strict privacy protection, which is suitable for the high reliability and high security requirements in the field of emergency medical care. In addition, the application of zero-knowledge proof enables emergency records to be reliably verified while maintaining privacy, enhancing trust and transparency among all parties.
[0170] 103. Based on the data packet containing the authenticity and integrity proof of the emergency information, the compliance and authority of the data packet are automatically reviewed through the smart contract to obtain the emergency record data packet that is allowed to join the blockchain network;
[0171] In this step, smart contracts are self-executing contract clauses deployed on the blockchain in the form of code. They can automatically trigger specific actions when preset conditions are met, such as reviewing and verifying the compliance and permissions of data packets. Through smart contracts, the system can efficiently check whether each emergency record data packet complies with established standards and rules, ensuring that only legitimate data packets can join the blockchain network.
[0172] Before the first aid record data packet is uploaded to the blockchain network, it must be automatically reviewed by the smart contract. The smart contract will check the hash value in the data packet, the first aid personnel's authentication information, and the identifier of the first aid equipment to confirm whether they meet the preset security standards and permission requirements. If all conditions are met, the smart contract will approve the data packet to join the blockchain network; otherwise, the data packet will be rejected and returned to the submitter for correction.
[0173] Continuing with the previous embodiment, the first aid record and its corresponding zero-knowledge proof are sent to the smart contract for review. The smart contract first verifies whether the digital signature of the first aid personnel is valid and checks whether the serial number of the first aid equipment is registered in the system. At the same time, the smart contract also verifies the validity of the zero-knowledge proof to ensure the authenticity and integrity of the first aid record. Assuming that the digital signature of the first aid personnel Zhang San and the first aid equipment serial number "GJ123456" are both verified, and the zero-knowledge proof is also successfully verified, the smart contract will approve this first aid record to join the blockchain network. Conversely, if any of the conditions are not met, the data packet will be marked as invalid and returned to the first aid personnel for correction.
[0174] Optionally, the step 103, based on the data packet containing the authenticity and integrity certificate of the first aid information, automatically reviews the compliance and authority of the data packet through the smart contract to obtain the first aid record data packet allowed to join the blockchain network, including: based on the data packet containing the authenticity and integrity certificate of the first aid information, receiving and processing the data packet containing the authenticity and integrity certificate of the first aid information, ensuring that each data packet contains the timestamp and geographic location information of the first aid event, as well as the identity verification information of the first aid personnel and the identifier of the first aid equipment, to generate a first aid record data packet to be reviewed; using the smart contract to define the review standards, according to the first aid record data packet to be reviewed, pre-setting the rules and conditions in the smart contract, including the data format, the validity of the timestamp, the rationality of the geographic location information, the identity verification information of the first aid personnel and the accuracy of the first aid equipment identifier, to generate the smart contract rules Based on the smart contract rule set, the first aid record data packet to be reviewed is automatically audited for compliance, and it is verified whether the data packet meets all preset conditions, so as to obtain a data packet that has passed the preliminary compliance check; based on the data packet that has passed the preliminary compliance check, permission verification is performed, and the identity and operation authority of the first aid personnel or submitter are confirmed by using the smart contract, so as to generate a data packet with sufficient authority; based on the data packet with sufficient authority, a final audit is performed by using the smart contract, and if the data packet with sufficient authority passes all compliance and authority checks, a positive audit result is generated, and for the data packet that fails to pass the audit, a negative audit result is generated, and a notification mechanism is triggered to inform the relevant parties of the reason; based on the positive audit result, the data packet that has passed the smart contract audit is marked, so as to obtain a first aid record data packet that is allowed to join the blockchain network.
[0175] In this step, the smart contract is an automatically executed contract clause deployed on the blockchain in the form of code. It can automatically trigger specific actions when preset conditions are met, such as reviewing and verifying the compliance and permissions of the data packet. Smart contracts are transparent, tamper-proof and automated, and are widely used in blockchain technology. The data packet containing the authenticity and integrity proof of the emergency information includes the timestamp of the emergency event, geographic location information, the identity verification information of the emergency personnel, and the identifier of the emergency equipment. Together, these information constitute a data structure containing more information, which not only increases the traceability of the data, but also facilitates subsequent responsibility identification and auditing. Audit standards refer to the rules and conditions pre-set in the smart contract to ensure that the emergency record data packet meets the established security standards and permission requirements. These standards include but are not limited to data format, validity of timestamps, rationality of geographic location information, identity verification information of emergency personnel, and accuracy of the identifier of the emergency equipment. Positive audit results and negative audit results are two possible results after the smart contract audit. A positive audit result means that the data packet has passed all compliance and permission checks and can join the blockchain network; a negative audit result means that the data packet has failed certain checks and needs to be corrected or further investigated, and a notification mechanism is triggered to inform the relevant parties of the reasons.
[0176] First, the system performs preliminary processing on the received data packets containing proof of authenticity and integrity of emergency information, ensuring that each data packet contains necessary information, such as timestamp, geographic location information, identity verification information of the emergency personnel, and identifier of the emergency equipment, and generates a data packet of emergency records ready for review.
[0177] Secondly, use smart contracts to define detailed audit standards, and pre-set the rules and conditions in the smart contract based on the emergency record data package to be audited. These rules and conditions cover the data format, validity of timestamps, rationality of geographic location information, identity verification information of emergency personnel, and accuracy of emergency equipment identifiers, forming a smart contract rule set.
[0178] Next, based on the smart contract rule set, the system automatically conducts compliance review on the emergency record data package to be reviewed, verifying whether the data package meets all preset conditions, and obtains the data package that passes the preliminary compliance check.
[0179] Furthermore, based on the data packets that pass the preliminary compliance check, the system performs permission verification processing, using smart contracts to confirm the identity and operation authority of the first responder or submitter, and generates a data packet with sufficient authority.
[0180] Furthermore, based on data packets with sufficient permissions, the system uses smart contracts to conduct final audit processing. If the data packet passes all compliance and permission checks, a positive audit result is generated; for data packets that fail the audit, a negative audit result is generated and a notification mechanism is triggered to inform the relevant parties of the reason.
[0181] Finally, based on the positive review results, the system marks the data packets that have passed the smart contract review and obtains the first aid record data packets that are allowed to join the blockchain network.
[0182] In the embodiments of the present application, it is assumed that in a specific embodiment, the medical staff on the ambulance use a dedicated application to record the patient's preliminary diagnosis and treatment measures. The application automatically obtains the current location from the GPS module integrated in the ambulance and the current time from the system clock of the device, and then uploads this information to the central server together with the emergency record. For example, a first aid incident occurred at 13:05 on December 17, 2024, at No. 1000 Lujiazui Ring Road, Pudong New District, Shanghai.
[0183] First, the system receives a data packet containing proof of authenticity and integrity of the first aid information, ensuring that the data packet contains the timestamp of the first aid event "2024-12-17, 13:05", the geographic location information "No. 1000, Lujiazui Ring Road, Pudong New Area, Shanghai", the identity verification information of the first aid worker Zhang San, and the serial number of the first aid equipment "GJ123456". Generate a first aid record data packet for review.
[0184] Secondly, the system uses smart contracts to define detailed audit criteria and pre-set rules and conditions. For example:
[0185] Data format: Ensure that the format of the emergency record data packet is correct.
[0186] Timestamp validity: Verify whether the timestamp is within a reasonable range and consistent with the current time.
[0187] Reasonableness of geographic location information: Check whether the geographic location information is located in a reasonable emergency response area.
[0188] First responder’s authentication information: Confirms that the first responder’s digital signature is valid and that their identity is registered in the system.
[0189] Accuracy of rescue device identifier: Verifies that the rescue device's serial number exists in the system's registration list.
[0190] Together, these rules and conditions form the smart contract rule set, ensuring that the emergency record data package complies with all security standards and permission requirements.
[0191] Next, the system automatically conducts compliance review of the emergency record data packets to be reviewed based on the smart contract rule set. For example, the system verifies whether the timestamp "2024-12-17, 13:05" is within a reasonable range, whether the geographical location "No. 1000, Lujiazui Ring Road, Pudong New Area, Shanghai" is within the emergency response area, whether the digital signature of the emergency worker Zhang San is valid, and whether the emergency equipment serial number "GJ123456" is registered in the system.
[0192] If all conditions are met, the data packet passes the initial compliance check and enters the next step of permission verification processing.
[0193] The system then performs authorization verification based on the data packets that pass the preliminary compliance check. For example, the system confirms whether the first aid worker Zhang San has sufficient authority to submit the first aid record and verifies whether his identity is legal.
[0194] If the permission verification is successful, a data packet with sufficient permissions is generated and enters the final review processing stage.
[0195] Furthermore, the system uses smart contracts to conduct final audit processing based on data packets with sufficient permissions. If the data packet passes all compliance and permission checks, a positive audit result is generated; otherwise, a negative audit result is generated and a notification mechanism is triggered to inform the relevant parties of the reason. For example, if the data format of a first aid record is incorrect or the identity of the first aid personnel is not verified, the system will generate a negative audit result and send a notification to the first aid personnel to explain the specific problem.
[0196] Finally, based on the positive review results, the system marks the data packets that have passed the smart contract review and obtains the emergency record data packets that are allowed to join the blockchain network. For example, the system adds an "audited" label to the first aid record that has passed the review and formally adds it to the blockchain network.
[0197] Through the above steps, the present invention not only ensures the authenticity and integrity of the first aid record, but also provides an efficient audit mechanism and strict authority management, which is suitable for the high reliability and high security requirements in the field of emergency medical care. In addition, the application of smart contracts makes the audit process more transparent and automated, enhances the trust and transparency between all parties, and also improves the efficiency and accuracy of the audit.
[0198] 104. Using a distributed consensus algorithm, the emergency record data packets allowed to join the blockchain network are synchronized among multiple nodes, and an off-chain computing mechanism is introduced to process a large number of transactions, so as to obtain emergency records that are securely and transparently stored without centralized management;
[0199] In this step, the distributed consensus algorithm is a type of technology that ensures that multiple nodes reach consensus in the network, and is widely used in blockchain systems. Through the distributed consensus algorithm, the system can achieve the situation where there is no single controlling entity, and multiple nodes can jointly maintain and update the emergency record database. The off-chain computing mechanism is used to process large-scale transactions or non-critical transactions that do not need to be reflected on the chain immediately, improving the efficiency and response speed of the system.
[0200] Once the emergency record data packets pass the smart contract review, the system will use a distributed consensus algorithm to synchronize these data packets among multiple nodes. Each node participating in the consensus will vote on the data packet to ensure that the majority of nodes reach a consensus and verify its validity. For large amounts of emergency record data or non-critical transactions that do not need to be reflected on the chain immediately, the system introduces an off-chain computing mechanism for processing to reduce the burden on the main chain. Ultimately, the verified data packets will be officially added to the blockchain to achieve secure and transparent data preservation.
[0201] After the first aid record passes the smart contract review, the system starts the distributed consensus algorithm to allow each node to synchronize and vote on the data packet. Assume that there are 10 nodes participating in the consensus, and 8 of them agree on the validity of the first aid record, which is more than two-thirds of the majority, so the record is officially added to the blockchain. At the same time, the system recognizes that some first aid records are non-critical transactions, such as routine vital signs monitoring data, and decides to temporarily process these data off-chain. The off-chain computing mechanism quickly processes this part of the data and reintroduces the results into the main chain when appropriate to ensure the efficient operation of the system. For example, in a certain first aid incident, in addition to emergency treatment measures, there is also a large amount of vital signs monitoring data. After these data are processed off-chain, they are synchronized to the main chain only when needed, which improves the overall performance of the system.
[0202] Optionally, the use of a distributed consensus algorithm in step 104 to synchronize the first aid record data packets allowed to join the blockchain network among multiple nodes, and introduce an off-chain computing mechanism to process a large number of transactions, so as to obtain first aid records that are securely and transparently stored without centralized management, including: using a distributed consensus algorithm to synchronize the first aid record data packets allowed to join the blockchain network after passing the smart contract review among nodes, so as to obtain first aid record data packets that are agreed upon and verified to be valid by most nodes; based on the first aid record data packets that are agreed upon and verified to be valid, adding the first aid record data packets that are agreed upon and verified to be valid to the blockchain under decentralized management to generate first aid records that are securely and transparently stored without a single controlling entity. Confirmed valid first aid record data; based on the valid first aid record data, introduce an off-chain calculation mechanism to perform off-chain processing on a large amount of first aid record data or non-critical transactions that do not need to be reflected on the chain immediately, so as to meet the needs of efficient processing and obtain preliminary results after off-chain calculation; use a distributed consensus algorithm to re-verify the preliminary results after off-chain calculation to ensure that the preliminary results after off-chain calculation meet the standards for joining the main chain, and generate the first aid record data that is finally formally added to the blockchain; according to the first aid record data that is finally formally added to the blockchain, a first aid record that is securely and transparently stored under decentralized management is obtained through a further combination of a distributed consensus algorithm and an off-chain calculation mechanism.
[0203] In this step, the distributed consensus algorithm is a technology that ensures that multiple nodes reach a consensus in the network, which is widely used in blockchain systems. Through the distributed consensus algorithm, the system can achieve that multiple nodes jointly maintain and update the emergency record database without a single controlling entity. Common distributed consensus algorithms include proof of work, proof of stake, and Byzantine fault tolerance. Inter-node synchronization refers to the distribution of emergency record data packets audited by smart contracts to multiple nodes in the network, and ensures that all nodes have the same copy of the data. This step ensures the consistency and reliability of the data. Decentralized management refers to the joint management and verification of data by distributed nodes without a central authority. This approach enhances the transparency and security of the system and prevents single point failure or tampering risks. The off-chain computing mechanism is an optimization technology used to process large or non-critical transactions that do not need to be reflected immediately on the main chain. It reduces the burden on the main chain and improves the efficiency and response speed of the system by performing calculations and verifications outside the chain. The preliminary results refer to the results obtained after off-chain calculations. These results need to be verified again through the distributed consensus algorithm to ensure that they meet the standards for joining the main chain. The first aid record data that is finally officially added to the blockchain refers to the first aid record data that is finally confirmed and added to the blockchain after multiple verifications and processing. These data are tamper-proof and highly secure, ensuring the authenticity and integrity of the first aid records.
[0204] First, the system uses a distributed consensus algorithm to synchronize the first aid record data packets that have passed the smart contract review between nodes to ensure that most nodes reach consensus and verify the valid first aid record data packets.
[0205] Secondly, based on the consensus and verified valid first aid record data packets, the system adds them to the blockchain under decentralized management to generate valid first aid record data that is confirmed without a single controlling entity.
[0206] Next, based on the valid first aid record data, the system introduced an off-chain calculation mechanism to perform off-chain processing on a large amount of first aid record data or non-critical transactions that do not need to be reflected on the chain immediately, in order to meet the needs of efficient processing and obtain preliminary results after off-chain calculation.
[0207] Furthermore, the distributed consensus algorithm is used to re-verify the preliminary results after off-chain calculations to ensure that these preliminary results meet the standards for joining the main chain and generate the first aid record data that is finally officially added to the blockchain.
[0208] Finally, based on the first aid record data that is finally officially added to the blockchain, the system ensures that the first aid records are stored securely and transparently without centralized management through a combination of further distributed consensus algorithms and off-chain computing mechanisms.
[0209] In the embodiments of the present application, it is assumed that in a specific embodiment, the medical staff on the ambulance use a dedicated application to record the patient's preliminary diagnosis and treatment measures. The application automatically obtains the current location from the GPS module integrated in the ambulance and the current time from the system clock of the device, and then uploads this information to the central server together with the emergency record. For example, a first aid incident occurred at 13:05 on December 17, 2024, at No. 1000 Lujiazui Ring Road, Pudong New District, Shanghai.
[0210] First, the system receives the first aid record data packet that has passed the smart contract review, and uses the distributed consensus algorithm to distribute the data packet to multiple nodes in the network. Each node will independently verify the data packet to ensure that it meets the preset standards and conditions. Assume that there are 10 nodes participating in the consensus, and 8 of them agree on the validity of the first aid record, which is more than two-thirds of the majority, so the record is officially confirmed as valid.
[0211] Secondly, based on the consensus and verified valid emergency record data packets, the system adds them to the blockchain under decentralized management. Each node adds the emergency record to the local blockchain copy, generating valid emergency record data that is confirmed without a single controlling entity. For example, the emergency record "Patient Zhang San, abnormal heart rate, oxygen has been given" is officially added to the blockchain to ensure its immutability and transparency.
[0212] Then, based on the valid emergency record data, the system identified that some emergency records were non-critical transactions, such as routine vital signs monitoring data, and decided to temporarily process these data off-chain. The off-chain computing mechanism quickly processed this part of the data and reintroduced the results into the main chain when appropriate to ensure the efficient operation of the system. For example, emergency personnel record the patient's heart rate and blood pressure once a minute during the emergency treatment process. After these data are processed off-chain, they are synchronized to the main chain only when needed, which improves the overall performance of the system.
[0213] Furthermore, using the distributed consensus algorithm, the system re-verifies the preliminary results after off-chain calculations. For example, assuming that the off-chain calculation mechanism processes 100 pieces of vital sign monitoring data, the system resubmits these preliminary results to the distributed consensus algorithm for verification. If all preliminary results meet the preset standards, they will be officially added to the main chain; otherwise, non-compliant data will be marked as invalid and returned to the off-chain calculation mechanism for correction.
[0214] Finally, based on the emergency record data that is finally officially added to the blockchain, the system combines a further distributed consensus algorithm with an off-chain computing mechanism to ensure that the emergency records are stored securely and transparently without centralized management. For example, the emergency record "Patient Zhang San, abnormal heart rate, oxygen has been given" and its associated vital signs monitoring data are officially added to the blockchain to ensure its immutability and transparency, while protecting the privacy of the patient.
[0215] Through the above steps, the present invention not only ensures the authenticity and integrity of the first aid record, but also provides an efficient processing mechanism and strict authority management, which is suitable for the high reliability and high security requirements in the field of emergency medical care. In addition, the application of distributed consensus algorithms and off-chain computing mechanisms makes the first aid record management system more efficient, transparent and secure, enhances the trust and transparency between all parties, and also improves the response speed and processing capacity of the system.
[0216] This application takes into account that in the field of emergency medicine, it is crucial to ensure the authenticity and integrity of emergency records. Traditional centralized data management systems are vulnerable to the risk of tampering and privacy leakage, especially when it comes to sensitive medical information. In order to overcome these challenges, the R&D team proposed a solution based on a distributed consensus algorithm and off-chain computing mechanism, combined with smart contract auditing, weighted synchronization and consensus voting to ensure that emergency records are stored securely and transparently without centralized management. This solution can not only verify the validity of emergency records, but also efficiently process a large number of transactions, improving the reliability and responsiveness of the system. Therefore, a new optional solution is proposed, which includes:
[0217] Optionally, the distributed consensus algorithm in step 104 is used to synchronize the first aid record data packets allowed to join the blockchain network among multiple nodes, and an off-chain computing mechanism is introduced to process a large number of transactions, so as to obtain first aid records that are securely and transparently stored without centralized management, including:
[0218] Audit formula data through smart contracts verified =SC verify (data packet ) to obtain the first aid record data package data that has passed the review verified ;
[0219] Among them, data packet Refers to a data unit containing emergency information that has been processed with hashing and zero-knowledge proof;
[0220] Through the weighted synchronization formula Sync(data verified , N, w n) to obtain the data packet synchronized among multiple nodes; Sync is a weighted synchronization function used to synchronize the data packet data that has been reviewed and deemed qualified by the smart contract. verified Synchronize between multiple nodes; where N is the set of nodes participating in the consensus process; w n is the weight factor of each node; data verified Refers to the smart contract SC verify Review and determine qualified data packages;
[0221] By consensus formula Get the data packet that most nodes agree on; Consensus is a consensus function that is used to ensure that most nodes agree on the validity of the data packet. Returns true if and only if the sum of weighted voting results exceeds the set threshold, otherwise returns false;
[0222] Among them, vote i ∈{0, 1} represents the voting result of the i-th node; n is the number of nodes participating in the consensus vote; w n,i is the weight factor of the i-th node; exp c is the exponential factor of the consensus voting result; exp t is the exponential factor of the threshold; T is the minimum proportion of consent votes required to reach consensus; i is an integer from 1 to n, representing each node participating in the consensus vote;
[0223] By verifying the formula Verify(data verified , N, T, w n , exp c , exp t )→data valid , and finally obtain the emergency record data packet data that is agreed upon and verified to be valid by most nodes valie ;exp c It is an exponential factor of the consensus voting result, which increases the security and complexity of the consensus mechanism and makes the system more difficult to attack.
[0224] The following are detailed comments on each parameter:
[0225] Auditing formula data in smart contracts verified =SC verify (data packet ), data verified It is a first aid record data package that has been reviewed and deemed qualified by the smart contract; SC verify It is a smart contract audit function used to verify data packet This function checks whether the data packet meets the criteria for joining the blockchain network according to the preset rules; datapacket A data unit containing emergency information that has been hashed and zero-knowledge-proofed. It includes, but is not limited to, timestamps, geolocation, emergency personnel’s authentication information, and emergency equipment identifiers;
[0226] In the weighted synchronization formula Sync(data verified , N, w n ) in the smart contract, Sync is a weighted synchronization function used to synchronize data packets that have been reviewed and deemed qualified by the smart contract. verified}Synchronize between multiple nodes; data verified It is a data package of emergency records that has been reviewed and deemed qualified by the smart contract; N is the set of nodes participating in the consensus process, for example, N = {N1, N2, N3, ..., N n}, where n is the number of nodes participating in the consensus; w n It is the weight factor of each node, which indicates the weight of each node in the synchronization process. The weight factor can be determined based on the node's historical performance, reliability, etc.
[0227] In the consensus formula In the consensus function, Consensus is used to ensure that most nodes agree on the validity of the data packet. It returns true if and only if the sum of weighted voting results exceeds the set threshold, otherwise it returns false; N is the set of nodes participating in the consensus process, for example, N = {N1, N2, N3, ..., N n}, where n is the number of nodes participating in the consensus; T is the minimum proportion of votes required to reach a consensus, for example Indicates that at least 75% of the nodes must agree; vote i ∈{0, 1} is the voting result of the i-th node, where 0 means against and 1 means agree; w n,i is the weight factor of the i-th node, indicating the weight of each node in the consensus vote; exp c It is an exponential factor of the consensus voting result, which increases the security and complexity of the consensus mechanism and makes the system more difficult to attack; exp t is the exponential factor of the threshold, used to adjust the strictness of the consensus threshold; i is an integer from 1 to n, representing each node participating in the consensus vote;
[0228] In the verification formula Verify(data verified , N, T, w n , exp c , exp t )→data valid In the example, Verify is a verification function used to finally confirm the valid emergency record data packet; data verifiedis a data package of emergency records that has been reviewed and deemed qualified by the smart contract; N is the set of nodes participating in the consensus process; T is the minimum proportion of votes required to reach a consensus; w n is the weight factor of each node.
[0229] exp c is the exponential factor of the consensus voting result; exp t is the exponential factor of the threshold; data valid It is the first aid record data packet that is finally agreed upon and verified as valid by the majority of nodes;
[0230] Through these detailed parameter annotations, we can better understand the specific role and significance of each part of each formula. These formulas together constitute a complete process, from smart contract review to final verification, to ensure the authenticity and integrity of first aid records, while providing an efficient verification mechanism and strict privacy protection. This solution is particularly suitable for the field of emergency medical care and can effectively improve the security and transparency of data.
[0231] Assume that in a city emergency system, each emergency incident generates an emergency record containing timestamp, geographic location, emergency personnel authentication information, and emergency equipment identifier. In order to ensure the authenticity and integrity of these records, the system uses the following formula to achieve distributed consensus and off-chain computing mechanism.
[0232] The following are the implementation steps and calculation process:
[0233] Formula for smart contract audit:
[0234] data verified =SC verify (data packet )
[0235] Parameter setting: data packet Refers to a data unit containing emergency information that has been processed with hashing and zero-knowledge proof. verify It is a smart contract audit function used to verify data packet compliance and permissions.
[0236] Assume data packet Contains the following information: Timestamp: 2024-12-17T13:05:00 (Unix timestamp: 1734469500); Geographical location: No. 1000, Lujiazui Ring Road, Pudong New District, Shanghai (latitude and longitude: 31.2304, 121.5097); First aid personnel ID: P001; First aid equipment ID: GJ123456; Zero knowledge proof: ZKP w ;
[0237] Smart contract returns data after review verified = True, indicating that the data packet has passed the review.
[0238] By weighted synchronization formula:
[0239] Sync(data verified , N, w n )
[0240] Parameter setting: data verified is a data packet that has been reviewed and deemed qualified by the smart contract; N is the set of nodes participating in the consensus process, for example, N = {N1, N2, N3, N4, N5}; w n is the weight factor of each node, such as w n =[0.2, 0.2, 0.2, 0.2, 0.2] (all nodes have equal weights);
[0241] Assume data verified The smart contract has been reviewed and the system sends the data packet to all nodes participating in the consensus for synchronization. Each node receives and verifies the data packet according to its weight factor. Finally, all nodes reach a consensus and obtain the synchronized data packet Synced data .
[0242] Through the consensus formula:
[0243]
[0244] Parameter setting: vote i ∈{0, 1} represents the voting result of the i-th node (0 means against, 1 means agree); n is the number of nodes participating in the consensus vote, for example, n = 5; w n,i is the weight factor of the ith node, for example w n,i =[0.2, 0.2, 0.2, 0.2, 0.2]; exp c is the exponential factor of the consensus voting result, such as exp c =2;exp t is the exponential factor of the threshold, such as exp t =2; T is the minimum number of votes required to reach a consensus, for example
[0245] Assume that the voting results of each node are as follows: vote1=1; vote2=1; vote3=1; vote4=0; vote5=1; the consensus calculation formula is:
[0246]
[0247] Calculate the threshold:
[0248]
[0249] Because 0.16<14.0625, the consensus formula does not hold and re-voting or parameter adjustment is required.
[0250] Through the verification formula: Verify(data verified , N, T, w n , exp c , exp t )→data valid
[0251] Parameter setting: data verified is a data packet that has been reviewed and deemed qualified by the smart contract; N is the set of nodes participating in the consensus process; T is the minimum number of votes required to reach a consensus; w n is the weight factor of each node; exp c is the exponential factor of the consensus voting result; exp t is the exponential factor of the threshold;
[0252] After re-voting or adjusting parameters, assuming the consensus formula is established, the system finally confirms the data valid = True, indicating that the data packet has passed the verification of most nodes and has become the first aid record data packet that is finally confirmed to be valid.
[0253] Through the above steps, the present invention not only ensures the authenticity and integrity of the first aid record, but also provides an efficient verification mechanism and strict privacy protection. Specifically:
[0254] Audit formula data through smart contracts verified =SC verify (data packet ), ensuring that only emergency record data packets that meet the preset conditions can enter the next step of processing.
[0255] Through the weighted synchronization formula Sync(data verified , N, w n ) to ensure that multiple nodes can consistently receive and verify the same emergency record data packet to prevent data loss or modification.
[0256] Consensus mechanism: Through the consensus formula Consensus(N, T, w n ), ensuring that most nodes agree on the validity of the data packet. This step increases the security and complexity of the system, making it more difficult to attack.
[0257] By verifying the formula Verify(data verified , N, T, wn , exp c , exp t ) and finally confirm the valid first aid record data package to ensure its authenticity and completeness.
[0258] This solution is particularly suitable for the field of emergency medicine, and can effectively improve the security and transparency of data, enhance trust among all parties, and ensure that emergency records are safely and transparently stored without centralized management.
[0259] 105. Based on the secure and transparently stored first aid records, an access control interface is provided to enable relevant parties to query and verify the first aid records in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed.
[0260] In this step, the access control interface is a security layer provided by the system to ensure that only authorized parties can query and verify emergency records. Strict privacy protection rules limit who can access which data and prevent unauthorized modification or deletion. In this way, the system can ensure the security and transparency of emergency records while protecting the privacy of patients.
[0261] The system provides an access control interface for emergency records, which strictly adheres to privacy protection rules. Only authenticated and authorized users can access specific emergency records. Each access request is recorded for audit and tracking. In addition, the system is designed to not allow unauthorized modification or deletion operations, ensuring the integrity and reliability of the data.
[0262] Finally, the system provides a secure access control interface for emergency records for use by doctors and administrators in the hospital. For example, if a doctor needs to query a patient's emergency records, he must first log in to the system through two-factor authentication. After a successful login, the doctor can only access the emergency records related to his department, and all access behaviors are recorded in detail for subsequent audits. The system also sets strict permission control. Even if the doctor has access rights, he cannot modify or delete the emergency records in any form, ensuring the authenticity and integrity of the data. This mechanism not only protects the privacy of patients, but also enhances the security and reliability of the emergency record management system.
[0263] Optionally, in step 105, based on the securely and transparently stored first aid record, an access control interface is provided, so that relevant parties can query and verify the first aid record in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed, including: based on the first aid record that is securely and transparently stored without centralized management, an access control system is constructed, and the access control system is set to identify and verify the identity of the relevant party requesting to query or verify the first aid record, so as to obtain an access control system that can ensure that only authorized users operate in accordance with strict privacy protection rules; using encryption technology and a permission management system to enhance the access control system, ensure that each query or verification request undergoes strict identity authentication and permission checks, and generate a protected access control interface, which only allows requests that comply with preset permission rules to pass; according to the protected access control interface, According to the requirements, different access levels and permission ranges are customized to obtain customized access permission settings, ensuring that different roles have appropriate access permissions; combined with the tamper-proof characteristics of blockchain, all query and verification activities based on the customized access permission settings are recorded and processed, and an unchangeable and transparent access log is generated to ensure the transparency and post-audit capability of the system; access control policies are automatically executed through smart contracts, and access requests recorded in the unchangeable and transparent access log are automatically processed according to pre-set rules to generate an access control execution mechanism protected by smart contracts to ensure that unauthorized modification or deletion operations are not allowed; a log recording function is provided to record and process in detail each successful or attempted access behavior in the access control execution mechanism protected by the smart contract, including information on visitor identity, access time, and access content, and generate secure and tamper-proof log records stored on the blockchain.
[0264] In this step, the access control system is a security mechanism for managing who can access which resources. In the emergency record management system, the access control system ensures that only authorized users can query and verify operations in accordance with strict privacy protection rules. Encryption technology is used to protect the confidentiality and integrity of data. Through encryption technology, the system can ensure that emergency records will not be viewed or tampered with by unauthorized third parties during transmission and storage. The permission management system refers to a system used to define and manage user permissions. It ensures that each user can only access specific data and perform specific operations according to their role and needs. The access control interface is the interactive interface between the access control system and external users. It ensures that each query or verification request undergoes strict identity authentication and permission checks, and only requests that meet the preset permission rules are allowed to pass. Customized access permission settings are customized for different access levels and permission ranges for relevant parties based on different roles and needs. This ensures that different roles have appropriate access rights, which not only ensures the flexibility of the system, but also maintains the security of data. The unchangeable and transparent access log is a combination of the tamper-proof characteristics of the blockchain to record and process all query and verification activities. These logs not only ensure the transparency of the system, but also provide post-audit capabilities. The access control execution mechanism secured by smart contracts is to use smart contracts to automatically execute access control policies to ensure that unauthorized modification or deletion operations are not allowed. The application of smart contracts makes the access control process more transparent and automated. The logging function records every successful or attempted access behavior in detail, including the visitor's identity, access time, and access content, and generates secure and tamper-proof log records stored on the blockchain.
[0265] First, based on the first aid records that are securely and transparently stored under decentralized management, an access control system is built. The access control system is set up to identify and verify the identities of the parties requesting to query or verify the first aid records, thereby obtaining an access control system that can ensure that only authorized users operate in accordance with strict privacy protection rules.
[0266] Secondly, the access control system is enhanced using encryption technology and permission management system to ensure that each query or verification request undergoes strict identity authentication and permission checks, generating a protected access control interface that only allows requests that meet the preset permission rules to pass.
[0267] Next, based on the protected access control interface, different access levels and permission ranges are customized according to the different roles and needs of the relevant parties to obtain customized access permission settings to ensure that different roles have appropriate access permissions.
[0268] Furthermore, combined with the tamper-proof nature of blockchain, all query and verification activities based on customized access rights settings are recorded and processed to generate unchangeable and transparent access logs, ensuring the transparency and post-audit capabilities of the system.
[0269] Furthermore, access control policies are automatically executed through smart contracts, and access requests recorded in immutable and transparent access logs are automatically processed according to pre-set rules, generating an access control execution mechanism protected by smart contracts to ensure that unauthorized modification or deletion operations are not allowed.
[0270] Finally, a logging function is provided to record in detail every successful or attempted access behavior in the access control execution mechanism based on smart contracts, including information on visitor identity, access time, and access content, and generate secure and tamper-proof log records stored on the blockchain.
[0271] In the embodiments of the present application, it is assumed that in a specific embodiment, the medical staff on the ambulance use a dedicated application to record the patient's preliminary diagnosis and treatment measures. The application automatically obtains the current location from the GPS module integrated in the ambulance and the current time from the system clock of the device, and then uploads this information to the central server together with the emergency record. For example, a first aid incident occurred at 13:05 on December 17, 2024, at No. 1000 Lujiazui Ring Road, Pudong New District, Shanghai.
[0272] First, the system builds an access control system based on secure and transparently stored emergency records. The system is able to identify and verify the identities of parties who request to query or verify emergency records, such as hospital doctors, emergency personnel, and managers. The system ensures that only authorized users can operate in accordance with strict privacy protection rules.
[0273] Secondly, the system uses encryption technology and a rights management system to enhance the access control system. For example, the AES-256 encryption algorithm is used to protect the transmission and storage of emergency records, while the rights management system defines the roles and permissions of each user. The system generates a protected access control interface to ensure that each query or verification request undergoes strict identity authentication and permission checks.
[0274] Next, the system customizes different access levels and scopes of authority according to different roles and needs. For example, hospital doctors can view the patient's specific emergency records but cannot modify them; emergency personnel can add new emergency records but cannot view other emergency personnel's records; managers can review all emergency records but cannot directly participate in emergency operations. This customized access permission setting ensures that different roles have appropriate access permissions, which not only ensures the flexibility of the system but also maintains the security of data.
[0275] Furthermore, the system combines the immutable nature of blockchain to record all query and verification activities. For example, every time a doctor queries patient Zhang San’s emergency records, the system will record the time of the query, the doctor’s identity information, and the specific query content on the blockchain. These unchangeable and transparent access logs not only ensure the transparency of the system, but also provide post-audit capabilities.
[0276] Furthermore, the system automatically enforces access control policies through smart contracts to ensure that unauthorized modification or deletion operations are not allowed. For example, when a user attempts to delete a first aid record, the smart contract automatically checks the user's permissions. If the user does not have the deletion permission, the request is rejected and the attempted operation is recorded on the blockchain.
[0277] Finally, the system provides a logging function to record every successful or attempted access behavior in detail. For example, the system records that doctor A successfully queried the emergency records of patient Zhang San at 14:30 on December 18, 2024, and user B tried to delete a certain emergency record at 15:00 on the same day but was rejected. These log records are stored on the blockchain to ensure their security and immutability, providing a reliable basis for subsequent audits and investigations.
[0278] Through the above steps, the present invention not only ensures the authenticity and integrity of the first aid record, but also provides an efficient access control mechanism and strict authority management, which is suitable for the high reliability and high security requirements in the field of emergency medical care. In addition, the application of access control systems and smart contracts makes the first aid record management system more secure, transparent and automated, enhances trust and transparency among all parties, and also improves the response speed and processing capacity of the system.
[0279] Figure 2 A schematic diagram of a secure storage system for first aid records based on blockchain technology is provided for an embodiment of the present application. Figure 2 As shown, the system includes:
[0280] The receiving module 21 is used to receive the first aid record data generated in the first aid event, and add a timestamp and geographic location information to each first aid record data to obtain the first aid record data containing the timestamp and geographic location information;
[0281] The conversion construction module 22 is used to convert the emergency record data containing the timestamp and geographic location information using a hash function, and to construct an unalterable data packet based on a zero-knowledge proof algorithm in combination with the identity verification information of the emergency personnel and the identifier of the emergency equipment, so as to obtain a data packet containing the authenticity and integrity proof of the emergency information;
[0282] The review module 23 is used to automatically review the compliance and authority of the data packet through the smart contract according to the data packet containing the authenticity and integrity certificate of the emergency information, and obtain the emergency record data packet that is allowed to join the blockchain network;
[0283] The processing module 24 is used to synchronize the first aid record data packets allowed to join the blockchain network among multiple nodes using a distributed consensus algorithm, and introduce an off-chain computing mechanism to process a large number of transactions, so as to obtain first aid records that are securely and transparently stored without centralized management;
[0284] A module 25 is provided for providing an access control interface based on the secure and transparently stored first aid records, so that relevant parties can query and verify the first aid records in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed.
[0285] Figure 2 The first aid record security storage system based on blockchain technology can perform Figure 1 The implementation principle and technical effect of the first aid record security storage method based on blockchain technology described in the illustrated embodiment will not be repeated. The specific manner in which each module and unit performs operations in the first aid record security storage system based on blockchain technology in the above embodiment has been described in detail in the embodiment of the method, and will not be elaborated here.
[0286] In one possible design, Figure 2 The first aid record secure storage system based on blockchain technology in the illustrated embodiment can be implemented as a computing device, such as Figure 3 As shown, the computing device may include a storage component 31 and a processing component 32;
[0287] The storage component 31 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 32 .
[0288] The processing component 32 is used to: receive the first aid record data generated in the first aid event, and attach a timestamp and geographic location information to each first aid record data to obtain the first aid record data containing the timestamp and geographic location information; use a hash algorithm to convert the first aid record data containing the timestamp and geographic location information, and combine the identity authentication information of the first aid personnel and the identifier of the first aid equipment to construct an unalterable data packet based on a zero-knowledge proof algorithm to obtain a data packet containing the authenticity and integrity proof of the first aid information; according to the data packet containing the authenticity and integrity proof of the first aid information, automatically review the compliance and authority of the data packet through a smart contract to obtain a first aid record data packet allowed to join the blockchain network; use a distributed consensus algorithm to synchronize the first aid record data packet allowed to join the blockchain network among multiple nodes, and introduce an off-chain computing mechanism to process a large number of transactions, so as to obtain a first aid record that is securely and transparently stored under decentralized management; based on the securely and transparently stored first aid record, provide an access control interface so that the relevant parties can query and verify the first aid record in accordance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed.
[0289] The processing component 32 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0290] The storage component 31 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0291] Of course, the computing device may also include other components, such as input / output interfaces, display components, communication components, etc.
[0292] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.
[0293] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.
[0294] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.
[0295] The present application also provides a computer storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The illustrated embodiment is a method for securely storing first aid records based on blockchain technology.
[0296] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0297] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0298] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0299] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for secure storage of first aid records based on blockchain technology, characterized in that: include: Receiving first aid record data generated in the first aid event, and attaching a timestamp and geographic location information to each first aid record data, to obtain first aid record data containing the timestamp and geographic location information; The first aid record data including the timestamp and geographic location information is converted using a hash algorithm, and combined with the identity verification information of the first aid personnel and the identifier of the first aid equipment, an unalterable data packet is constructed based on a zero-knowledge proof algorithm to obtain a data packet containing the authenticity and integrity proof of the first aid information; According to the data packet containing the authenticity and integrity proof of the emergency information, the compliance and authority of the data packet are automatically reviewed through the smart contract, and the emergency record data packet allowed to join the blockchain network is obtained; Using a distributed consensus algorithm, the emergency record data packets allowed to join the blockchain network are synchronized among multiple nodes, and an off-chain computing mechanism is introduced to process a large number of transactions, so as to obtain emergency records that are securely and transparently stored without centralized management; Based on the secure and transparently stored first aid records, an access control interface is provided to enable relevant parties to query and verify the first aid records in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed.
2. The method according to claim 1, characterized in that The first aid record data containing the timestamp and geographic location information is converted by using a hash algorithm, and combined with the identity verification information of the first aid personnel and the identifier of the first aid equipment, an unalterable data packet is constructed based on a zero-knowledge proof algorithm to obtain a data packet containing the authenticity and integrity proof of the first aid information, including: Using a secure hash algorithm, the first aid record data containing timestamp and geographic location information is processed to obtain a unique hash value, which is used as a digital fingerprint of the first aid record data to ensure the integrity and uniqueness of the data; Based on the unique hash value, combined with the identity authentication information of the first aid personnel and the unique identifier of the first aid equipment, a composite data structure is constructed, wherein the composite data structure includes the content of the first aid record, associates the specific executor of the first aid operation and the equipment used, and increases the traceability and responsibility of the data; A proof is created based on the composite data structure using a zero-knowledge proof algorithm, wherein the proof allows providing evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without revealing any actual first aid record content, thereby obtaining a zero-knowledge proof; Based on the zero-knowledge proof, the original first aid record hash value, the identity verification information of the first aid personnel and the identifier of the first aid equipment are packaged together to form an unalterable data packet. The data packet can be verified by the nodes in the blockchain network to ensure that the first aid record has not been tampered with from the generation to the storage process, and to verify the authenticity and reliability of the source of the first aid record, and finally obtain a data packet containing the authenticity and integrity proof of the first aid information.
3. The method according to claim 2, characterized in that The secure hash algorithm is used to process the emergency record data containing the timestamp and geographic location information to obtain a unique hash value, which is used as a digital fingerprint of the emergency record data to ensure the integrity and uniqueness of the data, including: Based on the first aid record data including timestamp and geographic location information, selecting a recognized secure hash algorithm, wherein the secure hash algorithm has collision resistance; Using the secure hash algorithm, the emergency record data containing timestamp and geographic location information is processed to obtain a unique hash value, which serves as a digital fingerprint of the emergency record data. Any slight change to the original data will result in a completely different hash value, ensuring the integrity and uniqueness of the data. According to the unique hash value, before adding the unique hash value to the blockchain, checking whether there is an existing hash value identical to the unique hash value in the current blockchain network to verify the uniqueness of the hash value and obtain a verified hash value; Based on the verified hash value, the verified hash value is associated with the corresponding first aid record data to ensure that each first aid record has a unique digital fingerprint, which helps to subsequently build an unalterable data package and quickly locate and verify a specific first aid record when needed.
4. The method according to claim 2, characterized in that: According to the composite data structure, a proof is created using a zero-knowledge proof algorithm, which allows providing evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without revealing any actual first aid record content, and obtains a zero-knowledge proof, including: Based on the constructed composite data structure, preparing basic data for generating a zero-knowledge proof using the composite data structure; The basic data is processed using a zero-knowledge proof algorithm to ensure that a zero-knowledge proof is created and obtained without revealing any actual first aid record content. The zero-knowledge proof can provide evidence to a third party to prove the authenticity, integrity and source legitimacy of the first aid record without disclosing the specific content of the first aid record; According to the zero-knowledge proof, combined with the hash value in the composite data structure, the identity authentication information of the first aid personnel and the identifier of the first aid equipment, the necessary verification information is provided for the subsequent construction of an unalterable data packet, ensuring that the first aid record has not been tampered with from generation to storage, and verifying the authenticity and reliability of the source of the first aid record.
5. The method according to claim 1, characterized in that The distributed consensus algorithm is used to synchronize the emergency record data packets allowed to join the blockchain network among multiple nodes, and an off-chain computing mechanism is introduced to process a large number of transactions, so as to obtain emergency records that are securely and transparently stored without centralized management, including: Using a distributed consensus algorithm, the first aid record data packets that have passed the smart contract review and are allowed to join the blockchain network are synchronized between nodes to obtain first aid record data packets that are agreed upon and verified to be valid by most nodes; According to the agreed and verified first aid record data package, the agreed and verified first aid record data package is added to the blockchain under decentralized management to generate valid first aid record data that is confirmed without a single controlling entity; Based on the valid first aid record data, an off-chain calculation mechanism is introduced to process a large amount of first aid record data or non-critical transactions that do not need to be reflected on the chain immediately, so as to meet the needs of efficient processing and obtain preliminary results after off-chain calculation; Using a distributed consensus algorithm, the preliminary results after off-chain calculation are verified again to ensure that the preliminary results after off-chain calculation meet the standards for joining the main chain, and generate the first aid record data that is finally officially added to the blockchain; According to the first aid record data finally formally added to the blockchain, by further combining the distributed consensus algorithm and the off-chain computing mechanism, first aid records that are securely and transparently stored under decentralized management are obtained.
6. The method according to claim 1, characterized in that The first aid record based on the secure and transparent storage provides an access control interface, so that the relevant parties can query and verify the first aid record under strict privacy protection rules, but unauthorized modification or deletion operations are not allowed, including: Based on the first aid records that are securely and transparently stored without centralized management, an access control system is constructed, and the access control system is configured to identify and verify the identity of the parties requesting to query or verify the first aid records, so as to obtain an access control system that can ensure that only authorized users operate in accordance with strict privacy protection rules; The access control system is enhanced by using encryption technology and a rights management system to ensure that each query or verification request undergoes strict identity authentication and rights checks, and to generate a protected access control interface that only allows requests that meet preset rights rules to pass; According to the protected access control interface, different access levels and permission ranges are customized according to different roles and needs of relevant parties to obtain customized access permission settings to ensure that different roles have appropriate access permissions; Combined with the tamper-proof nature of blockchain, all query and verification activities based on the customized access rights settings are recorded and processed to generate unchangeable and transparent access logs to ensure the transparency and post-audit capabilities of the system; Automatically execute access control policies through smart contracts, automatically process access requests recorded in the immutable and transparent access log according to pre-set rules, and generate an access control execution mechanism protected by smart contracts to ensure that unauthorized modification or deletion operations are not allowed; Provide a logging function to record in detail every successful or attempted access behavior in the access control execution mechanism based on the smart contract, including information about the visitor's identity, access time, and access content, and generate a secure and tamper-proof log record stored on the blockchain.
7. The method according to claim 1, characterized in that According to the data packet containing the authenticity and integrity proof of the emergency information, the compliance and authority of the data packet are automatically reviewed through the smart contract to obtain the emergency record data packet allowed to join the blockchain network, including: Based on the data packet containing the authenticity and integrity certificate of the first aid information, receiving and processing the data packet containing the authenticity and integrity certificate of the first aid information, ensuring that each data packet contains the timestamp and geographic location information of the first aid event, as well as the identity verification information of the first aid personnel and the identifier of the first aid equipment, and generating a first aid record data packet ready for review; Using smart contracts to define audit standards, based on the emergency record data package to be audited, pre-set the rules and conditions in the smart contract, including data format, validity of timestamps, rationality of geographic location information, identity verification information of emergency personnel and accuracy of emergency equipment identifiers, and generate a smart contract rule set; Based on the smart contract rule set, the first aid record data package to be reviewed is automatically reviewed for compliance, and the data package is verified to see whether it meets all preset conditions, thereby obtaining a data package that has passed the preliminary compliance check; Performing permission verification processing based on the data packet that has passed the preliminary compliance check, using the smart contract to confirm the identity and operation authority of the emergency personnel or submitter, and generating a data packet with sufficient authority; Based on the data packet with sufficient authority, the smart contract is used to perform a final audit process. If the data packet with sufficient authority passes all compliance and authority checks, a positive audit result is generated. For the data packet that fails the audit, a negative audit result is generated, and a notification mechanism is triggered to inform the relevant parties of the reason. According to the positive audit result, the data packet that has passed the smart contract audit is marked to obtain a first aid record data packet that is allowed to join the blockchain network.
8. A secure storage system for first aid records based on blockchain technology, characterized in that: include: A receiving module, used to receive the first aid record data generated in the first aid event, and to add a timestamp and geographic location information to each first aid record data, so as to obtain the first aid record data containing the timestamp and geographic location information; A conversion construction module is used to convert the emergency record data containing the timestamp and geographic location information using a hash function, and to construct an unalterable data packet based on a zero-knowledge proof algorithm in combination with the identity verification information of the emergency personnel and the identifier of the emergency equipment, so as to obtain a data packet containing the authenticity and integrity proof of the emergency information; An audit module is used to automatically audit the compliance and authority of the data packet containing the authenticity and integrity certificate of the first aid information through a smart contract, and obtain a first aid record data packet that is allowed to join the blockchain network; A processing module, used to synchronize the first aid record data packets allowed to join the blockchain network among multiple nodes using a distributed consensus algorithm, and introduce an off-chain computing mechanism to process a large number of transactions, so as to obtain first aid records that are securely and transparently stored without centralized management; A module is provided for providing an access control interface based on the secure and transparently stored first aid records, so that relevant parties can query and verify the first aid records in compliance with strict privacy protection rules, but unauthorized modification or deletion operations are not allowed.
9. A computing device, characterized in that It includes a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement a method for secure storage of first aid records based on blockchain technology as described in any one of claims 1 to 7.
10. A computer storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a computer, a method for securely storing first aid records based on blockchain technology as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Authorization verification method based on medical block chain
CN114553437A
Remote monitoring medical data management method and system based on block chain
CN114996754A
Decentralized medical file sharing system based on block chain
CN115758439A
Emergency equipment interference suppression method and system based on adaptive filtering
CN116458847A
Method for high-performance distributed storage of block data and timestamp, cross-chain communication and data collaboration
WO2023050555A1
Cited By
Tamper-proof watermark drawing method, system and terminal
CN120429846A
Emergency emergency medical information management method and system based on block chain and distribution
CN120565012A
Blockchain and distributed-based emergency first-aid medical information management method and system
CN120565012B
First-aid process tracing and optimizing method and system based on block chain
CN121054209A