CN116881949B - Data processing method and system based on block chain - Google Patents

Data processing method and system based on block chain Download PDF

Info

Publication number
CN116881949B
CN116881949B CN202311132699.2A CN202311132699A CN116881949B CN 116881949 B CN116881949 B CN 116881949B CN 202311132699 A CN202311132699 A CN 202311132699A CN 116881949 B CN116881949 B CN 116881949B
Authority
CN
China
Prior art keywords
target
data
identification information
information
service system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311132699.2A
Other languages
Chinese (zh)
Other versions
CN116881949A (en
Inventor
王刚
于明亮
彭跟耀
郭宗宝
王映彤
彭振
李劲松
赵玉霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202311132699.2A priority Critical patent/CN116881949B/en
Publication of CN116881949A publication Critical patent/CN116881949A/en
Application granted granted Critical
Publication of CN116881949B publication Critical patent/CN116881949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Bioethics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a data processing method and system based on a block chain, wherein the method comprises the following steps: receiving a ciphertext transaction request submitted by any target service system in at least one service system, wherein the ciphertext transaction request is obtained by signing target data by adopting a key provided by a transaction alliance sharing data on a blockchain; processing the ciphertext transaction request through the target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data and identification information corresponding to the target abstract information; and returning the identification information to the target service system, sending the target abstract information and the identification information to a blockchain network for consensus processing, and generating a target block and target account data corresponding to the target block. The scheme of the invention can realize data sharing among different service systems, and simultaneously ensure the safety and reliability of data during sharing.

Description

Data processing method and system based on block chain
Technical Field
The present invention relates to the field of data sharing technologies, and in particular, to a data processing method and system based on a blockchain.
Background
The nature of Blockchain (Blockchain) is a chained distributed ledger that links blocks of data in time series, where cryptography is applied to make the data non-tamperable and non-counterfeitable. On this basis, data is automatically generated and updated at each distributed node, and the data required by each node is stored in a distributed manner (also called as decentralized manner), and even aided by intelligent contracts implemented by automated code scripts, which is the more common blockchain technology at present.
In recent years, face recognition security inspection and face recognition boarding are promoted in airports on a large scale; however, the face information acquisition channels are quite many, and meanwhile, the information networks among airports, air terminals and system service providers are not communicated, and the problem of data attribution right exists; if the data are stored in a centralized way, the problems of data loss, data tampering and the like cannot be prevented.
Disclosure of Invention
The invention provides a data processing method and system based on a block chain, which are used for realizing data sharing among different service systems and ensuring the safety and reliability of data during sharing.
To solve the above technical problems, an embodiment of the present invention provides a data processing method based on a blockchain, including:
Receiving a ciphertext transaction request submitted by any target service system in at least one service system, wherein the ciphertext transaction request is obtained by signing target data by adopting a key provided by a transaction alliance sharing data on a blockchain;
processing the ciphertext transaction request through the target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data and identification information corresponding to the target abstract information;
and returning the identification information to the target service system, sending the target abstract information and the identification information to a blockchain network for consensus processing, and generating a target block and target account data corresponding to the target block.
Optionally, the blockchain-based data processing method further includes:
receiving a query request sent by a target service system in the at least one service system, wherein the query request carries the identification information;
inquiring target abstract information corresponding to the current identification information from the target account data on the blockchain network according to the identification information;
decrypting the target abstract information according to the target intelligent contract, and transmitting target data obtained after decryption to the target service system.
Optionally, the blockchain-based data processing method further includes: and sending the target data obtained after decryption to the target service system according to at least one of the following rules: the sharing range of the target data obtained after decryption;
sharing aging of the target data obtained after decryption;
and whether the target data sharing obtained after decryption is charged or not.
Optionally, the blockchain-based data processing method further includes:
receiving a verification request sent by a target service system in the at least one service system, wherein the verification request carries target data to be verified;
according to the verification request, encrypting the target data to be verified to obtain verification summary information;
inquiring the target data to be verified from the target account book data according to the verification summary information, if so, obtaining a correct verification result of the target data to be verified, otherwise, obtaining a false verification result of the target data to be verified.
Optionally, the blockchain-based data processing method further includes:
receiving an update request sent by a target service system in the at least one service system, wherein the update request carries target data to be updated and identification information of the target data to be updated;
And under the condition that the target service system is determined to have the updating authority, updating the target abstract information in the target account data according to the identification information of the target data to be updated.
Optionally, the updating authority includes: adding the update authority of the target data; according to the identification information of the target data to be updated, updating the target data in the target account data comprises the following steps:
acquiring a right control list of target data in the target account data, wherein the right control list comprises: the organization domain name of the transaction alliance, the creator of the target data and the name of the transaction alliance member with information updating authority;
if the target service system belongs to a transaction alliance, adding the updating operation of the target data to be updated to the target abstract information in the target account data according to the identification information of the target data to be updated; otherwise, the update operation fails.
The embodiment of the invention also provides a data processing system based on the block chain, which comprises the following steps: an intelligent contract module and a blockchain network in communication with the intelligent contract module;
the intelligent contract module is used for receiving a ciphertext transaction request submitted by any target service system in at least one service system, wherein the ciphertext transaction request is obtained by signing target data by adopting a secret key provided by a transaction alliance sharing data on a blockchain; processing the ciphertext transaction request through the target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data and identification information corresponding to the target abstract information; and returning the identification information to the target service system, sending the target abstract information and the identification information to a blockchain network for consensus processing, and generating a target block and target account data corresponding to the target block.
Optionally, the blockchain-based data processing system further includes:
the key management module is used for storing a preset algorithm for generating target abstract information;
and the intelligent contract module processes the ciphertext transaction request according to a preset algorithm stored in the key management module to obtain target abstract information of the target data.
Optionally, the service system includes at least one of the following:
an airport business system for providing airport target data;
an airline business system for providing passenger destination data;
a social organization business system for providing passenger related destination data;
an air traffic control system for providing air traffic control target data.
Embodiments of the present invention also provide a computer-readable storage medium including: instructions are stored which, when executed on a computer, cause the computer to perform the method as described above.
The scheme of the invention at least comprises the following beneficial effects:
according to the scheme, the ciphertext transaction request submitted by any target service system in at least one service system is received, and the ciphertext transaction request is obtained by signing target data by adopting a secret key provided by a transaction alliance sharing data on a blockchain; processing the ciphertext transaction request through the target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data and identification information corresponding to the target abstract information; and returning the identification information to the target service system, sending the target abstract information and the identification information to a blockchain network for consensus processing, and generating a target block and target account data corresponding to the target block. The scheme of the invention can realize data sharing among different service systems and ensure the safety and reliability of data sharing.
Drawings
FIG. 1 is a flow chart of a block chain based data processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of data uplink storage based on a blockchain according to an alternative embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of a blockchain-based data query according to an alternative embodiment of the present invention
FIG. 4 is a flowchart illustrating an embodiment of a block chain based data verification according to an alternative embodiment of the present invention
FIG. 5 is a flowchart illustrating an embodiment of a block chain based data update according to an alternative embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As shown in FIG. 1, the present invention provides a data processing method based on a blockchain, comprising:
Step 11, receiving a ciphertext transaction request submitted by any target service system in at least one service system, wherein the ciphertext transaction request is obtained by signing target data by using a key provided by a transaction alliance sharing data on a blockchain;
step 12, processing the ciphertext transaction request through a target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data and identification information corresponding to the target abstract information;
and step 13, returning the identification information to the target service system, sending the target abstract information and the identification information to a blockchain network for consensus processing, and generating a target block and target account book data corresponding to the target block.
In this embodiment, the described blockchain-based data processing method may be applied to a blockchain-based data processing system; here, the business system means a body, organization, etc. that provides various business requirements;
the transaction alliance establishes cooperative relations for a main body, an organization and the like with various business requirements and is used for executing cooperation or confirming transaction on a shared blockchain network, such as sharing data and the like;
Each node in the blockchain network represents one entity or organization in the transaction alliance, and for each node in the blockchain network, data required by one entity or organization in the corresponding transaction alliance is correspondingly stored; all data in the blockchain network is consistent, and when any entity or organization in the transaction alliance has new shared data, the shared data can be broadcast to all nodes in the blockchain network;
all nodes in the blockchain network corresponding to the transaction alliance maintain a target intelligent contract approved by multiple parties; the target intelligent contract is a contract written in a code form, can be automatically executed on a blockchain network, has the characteristics of decentralization and non-falsification, and can realize various functions such as identity authentication, authorization, data viewing rules and the like; different intelligent contracts can be deployed in the blockchain network for different transaction coalition correspondence; for different organizations or subjects in the transaction alliance, operations such as inquiring, verifying, sharing, updating and the like on the data on the blockchain network can be realized through the target intelligent contract, so that the problem of data partition among different organizations or subjects can be broken; meanwhile, the block chain network can also realize the transverse isolation or the longitudinal isolation of the data, thereby ensuring the safety and the reliability of the data;
The target data can be data or required data provided by a main body or an organization corresponding to the target service system, when the target service system provides or requires some target data, the target service system performs encryption signature operation on the provided or required target data through a key provided by a transaction alliance sharing data on a blockchain, and generates the ciphertext transaction request;
in one example that may be implemented, an identification (ID 1, ID2, … IDn) of each principal in the transaction coalition is obtained; the (ID 1, ID2, … IDn) pair is calculated by a Hash function Hash to obtain a Hash value mHash,
generating a random number S;
calculating Hash (Pad, mHash, M, S, key) to obtain H; wherein, pad is the binary character string of the first bit of filling, M is the target data, key is the Key;
obtaining a character string db= (PS, 01, s), wherein PS is a binary character string of a second number of bits filled;
taking H as a random variable, solving for M (T) =e (E ζ), where E represents a desired operator and T is a real number;
performing exclusive OR operation on M (t) and the character string DB to obtain a mask DB;
calculate em=hash (MaskDB, H, b); wherein b is a constant;
By s= (EM) d mod n, obtaining signature data of the target data, and packaging the signature data in a ciphertext transaction request, wherein d and n are preset constants.
When the block chain-based data processing system receives the ciphertext transaction request, target data in the ciphertext transaction request can be processed through a target intelligent contract approved by the transaction alliance, target abstract information of the target data is obtained, and meanwhile, the system can generate identification information corresponding to the target abstract information; the corresponding target abstract information is obtained by processing the target data, so that the safety of the target data is ensured; the target data corresponds to the target abstract information one by one, and the target abstract information corresponds to the identification information one by one;
here, processing the target data in the cryptograph transaction request through the target smart contract approved by the transaction alliance, and obtaining target summary information of the target data may include:
decrypting the target data in the ciphertext transaction request through a public key corresponding to the secret key in the target intelligent contract to obtain decrypted target data;
Carrying out hash operation on the decrypted target data by adopting a password hash function to obtain target abstract information of the target data; here, the cryptographic hash function includes, but is not limited to, the MD5 digest algorithm.
Further, the identification information is returned to the target service system, the target abstract information and the identification information are sent to corresponding nodes in a block chain network, and common identification processing is carried out in other nodes so as to ensure the safety and reliability of the target abstract information; generating a target block for storing the target abstract information and the identification information and target account data corresponding to the target block while carrying out consensus processing on the target abstract information and the identification information; the target account book data are stored in the block in the form of a data table, wherein the target abstract information is a value in the data table, and the identification information is a key value of the target abstract information in the data table; the target abstract information and the identification information corresponding to the target data are stored in the target block, so that the target abstract information and the identification information are guaranteed to be non-tamperable, and the safety of the data is further guaranteed; it should be noted that, the target block has current target data stored according to the current ciphertext transaction request, and also has historical target data stored according to the historical ciphertext transaction request, and also includes some information related to obtaining the target data, such as information of a party of the target data, a attribution party of the target data, and the like;
Preferably, the target summary information is subjected to consensus processing, and a preset consensus algorithm can be used, wherein the preset consensus algorithm comprises, but is not limited to: and carrying out consensus processing on the target abstract information through the preset consensus algorithm to ensure the agreed data state in the blockchain network and ensure the data safety.
In an optional implementation of the present invention, the step 12 may include:
step 121, according to a preset algorithm in the target intelligent contract, encrypting the target data in the ciphertext transaction request to obtain target abstract information of the target data and identification information corresponding to the target abstract information;
in this embodiment, the preset algorithm may include a preset encryption algorithm, and when the target data in the ciphertext transaction request is encrypted by the preset encryption algorithm in the target smart contract, different preset encryption algorithms may be selected according to requirements of different application scenarios; for example, in a scenario where there is a need for use of the target data, a cryptographic SM4 encryption algorithm may be used, while the system is correspondingly provided with an SM4 encryption interface; for a scene that the target data is used but not visible, a national secret SM3 encryption algorithm can be used, and the system is correspondingly provided with an SM3 encryption interface; and each piece of target data is subjected to encryption processing through a preset encryption algorithm, and then unique target abstract information is corresponding to each piece of target data, and in the target intelligent contract, the original target data can be replaced by the target abstract information so as to ensure the integrity and the safety of the target data, and further protect the privacy of a user.
Taking the block chain based sharing of personal sensitive information data of civil aviation passengers as an example, the method is described, as shown in fig. 2, specifically:
firstly, for the main bodies and organizations such as airports, air terminals, system service providers, third party groups, government departments and the like with the personal sensitive information data sharing requirement of civil aviation passengers, the organizations form a transaction alliance, and together authenticate and maintain a target intelligent contract to form a blockchain network, and nodes on the blockchain network respectively represent the airports, the air terminals, the system service providers, the third party groups, the government departments and the like;
step 21, data acquisition: the airport main body in the business system calculates the biological information characteristic value of the passenger through the preset characteristic extraction algorithm according to the biological information acquired by the face recognition equipment, and takes the biological information characteristic value as target data;
step 22, encrypting and signing the target data corresponding to the biological information characteristic value: the target data is encrypted and signed through a key provided by a transaction alliance sharing data on a blockchain, so as to obtain a ciphertext transaction request;
step 23, encrypting the target data in the ciphertext transaction request through a target intelligent contract approved by a transaction alliance and through a preset algorithm in the target intelligent contract to obtain target abstract information corresponding to the target data and identification information corresponding to the target abstract information;
Step 24, feeding back the identification information to the service system, sending the identification information and the target abstract information to the blockchain network for consensus processing, and generating a target block corresponding to the target abstract information and target account data corresponding to the target block; storing target abstract information and identification information in the form of a data table in the target account book data; the target abstract information in the target account book data is a value, and the identification information is a key value corresponding to the target abstract information;
taking passenger biological information as an example, the relevant information that may be included in the data stored in the target ledger is shown in the following table:
table 1 data table in target ledger data
As shown in FIG. 3, in an alternative embodiment of the present invention, the blockchain-based data processing method may further include:
step 31, receiving a query request sent by a target service system in the at least one service system, wherein the query request carries the identification information;
step 32, inquiring target abstract information corresponding to the current identification information from the target account data on the blockchain network according to the identification information;
and step 33, decrypting the target abstract information according to the target intelligent contract, and transmitting target data obtained after decryption to the target service system.
In this embodiment, when a blockchain-based data processing system receives a data query request sent by a target business system in at least one business system; searching in the target account book data of the blockchain network according to the identification information corresponding to the target data to be queried carried in the query request, and searching the target abstract information in the target account book data corresponding to the identification information corresponding to the target data to be queried;
the target abstract information is obtained after encryption processing by a preset algorithm in the target intelligent contract, and then the target abstract information is required to be decrypted by a preset decryption algorithm in the target after-energy contract to obtain decrypted target abstract data, namely target data to be queried is obtained, and further, the queried target data is sent to a target service system;
here, the configuration of the preset decryption algorithm may be the same as that of the preset encryption algorithm described above, except that the round key of the preset decryption algorithm is the reverse order of the round key of the preset encryption algorithm.
In an optional embodiment of the invention, the block chain based data processing method may further include:
step 331, sending the target data obtained after decryption to the target service system according to at least one of the following rules:
the sharing range of the target data obtained after decryption;
sharing aging of the target data obtained after decryption;
and whether the target data sharing obtained after decryption is charged or not.
In this embodiment, when the decrypted target data is sent to the target service system, at least one rule is followed, so that the security of the target data during sharing is further ensured;
the sharing range represents a preset public field which can be shared and a preset private field which cannot be shared in target data; the sharing age represents a start time of target data sharing; whether or not the sharing is charged means whether or not the target data corresponding to the sharing is the target data of the charging, a specific charging rule, and the like.
As shown in FIG. 4, in an alternative embodiment of the present invention, the blockchain-based data processing method may further include:
step 41, receiving a verification request sent by a target service system in the at least one service system, wherein the verification request carries target data to be verified;
Step 42, according to the verification request, encrypting the target data to be verified to obtain verification summary information;
and 43, inquiring the target data to be verified from the target account book data according to the verification summary information, if so, obtaining a correct verification result of the target data to be verified, otherwise, obtaining a false verification result of the target data to be verified.
In this embodiment, when the blockchain-based data processing system receives a data verification request sent by a target business system in at least one business system; the target data to be verified can be encrypted according to the target data to be verified carried in the verification request and a preset algorithm in the target intelligent contract, so that verification abstract information of the data to be verified is obtained; here, the preset algorithm for encrypting the target data to be verified and the preset algorithm for encrypting the target data in the ciphertext transaction request may be the same type of encryption algorithm;
the abstract information obtained when the data is encrypted by the preset algorithm in the target intelligent contract is unique; after obtaining verification summary information of the target data to be verified, searching in target account book data of the blockchain network according to the verification summary information, and when target summary information identical to the verification summary information is searched, indicating that the target data to be verified is stored in the blockchain network and the target data stored in the blockchain network is correct, thereby obtaining a correct verification result of the target data to be verified; when target summary information which is the same as the verification summary information cannot be found in the target ledger data of the blockchain network, the target data to be verified is not stored in the blockchain network, or the target data stored in the blockchain network is wrong, and further a verification result of the target data to be verified is obtained.
As shown in FIG. 5, in an alternative embodiment of the present invention, the blockchain-based data processing method may further include:
step 51, receiving an update request sent by a target service system in the at least one service system, wherein the update request carries target data to be updated and identification information of the target data to be updated;
and step 52, under the condition that the target service system is determined to have the updating authority, updating the target abstract information in the target account data according to the identification information of the target data to be updated.
In this embodiment, when the data processing system based on the blockchain receives a data update request sent by a target service system in at least one service system, under the condition that it is determined that the target service system has update authority, the update operation processing can be performed on target data in target account data in the blockchain network according to identification information of the target data to be updated and the target data to be updated in the update request, so that updated target account data can be obtained, and real-time property and accuracy of the blockchain network in sharing data are ensured;
Here, when the data is updated, only the target digest information corresponding to the target data is updated, and new identification information corresponding to the updated target digest information is not generated.
Here, the update authority of the target service system may be:
adding the update authority of the target data;
when the target service system has the update authority of the added target data, the step 52 may include:
step 521, obtaining a permission control list of target data in the target account data, where the permission control list includes: the organization domain name of the transaction alliance, the creator of the target data and the name of the transaction alliance member with information updating authority;
step 522, if the target service system belongs to a transaction alliance, performing an update operation of adding the target data to be updated to the target summary information in the target account data according to the identification information of the target data to be updated; otherwise, the update operation fails.
In the embodiment, a right control list corresponding to target data in the target ledger data on the blockchain network is acquired, and when the target data generates the target abstract information, the right control list is automatically generated by a system according to related information of the target data; the rights control list may include: the organization domain name of the transaction alliance, the creator of the corresponding target data and the member name of the transaction alliance with information updating authority;
If the target service system which currently sends the data updating request is in a transaction alliance member with information updating authority, searching in the blockchain network according to the identification information of target data to be updated in the data updating request, and searching target abstract information corresponding to the identification information which is the same as the identification information of the target data to be updated; further, the updating operation of adding the target data to be updated or the updating operation of directly deleting the target abstract information corresponding to the target data to be updated is carried out on the target abstract information corresponding to the target data to be updated;
here, adding the target summary information corresponding to the target data to be updated, specifically, encrypting the target data to be updated through a preset algorithm in the target intelligent contract, obtaining first target summary information of the target data to be updated, and storing the first target summary information and the target summary information corresponding to the target data to be updated together in target account book data of a target block, so as to realize the operation of adding and updating the target summary information in the target account book data;
If the target service system which currently sends the data updating request is not among the transaction alliance members with the information updating authority, the service system cannot update the target abstract information in the target account book data on the blockchain network, and then the updating operation fails.
The data processing method based on the blockchain provided by the embodiment of the invention can effectively break the dilemma of data island among different service systems (such as an airport service system and an airline service system), ensure the data security in the different service systems on the basis, and realize the transverse isolation of the data; meanwhile, the block chain network can realize automatic operation under a certain mechanism, so that the longitudinal isolation of data can be realized; the characteristics based on the blockchain network ensure that the data is not tamperable and not deletable, and ensure the safety and reliability of the data.
The embodiment of the invention also provides a data processing system based on the block chain, which comprises the following steps: an intelligent contract module and a blockchain network in communication with the intelligent contract module;
the intelligent contract module is used for receiving a ciphertext transaction request submitted by any target service system in at least one service system, wherein the ciphertext transaction request is obtained by signing target data by adopting a secret key provided by a transaction alliance sharing data on a blockchain; processing the ciphertext transaction request through the target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data and identification information corresponding to the target abstract information; and returning the identification information to the target service system, sending the target abstract information and the identification information to a blockchain network for consensus processing, and generating a target block and target account data corresponding to the target block.
In this embodiment, the blockchain-based data processing system is mainly applied to the blockchain-based data processing method described in any one of the above embodiments;
here, the system may include a smart contract module and a blockchain network communicatively coupled to the smart contract module; the intelligent contract module stores a target intelligent contract, and when the intelligent contract module receives a ciphertext transaction request submitted by any target service system in at least one service system, the ciphertext transaction request can be processed through the target intelligent contract to obtain target abstract information of the target data and identification information corresponding to the target abstract information; further, the intelligent contract module returns the identification information to the target service system, simultaneously sends the target abstract information and the identification information to a blockchain network for consensus processing, and stores a target block and a target account book data form corresponding to the target block in the blockchain network so as to realize various operations such as data sharing, verification, inquiry, updating and the like;
further, the blockchain-based data processing system may further include:
The key management module is used for storing a preset algorithm for generating target abstract information; meanwhile, a decryption algorithm for decrypting the target abstract information can be stored;
the intelligent contract module processes the ciphertext transaction request according to a preset algorithm stored in the key management module to obtain unique target abstract information corresponding to the target data; meanwhile, the system can generate identification information corresponding to the target data and the target abstract information so as to facilitate the follow-up operations such as inquiring, verifying or updating the data.
In an alternative embodiment of the present invention, the service system may include at least one of:
an airport business system for providing airport target data;
an airline business system for providing passenger destination data;
a social organization business system for providing passenger related destination data;
an air traffic control system for providing air traffic control target data.
In this embodiment, the airport service system, the airline service system, the social organization service system, and the air traffic control service system may be a provider of target data, or may be a demander of target data, and the airport service system, the airline service system, the social organization service system, and the air traffic control service system may form a transaction alliance, and together authenticate and maintain a target intelligent contract on a blockchain network;
After the target data provided by the airport service system, the airline company service system, the social organization service system or the air traffic control service system is uploaded to a blockchain network, the corresponding target service system or the target service system with the query authority can query, verify or update the passenger biological information corresponding to the target data through a target intelligent contract; meanwhile, if the data of the target service system is wrong or tampered, a complete piece of trusted data can be read from the blockchain network, so that the accuracy of information is ensured;
the data processing system based on the block chain can meet the local deployment requirement of an airport or a navigation driver, avoid centrally storing the data into a single system and improve the data consensus degree and the data safety to a certain extent.
Embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform a method as described above. All the implementation manners in the method embodiment are applicable to the embodiment, and the same technical effect can be achieved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
Furthermore, it should be noted that in the apparatus and method of the present invention, it is apparent that the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. Also, the steps of performing the series of processes described above may naturally be performed in chronological order in the order of description, but are not necessarily performed in chronological order, and some steps may be performed in parallel or independently of each other. It will be appreciated by those of ordinary skill in the art that all or any of the steps or components of the methods and apparatus of the present invention may be implemented in hardware, firmware, software, or a combination thereof in any computing device (including processors, storage media, etc.) or network of computing devices, as would be apparent to one of ordinary skill in the art after reading this description of the invention.
The object of the invention can thus also be achieved by running a program or a set of programs on any computing device. The computing device may be a well-known general purpose device. The object of the invention can thus also be achieved by merely providing a program product containing program code for implementing said method or apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. It is apparent that the storage medium may be any known storage medium or any storage medium developed in the future. It should also be noted that in the apparatus and method of the present invention, it is apparent that the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. The steps of executing the series of processes may naturally be executed in chronological order in the order described, but are not necessarily executed in chronological order. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

Claims (9)

1. The data processing method based on the blockchain is characterized by being applied to the field of sharing personal sensitive information data of civil aviation passengers and comprising the following steps of:
receiving a ciphertext transaction request submitted by any target service system in at least one service system, wherein the ciphertext transaction request is obtained by signing target data by adopting a key provided by a transaction alliance sharing data on a blockchain;
processing the ciphertext transaction request through a target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data and identification information corresponding to the target abstract information, wherein the target data corresponds to the target abstract information one by one, and the target abstract information corresponds to the identification information one by one;
returning the identification information to the target service system, sending the target abstract information and the identification information to a blockchain network for consensus processing, and generating a target block and target account book data corresponding to the target block, wherein the target account book data is stored in the block in a data table form, the target abstract information is used as a value of a data table, and the identification information is used as a key value of the target abstract information in the data table;
The processing the ciphertext transaction request through the target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data comprises the following steps:
decrypting the target data in the ciphertext transaction request through a public key corresponding to the secret key in the target intelligent contract to obtain decrypted target data;
carrying out hash operation on the decrypted target data by adopting a password hash function to obtain target abstract information of the target data;
and returning the identification information to the target service system, and sending the target abstract information and the identification information to a blockchain network for consensus processing, wherein the method further comprises the following steps:
receiving a query request sent by a target service system in the at least one service system, wherein the query request carries the identification information;
inquiring target abstract information corresponding to the current identification information from the target account book data on the blockchain network according to the identification information;
decrypting the target abstract information according to the target intelligent contract, and transmitting target data obtained after decryption to the target service system.
2. The blockchain-based data processing method of claim 1, further comprising: and sending the target data obtained after decryption to the target service system according to at least one of the following rules:
The sharing range of the target data obtained after decryption;
sharing aging of the target data obtained after decryption;
and whether the target data sharing obtained after decryption is charged or not.
3. The blockchain-based data processing method of claim 1, further comprising:
receiving a verification request sent by a target service system in the at least one service system, wherein the verification request carries target data to be verified;
according to the verification request, encrypting the target data to be verified to obtain verification summary information;
inquiring the target data to be verified from the target account book data according to the verification summary information, if so, obtaining a correct verification result of the target data to be verified, otherwise, obtaining a false verification result of the target data to be verified.
4. The blockchain-based data processing method of claim 1, further comprising:
receiving an update request sent by a target service system in the at least one service system, wherein the update request carries target data to be updated and identification information of the target data to be updated;
And under the condition that the target business system is determined to have the updating authority, updating the target abstract information in the target account book data according to the identification information of the target data to be updated.
5. The blockchain-based data processing method of claim 4, wherein the updating rights include: adding the update authority of the target data; according to the identification information of the target data to be updated, updating the target data in the target ledger data comprises the following steps:
acquiring a right control list of target data in the target account book data, wherein the right control list comprises the following components: the organization domain name of the transaction alliance, the creator of the target data and the name of the transaction alliance member with information updating authority;
if the target business system belongs to a transaction alliance, according to the identification information of the target data to be updated, updating operation of adding the target data to be updated to the target abstract information in the target account book data is performed; otherwise, the update operation fails.
6. A blockchain-based data processing system, comprising: an intelligent contract module and a blockchain network in communication with the intelligent contract module;
The intelligent contract module is used for receiving a ciphertext transaction request submitted by any target service system in at least one service system, wherein the ciphertext transaction request is obtained by signing target data by adopting a secret key provided by a transaction alliance sharing data on a blockchain; processing the ciphertext transaction request through a target intelligent contract approved by the transaction alliance to obtain target abstract information of the target data and identification information corresponding to the target abstract information, wherein the target data corresponds to the target abstract information one by one, and the target abstract information corresponds to the identification information one by one; returning the identification information to the target service system, sending the target abstract information and the identification information to a blockchain network for consensus processing, and generating a target block and target account book data corresponding to the target block, wherein the target account book data is stored in the block in a data table form, the target abstract information is used as a value of a data table, and the identification information is used as a key value of the target abstract information in the data table;
the processing, by the target intelligent contract approved by the transaction alliance, the ciphertext transaction request to obtain target abstract information of the target data and identification information corresponding to the target abstract information, where the processing includes:
Decrypting the target data in the ciphertext transaction request through a public key corresponding to the secret key in the target intelligent contract to obtain decrypted target data;
carrying out hash operation on the decrypted target data by adopting a password hash function to obtain target abstract information of the target data;
and returning the identification information to the target service system, and sending the target abstract information and the identification information to a blockchain network for consensus processing, wherein the method further comprises the following steps:
receiving a query request sent by a target service system in the at least one service system, wherein the query request carries the identification information;
inquiring target abstract information corresponding to the current identification information from the target account book data on the blockchain network according to the identification information;
decrypting the target abstract information according to the target intelligent contract, and transmitting target data obtained after decryption to the target service system.
7. The blockchain-based data processing system of claim 6, further comprising:
the key management module is used for storing a preset algorithm for generating target abstract information;
And the intelligent contract module processes the ciphertext transaction request according to a preset algorithm stored in the key management module to obtain target abstract information of the target data.
8. The blockchain-based data processing system of claim 6, wherein the business system includes at least one of:
an airport business system for providing airport target data;
an airline business system for providing passenger destination data;
a social organization business system for providing passenger related destination data;
an air traffic control system for providing air traffic control target data.
9. A computer-readable storage medium, comprising: instructions stored which, when executed on a computer, cause the computer to perform the method of any one of the preceding claims 1 to 5.
CN202311132699.2A 2023-09-05 2023-09-05 Data processing method and system based on block chain Active CN116881949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311132699.2A CN116881949B (en) 2023-09-05 2023-09-05 Data processing method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311132699.2A CN116881949B (en) 2023-09-05 2023-09-05 Data processing method and system based on block chain

Publications (2)

Publication Number Publication Date
CN116881949A CN116881949A (en) 2023-10-13
CN116881949B true CN116881949B (en) 2023-12-22

Family

ID=88266630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311132699.2A Active CN116881949B (en) 2023-09-05 2023-09-05 Data processing method and system based on block chain

Country Status (1)

Country Link
CN (1) CN116881949B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102116235B1 (en) * 2019-03-15 2020-05-28 주식회사 코인플러그 Method and server for managing user identity using blockchain network, and method and terminal for verifying user using user identity based on blockchain network
CN112163191A (en) * 2020-09-15 2021-01-01 广东工业大学 Education resource sharing method and system based on national secret block chain
CN113609219A (en) * 2021-07-21 2021-11-05 微易签(杭州)科技有限公司 Method, system, device and storage medium for verifying file based on block chain
CN115811422A (en) * 2022-11-17 2023-03-17 华润数字科技有限公司 Medical data sharing method and system based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102116235B1 (en) * 2019-03-15 2020-05-28 주식회사 코인플러그 Method and server for managing user identity using blockchain network, and method and terminal for verifying user using user identity based on blockchain network
CN112163191A (en) * 2020-09-15 2021-01-01 广东工业大学 Education resource sharing method and system based on national secret block chain
CN113609219A (en) * 2021-07-21 2021-11-05 微易签(杭州)科技有限公司 Method, system, device and storage medium for verifying file based on block chain
CN115811422A (en) * 2022-11-17 2023-03-17 华润数字科技有限公司 Medical data sharing method and system based on block chain

Also Published As

Publication number Publication date
CN116881949A (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN110084068B (en) Block chain system and data processing method for block chain system
US20220191012A1 (en) Methods For Splitting and Recovering Key, Program Product, Storage Medium, and System
US8856530B2 (en) Data storage incorporating cryptographically enhanced data protection
CN1939028B (en) Accessing protected data on network storage from multiple devices
US20100005318A1 (en) Process for securing data in a storage unit
US11050745B2 (en) Information processing apparatus, authentication method, and recording medium for recording computer program
CN101350718B (en) Method for protecting play content authority range base on user identification module
JPWO2010150813A1 (en) Encryption key distribution system
CN104980477A (en) Data access control method and system in cloud storage environment
CN112291245A (en) Identity authorization method, identity authorization device, storage medium and equipment
CN111294349B (en) Method and device for sharing data of Internet of things equipment
CN110932850B (en) Communication encryption method and system
CN112332975A (en) Internet of things equipment secure communication method and system
US11604888B2 (en) Digital storage and data transport system
KR20190024729A (en) Data receiving device, data transmission system, and key generating device
CN109905384B (en) Data migration method and system
CN112311538A (en) Identity authentication method, device, storage medium and equipment
CN113259123B (en) Block chain data writing and accessing method and device
CN111885154B (en) Distributed data security sharing method and system based on certificate chain
CN106060073A (en) Channel key negotiation method
CN114697040A (en) Electronic signature method and system based on symmetric key
Mäurer et al. A secure cell-attachment procedure of LDACS
CN109302286B (en) Fido equipment key index generation method
CN115632777B (en) Data processing method and electronic equipment
CN116881949B (en) Data processing method and system based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant