CN113536346A - Picture sharing method based on block chain - Google Patents

Picture sharing method based on block chain Download PDF

Info

Publication number
CN113536346A
CN113536346A CN202110823019.6A CN202110823019A CN113536346A CN 113536346 A CN113536346 A CN 113536346A CN 202110823019 A CN202110823019 A CN 202110823019A CN 113536346 A CN113536346 A CN 113536346A
Authority
CN
China
Prior art keywords
picture
block chain
data
downloading
digital watermark
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.)
Pending
Application number
CN202110823019.6A
Other languages
Chinese (zh)
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.)
Beijing Jingan Yun Xin Technology Co ltd
Original Assignee
Beijing Jingan Yun Xin 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 Beijing Jingan Yun Xin Technology Co ltd filed Critical Beijing Jingan Yun Xin Technology Co ltd
Priority to CN202110823019.6A priority Critical patent/CN113536346A/en
Publication of CN113536346A publication Critical patent/CN113536346A/en
Pending legal-status Critical Current

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
    • 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
    • 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

Abstract

The invention discloses a picture sharing method based on a block chain, which comprises the following steps: s1, encrypting the picture data, uploading the encrypted picture data to a block chain, and sharing the picture; s2, downloading the encrypted pictures uploaded to the block chain; s3, verifying whether the downloaded picture is tampered; the file is not directly stored in the block chain, but stored in a decentralized file storage system IPFS, so that the size of the blocks in the block chain is reduced, the transaction speed of a block chain network is improved, and meanwhile, a supervisor can process the picture data under the condition that plaintext data are not known.

Description

