A reinsurance data security sharing platform and method based on alliance chain

By adopting alliance chain and attribute encryption technology in the reinsurance system, the problem of risk of sensitive information leakage and tampering in reinsurance data sharing is solved, and high security and privacy protection of data are achieved, ensuring the security of data during the sharing process and reliability.

CN118509196BActive Publication Date: 2024-12-03NINGXIA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410539080.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-12-03
Estimated Expiration
2044-04-30

AI Technical Summary

Technical Problem

Reinsurance systems face risks of leakage and tampering of sensitive information, mainly due to the lack of strict access control and centralized storage, especially inadequate encryption during information sharing and transmission, which increases the risk of sensitive data being intercepted or tampered.

Method used

Adopt a reinsurance data security sharing platform based on a alliance chain, and through a system framework of attribute encryption and hybrid encryption, set two-level encryption settings and access permissions, and use smart contracts to store and share data on the blockchain to ensure the privacy of the data and Security.

Benefits of technology

A high degree of security sharing and privacy protection for reinsured data is achieved, ensuring that only authorized entities can access sensitive information, avoiding the risks of data leakage and tampering, and solving the single point of failure of centralized storage through distributed storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118509196B_ABST
    Figure CN118509196B_ABST
Patent Text Reader

Abstract

The present invention provides a reinsurance data security sharing platform and method based on alliance chain, which belongs to the field of blockchain technology. The reinsurance data sharing platform includes four entities: an insurance company IRS, a reinsurance company RIN, an insured person Insured, and a system authorization agency CA. IRS publishes reinsurance products to the blockchain; RIN uploads the reinsurance contract image data to the server; RIN uploads the plain text of the reinsurance contract to the platform; IRS uploads the insurance contract image data to the server; IRS uploads the plain text of the insurance contract to the platform; RIN generates a reinsurance contract CR, encrypts the reinsurance contract CR using an attribute encryption algorithm to obtain a CR ciphertext, and uploads the CR ciphertext to the blockchain through a smart contract. The CR ciphertext sets access rights during the encryption process; IRS obtains the CR ciphertext from the blockchain, decrypts the CR ciphertext to obtain a secret key; IRS generates an insurance contract CP, encrypts the insurance contract CP using a secret key and a symmetric encryption algorithm to obtain a CP ciphertext, and uploads the CP ciphertext to the blockchain through a smart contract.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a reinsurance data security sharing platform and method based on alliance chain. Background Art

[0002] Reinsurance, also known as reinsurance or "insurance of insurance", is the act of an insurer transferring part or all of its own risk liability to other insurers through the signing of a reinsurance contract on the basis of the original insurance contract. The reinsurance industry usually faces a large amount of data. Its business generally involves complex risk assessment, contract management, and claims processing. Traditional reinsurance business usually uses Web-based back-end platforms, which process, store and calculate data through traditional database systems. With the development of big data technology, data lakes and data warehouses are gradually replacing traditional database storage methods for data management. The processing process mainly includes data collection, data storage, data labeling and metadata management, as well as data processing and analysis to ensure scalability and high availability, which improves data storage and processing capabilities to a certain extent, and has higher query performance and is flexible in data consistency.

[0003] The reinsurance system needs to collect a large amount of sensitive information, including the insured's personal information, policy details, claim history, etc. The extensive collection of this information may make the system vulnerable to privacy violations. At the same time, the storage and processing of sensitive information in the reinsurance system may be risky. Traditional systems may use centralized database storage, which may lead to large-scale sensitive data leakage once it is breached. In addition, in the reinsurance business, multiple partners and third parties are involved, and the sharing and transmission of sensitive information is inevitable. In traditional systems, there may be problems such as insufficient encryption and weak security protocols during information transmission, which increases the risk of sensitive information being intercepted or tampered with.

[0004] The main reasons for these problems are: first, lack of strict access control. Insurance companies usually lack effective data access control policies. If unauthorized individuals or systems can access sensitive insurance data, it may lead to information leakage, abuse or unauthorized data modification; second, centralized storage leads to security risks. Centralized storage means that all data is stored in one system or platform, and the security of the entire system is highly dependent on the availability of the central storage. Once the central storage fails or the security line of the central storage is breached by attackers, the entire system may face the risk of data unavailability. Attackers may tamper with the data in the central storage, resulting in the use of untrusted data. Summary of the invention

[0005] In view of this, the present invention provides a reinsurance data security sharing platform and method based on alliance chain, adopts attribute encryption and hybrid encryption reinsurance data security sharing system framework, sets two-level encryption to associate reinsurance contracts and personal contracts, sets access rights, and ensures data privacy.

[0006] The technical solution adopted by the embodiment of the present invention to solve the technical problem is:

[0007] A method for secure sharing of reinsurance data based on a consortium chain is implemented based on a reinsurance data sharing platform, wherein the reinsurance data sharing platform includes four entities: an insurance company IRS, a reinsurance company RIN, an insured person Insured, and a system authorization agency CA. The method includes:

[0008] Step S1, the insurance company IRS, the reinsurance company RIN, and the insured Insured all register with the system authorization agency CA and obtain a public key, a private key, and a certificate;

[0009] Step S2, the insurance company IRS publishes the reinsurance product to the blockchain and obtains the plain text of the reinsurance product, where the plain text of the reinsurance product includes the reinsurance product and a description of the reinsurance product;

[0010] Step S3, the reinsurance company RIN uploads the reinsurance contract image data to the server, and obtains the storage address of the reinsurance contract image data in the server;

[0011] Step S4, the reinsurance company RIN uploads the plain text of the reinsurance contract to the reinsurance data sharing platform;

[0012] Step S5, the insurance company IRS uploads the insurance contract image data to the server and obtains the storage address of the insurance contract image data in the server;

[0013] Step S6, the insurance company IRS uploads the plain text of the insurance contract to the reinsurance data sharing platform;

