CN112966022B - Information query method, device and system of data transaction platform - Google Patents

Information query method, device and system of data transaction platform Download PDF

Info

Publication number
CN112966022B
CN112966022B CN202110259428.8A CN202110259428A CN112966022B CN 112966022 B CN112966022 B CN 112966022B CN 202110259428 A CN202110259428 A CN 202110259428A CN 112966022 B CN112966022 B CN 112966022B
Authority
CN
China
Prior art keywords
information
ciphertext
party
parameter
query
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
CN202110259428.8A
Other languages
Chinese (zh)
Other versions
CN112966022A (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.)
Anhui Aisino Technology Co ltd
Original Assignee
Anhui Aisino 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 Anhui Aisino Technology Co ltd filed Critical Anhui Aisino Technology Co ltd
Priority to CN202110259428.8A priority Critical patent/CN112966022B/en
Publication of CN112966022A publication Critical patent/CN112966022A/en
Application granted granted Critical
Publication of CN112966022B publication Critical patent/CN112966022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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
    • 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
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • 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/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides an information query method, device and system of a data transaction platform, and relates to the technical field of data transaction management. The information query method of the data transaction platform comprises the following steps: building a block chain system, wherein nodes of the block chain system comprise an information issuing party and an information inquiring party; acquiring an information plaintext issued by the information issuing party, encrypting the information plaintext to form a ciphertext, and writing the ciphertext into the blockchain system; acquiring a query request of the information query party for the ciphertext, and sending a participation information query message to the information publisher; and acquiring response transaction information issued by the information issuing party, and sending an encrypted ciphertext to the information inquiring party so that the information inquiring party can decrypt according to the encrypted ciphertext to obtain the information plaintext. The technical scheme of the invention improves the safety, privacy and incentive of the data transaction link.

Description

Information query method, device and system of data transaction platform
Technical Field
The invention relates to the technical field of data transaction management, in particular to an information query method, device and system of a data transaction platform.
Background
Data assets are one of the production factors, and frequent and wide data transactions are performed in data transaction systems among various enterprises, such as finance, logistics, medical treatment and the like. Links of data inquiry and detailed information display exist between the data commodity supply and demand release and the data transaction implementation process of the data transaction platform. The privacy, safety and incentive of the data query link directly influence the operation of the data transaction platform and the participation degree of both data supply and demand parties.
Disclosure of Invention
The invention solves the problem of how to improve the privacy, safety and motivation of the data query link.
In order to solve the above problems, the present invention provides an information query method for a data transaction platform, including: building a block chain system, wherein nodes of the block chain system comprise an information issuing party and an information inquiring party; acquiring an information plaintext issued by the information issuing party, encrypting the information plaintext to form a ciphertext, and writing the ciphertext into the blockchain system; acquiring a query request of the information query party for the ciphertext, and sending a participation information query message to the information publisher; and acquiring response transaction information issued by the information issuing party, and sending an encrypted ciphertext to the information inquiring party so that the information inquiring party can decrypt according to the encrypted ciphertext to obtain the information plaintext.
According to the information query method of the data transaction platform, the data transaction is realized by carrying out encrypted ciphertext transmission on the data transaction platform constructed by the blockchain technology, so that the possibility of data tampering is avoided, the transaction privacy is ensured, and the paid incentive of the data transaction is realized, thereby improving the safety, the privacy and the incentive of the data transaction link.
Optionally, the writing the ciphertext formed by encrypting the information plaintext into the blockchain system includes: encrypting the information plaintext by adopting an SM3 cryptographic algorithm and an SM4 cryptographic algorithm to generate the ciphertext and the abstract, and writing the ciphertext and the abstract into the blockchain system; and generating a public key identifier and a decryption key according to the ciphertext and the abstract by adopting an SM9 cryptographic algorithm through a key generation center of the blockchain system, and transmitting the public key identifier and the decryption key to the information publisher.
According to the information query method of the data transaction platform, the SM3 cryptographic algorithm and the SM4 cryptographic algorithm encrypt the information plaintext to generate ciphertext and abstract, and write the ciphertext and abstract into the blockchain system, so that invisible information search of sensitive information of information release is realized, and consistency of response information is ensured; and an encryption and decryption public-private key is generated for a single transaction through an SM9 cryptographic algorithm, so that the inadvertent transmission of the blockchain transaction is realized.
Optionally, the obtaining the query request of the information query party for the ciphertext includes: obtaining a query request issued by the information query party at the blockchain system, and deducting the integral of the information query party by calling an incentive consumption contract, wherein the information query party generates the query request comprising: the information inquiry party adopts a random number k to generate a parameter r; encrypting the parameter r according to the public key identification; and calling an information inquiry transaction contract through the encrypted parameters to generate the inquiry request.
According to the information query method of the data transaction platform, when the information query party carries out query requests, the incentive consumption contract is called to deduct the points of the information query party, so that paid incentive of data transaction is realized, and the incentive of the data transaction link is improved.
Optionally, the obtaining the response transaction information issued by the information issuer includes: obtaining response transaction information issued by the information issuing party on the blockchain system, and increasing the points of the information issuing party by calling an incentive increase contract, wherein the information issuing party generates the response transaction information comprises the following steps: after receiving the participation information inquiry message, the information publisher recovers the information plaintext by adopting an SM4 cryptographic algorithm; generating a parameter r according to the encrypted parameter by adopting SM9 cryptographic algorithm , The method comprises the steps of carrying out a first treatment on the surface of the Based on the information plaintext and the parameter r , Generating a mask; generating confusion information according to the mask; encryption generation of the confusion information by using SM2 cryptographic algorithmEncrypting the ciphertext; and calling an information inquiry response contract according to the encrypted ciphertext to generate the response transaction information.
According to the information query method of the data transaction platform, the response transaction information is issued by the information issuing party, the incentive increasing contract is called to increase the points of the information issuing party, and the paid incentive of the data transaction is realized, so that the incentive of the data transaction link is improved.
Optionally, the parameter r is generated by adopting an SM9 cryptographic algorithm according to the encrypted parameter , Comprising the following steps: decrypting the encrypted parameter according to the decryption key to generate the parameter r ,
The invention relates to an information inquiry method of a data transaction platform, which decrypts the encrypted parameters through a decryption key to generate parameters r , The information inquiry party can only obtain the data corresponding to the inquiry request through the decryption key, cannot obtain more data, and meanwhile, the information issuing party cannot know which data is finally obtained by the information inquiry party, so that the inquiry behavior, preference and trend of the information inquiry party cannot be known, and the privacy of data transaction is effectively ensured.
Optionally, said plaintext according to said information and said parameter r , Generating the mask includes: based on the information plaintext and the parameter r , Generates the mask as a result of the exclusive or operation.
The information inquiry method of the data transaction platform of the invention uses the information plaintext and the parameter r , The exclusive or operation result of the information inquiry party generates a mask M, so that the information issuing party does not know which data the information inquiry party finally obtains, and therefore the inquiry behavior, preference and trend of the information inquiry party cannot be known, and the privacy of data transaction is effectively ensured.
Optionally, the information inquiring party decrypts the information plaintext according to the encrypted ciphertext includes: the information inquirer reads the encrypted ciphertext through the blockchain system; decrypting the encrypted ciphertext by adopting an SM2 cryptographic algorithm to generate the confusion information; decrypting the obfuscated information based on an unintentional transfer protocol to obtain the plaintext of the information.
According to the information query method of the data transaction platform, the SM2 cryptographic algorithm and the careless transmission protocol are used for decrypting the encrypted ciphertext to obtain the information plaintext, the information query party can only obtain the information plaintext corresponding to the query request, and cannot obtain more data, so that the privacy of data transaction is effectively ensured.
The invention also provides an information inquiry device of the data transaction platform, which comprises: the block chain module is used for building a block chain system; the ciphertext module is used for acquiring an information plaintext released by the information release party, encrypting the information plaintext to form a ciphertext, and writing the ciphertext into the blockchain system; the inquiry module is used for acquiring an inquiry request of the information inquiry party for the ciphertext and sending a participation information inquiry message to the information issuing party; and the response transaction module is used for acquiring response transaction information issued by the information issuing party and sending ciphertext to the information inquiring party so that the information inquiring party can decrypt according to the ciphertext to obtain the information plaintext. The information query device of the data transaction platform has the same advantages as the information query method of the data transaction platform compared with the prior art, and is not described in detail herein.
The invention also provides an information inquiry system of the data transaction platform, which comprises a computer readable storage medium and a processor, wherein the computer readable storage medium stores a computer program, and the computer program realizes the information inquiry method of the data transaction platform when being read and run by the processor. The information query system of the data transaction platform has the same advantages as the information query method of the data transaction platform compared with the prior art, and is not described in detail herein.
The invention also provides a computer readable storage medium storing a computer program which, when read and run by a processor, implements the information query method of the data transaction platform as described above. The computer readable storage medium has the same advantages as the information query method of the data transaction platform compared with the prior art, and is not described herein.
Drawings
Fig. 1 is a schematic diagram of an information query method of a data transaction platform according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an information query system of a data transaction platform according to an embodiment of the present invention;
FIG. 3 is a block chain network architecture for information query in accordance with an embodiment of the present invention;
fig. 4 is an application architecture diagram of an information query system of a data transaction platform according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the invention will be readily understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings.
As shown in fig. 1, an embodiment of the present invention provides an information query method for a data transaction platform, including: building a block chain system, wherein nodes of the block chain system comprise an information issuing party and an information inquiring party; acquiring an information plaintext issued by the information issuing party, encrypting the information plaintext to form a ciphertext, and writing the ciphertext into the blockchain system; acquiring a query request of the information query party for the ciphertext, and sending a participation information query message to the information publisher; and acquiring response transaction information issued by the information issuing party, and sending an encrypted ciphertext to the information inquiring party so that the information inquiring party can decrypt according to the encrypted ciphertext to obtain the information plaintext.
Specifically, in this embodiment, the information query method of the data transaction platform includes: building a block chain system, wherein nodes of the block chain system comprise an information issuing party and an information inquiring party; blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like, and is essentially a decentralised database; the blockchain system and the information inquiry system of the data transaction platform in the embodiment take enterprises, public institutions and government departments as platform users and take a alliance chain blockchain bottom layer supporting framework; through the data transaction platform constructed by the blockchain technology, the decentralization of transaction is realized, the introduction of an external third party is avoided, all transaction data are recorded in the blockchain, the possibility of data tampering is avoided, the safety of the transaction is ensured, and the safety of a data transaction link is improved.
Wherein, referring to FIG. 3, the information publisher S of the registered data transaction platform i (i=1, 2, … … n) accessing the blockchain system via the data transaction platform, issuing a business intelligence contract for data sales/purchasing and the like, and generating a transaction number T of the transaction j (j=1, 2, … … m). Information inquiry party R of registered data transaction platform i And accessing the blockchain system through the data transaction platform to inquire about intelligent contracts of data selling/purchasing on the chain. KGC (key generation center ), which is one of the blockchain nodes, can query ciphertext information of information release by accessing the blockchain according to the transaction number.
The application architecture of the information query system, as shown in fig. 4, may be: the information plaintext is written into the paid information display system of the client, paid display control is carried out through the blockchain network so that the paid information display system of the client can display information, and the blockchain network and the KGC have an information confirmation process simultaneously because the KGC can access the blockchain and inquire ciphertext information.
The information plaintext released by the information release party is obtained, the information plaintext is encrypted to form a ciphertext, and the ciphertext is written into the blockchain system, namely the information release party reads the information plaintext into a local module of the information inquiry system, and the information inquiry system encrypts the information plaintext to form the ciphertext, and the ciphertext is written into the blockchain system.
The method comprises the steps of obtaining a query request of an information query party for ciphertext, sending a participation information query message to an information publisher, namely, the information query party calls an information query transaction contract to generate a query request and publishes the query request to a blockchain system, and then sending the participation information query message to the information publisher by the information query system, wherein the participation information query message obtained by the information publisher corresponds to the query request of the information query party.
The method comprises the steps of obtaining response transaction information issued by an information issuing party, sending an encryption ciphertext to an information inquiring party, and enabling the information inquiring party to decrypt according to the encryption ciphertext to obtain an information plaintext, namely after the information issuing party obtains information inquiry participation information, generating response transaction information by calling an information inquiry response contract and issuing the response transaction information to a blockchain system, sending the encryption ciphertext to the information inquiring party by the information inquiring system, and decrypting the encryption ciphertext by the information inquiring party to obtain the information plaintext, so that information inquiry is completed. Because the encrypted ciphertext is used for information transmission, the possibility that data is stolen and deciphered is avoided, and even if the encrypted ciphertext is stolen maliciously by other people, any important information cannot be analyzed, so that the transaction privacy is ensured, and the privacy of a data transaction link is improved.
In addition, in the data transaction process, the points of the information inquiry party are deducted through the related incentive contracts of the blockchain system, and the points are added for the information issuing party, so that paid incentive is realized, the information issuing party can determine whether to respond to the transaction after receiving the participation information inquiry message, and voluntary control of the data transaction is realized, so that the quantity and participation degree of the data transaction can be promoted, and the incentive of the data transaction link is improved.
For example, company a (information publisher) reads the information plaintext about the transaction data into a local module of the information query system, the information query system encrypts the information plaintext to form a ciphertext, the ciphertext is written into the blockchain system, company B (information publisher) invokes an information query transaction contract to generate a query request and distributes the query request to the blockchain system when querying the transaction data, the information query system sends a participation information query message (the participation information query message acquired by company a corresponds to the query request of company B) to company a, company a acquires the participation information query message, and then generates response transaction information by invoking an information query response contract and distributes the response transaction information to the blockchain system, and then the information query system sends an encrypted ciphertext to company B, which decrypts the encrypted ciphertext to obtain the information plaintext, thereby completing the information query.
In the embodiment, the data transaction is realized by carrying out encrypted ciphertext transmission on the data transaction platform constructed by the blockchain technology, so that the possibility of data tampering is avoided, the transaction privacy is ensured, and the paid incentive of the data transaction is realized, thereby improving the safety, privacy and incentive of the data transaction link.
Optionally, the writing the ciphertext formed by encrypting the information plaintext into the blockchain system includes: encrypting the information plaintext by adopting an SM3 cryptographic algorithm and an SM4 cryptographic algorithm to generate the ciphertext and the abstract, and writing the ciphertext and the abstract into the blockchain system; and generating a public key identifier and a decryption key according to the ciphertext and the abstract by adopting an SM9 cryptographic algorithm through a key generation center of the blockchain system, and transmitting the public key identifier and the decryption key to the information publisher.
Specifically, in this embodiment, encrypting the information plaintext to form a ciphertext writing blockchain system includes: after receiving an information plaintext uploaded by an information publisher, a local module of the information inquiry system encrypts the information plaintext by adopting an SM3 cryptographic algorithm and an SM4 cryptographic algorithm to generate a ciphertext and a abstract and writes the ciphertext and the abstract into a blockchain system; the information inquiry system adopts an SM9 cryptographic algorithm, generates a public key identifier and a decryption key according to ciphertext and abstract through a key generation center of the blockchain system, and sends the public key identifier and the decryption key to an information issuer, namely the information inquiry system generates an IBC encrypted public key identifier e and an IBC decryption key d which take transaction number Tj+channel name+issuer certificate+timestamp as IBC under the chain based on an IBC encryption mechanism of the domestic cryptographic algorithm SM9, and sends the IBC encrypted public key identifier e and the IBC decryption key d to the information issuer through an under-chain communication network. The information inquiry system and the information inquiry method based on the domestic cryptographic algorithms SM4 and SM3 can realize the invisible information search of the sensitive information of information release and ensure the consistency of response information; the IBC encryption and decryption mechanism based on the domestic cryptographic algorithm SM9 can meet the scene of massive transactions of the blockchain, generate public and private keys for encryption and decryption of single transactions through identification, and realize the careless transmission of the blockchain transactions.
Wherein, SM2 algorithm: the SM2 elliptic curve public key cryptographic algorithm is a public key cryptographic algorithm which is independently designed in China and comprises an SM2-1 elliptic curve digital signature algorithm, an SM2-2 elliptic curve key exchange protocol and an SM2-3 elliptic curve public key encryption algorithm which are respectively used for realizing the functions of digital signature key negotiation, data encryption and the like.
Wherein, SM3 algorithm: the SM3 hash algorithm is a cryptographic hash algorithm which is autonomously designed in China, is suitable for the generation and verification of digital signatures and verification message authentication codes and the generation of random numbers in commercial cryptographic applications, and can meet the security requirements of various cryptographic applications.
The SM9 algorithm is called SM9 identification cipher algorithm, in order to reduce the complexity of key and certificate management in the public key system, an idea of identification cipher (Identity-Based Cryptography) is provided, the identification cipher takes the user identification (such as mail address, mobile phone number, QQ number, etc.) as a public key, and the process of exchanging digital certificates and public keys is omitted, so that the security system becomes easy to deploy and manage, and is very suitable for various occasions of end-to-end offline secure communication, cloud data encryption, attribute-based encryption and policy-based encryption.
In the embodiment, the encryption of the information plaintext is performed through the SM3 cryptographic algorithm and the SM4 cryptographic algorithm to generate ciphertext and abstract, and the ciphertext and abstract are written into the blockchain system, so that information searching of invisible sensitive information of information release is realized, and consistency of response information is ensured; and an encryption and decryption public-private key is generated for a single transaction through an SM9 cryptographic algorithm, so that the inadvertent transmission of the blockchain transaction is realized.
Optionally, the obtaining the query request of the information query party for the ciphertext includes: obtaining a query request issued by the information query party at the blockchain system, and deducting the integral of the information query party by calling an incentive consumption contract, wherein the information query party generates the query request comprising: the information inquiry party adopts a random number k to generate a parameter r; encrypting the parameter r according to the public key identification; and calling an information inquiry transaction contract through the encrypted parameters to generate the inquiry request.
Specifically, in this embodiment, obtaining a query request of an information query party for ciphertext includes: the information inquiry system obtains an inquiry request issued by an information inquiry party in a blockchain system, deducts the integral of the information inquiry party according to the numerical values of m and n functions f (m, n) by calling an incentive consumption contract, wherein the information inquiry party generates the inquiry request comprising: the information inquiry party adopts a random number k to generate a parameter r, and the parameter r is a parameter of an SM9 cryptographic algorithm and is used for the information inquiry party in the following processInvoking an information inquiry transaction contract after encryption to generate an inquiry request; encrypting the parameter r according to the public key identity, i.e. by the public key identity e j (j=1, 2 … … m) encrypting the parameter r: r is (r) c1 =E SM9 (e 1 ,r),……,r cm =E SM9 (e m R); by means of the encrypted parameters (r c1 To r cm I.e. m r cj ) Invoking an InfoInquiry transaction contract to generate a query request, i.e. InfoInfoInquiry Party R i Randomly selecting n transaction numbers T in information inquiry transaction j + channel name + issuer certificate + timestamp). When an information inquiry party makes an inquiry request, an incentive consumption contract is called to deduct the points of the information inquiry party, so that paid incentive for data transaction is realized, and the incentive of a data transaction link is improved.
In this embodiment, when the information inquiring party makes an inquiry request, the incentive consuming contract is called to deduct the points of the information inquiring party, so that paid incentive for data transaction is realized, and the incentive of the data transaction link is improved.
Optionally, the obtaining the response transaction information issued by the information issuer includes: obtaining response transaction information issued by the information issuing party on the blockchain system, and increasing the points of the information issuing party by calling an incentive increase contract, wherein the information issuing party generates the response transaction information comprises the following steps: after receiving the participation information inquiry message, the information publisher recovers the information plaintext by adopting an SM4 cryptographic algorithm; generating a parameter r according to the encrypted parameter by adopting SM9 cryptographic algorithm , The method comprises the steps of carrying out a first treatment on the surface of the Based on the information plaintext and the parameter r , Generating a mask; generating confusion information according to the mask; encrypting the confusion information by adopting an SM2 cryptographic algorithm to generate an encrypted ciphertext; and calling an information inquiry response contract according to the encrypted ciphertext to generate the response transaction information.
Specifically, in the present embodiment, acquiring response transaction information issued by an information issuer includes: acquiring response transaction information issued by an information issuer on a blockchain system and adding contracts by calling incentivesAdding the points of the information publisher, wherein the information publisher generating the response transaction information includes: after receiving the information inquiry message, the information publisher recovers the information plaintext by adopting an SM4 cryptographic algorithm; generating a parameter r according to the encrypted parameter by adopting SM9 cryptographic algorithm , ,r , =D sm9 (d,r j ) Parameter r , The parameters of the SM9 cryptographic algorithm are obtained by decryption according to the parameter r and are used for generating an encrypted ciphertext; based on the plain text (msg) and the parameter r , A mask M is generated and a mask pattern M is generated,wherein->Is an exclusive-or operation; generating confusion information (MSG) according to the mask M, the msg=m+transaction number+channel name+issuer certificate+issuer signature+time stamp; encryption of obfuscated information using SM2 cryptographic algorithm to generate encrypted ciphertext C, c=e sm2 (P R MSG), wherein P R For information inquiry party R i Is a public key of (1); and calling the information query response contract according to the encrypted ciphertext to generate response transaction information. The information issuing party issues response transaction information, and the incentive increasing contract is called to increase the points of the information issuing party, so that paid incentive of data transaction is realized, and the incentive of the data transaction link is improved.
Wherein, SM4 algorithm: the SM4 block cipher algorithm is a block symmetric cipher algorithm which is independently designed in China and is used for realizing encryption/decryption operation of data so as to ensure confidentiality of the data and information.
In the embodiment, the response transaction information is issued at the information issuing party, and the incentive increasing contract is called to increase the points of the information issuing party, so that paid incentive of data transaction is realized, and the incentive of the data transaction link is improved.
Optionally, the parameter r is generated by adopting an SM9 cryptographic algorithm according to the encrypted parameter , Comprising the following steps: decrypting the encrypted parameter according to the decryption key to generate the parameter r ,
Specifically, in the present embodiment, the parameter r is generated from the encrypted parameter using the SM9 cryptographic algorithm , Comprising the following steps: decrypting the encrypted parameter according to the decryption key to generate a parameter r , I.e. r , =D sm9 (d,r j ). In the accidental transmission, the information publisher can send a plurality of pieces of information to the information inquiring party, but the information inquiring party can only obtain the data corresponding to the inquiring request through the decryption key, cannot obtain more data, and meanwhile, the information publisher cannot know which data the information inquiring party finally obtains, so that the inquiring behavior, preference and trend of the information inquiring party cannot be known, and the privacy of data transaction is effectively ensured.
In the present embodiment, the encrypted parameter is decrypted by a decryption key to generate a parameter r , The information inquiry party can only obtain the data corresponding to the inquiry request through the decryption key, cannot obtain more data, and meanwhile, the information issuing party cannot know which data is finally obtained by the information inquiry party, so that the inquiry behavior, preference and trend of the information inquiry party cannot be known, and the privacy of data transaction is effectively ensured.
Optionally, said plaintext according to said information and said parameter r , Generating the mask includes: based on the information plaintext and the parameter r , Generates the mask as a result of the exclusive or operation.
Specifically, in the present embodiment, the information plaintext and the parameter r are used as the basis , Generating the mask includes: based on the information plaintext and the parameter r , Generates a mask M, i.e., m=msg @ r, from the exclusive or operation result of (a) , The information inquiry party can correspondingly conduct exclusive or operation when decrypting the encrypted ciphertext C to obtain required data and a random number, so that the process of generating the mask M by the information issuing party is a necessary process of carelessly transmitting, the information issuing party is unclear as to which data the information inquiry party finally obtains, the inquiry behavior, preference and trend of the information inquiry party cannot be known, and the privacy of data transaction is effectively guaranteed.
In the present embodiment, the information plaintext and the parameter r are used for the information , Exclusive OR of (1)The operation result generates a mask M, so that the information publisher does not know which data the information inquirer finally obtains, and therefore the inquiring behavior, preference and trend of the information inquirer cannot be known, and the privacy of data transaction is effectively ensured.
Optionally, the information inquiring party decrypts the information plaintext according to the encrypted ciphertext includes: the information inquirer reads the encrypted ciphertext through the blockchain system; decrypting the encrypted ciphertext by adopting an SM2 cryptographic algorithm to generate the confusion information; decrypting the obfuscated information based on an unintentional transfer protocol to obtain the plaintext of the information.
Specifically, in this embodiment, the information querying party decrypts the encrypted ciphertext to obtain the information plaintext includes: the information inquirer reads the encrypted ciphertext through the block chain system, and the encrypted ciphertext is a plurality of ciphertexts C i The method comprises the steps of carrying out a first treatment on the surface of the Decrypting encrypted ciphertext using SM2 cryptographic algorithm to generate obfuscated information (MSG) i ) The method comprises the steps of carrying out a first treatment on the surface of the Decrypting the confusion information (comprising the transaction number Tj+the channel name+the issuer certificate+the timestamp) based on the careless transmission protocol to obtain the information plaintext msg 1 ,……,msg m . The encryption ciphertext is decrypted through the SM2 cryptographic algorithm and the careless transmission protocol to obtain the information plaintext, the information inquiring party can only obtain the information plaintext corresponding to the inquiring request, and cannot obtain more data, so that the privacy of data transaction is effectively ensured.
In this embodiment, the encryption ciphertext is decrypted through the SM2 cryptographic algorithm and the careless transmission protocol to obtain the information plaintext, and the information inquiring party can only obtain the information plaintext corresponding to the inquiring request, cannot obtain more data, thereby effectively ensuring the privacy of data transaction.
Another embodiment of the present invention provides an information query apparatus for a data transaction platform, including: the block chain module is used for building a block chain system; the ciphertext module is used for acquiring an information plaintext released by the information release party, encrypting the information plaintext to form a ciphertext, and writing the ciphertext into the blockchain system; the inquiry module is used for acquiring an inquiry request of the information inquiry party for the ciphertext and sending a participation information inquiry message to the information issuing party; and the response transaction module is used for acquiring response transaction information issued by the information issuing party and sending ciphertext to the information inquiring party so that the information inquiring party can decrypt according to the ciphertext to obtain the information plaintext.
Another embodiment of the present invention provides an information query system of a data transaction platform, including a computer readable storage medium storing a computer program and a processor, where the computer program is read and executed by the processor to implement an information query method of the data transaction platform as described above. The data transaction platform comprises three modules of data transaction management, information inquiry and blockchain application, wherein the data transaction management comprises three sub-modules of incentive calculation, information list and transaction management, the information inquiry comprises an inadvertent transmission and national encryption algorithm module, and the blockchain application comprises three sub-modules of intelligent contracts, a blockchain system and a alliance chain architecture.
Another embodiment of the present invention provides a computer readable storage medium storing a computer program which, when read and executed by a processor, implements the information query method of the data transaction platform as described above.
Although the present disclosure is disclosed above, the scope of the present disclosure is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the disclosure, and these changes and modifications will fall within the scope of the disclosure.

