CN111506926A - Private data sharing method based on block chain - Google Patents

Private data sharing method based on block chain Download PDF

Info

Publication number
CN111506926A
CN111506926A CN202010239239.XA CN202010239239A CN111506926A CN 111506926 A CN111506926 A CN 111506926A CN 202010239239 A CN202010239239 A CN 202010239239A CN 111506926 A CN111506926 A CN 111506926A
Authority
CN
China
Prior art keywords
data
private
transaction
block
chain
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.)
Granted
Application number
CN202010239239.XA
Other languages
Chinese (zh)
Other versions
CN111506926B (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.)
Jiangsu Rongzer Information Technology Co Ltd
Original Assignee
Jiangsu Rongzer Information 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 Jiangsu Rongzer Information Technology Co Ltd filed Critical Jiangsu Rongzer Information Technology Co Ltd
Priority to CN202010239239.XA priority Critical patent/CN111506926B/en
Publication of CN111506926A publication Critical patent/CN111506926A/en
Application granted granted Critical
Publication of CN111506926B publication Critical patent/CN111506926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/6245Protecting personal data, e.g. for financial or medical purposes
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Marketing (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Technology Law (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a private data sharing method based on a block chain, which comprises the following steps: private block chain outgoing and block head uplink to a public block chain platform are carried out by adopting a private block chain platform; the private blockchain platform issues a data certificate to a data owner, the data owner shares data to a data requester, and the data requester verifies the data on the public blockchain platform. The invention guarantees the privacy of the data and realizes the sharing of the data.

Description

Private data sharing method based on block chain
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a private data sharing method based on a block chain.
Background
Under a specific scenario, for example, when two parties of a financial enterprise need to share default of a user and do not want to reveal own user information, data sharing with privacy protection is particularly important.
Disclosure of Invention
The invention aims to provide a private data sharing method based on a block chain, which guarantees the privacy of data and realizes the sharing of the data.
The invention provides the following technical scheme:
a private data sharing method based on a block chain comprises the following steps:
private block chain outgoing and block head uplink to a public block chain platform are carried out by adopting a private block chain platform;
the private blockchain platform issues a data certificate to a data owner, the data owner shares data to a data requester, and the data requester verifies the data on the public blockchain platform.
Preferably, the validation of the data comprises the steps of:
the verifier acquires the transaction root hash on the public block chain platform block, verifies the validity of the transaction private chain block head through the public chain path and the public key corresponding to the private chain, acquires the root hash corresponding to the private transaction from the private chain block head, and verifies the validity of the private transaction through the private chain path.
Preferably, the block header of the private chain includes a previous hash value, a transaction root, and metadata changes, the block body includes specific information of the transaction, the metadata changes include changes of information such as a data category, a queriable keyword set, a data format, and the like, the transaction category in the transaction structure is a data classification condition in the transaction, and the keyword key value pair is a keyword set for third-party querying.
Preferably, the block head of the public link comprises a hash value of a previous block, a transaction root and a private link metadata state, the block body comprises transaction information including a private link block head, the private link block head comprises a hash value of the previous block, and the transaction root and the metadata information change and are used for inquiring and analyzing the private link data and verifying whether the data meets an inquiry condition.
Preferably, the transaction under the block chain-based private data sharing method includes the following steps:
a third party sends a data request to a specific private chain through a platform;
the third party deploys the contract and deposits the amount due into the intelligent contract, and the private link platform deposits the mortgage assets into the contract;
the private chain platform sends the corresponding data and the data certificate to a requester;
and the requester verifies the validity of the information, if the information is valid, the contract sends all the assets to the account of the private link platform, and if the private link platform is malicious, all the assets are sent to the requester.
The invention has the beneficial effects that: the method adopts a private chain and public chain double-layer structure, can add a new private chain at any time, and has high expansibility; the method queries and analyzes data according to the specification through metadata, and the query result can be verified; data is stored in a private chain, a private chain block head is stored in a public chain, calculation is carried out through an intelligent contract, only a data result is returned, and privacy protection is effectively carried out; the data transaction is completed through the contract to avoid disputes, the data cannot be leaked to a third party, the real data is linked up, and the contract compiled by the data requesting party ensures the reality and effectiveness of the result.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of a private chain plus public chain method of the present invention;
FIG. 2 is a schematic structural diagram of a private chain and public chain platform according to the present invention;
FIG. 3 is a block diagram of the private chain block of the present invention;
FIG. 4 is a block diagram of the male link block of the present invention;
FIG. 5 is a schematic diagram of a trading platform of the present invention;
fig. 6 is a flow chart of the transaction process of the present invention.
Detailed Description
As shown in fig. 1, a private data sharing method based on a block chain includes the following steps:
private block chain outgoing and block head uplink to a public block chain platform are carried out by adopting a private block chain platform;
the private blockchain platform issues a data certificate to a data owner, the data owner shares data to a data requester, and the data requester verifies the data on the public blockchain platform.
As shown in fig. 2, the validity verifying step of the data is as follows, the verifier acquires a root hash Mpub of the transaction Tpub on the public link block H, verifies the validity of the transaction Tpub through Ppub and pk, acquires a root hash mppriv corresponding to Tpriv from Tpub, and verifies the validity of the private transaction Tpriv through Ppriv. The method has the advantages of hash chaining by a public chain and private chain mode, and the private data simultaneously utilizes the characteristics of a block chain and achieves a consistent verification mechanism.
As shown in fig. 3, the header of the block of the private chain block includes the previous block hash value, the transaction root Mpriv and the metadata variation, and the block body includes the specific information of the transaction. Metadata changes include changes, such as additions, subtractions or modifications, to information such as data categories, queryable keyword sets, data formats, etc. The transaction category in the transaction structure refers to the data classification condition in the transaction, the keyword key value pair is a keyword set used for third-party query, and the specific data refers to the data of the specific transaction.
As shown in fig. 4, the chunk header of the public link chunk includes the hash value of the previous chunk, the transaction root Mpub, and the private link metadata status, and the chunk body includes the transaction information including the private link chunk header including the hash value of the previous chunk, and the transaction root and metadata information change. The 'private chain + public chain' which can be inquired can know how to inquire the private chain, can know how to analyze private chain data and can verify whether the data meets the inquiry condition.
As shown in fig. 5, in the private data sharing method based on the blockchain, the concept of the trading platform is as follows:
a third party sends a data request to a specific private chain through a platform;
the third party deploys the contract and deposits the amount due into the intelligent contract, and the private link platform deposits the mortgage assets into the contract;
the private chain platform sends the corresponding data and the data certificate to a requester;
and the requester verifies the validity of the information, if the information is valid, the contract sends all the assets to the account of the private link platform, and if the private link platform is malicious, all the assets are sent to the requester.
As shown in fig. 6, the specific transaction process:
the method comprises the following steps: the data request direction sends a data request Q to the private chain;
step two: the private chain generates a response data set and a certificate D thereof, encrypts a key K, encrypts the data set, generates MerkLeroot R, and calculates a quotation CD;
step three: the private chain sends Merkle Root R, data set size and quotation CD to the data requester;
step four: the data request party generates a temporary key pair (pri _ key, pub _ key), the data request party starts transaction to the public link contract, initializes and pays, and the private link pays the transaction mortgage Cs to the public link contract;
step five: inquiring Q, a temporary public key pub _ key, verifying size and R by data, and balancing a quotation CD and a transaction collateral Cs;
step six: the private chain sends the encrypted data set to a data requester, and the data requester calculates Merkle Root R 'and the size' of the data set;
step seven: the data requester receives the encrypted data (R ', size') and sends the encrypted data (R ', size') to a public link contract, the public link contract inquires Q, and the data verification size and R, the balance quotation CD and the transaction collateral Cs and the actual data verification R 'and size' are carried out through the temporary public key pub _ key;
step eight: determining R 'is not equal to R, size' is not equal to size, and refunding the deposit Cs, or refunding the fund CD if R 'is not equal to R, and size' is not equal to size; if so, the seller can be confirmed to have received the correct encrypted data;
step nine: the private chain encrypts the key K by using the public key pub _ key of the buyer, sends the encrypted key K to the public chain contract, the public chain contract obtains the encrypted key K, the data requester decrypts the key K by using the pri _ key, and the original response data D is obtained by using the K;
step ten: judging whether the data D is valid, if so, accepting the transaction, completing the transaction, and enabling the public link to contract and transfer the CD + CS to the private link;
step eleven: if data D is invalid, arbitration is proposed: private key pri _ key, Merkle proof of invalid data in the encrypted data set, transaction failure, data error, and public chain contract transfer CD + CS to the data requester.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (5)

1. A private data sharing method based on a block chain is characterized by comprising the following steps:
private block chain outgoing and block head uplink to a public block chain platform are carried out by adopting a private block chain platform;
the private blockchain platform issues a data certificate to a data owner, the data owner shares data to a data requester, and the data requester verifies the data on the public blockchain platform.
2. The method for sharing private data based on block chains according to claim 1, wherein the validation of the data comprises the following steps:
the verifier acquires the transaction root hash on the public block chain platform block, verifies the validity of the transaction private chain block head through the public chain path and the public key corresponding to the private chain, acquires the root hash corresponding to the private transaction from the private chain block head, and verifies the validity of the private transaction through the private chain path.
3. The method as claimed in claim 1, wherein the blockwise head of the private chain includes a previous hash value, a transaction root, and metadata changes, the blockwise body includes specific information of the transaction, the metadata changes include changes of information such as data category, queryable keyword set, data format, etc., the transaction category in the transaction structure is data classification in the transaction, and the keyword key value pair is a keyword set for third-party query.
4. The method as claimed in claim 1, wherein the public link block header includes hash value of a previous block, transaction root, and private link metadata status, the block body includes transaction information including private link block header, the private link block header includes the previous block hash, and the transaction root and metadata information change are used to query and parse private link data and verify whether the data satisfies query conditions.
5. The blockchain-based private data sharing method according to claim 1, wherein the performing of the transaction under the blockchain-based private data sharing method includes the following steps:
a third party sends a data request to a specific private chain through a platform;
the third party deploys the contract and deposits the amount due into the intelligent contract, and the private link platform deposits the mortgage assets into the contract;
the private chain platform sends the corresponding data and the data certificate to a requester;
and the requester verifies the validity of the information, if the information is valid, the contract sends all the assets to the account of the private link platform, and if the private link platform is malicious, all the assets are sent to the requester.
CN202010239239.XA 2020-03-30 2020-03-30 Private data sharing method based on block chain Active CN111506926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010239239.XA CN111506926B (en) 2020-03-30 2020-03-30 Private data sharing method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010239239.XA CN111506926B (en) 2020-03-30 2020-03-30 Private data sharing method based on block chain

Publications (2)

Publication Number Publication Date
CN111506926A true CN111506926A (en) 2020-08-07
CN111506926B CN111506926B (en) 2022-04-29

Family

ID=71864112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010239239.XA Active CN111506926B (en) 2020-03-30 2020-03-30 Private data sharing method based on block chain

Country Status (1)

Country Link
CN (1) CN111506926B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559819A (en) * 2020-12-16 2021-03-26 深圳市德邦物流有限公司 Logistics information query method and device, electronic equipment and storage medium
CN112766965A (en) * 2021-01-25 2021-05-07 天津理工大学 Privacy protection data sharing method based on intelligent contract

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651346A (en) * 2016-11-28 2017-05-10 上海凯岸信息科技有限公司 Block chain-based credit investigation data sharing and trading system
CN106780007A (en) * 2016-11-28 2017-05-31 树读(上海)信息科技有限公司 A kind of collage-credit data is shared and transaction system
CN109472601A (en) * 2018-11-21 2019-03-15 北京蓝石环球区块链科技有限公司 The block chain framework of privacy transaction can be supervised
CN110717190A (en) * 2019-10-09 2020-01-21 重庆特斯联智慧科技股份有限公司 Distributed data storage method and device and data storage equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651346A (en) * 2016-11-28 2017-05-10 上海凯岸信息科技有限公司 Block chain-based credit investigation data sharing and trading system
CN106780007A (en) * 2016-11-28 2017-05-31 树读(上海)信息科技有限公司 A kind of collage-credit data is shared and transaction system
CN109472601A (en) * 2018-11-21 2019-03-15 北京蓝石环球区块链科技有限公司 The block chain framework of privacy transaction can be supervised
CN110717190A (en) * 2019-10-09 2020-01-21 重庆特斯联智慧科技股份有限公司 Distributed data storage method and device and data storage equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559819A (en) * 2020-12-16 2021-03-26 深圳市德邦物流有限公司 Logistics information query method and device, electronic equipment and storage medium
CN112766965A (en) * 2021-01-25 2021-05-07 天津理工大学 Privacy protection data sharing method based on intelligent contract

Also Published As

Publication number Publication date
CN111506926B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
US11949670B2 (en) Method and system for trustworthiness using digital certificates
US20210273810A1 (en) Debt Recordation to Blockchains
CN111027971B (en) Method, proxy node and medium for determining accounting node in blockchain network
US11620642B2 (en) Digital contracts in blockchain environments
CN107180350B (en) Method, device and system for multi-party sharing transaction metadata based on block chain
CN108462724B (en) Data sharing method, device, system, member node and readable storage medium
CN108665372B (en) Information processing, inquiring and storing method and device based on block chain
CN105976232B (en) Asset transaction method and device
WO2020186788A1 (en) Blockchain-based certificate verification method and device, storage medium, and electronic device
TW202040447A (en) Credit recording and inquiring method and device based on block chain and electronic equipment
US20160034896A1 (en) SYSTEMS AND METHODS FOR EXTENDING IDENTITY ATTRIBUTES AND AUTHENTICATION FACTORS IN AN ePAYMENT ADDRESS REGISTRY
CN102246194B (en) Improved automated trading system
CN110275891B (en) Artificial intelligence software market
US20060277092A1 (en) System and method for a peer to peer exchange of consumer information
CN107240001A (en) Transaction method and system for digital assets
US20140108258A1 (en) System and method for an anonymous exchange of private data
WO2019032089A1 (en) Blockchain architecture with record security
GB2337353A (en) Method of generating product survey information in an electronic payment system
CN111506926B (en) Private data sharing method based on block chain
US7133842B2 (en) System, method and program for bidding for best solution process execution in a heterogeneous network
CN114900290A (en) Data transaction model and privacy protection method based on block chain
CN111429134A (en) Data transaction method and device based on block chain
US11570005B2 (en) Systems and methods for proving immutability of blockchains
CN111444261A (en) Enterprise data sharing model based on block chain
US11373202B2 (en) Method and system for referral fraud prevention via blockchain

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