[0014] Step S7, the reinsurance company RIN generates a reinsurance contract CR based on the storage address of the reinsurance contract image data in the server, the plain text of the reinsurance contract, and the symmetric encryption key Mk, encrypts the reinsurance contract CR using an attribute encryption algorithm to obtain a CR ciphertext, and further calls the blockchain interface to deploy a smart contract through the reinsurance data sharing platform, and uploads the CR ciphertext to the blockchain through the smart contract. The CR ciphertext is set with access rights during the encryption process, and the entities with the access rights include the reinsurance company RIN, the insurance company IRS, and the insured;

[0015] Step S8, the insurance company IRS uses the code of the reinsurance contract CR to query the blockchain, obtains the CR ciphertext, decrypts the CR ciphertext to obtain the secret key, and stores it locally;

[0016] Step S9, the insurance company IRS generates an insurance contract CP based on the storage address of the insurance contract image data in the server and the plain text of the insurance contract, encrypts the insurance contract CP using the secret key and the symmetric encryption algorithm to obtain a CP ciphertext, and further calls the blockchain interface through the reinsurance data sharing platform to deploy a smart contract, and uploads the CP ciphertext to the blockchain through the smart contract.

[0017] Preferably, after step S9, the method further includes:

[0018] In step S10, the insured uses the code of the reinsurance contract CR to query the blockchain, obtains the CR ciphertext, and decrypts the CR ciphertext to obtain the secret key; the insured uses the code of the insurance contract CP to query the blockchain, obtains the CP ciphertext, and decrypts the CP ciphertext using the secret key to obtain the CP plaintext.

[0019] Preferably, the step S7 comprises:

[0020] Step S71, the reinsurance company RIN generates the reinsurance contract CR and requests the system authorization agency CA to verify the certificate, wherein the reinsurance contract CR includes the reinsurance company ID, the insurance company ID, the name of the reinsurance product, the code of the reinsurance contract CR, the contract period of the reinsurance contract CR, the plain text of the reinsurance product, the description of the reinsurance product, and the storage address of the reinsurance contract file data in the server;

[0021] Step S72, the system authority CA verifies the certificate of the reinsurance company;

[0022] Step S73, after verification, the reinsurance data sharing platform processes the reinsurance contract CR into a json format, obtains the reinsurance company ID, insurance company ID, and reinsurance product ID from the reinsurance contract CR to generate an access control tree; wherein the attribute set corresponding to the leaf node of the access control tree includes reinsurance company attributes, insurance company attributes, and insured person attributes, the institution classification contained in the left subtree of the access control tree specifically includes reinsurance company D, insurance company E, and insured person F, the threshold value of the left subtree is or, the right subtree includes insurance company d, reinsurance company e, and reinsurance product f, the threshold value of the right subtree is or, and the root node threshold value of the access control tree is and; the system authorization agency CA generates a system public key PK, a master private key MK, and each entity attribute private key SK based on the access control tree, sends the system public key PK to each entity involved in the access control tree, and sends the entity attribute private key SK to the corresponding entity;

[0023] Step S74, the reinsurance data sharing platform calls the HKDF algorithm to generate a symmetric encryption key Mk;

[0024] Step S75, the reinsurance data sharing platform calls the attribute encryption algorithm, uses the system public key PK and the master private key MK, and the access control tree to perform attribute encryption on the reinsurance contract CR to obtain the CR ciphertext;

[0025] Step S76: The reinsurance data sharing platform calls the blockchain interface to deploy the smart contract and uploads the CR ciphertext to the blockchain through the smart contract.

[0026] Preferably, the step S9 comprises:

[0027] Step S91, the insurance company IRS generates an insurance contract CP and requests the system authorization agency CA to verify the certificate, wherein the insurance contract CP includes the insurance company ID, the insured ID, the code of the insurance contract CP, the code of the reinsurance contract CR, the premium, the insured amount, the plain text of the reinsurance product, the description of the reinsurance product, and the storage address of the insurance contract image data in the server;

[0028] Step S92, the system authorization agency CA verifies the insurance company's certificate;

[0029] Step S93: after verification, the reinsurance data sharing platform verifies whether the reinsurance contract CR is currently within the contract period;

[0030] Step S94: after verification is successful, the reinsurance data sharing platform queries the CR ciphertext on the blockchain;

[0031] Step S95, the insurance company IRS reads the insurance company's entity attribute private key SK, decrypts the CR ciphertext, and obtains the CR plaintext and the symmetric encryption key Mk;

[0032] Step S96, the reinsurance data sharing platform calls a symmetric encryption algorithm based on the symmetric encryption key Mk to encrypt the insurance contract CP to obtain the CP ciphertext;

[0033] Step S97, the reinsurance data sharing platform calls the blockchain interface to deploy the smart contract, and uploads the CP ciphertext to the blockchain through the smart contract.

[0034] Preferably, the step S10 includes:

[0035] Step S101, the insured uses the code of the reinsurance contract CR to send a reinsurance contract query request to the reinsurance data sharing platform; the insured uses the code of the insurance contract CP to send an insurance contract query request to the reinsurance data sharing platform;

[0036] Step S102, the system authorization agency CA verifies the insured's certificate according to the insured's ID;

[0037] Step S103, the reinsurance data sharing platform searches the blockchain for the CR ciphertext corresponding to the code of the reinsurance contract CR;

[0038] Step S104, the reinsurance data sharing platform calls the insured's private key, the system public key PK, and the entity attribute private key SK, and uses the attribute decryption algorithm to decrypt the CR ciphertext to obtain the CR plaintext and the symmetric encryption key Mk;

[0039] Step S105, the reinsurance data sharing platform queries the CP ciphertext corresponding to the code of the insurance contract CP;

[0040] Step S106: The reinsurance data sharing platform calls the symmetric encryption algorithm based on the symmetric encryption key Mk to decrypt the insurance contract CP, obtains the CP plaintext and provides it to the insured Insured.

[0041] Preferably, after step S10, the method further includes:

[0042] Step S11, when the reinsurance product contract period expires, the reinsurance data sharing platform regenerates the symmetric encryption key and sends it to the insured;