Claims (9)

1. The information query method of the data transaction platform is characterized by comprising the following steps of:
building a block chain system, wherein nodes of the block chain system comprise an information issuing party and an information inquiring party;
acquiring an information plaintext issued by the information issuing party, encrypting the information plaintext to form a ciphertext and a digest, and writing the ciphertext and the digest into the blockchain system;
acquiring a query request of the information query party for the ciphertext, and sending a participation information query message to the information publisher;
acquiring response transaction information issued by the information issuing party, and sending an encrypted ciphertext to the information inquiring party so that the information inquiring party can decrypt the encrypted ciphertext and the response transaction information to obtain the information plaintext;
wherein the information publisher generating the response transaction information includes: after receiving the participation information inquiry message, the information publisher recovers the information plaintext by adopting an SM4 cryptographic algorithm; generating a parameter r according to the encrypted parameter by adopting SM9 cryptographic algorithm , The method comprises the steps of carrying out a first treatment on the surface of the Based on the information plaintext and the parameter r , Generates a mask according to the exclusive or operation result; generating confusion information according to the mask; encrypting the confusion information by adopting an SM2 cryptographic algorithm to generate an encrypted ciphertext; and calling an information inquiry response contract according to the encrypted ciphertext to generate the response transaction information, wherein the encrypted parameter is obtained by encrypting a parameter r through a public key identifier, the public key identifier is generated by the blockchain system according to the ciphertext and the abstract by adopting an SM9 cryptographic algorithm, and the parameter r is generated by the information inquirer by adopting a random number k.
2. The method for querying information of a data transaction platform according to claim 1, wherein encrypting the information plaintext to form ciphertext and digest, and writing the ciphertext and the digest into the blockchain system comprises:
encrypting the information plaintext by adopting an SM3 cryptographic algorithm and an SM4 cryptographic algorithm to generate the ciphertext and the abstract, and writing the ciphertext and the abstract into the blockchain system;
and generating a public key identifier and a decryption key according to the ciphertext and the abstract by adopting an SM9 cryptographic algorithm through a key generation center of the blockchain system, and transmitting the public key identifier and the decryption key to the information publisher.
3. The information query method of the data transaction platform according to claim 2, wherein the obtaining the query request of the information query party for the ciphertext includes:
obtaining a query request issued by the information query party at the blockchain system, and deducting the integral of the information query party by calling an incentive consumption contract, wherein the information query party generates the query request comprising:
the information inquiry party adopts a random number k to generate a parameter r;
encrypting the parameter r according to the public key identification;
and calling an information inquiry transaction contract through the encrypted parameters to generate the inquiry request.
4. The information query method of the data transaction platform according to claim 3, wherein the obtaining the response transaction information issued by the information issuing party includes:
and acquiring response transaction information issued by the information issuing party on the blockchain system, and increasing the points of the information issuing party by calling an incentive increase contract.
5. The information query method of data transaction platform according to claim 4, wherein the parameter r is generated by using SM9 cryptographic algorithm according to the encrypted parameter , Comprising the following steps:
decrypting the encrypted parameter according to the decryption key to generate the parameter r ,
6. The information query method of the data transaction platform according to claim 4, wherein the information query party decrypting the information plaintext according to the encrypted ciphertext includes:
the information inquirer reads the encrypted ciphertext through the blockchain system;
decrypting the encrypted ciphertext by adopting an SM2 cryptographic algorithm to generate the confusion information;
decrypting the obfuscated information based on an unintentional transfer protocol to obtain the plaintext of the information.
7. An information query device of a data transaction platform, comprising:
the system comprises a block chain module, a data processing module and a data processing module, wherein the block chain module is used for building a block chain system, and nodes of the block chain system comprise an information issuing party and an information inquiring party;
the ciphertext module is used for acquiring an information plaintext released by the information publisher, encrypting the information plaintext to form a ciphertext and a digest, and writing the ciphertext and the digest into the blockchain system;
the inquiry module is used for acquiring an inquiry request of the information inquiry party for the ciphertext and sending a participation information inquiry message to the information issuing party;
the response transaction module is used for acquiring response transaction information issued by the information issuing party and sending ciphertext to the information inquiring party so that the information inquiring party can decrypt and obtain the information plaintext according to the ciphertext and the response transaction information;
wherein the response transaction information is generated by: after receiving the participation information inquiry message, the information publisher recovers the information plaintext by adopting an SM4 cryptographic algorithm; generating a parameter r according to the encrypted parameter by adopting SM9 cryptographic algorithm , The method comprises the steps of carrying out a first treatment on the surface of the Based on the information plaintext and the parameter r , Generates a mask according to the exclusive or operation result; generating confusion information according to the mask; encrypting the confusion information by adopting an SM2 cryptographic algorithm to generate an encrypted ciphertext; and calling an information inquiry response contract according to the encrypted ciphertext to generate the response transaction information, wherein the encrypted parameter is obtained by encrypting a parameter r through a public key identifier, the public key identifier is generated by the blockchain system according to the ciphertext and the abstract by adopting an SM9 cryptographic algorithm, and the parameter r is generated by the information inquirer by adopting a random number k.
8. An information query system of a data transaction platform, comprising a computer readable storage medium storing a computer program and a processor, the computer program implementing the information query method of the data transaction platform according to any one of claims 1 to 6 when read and executed by the processor.
9. A computer readable storage medium, wherein the computer readable storage medium stores a computer program, which when read and executed by a processor, implements the information query method of the data transaction platform according to any one of claims 1 to 6.
CN202110259428.8A 2021-03-10 2021-03-10 Information query method, device and system of data transaction platform Active CN112966022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110259428.8A CN112966022B (en) 2021-03-10 2021-03-10 Information query method, device and system of data transaction platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110259428.8A CN112966022B (en) 2021-03-10 2021-03-10 Information query method, device and system of data transaction platform

Publications (2)

Publication Number Publication Date
CN112966022A CN112966022A (en) 2021-06-15
CN112966022B true CN112966022B (en) 2024-04-05

Family

ID=76277371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110259428.8A Active CN112966022B (en) 2021-03-10 2021-03-10 Information query method, device and system of data transaction platform

Country Status (1)

Country Link
CN (1) CN112966022B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113569259A (en) * 2021-07-29 2021-10-29 深圳证券信息有限公司 Data sharing method, system, equipment and computer readable storage medium
CN114338038B (en) * 2021-12-27 2023-06-23 内蒙古科技大学 Storage system for secret inquiry of block chain data and careless transmission method
CN115208630B (en) * 2022-06-15 2024-04-09 网易(杭州)网络有限公司 Block chain-based data acquisition method and system and block chain system

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809652A (en) * 2018-05-21 2018-11-13 安徽航天信息有限公司 A kind of block chain encryption account book based on privacy sharing
CN108880784A (en) * 2018-05-28 2018-11-23 江苏众享金联科技有限公司 User privacy information shared system under a kind of different trust domain of solution based on block chain
CN109493020A (en) * 2018-11-08 2019-03-19 众安信息技术服务有限公司 Method for secure transactions and device based on block chain
CN109784931A (en) * 2019-02-27 2019-05-21 成都埃克森尔科技有限公司 A kind of querying method of the Data Query Platform based on block chain
CN110096899A (en) * 2019-04-29 2019-08-06 腾讯科技(深圳)有限公司 A kind of data query method and device
CN110851843A (en) * 2019-10-08 2020-02-28 立旃(上海)科技有限公司 Data management method and device based on block chain
CN111047316A (en) * 2019-12-02 2020-04-21 上海金桥信息股份有限公司 Tamper-resistant intelligent block chain system and implementation method
CN111159766A (en) * 2019-12-30 2020-05-15 任子行网络技术股份有限公司 Network car booking service method and system with privacy protection function and storage medium
CN111159730A (en) * 2019-12-13 2020-05-15 支付宝(杭州)信息技术有限公司 Data processing method, query method, device, electronic equipment and system
CN111310216A (en) * 2020-02-26 2020-06-19 百度在线网络技术(北京)有限公司 Block chain data processing method and device, electronic equipment and medium
CN111681002A (en) * 2020-06-10 2020-09-18 浙江工商大学 Fair data transaction method and system based on block chain
WO2020186823A1 (en) * 2019-03-21 2020-09-24 深圳壹账通智能科技有限公司 Blockchain-based data querying method, device, system and apparatus, and storage medium
CN111835687A (en) * 2019-04-19 2020-10-27 百度在线网络技术(北京)有限公司 Block chain-based security coordination system and security coordination method
CN112003690A (en) * 2019-08-16 2020-11-27 华控清交信息科技(北京)有限公司 Password service system, method and device
CN112055021A (en) * 2020-09-08 2020-12-08 苏州同济区块链研究院有限公司 Imperial transmission method and device based on elliptic curve
CN112087439A (en) * 2020-09-02 2020-12-15 杭州趣链科技有限公司 Block chain transaction query method, system, computer device and storage medium
CN112367305A (en) * 2020-10-22 2021-02-12 香港中文大学(深圳) Privacy block chain-based vehicle networking protection method and mobile terminal
CN112398659A (en) * 2020-11-20 2021-02-23 天翼电子商务有限公司 N-m-out mode privacy query method based on SM2-SM3-SM4 construction
CN112434109A (en) * 2020-11-23 2021-03-02 交通银行股份有限公司 Data sharing and secret query method and system based on block chain technology

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953722B (en) * 2017-05-09 2017-11-07 深圳市全同态科技有限公司 Ciphertext query method and system for full homomorphic encryption
US11190496B2 (en) * 2019-02-12 2021-11-30 Visa International Service Association Fast oblivious transfers
US10936605B2 (en) * 2019-04-19 2021-03-02 Advanced New Technologies Co., Ltd. Providing oblivious data transfer between computing devices

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809652A (en) * 2018-05-21 2018-11-13 安徽航天信息有限公司 A kind of block chain encryption account book based on privacy sharing
CN108880784A (en) * 2018-05-28 2018-11-23 江苏众享金联科技有限公司 User privacy information shared system under a kind of different trust domain of solution based on block chain
CN109493020A (en) * 2018-11-08 2019-03-19 众安信息技术服务有限公司 Method for secure transactions and device based on block chain
CN109784931A (en) * 2019-02-27 2019-05-21 成都埃克森尔科技有限公司 A kind of querying method of the Data Query Platform based on block chain
WO2020186823A1 (en) * 2019-03-21 2020-09-24 深圳壹账通智能科技有限公司 Blockchain-based data querying method, device, system and apparatus, and storage medium
CN111835687A (en) * 2019-04-19 2020-10-27 百度在线网络技术(北京)有限公司 Block chain-based security coordination system and security coordination method
CN110096899A (en) * 2019-04-29 2019-08-06 腾讯科技(深圳)有限公司 A kind of data query method and device
CN112003690A (en) * 2019-08-16 2020-11-27 华控清交信息科技(北京)有限公司 Password service system, method and device
CN110851843A (en) * 2019-10-08 2020-02-28 立旃(上海)科技有限公司 Data management method and device based on block chain
CN111047316A (en) * 2019-12-02 2020-04-21 上海金桥信息股份有限公司 Tamper-resistant intelligent block chain system and implementation method
CN111159730A (en) * 2019-12-13 2020-05-15 支付宝(杭州)信息技术有限公司 Data processing method, query method, device, electronic equipment and system
CN111159766A (en) * 2019-12-30 2020-05-15 任子行网络技术股份有限公司 Network car booking service method and system with privacy protection function and storage medium
CN111310216A (en) * 2020-02-26 2020-06-19 百度在线网络技术(北京)有限公司 Block chain data processing method and device, electronic equipment and medium
CN111681002A (en) * 2020-06-10 2020-09-18 浙江工商大学 Fair data transaction method and system based on block chain
CN112087439A (en) * 2020-09-02 2020-12-15 杭州趣链科技有限公司 Block chain transaction query method, system, computer device and storage medium
CN112055021A (en) * 2020-09-08 2020-12-08 苏州同济区块链研究院有限公司 Imperial transmission method and device based on elliptic curve
CN112367305A (en) * 2020-10-22 2021-02-12 香港中文大学(深圳) Privacy block chain-based vehicle networking protection method and mobile terminal
CN112398659A (en) * 2020-11-20 2021-02-23 天翼电子商务有限公司 N-m-out mode privacy query method based on SM2-SM3-SM4 construction
CN112434109A (en) * 2020-11-23 2021-03-02 交通银行股份有限公司 Data sharing and secret query method and system based on block chain technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
区块链交易数据隐私保护方法;许重建;李险峰;;计算机科学;20201231(第03期);全文 *
基于区块链的隐私保护交集算法;熊璐;杨阳;沙金锐;范磊;;通信技术;20200710(第07期);全文 *