Picture sharing method based on block chain
Technical Field
The invention relates to the technical field of data sharing, in particular to a picture sharing method based on a block chain.
Background
Digital pictures are common data, in most of the prior art schemes, pictures are transmitted and shared offline through portable storage equipment, due to the requirements of the acquisition source and the legality of the pictures, tracking and auditing are inconvenient to perform in offline transmission, and picture data can be tampered through various software, so that the integrity, authenticity, accuracy and legality of files cannot be verified.
Disclosure of Invention
The present invention is directed to a method for sharing pictures based on a block chain, so as to solve the problems mentioned in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
the picture sharing method based on the block chain comprises the following steps:
s1, encrypting the picture data, uploading the encrypted picture data to a block chain, and sharing the picture;
s2, downloading the encrypted pictures uploaded to the block chain;
and S3, verifying whether the downloaded picture is tampered.
Preferably, the specific steps of the picture uploading sharing process are as follows:
s101, receiving encrypted picture data by a block chain;
s102, verifying the legality of the shared encrypted picture by using a homomorphic encryption method and/or a zero-knowledge proof method, and making a consensus on a verification result;
s103, placing the picture data passing the verification into an IPFS file system;
s104, calculating the unique identifier of the picture based on a homomorphic encryption method, and embedding a digital watermark in the picture data;
and S105, storing the unique identifier of the picture and the digital watermark in the block chain.
Preferably, the specific steps of the picture downloading process are as follows:
S201, downloading a destination connection block chain node, and authenticating the identity of the destination by the node;
s202, if the downloading destination terminal has the access right of the picture data, reading the picture data from the IPFS file system and returning the picture data to the downloading destination terminal;
s203, the downloading destination terminal decrypts the data based on the preset private key to obtain the picture plaintext embedded with the digital watermark.
Preferably, the specific steps of the picture tampering verification process are as follows:
s301, receiving picture plaintext data embedded with digital watermarks by a downloading destination;
s302, calculating a unique identifier of the picture, and taking block data through the unique identifier;
s303, the downloading destination end extracts the digital watermark information in the picture data, compares the digital watermark information with the digital watermark recorded in the block, and if the digital watermark information is consistent with the digital watermark recorded in the block, the picture is not tampered.
The composite verification method in the step S102 is to preset a homomorphic encryption method and a zero-knowledge verification method in the upload node, and verify the encrypted picture data by combining the homomorphic encryption method and the zero-knowledge verification method.
The system constructed by the picture sharing method based on the block chain comprises a block chain network, an uploading node, a downloading destination end, a block chain access node and an IPFS file system, wherein the block chain network is constructed based on the existing Internet of things, a homomorphic encryption method and/or a zero-knowledge proof method are/is arranged in the uploading node, a preset private key is arranged in the downloading destination end, and the IPFS file system stores picture identification data and digital watermarks.
Compared with the prior art, the invention has the beneficial effects that: the file is not directly stored in the block chain, but stored in a decentralized file storage system IPFS, so that the size of the blocks in the block chain is reduced, the transaction speed of a block chain network is improved, and meanwhile, a supervisor can process the picture data under the condition that plaintext data are not known.
Detailed Description
The technical solutions will be described clearly and completely in the following with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
The picture sharing method based on the block chain comprises the following steps:
s1, encrypting the picture data, uploading the encrypted picture data to a block chain, and sharing the picture;
s2, downloading the encrypted pictures uploaded to the block chain;
and S3, verifying whether the downloaded picture is tampered.
Specifically, the specific steps of the picture uploading sharing process are as follows:
S101, receiving encrypted picture data by a block chain;
s102, verifying the legality of the shared encrypted picture by using a homomorphic encryption method and/or a zero-knowledge proof method, and making a consensus on a verification result;
s103, placing the picture data passing the verification into an IPFS file system;
s104, calculating the unique identifier of the picture based on a homomorphic encryption method, and embedding a digital watermark in the picture data;
and S105, storing the unique identifier of the picture and the digital watermark in the block chain.
Specifically, the specific steps of the picture downloading process are as follows:
s201, downloading a destination connection block chain node, and authenticating the identity of the destination by the node;
s202, if the downloading destination terminal has the access right of the picture data, reading the picture data from the IPFS file system and returning the picture data to the downloading destination terminal;
s203, the downloading destination terminal decrypts the data based on the preset private key to obtain the picture plaintext embedded with the digital watermark.
Specifically, the specific steps of the picture tampering verification process are as follows:
s301, receiving picture plaintext data embedded with digital watermarks by a downloading destination;
s302, calculating a unique identifier of the picture, and taking block data through the unique identifier;
S303, the downloading destination end extracts the digital watermark information in the picture data, compares the digital watermark information with the digital watermark recorded in the block, and if the digital watermark information is consistent with the digital watermark recorded in the block, the picture is not tampered.
The composite verification method in the step S102 is to preset a homomorphic encryption method and a zero-knowledge verification method in the upload node, and verify the encrypted picture data by combining the homomorphic encryption method and the zero-knowledge verification method.
The system constructed by the picture sharing method based on the block chain comprises a block chain network, an uploading node, a downloading destination end, a block chain access node and an IPFS file system, wherein the block chain network is constructed based on the existing Internet of things, a homomorphic encryption method and/or a zero-knowledge proof method are/is arranged in the uploading node, a preset private key is arranged in the downloading destination end, and the IPFS file system stores picture identification data and digital watermarks.
In the description of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "fixed" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The standard parts used in the invention can be purchased from the market, the special-shaped parts can be customized according to the description, the specific connection mode of each part adopts the conventional means of mature bolts, rivets, welding and the like in the prior art, the machinery, the parts and the equipment adopt the conventional type in the prior art, and the circuit connection adopts the conventional connection mode in the prior art, so the details are not described.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. The picture sharing method based on the block chain is characterized by comprising the following steps:
s1, encrypting the picture data, uploading the encrypted picture data to a block chain, and sharing the picture;
s2, downloading the encrypted pictures uploaded to the block chain;
and S3, verifying whether the downloaded picture is tampered.
2. The method according to claim 1, wherein the picture uploading sharing process comprises the following specific steps:
S101, receiving encrypted picture data by a block chain;
s102, verifying the legality of the shared encrypted picture by using a composite verification method, and making a consensus on a verification result;
s103, placing the picture data passing the verification into an IPFS file system;
s104, calculating the unique identifier of the picture based on a homomorphic encryption method, and embedding a digital watermark in the picture data;
and S105, storing the unique identifier of the picture and the digital watermark in the block chain.
3. The method according to claim 1, wherein the specific steps of the picture downloading process are as follows:
s201, downloading a destination connection block chain node, and authenticating the identity of the destination by the node;
s202, if the downloading destination terminal has the access right of the picture data, reading the picture data from the IPFS file system and returning the picture data to the downloading destination terminal;
s203, the downloading destination terminal decrypts the data based on the preset private key to obtain the picture plaintext embedded with the digital watermark.
4. The method according to claim 1, wherein the specific steps of the picture tampering verification process are as follows:
S301, receiving picture plaintext data embedded with digital watermarks by a downloading destination;
s302, calculating a unique identifier of the picture, and taking block data through the unique identifier;
s303, the downloading destination end extracts the digital watermark information in the picture data, compares the digital watermark information with the digital watermark recorded in the block, and if the digital watermark information is consistent with the digital watermark recorded in the block, the picture is not tampered.
5. The method for sharing pictures based on block chains according to claim 2, wherein the composite verification method in S102 is to preset a homomorphic encryption method and a zero-knowledge proof method in the uploading node, and verify the encrypted picture data by combining the two or both.
6. The system constructed by the picture sharing method based on the block chain is characterized by comprising a block chain network, an uploading node, a downloading destination end, a block chain access node and an IPFS file system, wherein the block chain network is constructed based on the existing Internet of things, a homomorphic encryption method and/or a zero-knowledge proof method are/is arranged in the uploading node, a preset private key is arranged in the downloading destination end, and the IPFS file system stores picture identification data and digital watermarks.
CN202110823019.6A 2021-07-21 2021-07-21 Picture sharing method based on block chain Pending CN113536346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110823019.6A CN113536346A (en) 2021-07-21 2021-07-21 Picture sharing method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110823019.6A CN113536346A (en) 2021-07-21 2021-07-21 Picture sharing method based on block chain

Publications (1)

Publication Number Publication Date
CN113536346A true CN113536346A (en) 2021-10-22

Family

ID=78129112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110823019.6A Pending CN113536346A (en) 2021-07-21 2021-07-21 Picture sharing method based on block chain

Country Status (1)

Country Link
CN (1) CN113536346A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110197081A (en) * 2019-05-30 2019-09-03 北京理工大学 A kind of cloud data sharing secret protection scheme based on block chain
CN111145069A (en) * 2019-12-03 2020-05-12 支付宝(杭州)信息技术有限公司 Image watermarking processing method and device based on block chain
CN112100665A (en) * 2020-09-23 2020-12-18 江苏四象软件有限公司 Data sharing system based on block chain
CN112580073A (en) * 2020-12-17 2021-03-30 昆明理工大学 Evidence storing method and system based on block chain and IPFS
CN113034128A (en) * 2021-03-16 2021-06-25 昆明理工大学 Block chain-based data transaction and right confirmation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110197081A (en) * 2019-05-30 2019-09-03 北京理工大学 A kind of cloud data sharing secret protection scheme based on block chain
CN111145069A (en) * 2019-12-03 2020-05-12 支付宝(杭州)信息技术有限公司 Image watermarking processing method and device based on block chain
CN112100665A (en) * 2020-09-23 2020-12-18 江苏四象软件有限公司 Data sharing system based on block chain
CN112580073A (en) * 2020-12-17 2021-03-30 昆明理工大学 Evidence storing method and system based on block chain and IPFS
CN113034128A (en) * 2021-03-16 2021-06-25 昆明理工大学 Block chain-based data transaction and right confirmation method

Similar Documents

Publication Publication Date Title
CN109409122B (en) File storage method, electronic device and storage medium
CN108092982B (en) Data storage method and system based on alliance chain
CN107295002B (en) Cloud data storage method and server
CN109819443B (en) Registration authentication method, device and system based on block chain
CN110535662B (en) Method and system for realizing user operation record based on block chain data certificate storage service
US20200372184A1 (en) Method and arrangement for detecting digital content tampering
CN100576795C (en) Public security broadcast control media management and its complete authentication method of not distorted of identification
CN102916971B (en) Electronic data curing system and method
CN109472164A (en) The verification method and its network and electronic equipment of contract dataset
CN111464980A (en) Electronic evidence obtaining device and method based on block chain in Internet of vehicles environment
Thompson The preservation of digital signatures on the blockchain
CN111538784B (en) Digital asset transaction method, device and storage medium based on blockchain
CN109491965A (en) The storage method and its network and electronic equipment of purchase sale of electricity contract
CN111369248B (en) Digital product safe transaction method and system based on blockchain technology
CN101110982A (en) Method for acquiring evidence using wireless terminal and server
KR20120053398A (en) Validation system and verification method including signature device and verification device to verify contents
CN112769758B (en) Credible Internet of things gas meter based on block chain and credible method of local and cloud
CN115567312B (en) Alliance chain data authority management system and method capable of meeting various scenes
CN113254972A (en) Information security management method based on block chain
CN110445782B (en) Multimedia safe broadcast control system and method
CN112507352A (en) Data sharing method and system based on block chain
CN112583772B (en) Data acquisition and storage platform
CN113536346A (en) Picture sharing method based on block chain
CN113840115A (en) Monitoring video data encryption transmission system and method based on block chain
CN112235543A (en) Video encryption 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