[0043] Step S12: the insurance company IRS uses the symmetric key to encrypt and generate a new CP ciphertext, and uploads it to the blockchain.

[0044] A reinsurance data security sharing platform based on alliance chain, with four entities: insurance company IRS, reinsurance company RIN, insured Insured, and system authorization agency CA:

[0045] The insurance company IRS, the reinsurance company RIN, and the insured Insured all register with the system authorization agency CA and obtain public keys, private keys, and certificates;

[0046] The insurance company IRS publishes the reinsurance product to the blockchain and obtains the plain text of the reinsurance product, where the plain text of the reinsurance product includes the reinsurance product and a description of the reinsurance product;

[0047] The reinsurance company RIN uploads the reinsurance contract image data to the server and obtains the storage address of the reinsurance contract image data in the server;

[0048] The reinsurance company RIN uploads the plain text of the reinsurance contract to the reinsurance data sharing platform;

[0049] The insurance company IRS uploads the insurance contract image data to the server and obtains the storage address of the insurance contract image data in the server;

[0050] The insurance company IRS uploads the plain text of the insurance contract to the reinsurance data sharing platform;

[0051] The reinsurance company RIN generates the reinsurance contract CR based on the storage address of the reinsurance contract image data in the server, the plain text of the reinsurance contract, and the symmetric encryption key Mk, encrypts the reinsurance contract CR using the attribute encryption algorithm to obtain the CR ciphertext, and further calls the blockchain interface to deploy the smart contract through the reinsurance data sharing platform, and uploads the CR ciphertext to the blockchain through the smart contract. The CR ciphertext is set with access rights during the encryption process, and the entities with the access rights include the reinsurance company RIN, the insurance company IRS, and the insured;

[0052] The insurance company IRS uses the code of the reinsurance contract CR to query the blockchain, obtain the CR ciphertext, decrypt the CR ciphertext to obtain the secret key, and stores it locally;

[0053] The insurance company IRS generates an insurance contract CP based on the storage address of the insurance contract image data in the server and the plain text of the insurance contract, encrypts the insurance contract CP using the secret key and the symmetric encryption algorithm to obtain a CP ciphertext, and further calls the blockchain interface through the reinsurance data sharing platform to deploy a smart contract, and uploads the CP ciphertext to the blockchain through the smart contract.

[0054] It can be seen from the above technical scheme that the embodiment of the present invention provides a reinsurance data security sharing platform and method based on the alliance chain. The reinsurance data sharing platform includes four entities: the insurance company IRS, the reinsurance company RIN, the insured Insured, and the system authorization agency CA. The IRS publishes reinsurance products to the blockchain; the RIN uploads the reinsurance contract image data to the server; the RIN uploads the plain text of the reinsurance contract to the platform; the IRS uploads the insurance contract image data to the server; the IRS uploads the plain text of the insurance contract to the platform; the RIN generates the reinsurance contract CR, encrypts the reinsurance contract CR using the attribute encryption algorithm to obtain the CR ciphertext, and further uploads the CR ciphertext to the blockchain through a smart contract. The CR ciphertext sets access rights during the encryption process; the IRS obtains the CR ciphertext from the blockchain, decrypts the CR ciphertext to obtain the secret key; the IRS generates the insurance contract CP, encrypts the insurance contract CP using the secret key and the symmetric encryption algorithm to obtain the CP ciphertext, and further uploads the CP ciphertext to the blockchain through a smart contract. The platform of the present invention adopts a reinsurance data security sharing system framework of attribute encryption and hybrid encryption, sets two-level encryption for linking reinsurance contracts and personal contracts, sets access rights, and ensures the privacy of platform data. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a release and contract signing flow chart of the reinsurance data security sharing platform based on the alliance chain of the present invention.

[0056] Figure 2 Upload a process diagram for a reinsurance contract.

[0057] Figure 3 Upload flowcharts for individual contracts.

[0058] Figure 4 View the flow chart for individual contracts.

[0059] Figure 5 Undo the flow chart for the property.

[0060] Figure 6 This is a flow chart for processing after the reinsurance product contract cycle expires. DETAILED DESCRIPTION

[0061] The technical scheme and technical effects of the present invention are further elaborated in detail below in conjunction with the accompanying drawings of the present invention.

[0062] like Figure 1 As shown, the present invention provides a reinsurance data security sharing platform based on alliance chain, and adopts attribute encryption method of reinsurance data security sharing system framework with attribute encryption and hybrid encryption. The platform aims to realize cooperation between insurance companies, use blockchain technology to ensure the safe storage of contracts, and provide data fine-grained access control, safe sharing and traceability change services. It is implemented by alliance chain, and mainly adopts attribute encryption, key derivation, symmetric encryption and asymmetric encryption technology. The main functions include five functional modules: registration and login, reinsurance product release, reinsurance contract storage, personal contract storage, multi-party secure sharing and traceability data change. Insurance companies can release product liabilities that need to be reinsured, and then encrypt reinsurance contracts and personal contracts for storage. Relevant users can view personal insurance data in real time. Encryption technology is used to ensure that data sharing between participants is carried out in a highly secure environment, and all data changes will be traced. At the same time, an access control mechanism is introduced to ensure that each participant can only access data within their authorized scope.

[0063] The entities in the reinsurance data security sharing platform include four entities: insurance company IRS, reinsurance company RIN, insured Insured, and system authorization agency CA.

[0064] Insurance Company (IRS): ReinChain consortium chain allows multiple insurance companies to register. If there is a product liability that needs to be reinsured, the insurance company can publish the product liability (Product) to the blockchain network. When a reinsurance company wants to bear the risk of the product liability, it can sign a contract with it, and the reinsurance company will generate a reinsurance contract (CR). After the insurance company sells the product liability, the insurance company needs to confirm the access rights by CA, then decrypt the reinsurance contract, obtain the symmetric key for encrypting the personal contract, and use the AES key to encrypt the insured's personal contract and upload it to the blockchain.