Also Published As

Publication number Publication date
CN112966022A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
Qi et al. Cpds: Enabling compressed and private data sharing for industrial Internet of Things over blockchain
CN112966022B (en) Information query method, device and system of data transaction platform
JP5562687B2 (en) Securing communications sent by a first user to a second user
JP5295479B2 (en) Method and system for preventing unauthorized delivery and use of electronic keys with key seeds
CN109120639A (en) A kind of data cloud storage encryption method and system based on block chain
US20100293099A1 (en) Purchase transaction system with encrypted transaction information
CN110807206B (en) College certificate storage management system based on block chain and attribute password
CN106254342A (en) The secure cloud storage method of file encryption is supported under Android platform
CN101720071A (en) Short message two-stage encryption transmission and secure storage method based on safety SIM card
JP6566278B1 (en) Personal data management system
CN109729041A (en) A kind of publication of encrypted content and acquisition methods and device
CN112532580B (en) Data transmission method and system based on block chain and proxy re-encryption
WO2023010932A1 (en) Cloud-edge collaborative multi-mode private data transfer method based on smart contract
CN109951274B (en) Anti-quantum computing point-to-point message transmission method and system based on private key pool
CN113411323B (en) Medical record data access control system and method based on attribute encryption
CN113901512A (en) Data sharing method and system
CN103973440A (en) File cloud security management method and system based on CPK
CN113225302A (en) Data sharing system and method based on proxy re-encryption
US20010009583A1 (en) Secret key registration method, secret key register, secret key issuing method, cryptographic communication method and cryptographic communication system
JP7211518B2 (en) Owner identity confirmation system and owner identity confirmation method
Patel et al. The study of digital signature authentication process
Ramesh et al. Comparative analysis of applications of identity-based cryptosystem in IoT
JP2020099010A (en) Information processing method, information processing device, program, and information processing system
KR20190116838A (en) Security method and system for crypto currency
CN114567426B (en) Data sharing method and system

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