[0065] Reinsurance Company (RIN): ReinChain consortium chain allows multiple reinsurance companies to register. Reinsurance companies can view the product liabilities published by insurance companies and choose the ones they need to sign. After signing, the reinsurance company uploads the reinsurance contract. When uploading the reinsurance contract, the reinsurance company first needs to obtain authorization from the CA, and then send the attributes and personal signature to the smart contract. The smart contract generates a symmetric key Mk, and then encrypts the reinsurance contract and the symmetric key Mk attributes, uploads them to the blockchain network, and then stores the returned insured private key to the user's local. In addition, the reinsurance company can also view the individual contracts uploaded by the insurance company. The reinsurance company first needs authorization from the CA organization, and then initiates a query request. The blockchain network returns the reinsurance contract ciphertext through the smart contract. The insured uses the attributes and personal private key to decrypt the reinsurance contract, obtains the reinsurance data plaintext and the symmetric key Mk, and then uses the symmetric key Mk to decrypt the individual contract.

[0066] Insured: refers to the policyholder. The insured can call the smart contract to query personal contract data, and the CA institution will confirm whether it has access rights. After obtaining the permission, the blockchain network returns the reinsurance contract ciphertext through the smart contract. The insured uses the attributes and personal private key to decrypt the reinsurance contract, obtain the symmetric key Mk, and then use the symmetric key Mk to decrypt the personal contract.

[0067] System Authorization Authority (CA): Participants in the blockchain network need digital identities to prove their identities. CA is responsible for verifying the identity of the entity and issuing the corresponding digital certificate, which is used to prove the identity of the participant. The user name and encrypted personal information will be stored in the user table.

[0068] The reinsurance data security sharing platform provides the following services:

[0069] Reinsurance product release and contract signing: Provides insurance companies with the function of releasing products that require reinsurance. For the specific release process, see Figure 2 Release and contract flow chart, first the insurance company releases the product that needs reinsurance, the reinsurance company that wants to participate in reinsurance releases the request, the two parties reach an agreement offline and generate contract information. The specific fields of the release information include title, product, time, description, and insurance company name. The data will be directly stored on the blockchain in the form of key-value pairs. Other users can use the GetData method to obtain product information from the blockchain.

[0070] Reinsurance contract evidence storage: realize the contract evidence storage function to ensure the data is tamper-proof and transparent. For the specific process, see Figure 3Reinsurance contract upload flow chart. First, the user uploads the contract data from the front-end page. At this time, the system will check whether the user has the authority to upload the contract. If the authority check is passed, the data will be sent to the back-end system for processing in the form of a json string. The fields mainly include: reinsurance company, insurance company, contract code, contract name, original file hash address, etc. First, the system will analyze the data uploaded by the user, combine the insurance company and reinsurance company codes into attribute values, and then generate an access control tree, and use a random number function to generate a seed for subsequent key derivation, call the cryptography library, and use the user's private key to complete the ciphertext-based attribute encryption (Ciphertext-Policy Attribute-BasedEncryption) of the contract information and seed. Finally, call the blockchain smart contract to upload the encrypted data to the blockchain.

[0071] Reinsurance contract decryption: This process is mainly completed by the system, which is the highest level of encryption for multi-level key management. After the user clicks "decrypt" on the interface, the system first determines whether the user's attributes are in the attribute list. If the user's attributes are in the attribute list of the data, it will read the key file stored locally by the user and decrypt the reinsurance contract ciphertext with the public key generated by the system. After the decryption is successful, the user can obtain the reinsurance contract data and key derivation parameters, which are stored locally in the form of files.

[0072] Personal contract notarization: It realizes the function of personal contract notarization, which is a multi-level key management and a hybrid encryption scheme of symmetric encryption and asymmetric encryption. When the user meets the attributes of the reinsurance contract, he can obtain the permission to upload the personal contract and the symmetric key to encrypt the personal contract. It is completed by the insurance company. For the specific process, see Figure 4 Flowchart for uploading personal contracts. First, the CA verifies the user's identity certificate. If the verification is successful, the user can obtain the reinsurance contract ciphertext on the interface and decrypt it. After decryption, the symmetric key Mk will be stored locally on the user. The encryption of personal contracts uses the symmetric encryption algorithm AES. When the user successfully decrypts the reinsurance contract data, he can upload the personal contract data on the interface. The main fields include: contract code, reinsurance contract code, contract name, premium, reinsurance contract plan code, insured, policyholder, gender, age, insurance company, and reinsurance company. After the user clicks the "Upload" button, the system will read the user's local key derivation parameters for key derivation, and use the AES encryption algorithm to encrypt the data, and then upload it to the blockchain. If completed successfully, the front end returns "success".

[0073] Tracing data changes (personal contract decryption): This function is completed for the query of personal contract data. After obtaining personal contract data, users can trace what changes have occurred, providing a reasonable basis for accurately calculating reinsurance premiums. Both users and reinsurance companies can view the data. For specific procedures, see Figure 5Flowchart for viewing personal contracts. After the CA verifies the user certificate, the user first obtains the reinsurance contract data and decrypts it. Similar to the process of encrypting a personal contract, after obtaining the key derivation parameters, the user can decrypt the personal contract data and obtain the personal contract data.

[0074] Furthermore, the present invention provides a method for secure sharing of reinsurance data based on alliance chain. Figure 1 The reinsurance data sharing platform shown is implemented by the method comprising:

[0075] Step S1, the insurance company IRS, the reinsurance company RIN, and the insured Insured all register with the system authorization agency CA and obtain the public key, private key, and certificate;

[0076] Step S2, the insurance company IRS publishes the reinsurance product to the blockchain and obtains the plain text of the reinsurance product, which includes the reinsurance product and a description of the reinsurance product;

[0077] Step S3, the reinsurance company RIN uploads the reinsurance contract image data to the server, and obtains the storage address of the reinsurance contract image data in the server; wherein the reinsurance contract is signed offline between the insurance company and the reinsurance company;

[0078] Step S4, the reinsurance company RIN uploads the plain text of the reinsurance contract to the reinsurance data sharing platform;

[0079] Step S5, the insurance company IRS uploads the insurance contract image data to the server and obtains the storage address of the insurance contract image data in the server; wherein the insurance contract is signed offline between the insurance company and the insured (policyholder);

[0080] Step S6, the insurance company IRS uploads the plain text of the insurance contract to the reinsurance data sharing platform;

[0081] Step S7, the reinsurance company RIN generates the reinsurance contract CR based on the storage address of the reinsurance contract image data in the server, the plain text of the reinsurance contract, and the symmetric encryption key Mk, encrypts the reinsurance contract CR using the attribute encryption algorithm to obtain the CR ciphertext, and further calls the blockchain interface to deploy the smart contract through the reinsurance data sharing platform, and uploads the CR ciphertext to the blockchain through the smart contract. The CR ciphertext is set with access rights during the encryption process, and the entities with access rights include the reinsurance company RIN, the insurance company IRS, and the insured;

[0082] Step S8, the insurance company IRS uses the code of the reinsurance contract CR to query the blockchain, obtain the CR ciphertext, decrypt the CR ciphertext to obtain the secret key, and store it locally; the code of the reinsurance contract CR is generated when the reinsurance contract is generated;

[0083] Step S9, the insurance company IRS generates an insurance contract CP based on the storage address of the insurance contract image data in the server and the plain text of the insurance contract, encrypts the insurance contract CP using a secret key and a symmetric encryption algorithm to obtain a CP ciphertext, and further calls the blockchain interface to deploy the smart contract through the reinsurance data sharing platform, and uploads the CP ciphertext to the blockchain through the smart contract.

[0084] Preferably, the specific implementation of step S7 includes:

[0085] Step S71, the reinsurance company RIN generates a reinsurance contract CR and requests the system authorization agency CA to verify the certificate. The reinsurance contract CR includes the reinsurance company ID, the insurance company ID, the name of the reinsurance product, the code of the reinsurance contract CR, the contract period of the reinsurance contract CR, the plain text of the reinsurance product, the description of the reinsurance product, and the storage address of the reinsurance contract file data in the server;

[0086] Step S72, the system authority CA verifies the reinsurance company's certificate;

[0087] Step S73, after the verification is passed, the reinsurance data sharing platform processes the reinsurance contract CR into a json format, obtains the reinsurance company ID, the insurance company ID, and the reinsurance product ID from the reinsurance contract CR to generate an access control tree (the access control tree type is a read-write access control tree at this time); wherein, the attribute set corresponding to the leaf node of the access control tree includes reinsurance company attributes, insurance company attributes, and insured person attributes, and the institution classification contained in the left subtree of the access control tree specifically includes reinsurance company D, insurance company E, and insured person F (used to distinguish which institution classification the institution belongs to), the threshold value of the left subtree is or, the right subtree includes insurance company d, reinsurance company e, and reinsurance product f (used to distinguish which institution name under which institution classification the institution belongs to), the threshold value of the right subtree is or, and the threshold value of the root node of the access control tree is and; the system authorization agency CA generates a system public key PK, a master private key MK, and each entity attribute private key SK based on the access control tree, sends the system public key PK to each entity involved in the access control tree, and sends the entity attribute private key SK to the corresponding entity;

[0088] Step S74, the reinsurance data sharing platform calls the HKDF algorithm to generate a symmetric encryption key Mk;

[0089] Step S75, the reinsurance data sharing platform calls the attribute encryption algorithm, uses the system public key PK and the master private key MK, and the access control tree to perform attribute encryption on the reinsurance contract CR to obtain the CR ciphertext;

[0090] Step S76: The reinsurance data sharing platform calls the blockchain interface to deploy the smart contract and uploads the CR ciphertext to the blockchain through the smart contract.

[0091] Preferably, the specific implementation of step S9 includes:

[0092] Step S91, the insurance company IRS generates an insurance contract CP and requests the system authorization agency CA to verify the certificate. The insurance contract CP includes the insurance company ID, the insured ID, the code of the insurance contract CP, the code of the reinsurance contract CR, the premium, the insured amount, the plain text of the reinsurance product, the description of the reinsurance product, and the storage address of the insurance contract image data in the server;

[0093] Step S92, the system authorization agency CA verifies the insurance company's certificate;

[0094] Step S93: After verification, the reinsurance data sharing platform verifies whether the reinsurance contract CR is currently within the contract cycle;

[0095] Step S94: After verification is successful, the reinsurance data sharing platform queries the CR ciphertext on the blockchain;

[0096] Step S95, the insurance company IRS reads the insurance company's entity attribute private key SK, decrypts the CR ciphertext, and obtains the CR plaintext and the symmetric encryption key Mk;

[0097] Step S96, the reinsurance data sharing platform calls the symmetric encryption algorithm based on the symmetric encryption key Mk to encrypt the insurance contract CP and obtain the CP ciphertext;

[0098] Step S97, the reinsurance data sharing platform calls the blockchain interface to deploy the smart contract and uploads the CP ciphertext to the blockchain through the smart contract.

[0099] Through the above, the CR ciphertext and CP ciphertext are all stored in the blockchain. At this time, the entities involved in signing the insurance contract and reinsurance contract have the authority to view the insurance contract through the blockchain. For example:

[0100] In step S10, the insured uses the code of the reinsurance contract CR to query the blockchain, obtain the CR ciphertext, and decrypt the CR ciphertext to obtain the secret key; the insured uses the code of the insurance contract CP to query the blockchain, obtain the CP ciphertext, and decrypt the CP ciphertext using the secret key to obtain the CP plaintext.

[0101] Preferably, the specific implementation of step S10 includes:

[0102] Step S101, the insured uses the code of the reinsurance contract CR to send a reinsurance contract query request to the reinsurance data sharing platform; the insured uses the code of the insurance contract CP to send an insurance contract query request to the reinsurance data sharing platform;

[0103] Step S102, the system authorization agency CA verifies the insured's certificate based on the insured's ID;

[0104] Step S103, the reinsurance data sharing platform searches the blockchain for the CR ciphertext corresponding to the code of the reinsurance contract CR;

[0105] Step S104, the reinsurance data sharing platform calls the insured's private key, the system public key PK, and the entity attribute private key SK, and uses the attribute decryption algorithm to decrypt the CR ciphertext to obtain the CR plaintext and the symmetric encryption key Mk;

[0106] Step S105, the reinsurance data sharing platform queries the CP ciphertext corresponding to the code of the insurance contract CP;

[0107] Step S106: The reinsurance data sharing platform calls the symmetric encryption algorithm based on the symmetric encryption key Mk to decrypt the insurance contract CP, obtains the CP plaintext and provides it to the insured Insured.

[0108] When checking an insurance contract, the insurance company can use the code of the insurance contract CP to obtain the CP ciphertext on the blockchain, and use the symmetric key Mk to decrypt the CP ciphertext to obtain the CP plaintext; or, the insurance company can use the code of the reinsurance contract CR to query the blockchain, obtain the CR ciphertext, decrypt the ciphertext, and obtain the CR plaintext;

[0109] When checking the insurance contract, the reinsurance company uses the code of the reinsurance contract CR to query the data on the blockchain, obtain the CR ciphertext, and use the private key of the reinsurance company to decrypt the ciphertext and obtain the CR plaintext; the reinsurance company uses the code of the insurance contract CP to query the blockchain, obtain the CP ciphertext, and use the secret key to decrypt the CP ciphertext and obtain the CP plaintext;

[0110] Furthermore, after the reinsurance product contract period expires, the following processing needs to be done:

[0111] Step S11, when the reinsurance product contract period expires, the reinsurance data sharing platform regenerates the symmetric encryption key and sends it to the insured;

[0112] In step S12, the insurance company IRS uses the symmetric key to encrypt and generate a new CP ciphertext, and uploads it to the blockchain.

[0113] Through the platform and method of the present invention, strict access control is performed on shared data, and fine-grained permission control is implemented for different roles and users, ensuring that users can only access data within their scope of responsibility and that only authorized personnel can access sensitive data such as personal identity information, thereby avoiding the risk of privacy leakage; at the same time, a ciphertext-policy attribute-based encryption algorithm (Ciphertext-Policy Attribute-Based Encryption) is used to achieve more fine-grained access control.

[0114] Distributed storage: The blockchain system is used to complete distributed storage, which can solve the single point failure problem caused by centralized storage. At the same time, when a node is attacked, distributed storage can obtain data backup from other nodes without worrying about data tampering.

[0115] Realize data sharing: Different insurance companies and reinsurance companies can register in the blockchain network, and the data is managed uniformly by the platform, making cross-institutional data sharing a reality.

[0116] Simplified key management: In general symmetric encryption systems, if a large amount of data needs to be encrypted, a large number of key management issues will be involved. The present invention combines two-level key management and key derivation algorithms to improve key management issues in large-scale data symmetric encryption scenarios. In addition, the attribute encryption algorithm has a relatively large computational overhead. The present invention only uses attribute encryption to encrypt a small number of insurance contracts, while personal contracts use highly efficient symmetric encryption technology to improve system efficiency. At the same time, a practical Byzantine fault-tolerant consensus algorithm is used in the blockchain, and different nodes can quickly reach consensus through a peer-to-peer network, which improves system efficiency and availability.

[0117] In addition, the present invention can also achieve the effect of breaking data silos: it solves the problem of data consistency in the process of multi-source data integration, realizes effective integration of data sources using different standards and definitions, achieves the effect of data sharing on different insurance platforms, and at the same time ensures the privacy of shared data.

[0118] What is disclosed above is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. A person skilled in the art can understand that all or part of the processes of the above embodiments and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A method for secure sharing of reinsurance data based on alliance chain, characterized in that: It is realized based on a reinsurance data security sharing platform, which includes four entities: the insurance company IRS, the reinsurance company RIN, the insured, and the system authorization agency CA. The method includes: Step S1, the insurance company IRS, the reinsurance company RIN, and the insured Insured all register with the system authorization agency CA and obtain a public key, a private key, and a certificate; Step S2, the insurance company IRS publishes the reinsurance product to the blockchain and obtains the plain text of the reinsurance product, where the plain text of the reinsurance product includes the reinsurance product and a description of the reinsurance product; Step S3, the reinsurance company RIN uploads the reinsurance contract image data to the server, and obtains the storage address of the reinsurance contract image data in the server; Step S4, the reinsurance company RIN uploads the plain text of the reinsurance contract to the reinsurance data security sharing platform; Step S5, the insurance company IRS uploads the insurance contract image data to the server and obtains the storage address of the insurance contract image data in the server; Step S6, the insurance company IRS uploads the plain text of the insurance contract to the reinsurance data security sharing platform; Step S7, the reinsurance company RIN generates a reinsurance contract CR based on the storage address of the reinsurance contract image data in the server, the plain text of the reinsurance contract, and the symmetric encryption key Mk, encrypts the reinsurance contract CR using an attribute encryption algorithm to obtain a CR ciphertext, and further calls the blockchain interface to deploy a smart contract through the reinsurance data security sharing platform, and uploads the CR ciphertext to the blockchain through the smart contract. The CR ciphertext is set with access rights during the encryption process, and the entities with the access rights include the reinsurance company RIN, the insurance company IRS, and the insured; Step S8, the insurance company IRS uses the code of the reinsurance contract CR to query the blockchain, obtains the CR ciphertext, decrypts the CR ciphertext to obtain the secret key, and stores it locally; Step S9, the insurance company IRS generates an insurance contract CP based on the storage address of the insurance contract image data in the server and the plain text of the insurance contract, encrypts the insurance contract CP using the secret key and the symmetric encryption algorithm to obtain a CP ciphertext, and further calls the blockchain interface to deploy a smart contract through the reinsurance data security sharing platform, and uploads the CP ciphertext to the blockchain through the smart contract.

2. The method for secure sharing of reinsurance data based on alliance chain according to claim 1, characterized in that: After step S9, the method further includes: In step S10, the insured uses the code of the reinsurance contract CR to query the blockchain, obtains the CR ciphertext, and decrypts the CR ciphertext to obtain the secret key; the insured uses the code of the insurance contract CP to query the blockchain, obtains the CP ciphertext, and decrypts the CP ciphertext using the secret key to obtain the CP plaintext.

3. The method for secure sharing of reinsurance data based on alliance chain according to claim 2, characterized in that: The step S7 comprises: Step S71, the reinsurance company RIN generates the reinsurance contract CR and requests the system authorization agency CA to verify the certificate, wherein the reinsurance contract CR includes the reinsurance company ID, the insurance company ID, the name of the reinsurance product, the code of the reinsurance contract CR, the contract period of the reinsurance contract CR, the plain text of the reinsurance product, the description of the reinsurance product, and the storage address of the reinsurance contract image data in the server; Step S72, the system authority CA verifies the certificate of the reinsurance company; Step S73, after verification, the reinsurance data security sharing platform processes the reinsurance contract CR into a json format, obtains the reinsurance company ID, insurance company ID, and reinsurance product ID from the reinsurance contract CR to generate an access control tree; wherein, the attribute set corresponding to the leaf node of the access control tree includes reinsurance company attributes, insurance company attributes, and insured person attributes, the institution classification contained in the left subtree of the access control tree specifically includes reinsurance company D, insurance company E, and insured person F, the threshold value of the left subtree is or, the right subtree includes insurance company d, reinsurance company e, and reinsurance product f, the threshold value of the right subtree is or, and the root node threshold value of the access control tree is and; the system authorization agency CA generates a system public key PK, a master private key MK, and each entity attribute private key SK based on the access control tree, sends the system public key PK to each entity involved in the access control tree, and sends the entity attribute private key SK to the corresponding entity; Step S74, the reinsurance data security sharing platform calls the HKDF algorithm to generate a symmetric encryption key Mk; Step S75, the reinsurance data security sharing platform calls the attribute encryption algorithm, uses the system public key PK and the master private key MK, and the access control tree to perform attribute encryption on the reinsurance contract CR to obtain the CR ciphertext; Step S76: The reinsurance data security sharing platform calls the blockchain interface to deploy the smart contract and uploads the CR ciphertext to the blockchain through the smart contract.

4. The method for secure sharing of reinsurance data based on alliance chain according to claim 3, characterized in that: The step S9 comprises: Step S91, the insurance company IRS generates an insurance contract CP and requests the system authorization agency CA to verify the certificate, wherein the insurance contract CP includes the insurance company ID, the insured ID, the code of the insurance contract CP, the code of the reinsurance contract CR, the premium, the insured amount, the plain text of the reinsurance product, the description of the reinsurance product, and the storage address of the insurance contract image data in the server; Step S92, the system authorization agency CA verifies the insurance company's certificate; Step S93: after verification, the reinsurance data security sharing platform verifies whether the reinsurance contract CR is currently within the contract period; Step S94: after verification is successful, the reinsurance data security sharing platform queries the CR ciphertext on the blockchain; Step S95, the insurance company IRS reads the insurance company's entity attribute private key SK, decrypts the CR ciphertext, and obtains the CR plaintext and the symmetric encryption key Mk; Step S96, the reinsurance data security sharing platform calls a symmetric encryption algorithm based on the symmetric encryption key Mk to encrypt the insurance contract CP to obtain the CP ciphertext; Step S97, the reinsurance data security sharing platform calls the blockchain interface to deploy the smart contract, and uploads the CP ciphertext to the blockchain through the smart contract.

5. The method for secure sharing of reinsurance data based on alliance chain according to claim 4, characterized in that: The step S10 comprises: Step S101, the insured uses the code of the reinsurance contract CR to send a reinsurance contract query request to the reinsurance data security sharing platform; the insured uses the code of the insurance contract CP to send an insurance contract query request to the reinsurance data security sharing platform; Step S102, the system authorization agency CA verifies the insured's certificate according to the insured's ID; Step S103, the reinsurance data security sharing platform searches the blockchain for the CR ciphertext corresponding to the code of the reinsurance contract CR; Step S104, the reinsurance data security sharing platform calls the insured's private key, the system public key PK, and the entity attribute private key SK, and uses the attribute decryption algorithm to decrypt the CR ciphertext to obtain the CR plaintext and the symmetric encryption key Mk; Step S105, the reinsurance data security sharing platform queries the CP ciphertext corresponding to the code of the insurance contract CP; Step S106: The reinsurance data security sharing platform calls the symmetric encryption algorithm based on the symmetric encryption key Mk to decrypt the insurance contract CP, obtains the CP plaintext and provides it to the insured Insured.

6. The method for secure sharing of reinsurance data based on alliance chain according to claim 5, characterized in that: After step S10, the method further includes: Step S11, when the reinsurance product contract period expires, the reinsurance data security sharing platform regenerates the symmetric encryption key and sends it to the insured; In step S12, the insurance company IRS uses the symmetric key to encrypt and generate a new CP ciphertext, and uploads it to the blockchain.

7. A reinsurance data security sharing platform based on alliance chain, characterized by: There are four entities: insurance company IRS, reinsurance company RIN, insured Insured, and system authorization agency CA: The insurance company IRS, the reinsurance company RIN, and the insured Insured all register with the system authorization agency CA and obtain public keys, private keys, and certificates; The insurance company IRS publishes the reinsurance product to the blockchain and obtains the plain text of the reinsurance product, which includes the reinsurance product and a description of the reinsurance product; The reinsurance company RIN uploads the reinsurance contract image data to the server and obtains the storage address of the reinsurance contract image data in the server; The reinsurance company RIN uploads the plain text of the reinsurance contract to the reinsurance data security sharing platform; The insurance company IRS uploads the insurance contract image data to the server and obtains the storage address of the insurance contract image data in the server; The insurance company IRS uploads the plain text of the insurance contract to the reinsurance data security sharing platform; The reinsurance company RIN generates the reinsurance contract CR based on the storage address of the reinsurance contract image data in the server, the plain text of the reinsurance contract, and the symmetric encryption key Mk, encrypts the reinsurance contract CR using the attribute encryption algorithm to obtain the CR ciphertext, and further calls the blockchain interface to deploy the smart contract through the reinsurance data security sharing platform, and uploads the CR ciphertext to the blockchain through the smart contract. The CR ciphertext is set with access rights during the encryption process, and the entities with the access rights include the reinsurance company RIN, the insurance company IRS, and the insured; The insurance company IRS uses the code of the reinsurance contract CR to query the blockchain, obtain the CR ciphertext, decrypt the CR ciphertext to obtain the secret key, and stores it locally; The insurance company IRS generates an insurance contract CP based on the storage address of the insurance contract image data in the server and the plain text of the insurance contract, encrypts the insurance contract CP using the secret key and the symmetric encryption algorithm to obtain a CP ciphertext, and further calls the blockchain interface to deploy a smart contract through the reinsurance data security sharing platform, and uploads the CP ciphertext to the blockchain through the smart contract.

8. The reinsurance data security sharing platform based on alliance chain according to claim 7, characterized in that: The insured uses the code of the reinsurance contract CR to query the blockchain, obtains the CR ciphertext, and decrypts the CR ciphertext to obtain the secret key; the insured uses the code of the insurance contract CP to query the blockchain, obtains the CP ciphertext, and decrypts the CP ciphertext using the secret key to obtain the CP plaintext; The insurance company IRS generates CP ciphertext and uploads it to the blockchain as follows: The insurance company IRS generates an insurance contract CP and requests the system authorization agency CA to verify the certificate. The insurance contract CP includes the insurance company ID, the insured ID, the code of the insurance contract CP, the code of the reinsurance contract CR, the premium, the insured amount, the plain text of the reinsurance product, the description of the reinsurance product, and the storage address of the insurance contract image data in the server; The system authority CA verifies the insurance company's certificate; After the verification is passed, the reinsurance data security sharing platform verifies whether the reinsurance contract CR is currently within the contract cycle; After successful verification, the reinsurance data security sharing platform queries the CR ciphertext on the blockchain; The insurance company IRS reads the insurance company's entity attribute private key SK, decrypts the CR ciphertext, and obtains the CR plaintext and the symmetric encryption key Mk; The reinsurance data security sharing platform calls a symmetric encryption algorithm based on the symmetric encryption key Mk to encrypt the insurance contract CP to obtain the CP ciphertext; The reinsurance data security sharing platform calls the blockchain interface to deploy the smart contract, and uploads the CP ciphertext to the blockchain through the smart contract; The reinsurance company RIN generates CR ciphertext and uploads it to the blockchain as follows: The reinsurance company RIN generates the reinsurance contract CR and requests the system authorization agency CA to verify the certificate, wherein the reinsurance contract CR includes the reinsurance company ID, the insurance company ID, the name of the reinsurance product, the code of the reinsurance contract CR, the contract period of the reinsurance contract CR, the plain text of the reinsurance product, the description of the reinsurance product, and the storage address of the reinsurance contract image data in the server; The system authority CA verifies the reinsurance company's certificate; After verification, the reinsurance data security sharing platform processes the reinsurance contract CR into json format, obtains the reinsurance company ID, insurance company ID, and reinsurance product ID from the reinsurance contract CR to generate an access control tree; wherein, the attribute set corresponding to the leaf node of the access control tree includes reinsurance company attributes, insurance company attributes, and insured person attributes, and the organization classification contained in the left subtree of the access control tree specifically includes reinsurance company D, insurance company E, and insured person F, the threshold value of the left subtree is or, the right subtree includes insurance company d, reinsurance company e, and reinsurance product f, the threshold value of the right subtree is or, and the root node threshold value of the access control tree is and; the system authorization agency CA generates a system public key PK, a master private key MK, and each entity attribute private key SK based on the access control tree, sends the system public key PK to each entity involved in the access control tree, and sends the entity attribute private key SK to the corresponding entity; The reinsurance data security sharing platform calls the HKDF algorithm to generate a symmetric encryption key Mk; The reinsurance data security sharing platform calls the attribute encryption algorithm, uses the system public key PK and the master private key MK, and the access control tree to perform attribute encryption on the reinsurance contract CR to obtain the CR ciphertext; The reinsurance data security sharing platform calls the blockchain interface to deploy the smart contract and uploads the CR ciphertext to the blockchain through the smart contract.

9. The reinsurance data security sharing platform based on alliance chain according to claim 8, characterized in that: The reinsurance data security sharing platform supports the insured to view the CP plain text: The insured uses the code of the reinsurance contract CR to send a reinsurance contract query request to the reinsurance data security sharing platform; the insured uses the code of the insurance contract CP to send an insurance contract query request to the reinsurance data security sharing platform; The CA of the system verifies the certificate of the insured according to the ID of the insured; The reinsurance data security sharing platform queries the CR ciphertext corresponding to the code of the reinsurance contract CR on the blockchain; The reinsurance data security sharing platform calls the insured's private key, the system public key PK, and the entity attribute private key SK, and uses the attribute decryption algorithm to decrypt the CR ciphertext to obtain the CR plaintext and the symmetric encryption key Mk; The reinsurance data security sharing platform queries the CP ciphertext corresponding to the code of the insurance contract CP; The reinsurance data security sharing platform calls the symmetric encryption algorithm based on the symmetric encryption key Mk to decrypt the insurance contract CP, obtains the CP plaintext and provides it to the insured Insured.

10. The reinsurance data security sharing platform based on alliance chain according to claim 9, characterized in that: After the reinsurance product contract period expires: The reinsurance data security sharing platform regenerates the symmetric encryption key and sends it to the insured; The insurance company IRS uses a symmetric key to encrypt and generate a new CP ciphertext, and uploads it to the blockchain.