Movatterモバイル変換


[0]ホーム

URL:


CN111444479A - A method and system for verifying ownership of digital fingerprints - Google Patents

A method and system for verifying ownership of digital fingerprints
Download PDF

Info

Publication number
CN111444479A
CN111444479ACN201811647524.4ACN201811647524ACN111444479ACN 111444479 ACN111444479 ACN 111444479ACN 201811647524 ACN201811647524 ACN 201811647524ACN 111444479 ACN111444479 ACN 111444479A
Authority
CN
China
Prior art keywords
digital fingerprint
format
verification
original picture
digital
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
CN201811647524.4A
Other languages
Chinese (zh)
Other versions
CN111444479B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Qihoo Technology Co LtdfiledCriticalBeijing Qihoo Technology Co Ltd
Priority to CN201811647524.4ApriorityCriticalpatent/CN111444479B/en
Publication of CN111444479ApublicationCriticalpatent/CN111444479A/en
Application grantedgrantedCritical
Publication of CN111444479BpublicationCriticalpatent/CN111444479B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了一种数字指纹所有权的验证方法及系统,该方法包括接收被验方用户上传的原创图片,为原创图片生成私钥和公钥对,并生成原创图片的数字指纹;将数字指纹和公钥发送至验证服务器,若验证服务器在区块链上查询存在与接收的数字指纹对应的数字指纹,则验证数字指纹有效;接收验证服务器的验证文本,采用预设哈希算法计算验证文本的哈希值,利用私钥对验证文本的哈希值加密生成验证文本的用户签名;将验证文本的用户签名发至验证服务器,由验证服务器利用公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。由此,本发明方案的数字指纹验证可以有效地验证数字指纹的存在性及用户所有权。

Figure 201811647524

The invention provides a method and system for verifying ownership of digital fingerprints. The method includes receiving an original picture uploaded by a user to be tested, generating a private key and a public key pair for the original picture, and generating a digital fingerprint of the original picture; The public key is sent to the verification server. If the verification server queries the blockchain for the existence of a digital fingerprint corresponding to the received digital fingerprint, the verification digital fingerprint is valid; after receiving the verification text from the verification server, the preset hash algorithm is used to calculate the value of the verification text. Hash value, use the private key to encrypt the hash value of the verification text to generate the user signature of the verification text; send the user signature of the verification text to the verification server, and the verification server uses the public key to decrypt the user signature of the verification text, if the decryption is successful , to confirm that the tested user has the ownership of the digital fingerprint of the original picture. Therefore, the digital fingerprint verification of the solution of the present invention can effectively verify the existence of the digital fingerprint and the user's ownership.

Figure 201811647524

Description

Translated fromChinese
一种数字指纹所有权的验证方法及系统A method and system for verifying ownership of digital fingerprints

技术领域technical field

本发明涉及版权验证技术领域,特别是涉及一种数字指纹所有权的验证方法及系统。The invention relates to the technical field of copyright verification, in particular to a method and system for verifying ownership of digital fingerprints.

背景技术Background technique

信息的过载使得大众的注意力成为新的稀缺资源,为了抢夺大众的注意力,大量低质量的吸引眼球的内容被制造出来充斥着屏幕,篡改和抄袭他人作品的行为严重挤压了优质内容创造者的生存空间。因此,保护内容创造者权益,帮助原创价值变现是当前互联网优质内容创造者的迫切需求。The overload of information makes the public's attention a new scarce resource. In order to snatch the public's attention, a large number of low-quality eye-catching content are produced to fill the screen, and the behavior of tampering and plagiarizing other people's works seriously squeezes the creation of high-quality content. the living space of the person. Therefore, protecting the rights and interests of content creators and helping to realize the original value are the urgent needs of the creators of high-quality Internet content.

区块链的去中心化,公开,透明和不可篡改特性是能够保存版权存证的理想载体,现有区块链存证方式是直接将待存证文件哈希值存储至链上,仅证明了作品的存在性。认证格式扩展性较差,无法支持交易等应用场景。The decentralization, openness, transparency and non-tampering characteristics of the blockchain are ideal carriers for preserving copyright certificates. The existing blockchain certificate storage method is to directly store the hash value of the file to be stored on the chain, only to prove the existence of the work. The authentication format has poor scalability and cannot support application scenarios such as transactions.

现有技术中,使用文件哈希值作为存证内容,在进行存证时,用户选择一种哈希算法,如md5,计算待存证文件哈希特征,将该特征写入区块链。验证时,出示该文件原文,用相同算法计算哈希特征,与区块链中哈希特征及区块链时间戳进行对比,从而确定该文件的上传时间。但是,该技术仅能证明作品存在性,认证格式扩展性较差,无法支持交易等应用场景,生成的指纹信息多为哈希码的形式(例如5d45f1373f3c9f5eb1d32af361998240),可读性较差,用户很难书写和分享。因此,亟待解决现有技术中存在的存证格式扩展性、可读性较差的问题。In the prior art, the file hash value is used as the content of the certificate, and when the certificate is stored, the user selects a hash algorithm, such as md5, calculates the hash feature of the file to be stored, and writes the feature into the blockchain. During verification, show the original text of the file, calculate the hash feature with the same algorithm, and compare it with the hash feature in the blockchain and the timestamp of the blockchain to determine the upload time of the file. However, this technology can only prove the existence of the work, and the authentication format has poor scalability, and cannot support application scenarios such as transactions. Write and share. Therefore, there is an urgent need to solve the problems of poor scalability and readability of the certificate storage format in the prior art.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的数字指纹所有权的验证方法及系统。In view of the above problems, the present invention is proposed to provide a method and system for verifying ownership of digital fingerprints that overcome the above problems or at least partially solve the above problems.

依据本发明的一方面,提供了一种数字指纹所有权的验证方法,包括:According to an aspect of the present invention, a method for verifying ownership of a digital fingerprint is provided, comprising:

接收被验方用户上传的原创图片,为所述原创图片生成私钥和公钥对,基于所述私钥生成原创图片的数字指纹;Receive the original image uploaded by the tested user, generate a private key and public key pair for the original image, and generate a digital fingerprint of the original image based on the private key;

将所述数字指纹和所述公钥发送至验证服务器,由所述验证服务器在区块链上查询是否存在与接收的数字指纹对应的数字指纹,若是,则验证所述数字指纹有效;Sending the digital fingerprint and the public key to the verification server, and the verification server inquires on the blockchain whether there is a digital fingerprint corresponding to the received digital fingerprint, and if so, verifies that the digital fingerprint is valid;

接收来自验证服务器的验证文本,采用预设哈希算法计算所述验证文本的哈希值,利用所述私钥对验证文本的哈希值加密,生成验证文本的用户签名;Receive the verification text from the verification server, use a preset hash algorithm to calculate the hash value of the verification text, encrypt the hash value of the verification text with the private key, and generate a user signature of the verification text;

将验证文本的用户签名发至验证服务器,由所述验证服务器利用所述公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。The user signature of the verification text is sent to the verification server, and the verification server decrypts the user signature of the verification text by using the public key. If the decryption is successful, it is determined that the verified user has ownership of the digital fingerprint of the original picture.

可选地,基于所述私钥生成原创图片的数字指纹,包括:Optionally, generating a digital fingerprint of the original picture based on the private key, including:

采用预设哈希算法计算所述原创图片的哈希值;Calculate the hash value of the original image by using a preset hash algorithm;

利用所述私钥对原创图片的哈希值加密以生成所述原创图片的用户签名;Encrypt the hash value of the original picture with the private key to generate a user signature of the original picture;

将所述原创图片的用户签名和所述公钥组合生成原创图片的数字指纹。The user signature of the original picture and the public key are combined to generate a digital fingerprint of the original picture.

可选地,由所述验证服务器在区块链上查询是否存在与接收的数字指纹对应的数字指纹,包括:Optionally, the verification server inquires whether there is a digital fingerprint corresponding to the received digital fingerprint on the blockchain, including:

识别出所述区块链上预设格式的数字指纹所对应的格式信息;Identify the format information corresponding to the digital fingerprint in the preset format on the blockchain;

若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, converting the digital fingerprint of the original picture into a digital fingerprint of the same format as the preset format;

所述验证服务器在区块链上查询是否存在与格式转换后的数字指纹对应的数字指纹,若是,则验证所述数字指纹有效。The verification server inquires on the blockchain whether there is a digital fingerprint corresponding to the format-converted digital fingerprint, and if yes, verifies that the digital fingerprint is valid.

可选地,识别出所述区块链上预设格式的数字指纹所对应的格式信息,包括:Optionally, identifying the format information corresponding to the digital fingerprint in the preset format on the blockchain, including:

检测所述区块链上预设格式的数字指纹中的版本号,其中,所述版本号用于标识不同数字指纹的预设格式;Detecting the version number in the digital fingerprint of the preset format on the blockchain, wherein the version number is used to identify the preset format of different digital fingerprints;

依据所述数字指纹中的版本号确定所述数字指纹所对应的格式信息。The format information corresponding to the digital fingerprint is determined according to the version number in the digital fingerprint.

可选地,若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹,包括:Optionally, if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, the digital fingerprint of the original picture is converted into a digital fingerprint of the same format as the preset format, include:

若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述预设格式为原始二进制字符串格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the preset format is the original binary string format;

将原创图片的数字指纹转换为与原始二进制字符串格式的数字指纹。Convert the digital fingerprint of the original picture to a digital fingerprint in the format of the original binary string.

可选地,若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹,包括:Optionally, if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, the digital fingerprint of the original picture is converted into a digital fingerprint of the same format as the preset format, include:

若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述原创图片的数字指纹的格式为原始二进制字符串格式、所述预设格式为数字DNA格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the format of the digital fingerprint of the original picture is the original binary string format, and the preset format is the digital DNA format ;

对所述原创图片的数字指纹进行base58编码,得到数字DNA格式的数字指纹。Base58 encoding is performed on the digital fingerprint of the original picture to obtain a digital fingerprint in digital DNA format.

可选地,若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹,包括:Optionally, if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, the digital fingerprint of the original picture is converted into a digital fingerprint of the same format as the preset format, include:

若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述原创图片的数字指纹的格式为数字DNA格式、所述预设格式为数字DNA的缩写格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the format of the digital fingerprint of the original picture is a digital DNA format, and the preset format is an abbreviated format of digital DNA ;

从原创图片的数字指纹中截取预设数量的字段,将截取到的预设数量的字段作为所述数字指纹。A preset number of fields are intercepted from the digital fingerprint of the original picture, and the intercepted preset number of fields are used as the digital fingerprint.

可选地,在由所述验证服务器利用所述公钥对验证文本的用户签名解密成功之后,还包括:Optionally, after the verification server successfully decrypts the user signature of the verification text by using the public key, the method further includes:

接收所述用户上传的原创图片的其他属性信息,将接收的其他属性信息发送至验证服务器,由所述验证服务器依据所述原创图片的数字指纹查找预先存储的原创图片的其他属性信息;Receive other attribute information of the original picture uploaded by the user, send the received other attribute information to the verification server, and the verification server searches for other attribute information of the pre-stored original picture according to the digital fingerprint of the original picture;

若接收的其他属性信息与查找到的原创图片的其他属性信息一致,确定被验方用户对原创图片的数字指纹具有所有权。If the other attribute information received is consistent with the other attribute information of the found original picture, it is determined that the tested user has ownership of the digital fingerprint of the original picture.

可选地,在确定被验方用户对原创图片的数字指纹具有所有权之后,还包括:Optionally, after it is determined that the tested user owns the digital fingerprint of the original picture, the method further includes:

接收被验方用户对其所有权的原创图片的图片管理请求或搜索请求;Receive image management requests or search requests for original images owned by the inspected user;

依据所述图片管理请求,对与所述图片管理请求对应的图片执行管理操作,所述管理操作包括修改操作、删除操作、添加操作中的至少一项;According to the picture management request, a management operation is performed on the picture corresponding to the picture management request, and the management operation includes at least one of a modification operation, a deletion operation, and an addition operation;

依据所述搜索请求,从预先存储的多个图片中搜索与所述搜索请求对应的图片,并展示搜索到的图片。According to the search request, a picture corresponding to the search request is searched from a plurality of pre-stored pictures, and the searched picture is displayed.

可选地,所述原创图片的其他属性信息包括以下至少之一:Optionally, other attribute information of the original picture includes at least one of the following:

类型、标题、创作者信息、作品简介。Type, title, creator information, work introduction.

依据本发明的另一方面,还提供了一种数字指纹所有权的验证系统,包括终端和验证服务器,其中,所述终端包括生成模块和发送模块,所述验证服务器包括验证模块和确定模块;According to another aspect of the present invention, a verification system for digital fingerprint ownership is also provided, including a terminal and a verification server, wherein the terminal includes a generating module and a sending module, and the verification server includes a verification module and a determination module;

所述生成模块,适于接收被验方用户上传的原创图片,为所述原创图片生成私钥和公钥对,基于所述私钥生成原创图片的数字指纹;The generation module is adapted to receive the original picture uploaded by the tested user, generate a private key and a public key pair for the original picture, and generate a digital fingerprint of the original picture based on the private key;

所述发送模块,适于将所述数字指纹和所述公钥发送至所述验证服务器;The sending module is adapted to send the digital fingerprint and the public key to the verification server;

所述验证模块,适于接收所述数字指纹和所述公钥,在区块链上查询是否存在与接收的数字指纹对应的数字指纹,若是,则验证所述数字指纹有效;The verification module is adapted to receive the digital fingerprint and the public key, and query whether there is a digital fingerprint corresponding to the received digital fingerprint on the blockchain, and if so, verify that the digital fingerprint is valid;

所述生成模块,还适于接收来自验证服务器的验证文本,采用预设哈希算法计算所述验证文本的哈希值,利用所述私钥对验证文本的哈希值加密,生成验证文本的用户签名;The generating module is also adapted to receive the verification text from the verification server, use a preset hash algorithm to calculate the hash value of the verification text, encrypt the hash value of the verification text with the private key, and generate a hash value of the verification text. User signature;

所述发送模块,还适于将验证文本的用户签名发至所述验证服务器;The sending module is also adapted to send the user signature of the verification text to the verification server;

所述确定模块,适于接收验证文本的用户签名,利用所述公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。The determining module is adapted to receive the user signature of the verification text, and decrypt the user signature of the verification text by using the public key.

可选地,所述生成模块,还适于:Optionally, the generating module is also adapted to:

采用预设哈希算法计算所述原创图片的哈希值;Calculate the hash value of the original image by using a preset hash algorithm;

利用所述私钥对原创图片的哈希值加密以生成所述原创图片的用户签名;Encrypt the hash value of the original picture with the private key to generate a user signature of the original picture;

将所述原创图片的用户签名和所述公钥组合生成原创图片的数字指纹。The user signature of the original picture and the public key are combined to generate a digital fingerprint of the original picture.

可选地,所述系统还包括:Optionally, the system further includes:

识别模块,适于识别出所述区块链上预设格式的数字指纹所对应的格式信息;an identification module, adapted to identify the format information corresponding to the digital fingerprint in the preset format on the blockchain;

转换模块,适于若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹;A conversion module, adapted to convert the digital fingerprint of the original picture into a digital fingerprint of the same format as the preset format if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format ;

所述验证模块,还适于所述验证服务器在区块链上查询是否存在与格式转换后的数字指纹对应的数字指纹,若是,则验证所述数字指纹有效。The verification module is also suitable for the verification server to inquire whether there is a digital fingerprint corresponding to the format-converted digital fingerprint on the blockchain, and if yes, verify that the digital fingerprint is valid.

可选地,所述识别模块,还适于:Optionally, the identification module is also adapted to:

检测所述区块链上预设格式的数字指纹中的版本号,其中,所述版本号用于标识不同数字指纹的预设格式;Detecting the version number in the digital fingerprint of the preset format on the blockchain, wherein the version number is used to identify the preset format of different digital fingerprints;

依据所述数字指纹中的版本号确定所述数字指纹所对应的格式信息。The format information corresponding to the digital fingerprint is determined according to the version number in the digital fingerprint.

可选地,所述转换模块,还适于:Optionally, the conversion module is further adapted to:

若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述预设格式为原始二进制字符串格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the preset format is the original binary string format;

将原创图片的数字指纹转换为与原始二进制字符串格式的数字指纹。Convert the digital fingerprint of the original picture to a digital fingerprint in the format of the original binary string.

可选地,所述转换模块,还适于:Optionally, the conversion module is further adapted to:

若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述原创图片的数字指纹的格式为原始二进制字符串格式、所述预设格式为数字DNA格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the format of the digital fingerprint of the original picture is the original binary string format, and the preset format is the digital DNA format ;

对所述原创图片的数字指纹进行base58编码,得到数字DNA格式的数字指纹。Base58 encoding is performed on the digital fingerprint of the original picture to obtain a digital fingerprint in digital DNA format.

可选地,所述转换模块,还适于:Optionally, the conversion module is further adapted to:

若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述原创图片的数字指纹的格式为数字DNA格式、所述预设格式为数字DNA的缩写格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the format of the digital fingerprint of the original picture is a digital DNA format, and the preset format is an abbreviated format of digital DNA ;

从原创图片的数字指纹中截取预设数量的字段,将截取到的预设数量的字段作为所述数字指纹。A preset number of fields are intercepted from the digital fingerprint of the original picture, and the intercepted preset number of fields are used as the digital fingerprint.

可选地,所述发送模块,还适于在所述确定模块利用所述公钥对验证文本的用户签名解密成功之后,接收所述被验方用户上传的原创图片的其他属性信息,将接收的其他属性信息发送至验证服务器;Optionally, the sending module is further adapted to receive other attribute information of the original picture uploaded by the tested party user after the determination module successfully decrypts the user signature of the verification text by using the public key, and sends the received Other attribute information is sent to the authentication server;

所述确定模块,还适于接收所述其他属性信息,依据所述原创图片的数字指纹查找预先存储的原创图片的其他属性信息,若接收的其他属性信息与查找到的原创图片的其他属性信息一致,确定被验方用户对原创图片的数字指纹具有所有权。The determining module is also adapted to receive the other attribute information, and search for other attribute information of the pre-stored original image according to the digital fingerprint of the original image. It is determined that the user of the tested party has the ownership of the digital fingerprint of the original picture.

可选地,所述终端还包括:Optionally, the terminal further includes:

接收模块,适于在所述确定模块确定被验方用户对原创图片的数字指纹具有所有权之后,接收被验方用户对其所有权的原创图片的图片管理请求或搜索请求;a receiving module, adapted to receive a picture management request or a search request of the original picture owned by the tested user after the determining module determines that the tested user has ownership of the digital fingerprint of the original picture;

管理模块,适于依据所述图片管理请求,对与所述图片管理请求对应的图片执行管理操作,所述管理操作包括修改操作、删除操作、添加操作中的至少一项;a management module, adapted to perform a management operation on the picture corresponding to the picture management request according to the picture management request, and the management operation includes at least one of a modification operation, a deletion operation, and an addition operation;

搜索展示模块,适于依据所述搜索请求,从预先存储的多个图片中搜索与所述搜索请求对应的图片,并展示搜索到的图片。The search and display module is adapted to search for a picture corresponding to the search request from a plurality of pre-stored pictures according to the search request, and display the searched picture.

可选地,所述原创图片的其他属性信息包括以下至少之一:Optionally, other attribute information of the original picture includes at least one of the following:

类型、标题、创作者信息、作品简介。Type, title, creator information, work introduction.

依据本发明的再一方面,还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行上文任意实施例中的数字指纹所有权的验证方法。According to yet another aspect of the present invention, a computer storage medium is also provided, the computer storage medium stores computer program code, when the computer program code is executed on a computing device, causes the computing device to execute any of the above. The verification method of digital fingerprint ownership in the embodiment.

依据本发明的又一方面,还提供了一种计算设备,包括:处理器;存储有计算机程序代码的存储器;当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行上文任意实施例中的数字指纹所有权的验证方法。According to yet another aspect of the present invention, there is also provided a computing device, comprising: a processor; a memory storing computer program code; when the computer program code is executed by the processor, it causes the computing device to execute the above The verification method of digital fingerprint ownership in any of the embodiments herein.

在本发明实施例中,在对数字指纹所有权进行验证时,首先接收被验方用户上传的原创图片,为原创图片生成私钥和公钥对,基于私钥生成原创图片的数字指纹。然后将数字指纹和公钥发送至验证服务器,由验证服务器在区块链上查询是否存在与接收的数字指纹对应的数字指纹,若是,则验证数字指纹有效。进而接收来自验证服务器的验证文本,采用预设哈希算法计算验证文本的哈希值,利用私钥对验证文本的哈希值加密,生成验证文本的用户签名。最后将验证文本的用户签名发至验证服务器,由验证服务器利用公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。由此,采用本发明方案的数字指纹验证方式不仅可以有效地验证数字指纹的存在性,还可以验证其用户所有权,即通过数字签名技术为用户提供图片版权信息的所有权证明。进一步的,本方案的整个验证过程可以不依赖于特定平台,通过去中心化应用(Decentralizedapplication,Dapp)便可以方便地实现验证。In the embodiment of the present invention, when verifying the ownership of the digital fingerprint, the original image uploaded by the tested user is first received, a private key and public key pair are generated for the original image, and the digital fingerprint of the original image is generated based on the private key. Then, the digital fingerprint and public key are sent to the verification server, and the verification server inquires on the blockchain whether there is a digital fingerprint corresponding to the received digital fingerprint. If so, the digital fingerprint is verified to be valid. Further, the verification text from the verification server is received, a preset hash algorithm is used to calculate the hash value of the verification text, and the hash value of the verification text is encrypted with the private key to generate a user signature of the verification text. Finally, the user signature of the verification text is sent to the verification server, and the verification server uses the public key to decrypt the user signature of the verification text. If the decryption is successful, it is determined that the verified user has ownership of the digital fingerprint of the original picture. Therefore, the digital fingerprint verification method of the present invention can not only effectively verify the existence of the digital fingerprint, but also verify the user's ownership, that is, the ownership certificate of the picture copyright information is provided to the user through the digital signature technology. Further, the entire verification process of this solution can be independent of a specific platform, and verification can be easily achieved through a decentralized application (Dapp).

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。The above and other objects, advantages and features of the present invention will be more apparent to those skilled in the art from the following detailed description of the specific embodiments of the present invention in conjunction with the accompanying drawings.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1示出了根据本发明一个实施例的数字指纹所有权的验证方法的流程示意图;1 shows a schematic flowchart of a method for verifying ownership of digital fingerprints according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的基于区块链的数字指纹存证方法的流程示意图;2 shows a schematic flowchart of a blockchain-based digital fingerprint storage method according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的数字指纹所有权的验证系统的结构示意图;3 shows a schematic structural diagram of a verification system for digital fingerprint ownership according to an embodiment of the present invention;

图4示出了根据本发明另一个实施例的数字指纹所有权的验证系统的结构示意图;以及4 shows a schematic structural diagram of a verification system for digital fingerprint ownership according to another embodiment of the present invention; and

图5示出了根据本发明又一个实施例的数字指纹所有权的验证系统的结构示意图。FIG. 5 shows a schematic structural diagram of a verification system for digital fingerprint ownership according to yet another embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

为解决上述技术问题,本发明实施例提供了一种数字指纹所有权的验证方法,应用于终端设备。图1示出了根据本发明一个实施例的数字指纹所有权的验证方法的流程示意图。参见图1,该方法至少包括步骤S102至步骤S108。In order to solve the above technical problem, an embodiment of the present invention provides a method for verifying ownership of a digital fingerprint, which is applied to a terminal device. FIG. 1 shows a schematic flowchart of a method for verifying ownership of a digital fingerprint according to an embodiment of the present invention. Referring to FIG. 1, the method includes at least steps S102 to S108.

步骤S102,接收被验方用户上传的原创图片,为原创图片生成私钥和公钥对,基于私钥生成原创图片的数字指纹。Step S102: Receive the original picture uploaded by the tested user, generate a private key and public key pair for the original picture, and generate a digital fingerprint of the original picture based on the private key.

步骤S104,将数字指纹和公钥发送至验证服务器,由验证服务器在区块链上查询是否存在与接收的数字指纹对应的数字指纹,若是,则验证数字指纹有效。Step S104, the digital fingerprint and the public key are sent to the verification server, and the verification server inquires on the blockchain whether there is a digital fingerprint corresponding to the received digital fingerprint, and if yes, verifies that the digital fingerprint is valid.

该步骤通过验证数字指纹的有效性,实际上也是在验证该数字指纹的存在性,即验证区块链上是否确实存在原创图片的数字指纹。In this step, by verifying the validity of the digital fingerprint, it is actually verifying the existence of the digital fingerprint, that is, verifying whether the digital fingerprint of the original picture really exists on the blockchain.

步骤S106,接收来自验证服务器的验证文本,采用预设哈希算法计算验证文本的哈希值,利用私钥对验证文本的哈希值加密,生成验证文本的用户签名。Step S106: Receive the verification text from the verification server, use a preset hash algorithm to calculate the hash value of the verification text, encrypt the hash value of the verification text with a private key, and generate a user signature of the verification text.

步骤S108,将验证文本的用户签名发至验证服务器,由验证服务器利用公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。In step S108, the user signature of the verification text is sent to the verification server, and the verification server decrypts the user signature of the verification text using the public key.

由此,采用本发明方案的数字指纹验证方式不仅可以有效地验证数字指纹的存在性,还可以验证其用户所有权,即通过数字签名技术为用户提供图片版权信息的所有权证明。进一步的,本方案的整个验证过程可以不依赖于特定平台,通过去中心化应用(Decentralized application,Dapp)便可以方便地实现验证。Therefore, the digital fingerprint verification method of the present invention can not only effectively verify the existence of the digital fingerprint, but also verify the user's ownership, that is, the ownership certificate of the picture copyright information is provided to the user through the digital signature technology. Further, the entire verification process of this solution can be independent of a specific platform, and verification can be easily achieved through a decentralized application (Dapp).

参见上文步骤S102,在本发明一实施例中,基于私钥生成原创图片的数字指纹的具体过程可以是,在获取到用户上传的原创图片之后,先采用预设哈希算法计算原创图片的哈希值。然后利用私钥对原创图片的哈希值加密以生成原创图片的用户签名。进而将原创图片的用户签名和公钥组合生成原创图片的数字指纹。Referring to the above step S102, in an embodiment of the present invention, the specific process of generating the digital fingerprint of the original picture based on the private key may be, after obtaining the original picture uploaded by the user, first use a preset hash algorithm to calculate the original picture's digital fingerprint. hash value. Then use the private key to encrypt the hash value of the original image to generate the user signature of the original image. Then, the user signature of the original image and the public key are combined to generate the digital fingerprint of the original image.

在该实施例中,预设哈希算法可以采用SHA1(Secure Hash Algorithm)算法。另外,利用私钥对原创图片的哈希值加密时,可以采用签名算法RSA(公钥加密算法)+SHA256以生成原创图片的用户签名。In this embodiment, the preset hash algorithm may use the SHA1 (Secure Hash Algorithm) algorithm. In addition, when using the private key to encrypt the hash value of the original image, the signature algorithm RSA (public key encryption algorithm) + SHA256 can be used to generate the user signature of the original image.

参见上文步骤S104,在本发明一实施例中,由于图片的数字指纹可以采用多种格式写入区块链,因此,当验证服务器在区块链上查询是否存在与接收的数字指纹对应的数字指纹时,还需要先识别出区块链上预设格式的数字指纹所对应的格式信息。若基于格式信息确定原创图片的数字指纹的格式与预设格式不同,需要将原创图片的数字指纹转换为与预设格式相同格式的数字指纹,然后再由验证服务器在区块链上查询是否存在与格式转换后的数字指纹对应的数字指纹,若存在,则验证数字指纹有效。Referring to step S104 above, in an embodiment of the present invention, since the digital fingerprint of the picture can be written into the blockchain in various formats, when the verification server queries the blockchain whether there is a digital fingerprint corresponding to the received digital fingerprint When using digital fingerprints, it is also necessary to first identify the format information corresponding to the digital fingerprints in the preset format on the blockchain. If it is determined based on the format information that the format of the digital fingerprint of the original image is different from the preset format, it is necessary to convert the digital fingerprint of the original image into a digital fingerprint of the same format as the preset format, and then the verification server will check whether it exists on the blockchain. If the digital fingerprint corresponding to the format-converted digital fingerprint exists, verify that the digital fingerprint is valid.

在本发明实施例中,按照数字指纹在实际传播中所处不同场景,可以设置多种预设格式的数字指纹,下面介绍三种数字指纹的写入格式。In the embodiment of the present invention, digital fingerprints of various preset formats can be set according to different scenarios in which digital fingerprints are actually propagated. Three digital fingerprint writing formats are described below.

格式1、原始二进制字符串格式。即将原创图片的存证数据项中包括的数字指纹以原始二进制字符串格式写入区块链。例如,数字指纹为0x00bb40895f3ad0425a5c85210cb2fb0329e1b1a4b17a27。Format 1. Raw binary string format. That is, the digital fingerprint included in the data item of the original image is written into the blockchain in the format of the original binary string. For example, the digital fingerprint is 0x00bb40895f3ad0425a5c85210cb2fb0329e1b1a4b17a27.

格式2、数字DNA格式。该格式是将原始的23byte的数字指纹转换为base58编码,该编码对明文内容进行了压缩,去除了阅读起来会产生歧义的字符,如0(零)和O(大写字母O),I(字母i的大写形式)和l(字母L的小写形式),以及多个影响双击选择的字符,如“/”、“+”。从而,该格式既能方便用户在计算机上进行复制粘贴操作,也能避免用户在手动记录时出现拼写错误。具体的,将数字指纹以数字DNA格式写入区块链时,首先对原始二进制字符串格式的数字指纹进行base58编码,得到数字DNA格式的数字指纹,然后将数字指纹以数字DNA格式写入区块链。例如,二进制格式的数字指纹为0x00bb40895f3ad0425a5c85210cb2fb0329e1b1a4b17a27,对该格式的数字指纹进行base58编码之后,得到数字DNA形式为:1sph9jUkLLejNE9rbUdgcxSVZLdeLW2。Format 2. Digital DNA format. This format is to convert the original 23byte digital fingerprint into base58 encoding, which compresses the plaintext content and removes characters that will cause ambiguity when reading, such as 0 (zero) and O (capital letter O), I (letter The uppercase form of i) and l (the lowercase form of the letter L), as well as several characters that affect double-click selection, such as "/", "+". Therefore, this format not only facilitates the user to perform copy and paste operations on the computer, but also avoids spelling errors when the user records manually. Specifically, when writing a digital fingerprint into the blockchain in digital DNA format, first base58 encode the digital fingerprint in the original binary string format to obtain a digital fingerprint in digital DNA format, and then write the digital fingerprint into the blockchain in digital DNA format. blockchain. For example, the digital fingerprint in binary format is 0x00bb40895f3ad0425a5c85210cb2fb0329e1b1a4b17a27. After base58 encoding the digital fingerprint in this format, the digital DNA format is: 1sph9jUkLLejNE9rbUdgcxSVZLdeLW2.

格式3、数字DNA的缩写。该格式是从数字DNA格式的数字指纹中截取预设数量的字段,并将截取到的预设数量的字段作为数字指纹写入区块链。例如,从格式2的数字指纹中截取前8个字母,例如:1sph9jUk。该格式的数字指纹内容简短易分辨,适合于用户记录、传播。Format 3. Abbreviation for digital DNA. This format is to intercept a preset number of fields from a digital fingerprint in digital DNA format, and write the intercepted preset number of fields into the blockchain as a digital fingerprint. For example, truncate the first 8 letters from a digital fingerprint in format 2, eg: 1sph9jUk. The digital fingerprint content in this format is short and easy to distinguish, and is suitable for user recording and dissemination.

下面分别介绍将与预设格式不同格式的数字指纹转换为预设格式数字指纹的过程。The process of converting a digital fingerprint in a format different from the preset format into a digital fingerprint in a preset format is described below.

第一种,预设格式为原始二进制字符串格式。若基于格式信息确定原创图片的数字指纹的格式与预设格式不同,则直接将原创图片的数字指纹转换为与原始二进制字符串格式的数字指纹。First, the default format is the raw binary string format. If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, the digital fingerprint of the original picture is directly converted into a digital fingerprint in the format of the original binary string.

第二种,预设格式为数字DNA格式。若基于格式信息确定原创图片的数字指纹的格式为原始二进制字符串格式,则对原创图片的数字指纹进行base58编码,以得到数字DNA格式的数字指纹。Second, the default format is digital DNA format. If it is determined based on the format information that the format of the digital fingerprint of the original picture is the original binary string format, the digital fingerprint of the original picture is base58 encoded to obtain the digital fingerprint in the digital DNA format.

第三种,预设格式为数字DNA的缩写格式,若基于格式信息确定原创图片的数字指纹的格式为数字DNA格式,则从原创图片的数字指纹中截取预设数量的字段,将截取到的预设数量的字段作为数字指纹。例如,从数字DNA格式的数字指纹中截取前8个字母,当然还可以截取其他数量的字段,此处不做具体限定。Third, the preset format is the abbreviated format of digital DNA. If the format of the digital fingerprint of the original picture is determined to be the digital DNA format based on the format information, a preset number of fields will be intercepted from the digital fingerprint of the original picture, and the intercepted A preset number of fields act as a digital fingerprint. For example, the first 8 letters may be intercepted from the digital fingerprint in the digital DNA format, and of course other numbers of fields may also be intercepted, which is not specifically limited here.

在本发明一实施例中,数字指纹中还会携带有版本号,该版本号可以用于标识不同数字指纹的预设格式。因此,在识别出区块链上预设格式的数字指纹所对应的格式信息时,可以检测出区块链上预设格式的数字指纹中的版本号,以依据检测到的数字指纹中的版本号确定数字指纹所对应的格式信息。该实施例中的版本号和数字指纹的格式的对应关系是预先定义的。例如,可以预先定义版本号为“00”,对应数字指纹为二进制字符串格式。又例如,预先定义版本号为“20”,对应数字指纹为数字DNA格式,这里,数字DNA格式指的是将二进制字符串格式的数字指纹进行base58编码后得到的格式。In an embodiment of the present invention, the digital fingerprint also carries a version number, and the version number can be used to identify preset formats of different digital fingerprints. Therefore, when the format information corresponding to the digital fingerprint in the preset format on the blockchain is identified, the version number in the digital fingerprint in the preset format on the blockchain can be detected, and the version number in the detected digital fingerprint can be detected according to the version number in the digital fingerprint. The number determines the format information corresponding to the digital fingerprint. The correspondence between the version number and the format of the digital fingerprint in this embodiment is predefined. For example, the version number can be pre-defined as "00", and the corresponding digital fingerprint is in binary string format. For another example, the pre-defined version number is "20", and the corresponding digital fingerprint is in the digital DNA format. Here, the digital DNA format refers to the format obtained by base58 encoding the digital fingerprint in the binary string format.

在本发明实施例中,每个原创图片的数字指纹均是全局唯一的,其用于图片检索和认证版权信息,原始长度为23byte,其格式可以是,第一个字节为版本号,中间20个字节为指纹哈希值,即指纹摘要,最后2个字节可以作为校验位。在该实施例中,指纹摘要的算法可以采用ripemd160(sha256(pub_key+user_signature)),其中,pub_key为用户公钥,user_signature为用户签名,“+”表示字符串连接。校验位算法采用sha256(版本号+指纹摘要),并且采用算法计算得到的结果取前2个字节。例如,一个数字指纹可以为:00bb40895f3ad0425a5c85210cb2fb0329e1b1a4b17a27,其中,数字指纹的版本号为“00”,指纹摘要为“bb40895f3ad0425a5c85210cb2fb0329e1b1a4b1”,校验位为“7a27”。In the embodiment of the present invention, the digital fingerprint of each original picture is globally unique, which is used for picture retrieval and authentication copyright information, the original length is 23 bytes, and its format can be, the first byte is the version number, the middle The 20 bytes are the fingerprint hash value, that is, the fingerprint digest, and the last 2 bytes can be used as the check digit. In this embodiment, the algorithm of the fingerprint digest may use ripemd160(sha256(pub_key+user_signature)), where pub_key is the user's public key, user_signature is the user's signature, and "+" represents a string connection. The check digit algorithm adopts sha256 (version number + fingerprint digest), and the result calculated by the algorithm takes the first 2 bytes. For example, a digital fingerprint can be: 00bb40895f3ad0425a5c85210cb2fb0329e1b1a4b17a27, where the version number of the digital fingerprint is "00", the fingerprint digest is "bb40895f3ad0425a5c85210cb2fb0329e1b1a4b1", and the check digit is "7a27".

在本发明实施例中,数字指纹的版本号还可以被用来对数字指纹进行扩展,如用于标识数字指纹对应的原创图片的不同状态,如标识已授权给某一平台或商家、数字指纹对应的原创图片的版权所有人经过变更、原创图片已经被交易过、原创图片未曾被交易过等等。例如,若为用户上传的原创图片添加了“授权模式”,在数字指纹的记录格式中会增加一项“licence”对应“授权模式”,如该授权模式可以指原创图片将其版权授权给某个商家或者某个平台等。In this embodiment of the present invention, the version number of the digital fingerprint can also be used to expand the digital fingerprint, for example, to identify different states of the original picture corresponding to the digital fingerprint, such as identifying that the digital fingerprint has been authorized to a certain platform or merchant, The copyright owner of the corresponding original image has been changed, the original image has been traded, the original image has not been traded, etc. For example, if the "authorization mode" is added to the original image uploaded by the user, a "licence" corresponding to the "authorization mode" will be added to the record format of the digital fingerprint. a merchant or a platform, etc.

在该实施例中,假设约定新的数字指纹版本号为01,新的数字指纹示例如下,01782ff4354af18e70e1288d3e988beda5f8cd1a32dc7e。其中“01”为版本号,“782ff4354af18e70e1288d3e988beda5f8cd1a32”为指纹摘要,“dc7e”为校验位。在后续对指纹所有权进行验证时,验证程序还会检测指纹版本号,且根据对应版本号约定的格式对指纹进行验证。In this embodiment, it is assumed that the new digital fingerprint version number is 01, and an example of the new digital fingerprint is as follows, 01782ff4354af18e70e1288d3e988beda5f8cd1a32dc7e. "01" is the version number, "782ff4354af18e70e1288d3e988beda5f8cd1a32" is the fingerprint digest, and "dc7e" is the check digit. In subsequent verification of fingerprint ownership, the verification program also detects the fingerprint version number, and verifies the fingerprint according to the format agreed upon by the corresponding version number.

参见表1,下面结合原创图片对应的存证数据项,如数字指纹(dna)、哈希值(content_hash)、作者信息(author)、上传时间戳(upload_time)以及用户签名(user_signature)等在链上的记录格式对数字指纹进行介绍。Referring to Table 1, the following is combined with the data items corresponding to the original picture, such as digital fingerprint (dna), hash value (content_hash), author information (author), upload time stamp (upload_time) and user signature (user_signature) in the chain The record format above describes digital fingerprints.

字段名称Field Name类型type最大长度The maximum length备注Remarkdnadnastringstring32byte32byte版权内容DNA,base58编码保存Copyright content DNA, stored in base58 encodingcontent_hashcontent_hashstringstring40byte40byte内容hash,SHA1Content hash, SHA1authorauthorstringstring128byte128byte作者名称author namelicencelicencestringstring128byte128byte授权模式Authorization modeupload_timeupload_timeuint256uint25632byte32byte上传时间戳upload timestamptime_signaturetime_signaturestringstring350byte350byte可选,权威机构可信时间戳签名Optional, authority trusted timestamp signatureuser_signatureuser_signaturestringstring350byte350byte上传者签名,rsa+sha256,base64编码保存Uploader's signature, rsa+sha256, base64 encoding save

表1Table 1

在表1中,dna表示数字指纹,其可以是在base58编码后进行保存,即对应后文中的格式2。哈希值content_hash,其采用的预设哈希算法可以是SHA1(Secure HashAlgorithm)。作者信息author,是由用户上传的。“licence”表示该数字指纹处于“授权模式”。上传时间戳(upload_time)记录了原创图片的上传时间。签名信息time_signature,作为可选信息,当上传时间戳由权威机构的可信时间戳确定时,需要获取权威机构对该可信时间戳的签名信息。用户签名user_signature,即图片上传者签名,其采用的签名算法可以是rsa+sha256,在进行base64编码后保存在区块链上。In Table 1, dna represents a digital fingerprint, which can be stored after base58 encoding, that is, corresponding to format 2 in the following. The hash value content_hash, the preset hash algorithm used may be SHA1 (Secure HashAlgorithm). Author information author, is uploaded by the user. "licence" indicates that the digital fingerprint is in "authorization mode". The upload timestamp (upload_time) records the upload time of the original image. The signature information time_signature, as optional information, when the upload timestamp is determined by the trusted timestamp of the authority, the signature information of the trusted timestamp of the authority needs to be obtained. User signature user_signature, that is, the signature of the image uploader. The signature algorithm used can be rsa+sha256, which is stored on the blockchain after base64 encoding.

在本发明实施例中,原创图片的上传时间戳可以采用如下两种方式获取得到。In the embodiment of the present invention, the upload time stamp of the original picture can be obtained in the following two ways.

第一种,通过接收来自权威机构的携带有该权威机构签名信息的可信时间戳,从而基于权威机构的可信时间戳为原创图片添加上传时间戳,即利用可信时间戳作为原创图片的上传时间戳。在该方式中,若是接收来自权威机构的可信时间戳,还需要附带上权威机构对该可信时间戳的签名信息(time_signature)。The first is to add an upload timestamp to the original image based on the trusted timestamp of the authority by receiving the trusted timestamp from the authority carrying the signature information of the authority, that is, to use the trusted timestamp as the original image’s signature. Upload timestamp. In this manner, if a trusted timestamp from an authority is received, the signature information (time_signature) of the trusted timestamp of the authority also needs to be attached.

第二种,通过用户声明时间确定原创图片上传时间,进而基于确定的原创图片上传时间为原创图片添加上传时间戳。其中,用户声明时间由上传原创图片的用户声明。在该方式中,用户声明时间与即将存入存证数据项的区块链中相应区块生成的时间戳需满足以下关系:区块生成时间-预设时间<图片上传时间<区块生成时间。Second, the upload time of the original image is determined by the user's declaration time, and then an upload timestamp is added to the original image based on the determined upload time of the original image. Among them, the user declaration time is declared by the user who uploaded the original image. In this method, the user's declaration time and the timestamp generated by the corresponding block in the blockchain that will be stored in the data item for deposit must satisfy the following relationship: block generation time - preset time < image upload time < block generation time .

基于第二种方式,在原创图片的存证数据项写入区块链的过程中,可以通过定义原创图片的存证数据项中的上传时间戳为upload_time、区块链中用于被写入原创图片存证数据项的区块生成的时间戳为block_timestamp,以在判断得知上传时间戳upload_time满足block_timestamp-预设时间<upload_time<block_timestamp的条件下,将原创图片的存证数据项写入区块链。在该实施例中,预设时间可以是预先设定的任意时间,例如4小时、3小时、2小时等等,本发明实施例对此不做具体的限定。Based on the second method, in the process of writing the certificate data item of the original picture into the blockchain, you can define the upload timestamp in the certificate data item of the original picture as upload_time, which is used to be written in the blockchain. The timestamp generated by the block of the original image storage certificate data item is block_timestamp, so that the original image storage certificate data item is written into the area under the condition that the upload timestamp upload_time satisfies the condition of block_timestamp-preset time<upload_time<block_timestamp blockchain. In this embodiment, the preset time may be any preset time, such as 4 hours, 3 hours, 2 hours, etc., which is not specifically limited in this embodiment of the present invention.

在本发明一实施例中,区块链上还会存储原创图片的其他属性信息,如原创图片的类型、标题、创作者信息、作品简介等等信息。当确定被验方用户对原创图片的数字指纹具有所有权之后,为了进一步的保证数字指纹的验证质量,还可以结合原创图片的其他属性信息对数字指纹的所有权进行验证。具体的,接收用户上传的原创图片的其他属性信息,并将接收的其他属性信息发送至验证服务器,由验证服务器依据原创图片的数字指纹查找预先存储的原创图片的其他属性信息。若接收的其他属性信息与查找到的原创图片的其他属性信息一致,则可以进一步确定被验方用户对原创图片的数字指纹具有所有权。In an embodiment of the present invention, other attribute information of the original picture is also stored on the blockchain, such as the type, title, creator information, work introduction and other information of the original picture. After it is determined that the tested user has the ownership of the digital fingerprint of the original image, in order to further ensure the verification quality of the digital fingerprint, the ownership of the digital fingerprint can also be verified in combination with other attribute information of the original image. Specifically, other attribute information of the original picture uploaded by the user is received, and the received other attribute information is sent to the verification server, and the verification server searches for other attribute information of the pre-stored original picture according to the digital fingerprint of the original picture. If the other attribute information received is consistent with the other attribute information of the found original picture, it can be further determined that the tested user has ownership of the digital fingerprint of the original picture.

在本发明实施例中,原创图片的其他属性信息还可以预先存储在分布式存储系统(如redis存储系统)中,并且分布式存储系统还可以存储与原创图片相关的任意信息,如原创图片对应的包括数字指纹、哈希值、作者信息、上传时间戳以及用户签名等存证数据项。并且与原创图片相关的任意信息是以kv(Key-Value)方式存储在分布式存储系统(如redis存储系统)中的,其中,数字指纹作为Key,而原创图片的其他属性信息、存证数据项、公钥等作为Value值。该存储方式可以方便后续对原创图片的存证数据项或其他属性信息的查找,即可以实现非链式offchain查询。In the embodiment of the present invention, other attribute information of the original picture can also be pre-stored in a distributed storage system (such as a redis storage system), and the distributed storage system can also store any information related to the original picture, such as the original picture corresponding to It includes digital fingerprints, hash values, author information, upload timestamps, and user signatures. And any information related to the original picture is stored in a distributed storage system (such as a redis storage system) in the form of kv (Key-Value), in which the digital fingerprint is used as the key, and the other attribute information of the original picture, storage data item, public key, etc. as the Value value. This storage method can facilitate the subsequent search for the data items or other attribute information of the original image, that is, non-chain offchain query can be realized.

在本发明一实施例中,当对原创图片进行版权登记之后,上传原创图片的用户还可以随时对原创图片和其相关信息进行查看、编辑等操作,以完善原创图片的相关信息。例如,可以接收用户提交的图片管理请求,以对原创图片进行相关的管理,还可以接收用户提交的图片搜索请求,以从保存的大量图片中搜索出与搜索请求对应的图片。In an embodiment of the present invention, after the copyright registration of the original picture is performed, the user who uploads the original picture can also view and edit the original picture and its related information at any time, so as to improve the related information of the original picture. For example, a picture management request submitted by a user can be received to manage original pictures, and a picture search request submitted by a user can be received to search for a picture corresponding to the search request from a large number of saved pictures.

当接收到用户提交的图片管理请求时,可以依据图片管理请求,对与图片管理请求对应的、已保存在服务器中的图片执行管理操作。这里,管理操作可以包括修改操作、删除操作、添加操作等等。当接收到用户提交的搜索请求时,可以依据接收到的搜索请求,从已保存在服务器中的图片中获取与该搜索请求对应的图片,并展示搜索到的图片。When a picture management request submitted by the user is received, a management operation can be performed on the pictures corresponding to the picture management request and saved in the server according to the picture management request. Here, the management operations may include modification operations, deletion operations, addition operations, and the like. When a search request submitted by the user is received, a picture corresponding to the search request may be obtained from the pictures saved in the server according to the received search request, and the searched picture may be displayed.

上文实施例介绍了数字指纹所有权的验证过程,为了更加清楚的体现数字指纹的生成过程以及其相关信息写入在区块链的过程,本发明实施例还提供了一种基于区块链的数字指纹存证方法。参见图2,该方法至少包括步骤S202至步骤S206。The above embodiment introduces the verification process of digital fingerprint ownership. In order to more clearly reflect the process of generating the digital fingerprint and the process of writing its related information in the blockchain, the embodiment of the present invention also provides a blockchain-based Digital fingerprint storage method. Referring to FIG. 2, the method includes at least steps S202 to S206.

步骤S202,当接收到用户上传的原创图片和原创图片的作者信息时,基于接收的原创图片和其作者信息采用预设哈希算法计算原创图片的哈希值,并为原创图片添加上传时间戳。Step S202, when receiving the original image uploaded by the user and the author information of the original image, use a preset hash algorithm to calculate the hash value of the original image based on the received original image and its author information, and add an upload timestamp to the original image .

步骤S204,为接收到的原创图片生成私钥和公钥对,利用私钥对原创图片的哈希值加密以生成用户签名,将生成的用户签名和公钥组合得到数字指纹。Step S204, generating a private key and public key pair for the received original image, encrypting the hash value of the original image with the private key to generate a user signature, and combining the generated user signature and public key to obtain a digital fingerprint.

在该步骤中,用户签名是基于原创图片的私钥和哈希值生成的,其可以用于用户所有权证明。签名算法可以采用RSA(公钥加密算法)+SHA256。而原来的第一版的签名内容包括哈希值content_hash、上传时间upload_time、作者author三个字段,格式采用:标准JSON格式minify后的内容,即对JSON格式内容进行最小化压缩后得到的内容。例如,content_hash为:“c92509e0a2cdba2c9ed8a97284d64d785cbc6ff6”,upload_time为“1524128913”,author为“\u4f5c\u8005\u540d”。In this step, the user signature is generated based on the private key and hash value of the original image, which can be used for user ownership proof. The signature algorithm can be RSA (public key encryption algorithm) + SHA256. The original signature content of the first version includes three fields: hash value content_hash, upload time upload_time, and author author. For example, content_hash is: "c92509e0a2cdba2c9ed8a97284d64d785cbc6ff6", upload_time is "1524128913", and author is "\u4f5c\u8005\u540d".

步骤S206,将原创图片对应的包括数字指纹、哈希值、作者信息、上传时间戳以及用户签名的存证数据项发送至服务器,由服务器将原创图片的存证数据项写入区块链。Step S206, send the certificate data item corresponding to the original picture including digital fingerprint, hash value, author information, upload time stamp and user signature to the server, and the server writes the certificate data item of the original picture into the blockchain.

本发明实施例利用可信时间戳、数字签名技术,并结合区块链提供的所有权证明和存在证明服务,对原创图片内容进行登记存证,生成图片作品的唯一数字DNA(即数字指纹),后续可以利用该数字DNA进行版权检测、离线验证、版权的交易等场景,并且数字指纹存证的格式具有较高的可读性、扩展性。The embodiment of the present invention utilizes trusted time stamp and digital signature technology, and combines the ownership certificate and existence certificate services provided by the blockchain to register and store the original picture content, and generate the unique digital DNA (ie digital fingerprint) of the picture work, In the future, the digital DNA can be used for copyright detection, offline verification, copyright transaction and other scenarios, and the format of the digital fingerprint storage certificate has high readability and scalability.

此外,本发明实施例不仅可以应用于图片的数字指纹存证,还可以应用于文章、视频等不同的数字文件存证中,有效地解决了现有技术中存证格式扩展性差的问题。在该实施例中,通过利用区块链可以为版权内容(如原创图片)提供可靠的内容摘要,时间戳记录以实现存在性证明,而利用数字签名技术,可以为用户提供版权信息的所有权证明。本方案在实现数字指纹存证后,后续的图片版权认证、验证及交易的过程都可以不依赖于特定平台,由去中心化应用(Decentralized application,Dapp)实现。存证数据项的数据格式方便区块链的链上检索,并且签名及算法可根据需求进行升级优化,支持版权检测,交易,收益发放等场景,具有较好的可扩展性。另外数字指纹信息简短易分辨,能够方便用户记录和传播,具有较强的可读性。In addition, the embodiments of the present invention can be applied not only to the digital fingerprint storage of pictures, but also to the storage of different digital files such as articles and videos, effectively solving the problem of poor scalability of the storage format in the prior art. In this embodiment, by using the blockchain, a reliable content summary can be provided for copyrighted content (such as original pictures), and time stamp recording can be used to realize the proof of existence, and by using the digital signature technology, the user can be provided with the ownership proof of the copyright information. . After this solution realizes digital fingerprint storage, the subsequent process of image copyright authentication, verification and transaction can be implemented by a decentralized application (Dapp) without depending on a specific platform. The data format of the certificate data item is convenient for on-chain retrieval of the blockchain, and the signature and algorithm can be upgraded and optimized according to needs, supporting copyright detection, transaction, income distribution and other scenarios, with good scalability. In addition, the digital fingerprint information is short and easy to distinguish, which is convenient for users to record and disseminate, and has strong readability.

基于同一发明构思,本发明实施例还提供了一种数字指纹所有权的验证系统。图3示出了根据本发明一个实施例的数字指纹所有权的验证系统的结构示意图。参见图3,数字指纹所有权的验证系统300包括终端10和验证服务器20,其中,终端10包括生成模块310和发送模块320,验证服务器20包括验证模块330和确定模块340。Based on the same inventive concept, an embodiment of the present invention also provides a verification system for digital fingerprint ownership. FIG. 3 shows a schematic structural diagram of a verification system for digital fingerprint ownership according to an embodiment of the present invention. 3 , a verification system 300 for digital fingerprint ownership includes a terminal 10 and a verification server 20 , wherein the terminal 10 includes agenerating module 310 and a sendingmodule 320 , and the verification server 20 includes averification module 330 and adetermination module 340 .

现介绍本发明实施例的数字指纹所有权的验证系统300的各组成或器件的功能以及各部分间的连接关系:Now introduce the functions of each component or device and the connection relationship between each part of the verification system 300 for digital fingerprint ownership according to the embodiment of the present invention:

生成模块310,适于接收被验方用户上传的原创图片,为原创图片生成私钥和公钥对,基于私钥生成原创图片的数字指纹;Thegenerating module 310 is adapted to receive the original picture uploaded by the tested user, generate a private key and public key pair for the original picture, and generate a digital fingerprint of the original picture based on the private key;

发送模块320,适于将数字指纹和公钥发送至验证服务器20;a sendingmodule 320, adapted to send the digital fingerprint and the public key to the verification server 20;

验证模块330,适于接收数字指纹和公钥,在区块链上查询是否存在与接收的数字指纹对应的数字指纹,若是,则验证数字指纹有效;Theverification module 330 is adapted to receive a digital fingerprint and a public key, and inquire whether there is a digital fingerprint corresponding to the received digital fingerprint on the blockchain, and if so, verify that the digital fingerprint is valid;

生成模块310,还适于接收来自验证服务器20的验证文本,采用预设哈希算法计算验证文本的哈希值,利用私钥对验证文本的哈希值加密,生成验证文本的用户签名;Thegeneration module 310 is also adapted to receive the verification text from the verification server 20, calculate the hash value of the verification text by using a preset hash algorithm, encrypt the hash value of the verification text with a private key, and generate a user signature of the verification text;

发送模块320,还适于将验证文本的用户签名发至验证服务器20;The sendingmodule 320 is further adapted to send the user signature of the verification text to the verification server 20;

确定模块340,适于接收验证文本的用户签名,利用验证模块330接收到的公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。Thedetermination module 340 is adapted to receive the user signature of the verification text, and decrypt the user signature of the verification text with the public key received by theverification module 330. If the decryption is successful, it is determined that the verified user has ownership of the digital fingerprint of the original picture.

在本发明一实施例中,生成模块310还适于,采用预设哈希算法计算原创图片的哈希值,利用私钥对原创图片的哈希值加密以生成原创图片的用户签名,将原创图片的用户签名和公钥组合生成原创图片的数字指纹。In an embodiment of the present invention, thegenerating module 310 is further adapted to calculate the hash value of the original image by using a preset hash algorithm, encrypt the hash value of the original image with a private key to generate a user signature of the original image, and convert the original image to the original image. The combination of the user's signature of the picture and the public key generates the digital fingerprint of the original picture.

图4示出了根据本发明另一个实施例的数字指纹所有权的验证系统的结构示意图。参见图4,数字指纹所有权的验证系统300包括终端10和验证服务器20,其中,终端10包括生成模块310和发送模块320,验证服务器20包括验证模块330、确定模块340、识别模块350及转换模块360。FIG. 4 shows a schematic structural diagram of a verification system for digital fingerprint ownership according to another embodiment of the present invention. 4, the verification system 300 of digital fingerprint ownership includes a terminal 10 and a verification server 20, wherein the terminal 10 includes agenerating module 310 and a sendingmodule 320, and the verification server 20 includes averification module 330, adetermination module 340, anidentification module 350 and aconversion module 360.

识别模块350,适于识别出区块链上预设格式的数字指纹所对应的格式信息;Theidentification module 350 is adapted to identify the format information corresponding to the digital fingerprint in the preset format on the blockchain;

转换模块360,适于若基于格式信息确定原创图片的数字指纹的格式与预设格式不同,将原创图片的数字指纹转换为与预设格式相同格式的数字指纹;Theconversion module 360 is adapted to convert the digital fingerprint of the original picture into a digital fingerprint of the same format as the preset format if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format;

验证模块330,还适于在区块链上查询是否存在与格式转换后的数字指纹对应的数字指纹,若是,则验证数字指纹有效。Theverification module 330 is further adapted to query whether there is a digital fingerprint corresponding to the format-converted digital fingerprint on the blockchain, and if so, verify that the digital fingerprint is valid.

在本发明一实施例中,识别模块350还适于,检测区块链上预设格式的数字指纹中的版本号,其中,版本号用于标识不同数字指纹的预设格式。依据数字指纹中的版本号确定数字指纹所对应的格式信息。In an embodiment of the present invention, theidentification module 350 is further adapted to detect a version number in a digital fingerprint in a preset format on the blockchain, where the version number is used to identify preset formats of different digital fingerprints. The format information corresponding to the digital fingerprint is determined according to the version number in the digital fingerprint.

在本发明一实施例中,转换模块360还适于,若基于格式信息确定原创图片的数字指纹的格式与预设格式不同,且预设格式为原始二进制字符串格式。将原创图片的数字指纹转换为与原始二进制字符串格式的数字指纹。In an embodiment of the present invention, theconversion module 360 is further adapted to determine, based on the format information, that the format of the digital fingerprint of the original picture is different from the preset format, and the preset format is the original binary string format. Convert the digital fingerprint of the original picture to a digital fingerprint in the format of the original binary string.

在本发明一实施例中,转换模块360还适于,若基于格式信息确定原创图片的数字指纹的格式与预设格式不同,且原创图片的数字指纹的格式为原始二进制字符串格式、预设格式为数字DNA格式。对原创图片的数字指纹进行base58编码,得到数字DNA格式的数字指纹。In an embodiment of the present invention, theconversion module 360 is further adapted to, if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the format of the digital fingerprint of the original picture is the original binary string format, the preset format The format is digital DNA format. The digital fingerprint of the original picture is base58 encoded to obtain the digital fingerprint in digital DNA format.

在本发明一实施例中,转换模块360还适于,若基于格式信息确定原创图片的数字指纹的格式与预设格式不同,且原创图片的数字指纹的格式为数字DNA格式、预设格式为数字DNA的缩写格式。从原创图片的数字指纹中截取预设数量的字段,将截取到的预设数量的字段作为数字指纹。In an embodiment of the present invention, theconversion module 360 is further adapted to, if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the format of the digital fingerprint of the original picture is the digital DNA format, and the preset format is Abbreviated format for digital DNA. Intercept a preset number of fields from the digital fingerprint of the original image, and use the intercepted preset number of fields as the digital fingerprint.

图5示出了根据本发明再一个实施例的数字指纹所有权的验证系统的结构示意图。参见图5,数字指纹所有权的验证系统包括终端10和验证服务器20,其中,终端10包括生成模块310、发送模块320、接收模块370、管理模块380、搜索展示模块390,验证服务器20包括验证模块330、确定模块340、识别模块350及转换模块360。FIG. 5 shows a schematic structural diagram of a verification system for digital fingerprint ownership according to yet another embodiment of the present invention. 5 , the verification system for digital fingerprint ownership includes a terminal 10 and a verification server 20, wherein the terminal 10 includes ageneration module 310, a sendingmodule 320, a receivingmodule 370, a management module 380, and a search display module 390, and the verification server 20 includes averification module 330 , adetermination module 340 , anidentification module 350 and aconversion module 360 .

发送模块320还适于,在确定模块340利用公钥对验证文本的用户签名解密成功之后,接收被验方用户上传的原创图片的其他属性信息,将接收的其他属性信息发送至验证服务器20。The sendingmodule 320 is further adapted to, after the determiningmodule 340 successfully decrypts the user signature of the verification text with the public key, receive other attribute information of the original picture uploaded by the tested user, and send the received other attribute information to the verification server 20 .

确定模块340还适于,接收其他属性信息,依据原创图片的数字指纹查找预先存储的原创图片的其他属性信息,若接收的其他属性信息与查找到的原创图片的其他属性信息一致,确定被验方用户对原创图片的数字指纹具有所有权。The determiningmodule 340 is also adapted to receive other attribute information, search for other attribute information of the pre-stored original image according to the digital fingerprint of the original image, if the received other attribute information is consistent with the other attribute information of the found original image, determine the tested party. The user owns the digital fingerprint of the original picture.

接收模块370,适于在确定模块340确定被验方用户对原创图片的数字指纹具有所有权之后,接收被验方用户对其所有权的原创图片的图片管理请求或搜索请求。The receivingmodule 370 is adapted to receive, after the determiningmodule 340 determines that the tested user has ownership of the digital fingerprint of the original picture, a picture management request or a search request of the tested user for the owned original picture.

管理模块380,适于依据图片管理请求,对与图片管理请求对应的图片执行管理操作,管理操作包括修改操作、删除操作、添加操作中的至少一项。The management module 380 is adapted to perform a management operation on the picture corresponding to the picture management request according to the picture management request, and the management operation includes at least one of a modification operation, a deletion operation, and an addition operation.

搜索展示模块390,适于依据搜索请求,从预先存储的多个图片中搜索与搜索请求对应的图片,并展示搜索到的图片。The search and display module 390 is adapted to search for a picture corresponding to the search request from a plurality of pre-stored pictures according to the search request, and display the searched picture.

在本发明一实施例中,原创图片的其他属性信息包括图片的类型、标题、创作者信息、作品简介中的至少一项。In an embodiment of the present invention, the other attribute information of the original picture includes at least one of the picture type, title, creator information, and work introduction.

本发明还提供了一种计算机存储介质,计算机存储介质存储有计算机程序代码,当计算机程序代码在计算设备上运行时,导致计算设备执行上文任意实施例中的数字指纹所有权的验证方法。The present invention also provides a computer storage medium storing computer program code, which when executed on a computing device, causes the computing device to execute the method for verifying ownership of a digital fingerprint in any of the above embodiments.

本发明还提供了一种计算设备,包括处理器;存储有计算机程序代码的存储器;当计算机程序代码被处理器运行时,导致计算设备执行上文任意实施例中的数字指纹所有权的验证方法。The present invention also provides a computing device including a processor; a memory storing computer program code; when the computer program code is executed by the processor, the computing device causes the computing device to perform the method for verifying ownership of a digital fingerprint in any of the above embodiments.

根据上述任意一个优选实施例或多个优选实施例的组合,本发明实施例能够达到如下有益效果:According to any one of the above-mentioned preferred embodiments or a combination of multiple preferred embodiments, the embodiments of the present invention can achieve the following beneficial effects:

在对数字指纹所有权进行验证时,首先接收被验方用户上传的原创图片,为原创图片生成私钥和公钥对,基于私钥生成原创图片的数字指纹。然后将数字指纹和公钥发送至验证服务器,由验证服务器在区块链上查询是否存在与接收的数字指纹对应的数字指纹,若是,则验证数字指纹有效。进而接收来自验证服务器的验证文本,采用预设哈希算法计算验证文本的哈希值,利用私钥对验证文本的哈希值加密,生成验证文本的用户签名。最后将验证文本的用户签名发至验证服务器,由验证服务器利用公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。由此,采用本发明方案的数字指纹验证方式不仅可以有效地验证数字指纹的存在性,还可以验证其用户所有权,即通过数字签名技术为用户提供图片版权信息的所有权证明。进一步的,本方案的整个验证过程可以不依赖于特定平台,通过去中心化应用(Decentralized application,Dapp)便可以方便地实现验证。When verifying the ownership of the digital fingerprint, the original image uploaded by the tested user is firstly received, the private key and public key pair are generated for the original image, and the digital fingerprint of the original image is generated based on the private key. Then, the digital fingerprint and public key are sent to the verification server, and the verification server inquires on the blockchain whether there is a digital fingerprint corresponding to the received digital fingerprint. If so, the digital fingerprint is verified to be valid. Further, the verification text from the verification server is received, a preset hash algorithm is used to calculate the hash value of the verification text, and the hash value of the verification text is encrypted with the private key to generate a user signature of the verification text. Finally, the user signature of the verification text is sent to the verification server, and the verification server uses the public key to decrypt the user signature of the verification text. If the decryption is successful, it is determined that the verified user has ownership of the digital fingerprint of the original picture. Therefore, the digital fingerprint verification method of the present invention can not only effectively verify the existence of the digital fingerprint, but also verify the user's ownership, that is, the ownership certificate of the picture copyright information is provided to the user through the digital signature technology. Further, the entire verification process of this solution can be independent of a specific platform, and verification can be easily achieved through a decentralized application (Dapp).

所属领域的技术人员可以清楚地了解到,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,为简洁起见,在此不另赘述。Those skilled in the art can clearly understand that, for the specific working processes of the systems, devices and units described above, reference may be made to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, details are not described herein.

另外,在本发明各个实施例中的各功能单元可以物理上相互独立,也可以两个或两个以上功能单元集成在一起,还可以全部功能单元都集成在一个处理单元中。上述集成的功能单元既可以采用硬件的形式实现,也可以采用软件或者固件的形式实现。In addition, each functional unit in each embodiment of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above-mentioned integrated functional units may be implemented in the form of hardware, and may also be implemented in the form of software or firmware.

本领域普通技术人员可以理解:所述集成的功能单元如果以软件的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,其包括若干指令,用以使得一台计算设备(例如个人计算机,服务器,或者网络设备等)在运行所述指令时执行本发明各实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM)、随机存取存储器(RAM),磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that: if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, which includes several instructions to make a computer A computing device (such as a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the embodiments of the present invention when running the instructions. The aforementioned storage medium includes: a U disk, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and other media that can store program codes.

或者,实现前述方法实施例的全部或部分步骤可以通过程序指令相关的硬件(诸如个人计算机,服务器,或者网络设备等的计算设备)来完成,所述程序指令可以存储于一计算机可读取存储介质中,当所述程序指令被计算设备的处理器执行时,所述计算设备执行本发明各实施例所述方法的全部或部分步骤。Alternatively, all or part of the steps of implementing the foregoing method embodiments may be accomplished by program instructions related to hardware (such as a personal computer, a server, or a computing device such as a network device), and the program instructions may be stored in a computer-readable storage In the medium, when the program instructions are executed by the processor of the computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:在本发明的精神和原则之内,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案脱离本发明的保护范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: Within the spirit and principle of the present invention, it is still possible to modify the technical solutions recorded in the foregoing embodiments, or to perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the corresponding technical solutions deviate protection scope of the present invention.

Claims (10)

Translated fromChinese
1.一种数字指纹所有权的验证方法,包括:1. A method for verifying ownership of digital fingerprints, comprising:接收被验方用户上传的原创图片,为所述原创图片生成私钥和公钥对,基于所述私钥生成原创图片的数字指纹;Receive the original image uploaded by the tested user, generate a private key and public key pair for the original image, and generate a digital fingerprint of the original image based on the private key;将所述数字指纹和所述公钥发送至验证服务器,由所述验证服务器在区块链上查询是否存在与接收的数字指纹对应的数字指纹,若是,则验证所述数字指纹有效;Sending the digital fingerprint and the public key to the verification server, and the verification server inquires on the blockchain whether there is a digital fingerprint corresponding to the received digital fingerprint, and if so, verifies that the digital fingerprint is valid;接收来自验证服务器的验证文本,采用预设哈希算法计算所述验证文本的哈希值,利用所述私钥对验证文本的哈希值加密,生成验证文本的用户签名;Receive the verification text from the verification server, use a preset hash algorithm to calculate the hash value of the verification text, encrypt the hash value of the verification text with the private key, and generate a user signature of the verification text;将验证文本的用户签名发至验证服务器,由所述验证服务器利用所述公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。The user signature of the verification text is sent to the verification server, and the verification server decrypts the user signature of the verification text by using the public key. If the decryption is successful, it is determined that the verified user has ownership of the digital fingerprint of the original picture.2.根据权利要求1所述的方法,其中,基于所述私钥生成原创图片的数字指纹,包括:2. The method according to claim 1, wherein generating the digital fingerprint of the original picture based on the private key comprises:采用预设哈希算法计算所述原创图片的哈希值;Calculate the hash value of the original image by using a preset hash algorithm;利用所述私钥对原创图片的哈希值加密以生成所述原创图片的用户签名;Encrypt the hash value of the original picture with the private key to generate a user signature of the original picture;将所述原创图片的用户签名和所述公钥组合生成原创图片的数字指纹。The user signature of the original picture and the public key are combined to generate a digital fingerprint of the original picture.3.根据权利要求1或2所述的方法,其中,由所述验证服务器在区块链上查询是否存在与接收的数字指纹对应的数字指纹,包括:3. The method according to claim 1 or 2, wherein, querying by the verification server whether there is a digital fingerprint corresponding to the received digital fingerprint on the blockchain comprises:识别出所述区块链上预设格式的数字指纹所对应的格式信息;Identify the format information corresponding to the digital fingerprint in the preset format on the blockchain;若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, converting the digital fingerprint of the original picture into a digital fingerprint of the same format as the preset format;所述验证服务器在区块链上查询是否存在与格式转换后的数字指纹对应的数字指纹,若是,则验证所述数字指纹有效。The verification server inquires on the blockchain whether there is a digital fingerprint corresponding to the format-converted digital fingerprint, and if yes, verifies that the digital fingerprint is valid.4.根据权利要求1-3任一项所述的方法,其中,识别出所述区块链上预设格式的数字指纹所对应的格式信息,包括:4. The method according to any one of claims 1-3, wherein identifying the format information corresponding to the digital fingerprint in the preset format on the blockchain comprises:检测所述区块链上预设格式的数字指纹中的版本号,其中,所述版本号用于标识不同数字指纹的预设格式;Detecting the version number in the digital fingerprint of the preset format on the blockchain, wherein the version number is used to identify the preset format of different digital fingerprints;依据所述数字指纹中的版本号确定所述数字指纹所对应的格式信息。The format information corresponding to the digital fingerprint is determined according to the version number in the digital fingerprint.5.根据权利要求1-4任一项所述的方法,其中,若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹,包括:5. The method according to any one of claims 1-4, wherein, if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, the digital fingerprint of the original picture is Converted to digital fingerprints in the same format as the preset format, including:若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述预设格式为原始二进制字符串格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the preset format is the original binary string format;将原创图片的数字指纹转换为与原始二进制字符串格式的数字指纹。Convert the digital fingerprint of the original picture to a digital fingerprint in the format of the original binary string.6.根据权利要求1-5任一项所述的方法,其中,若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹,包括:6. The method according to any one of claims 1-5, wherein, if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, the digital fingerprint of the original picture is Converted to a digital fingerprint in the same format as the preset format, including:若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述原创图片的数字指纹的格式为原始二进制字符串格式、所述预设格式为数字DNA格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the format of the digital fingerprint of the original picture is the original binary string format, and the preset format is the digital DNA format ;对所述原创图片的数字指纹进行base58编码,得到数字DNA格式的数字指纹。Base58 encoding is performed on the digital fingerprint of the original picture to obtain a digital fingerprint in digital DNA format.7.根据权利要求1-6任一项所述的方法,其中,若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,将所述原创图片的数字指纹转换为与所述预设格式相同格式的数字指纹,包括:7. The method according to any one of claims 1-6, wherein, if it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, the digital fingerprint of the original picture is Converted to a digital fingerprint in the same format as the preset format, including:若基于所述格式信息确定所述原创图片的数字指纹的格式与所述预设格式不同,且所述原创图片的数字指纹的格式为数字DNA格式、所述预设格式为数字DNA的缩写格式;If it is determined based on the format information that the format of the digital fingerprint of the original picture is different from the preset format, and the format of the digital fingerprint of the original picture is a digital DNA format, and the preset format is an abbreviated format of digital DNA ;从原创图片的数字指纹中截取预设数量的字段,将截取到的预设数量的字段作为所述数字指纹。A preset number of fields are intercepted from the digital fingerprint of the original picture, and the intercepted preset number of fields are used as the digital fingerprint.8.一种数字指纹所有权的验证系统,包括终端和验证服务器,其中,所述终端包括生成模块和发送模块,所述验证服务器包括验证模块和确定模块;8. A verification system for digital fingerprint ownership, comprising a terminal and a verification server, wherein the terminal comprises a generating module and a sending module, and the verification server comprises a verification module and a determination module;所述生成模块,适于接收被验方用户上传的原创图片,为所述原创图片生成私钥和公钥对,基于所述私钥生成原创图片的数字指纹;The generation module is adapted to receive the original picture uploaded by the tested user, generate a private key and a public key pair for the original picture, and generate a digital fingerprint of the original picture based on the private key;所述发送模块,适于将所述数字指纹和所述公钥发送至所述验证服务器;The sending module is adapted to send the digital fingerprint and the public key to the verification server;所述验证模块,适于接收所述数字指纹和所述公钥,在区块链上查询是否存在与接收的数字指纹对应的数字指纹,若是,则验证所述数字指纹有效;The verification module is adapted to receive the digital fingerprint and the public key, and query whether there is a digital fingerprint corresponding to the received digital fingerprint on the blockchain, and if so, verify that the digital fingerprint is valid;所述生成模块,还适于接收来自验证服务器的验证文本,采用预设哈希算法计算所述验证文本的哈希值,利用所述私钥对验证文本的哈希值加密,生成验证文本的用户签名;The generating module is also adapted to receive the verification text from the verification server, use a preset hash algorithm to calculate the hash value of the verification text, encrypt the hash value of the verification text with the private key, and generate a hash value of the verification text. User signature;所述发送模块,还适于将验证文本的用户签名发至所述验证服务器;The sending module is also adapted to send the user signature of the verification text to the verification server;所述确定模块,适于接收验证文本的用户签名,利用所述公钥对验证文本的用户签名解密,若解密成功,确定被验方用户对原创图片的数字指纹具有所有权。The determining module is adapted to receive the user signature of the verification text, and decrypt the user signature of the verification text by using the public key.9.一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行权利要求1-7任一项所述的数字指纹所有权的验证方法。9. A computer storage medium storing computer program code which, when executed on a computing device, causes the computing device to perform the digital representation of any one of claims 1-7 Verification method for fingerprint ownership.10.一种计算设备,包括:处理器;存储有计算机程序代码的存储器;当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行权利要求1-7任一项所述的数字指纹所有权的验证方法。10. A computing device, comprising: a processor; a memory storing computer program code; when the computer program code is executed by the processor, causes the computing device to execute the computing device of any one of claims 1-7 The verification method of digital fingerprint ownership.
CN201811647524.4A2018-12-292018-12-29 A digital fingerprint ownership verification method and systemActiveCN111444479B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811647524.4ACN111444479B (en)2018-12-292018-12-29 A digital fingerprint ownership verification method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811647524.4ACN111444479B (en)2018-12-292018-12-29 A digital fingerprint ownership verification method and system

Publications (2)

Publication NumberPublication Date
CN111444479Atrue CN111444479A (en)2020-07-24
CN111444479B CN111444479B (en)2024-05-14

Family

ID=71626562

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811647524.4AActiveCN111444479B (en)2018-12-292018-12-29 A digital fingerprint ownership verification method and system

Country Status (1)

CountryLink
CN (1)CN111444479B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112685795A (en)*2020-12-312021-04-20树根互联技术有限公司Digital deposit certificate creating method, digital deposit certificate verifying method and digital deposit certificate system
CN112926070A (en)*2021-03-022021-06-08浪潮云信息技术股份公司Domestic CPU and operating system based non-secret-related domain and secret-related domain official document exchange method and system
CN114884663A (en)*2021-02-052022-08-09腾讯科技(深圳)有限公司Multimedia object processing method, device, equipment and storage medium
CN114971421A (en)*2022-07-222022-08-30中国长江三峡集团有限公司Hydropower station operation risk management and control system based on block chain technology

Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20160300234A1 (en)*2015-04-062016-10-13Bitmark, Inc.System and method for decentralized title recordation and authentication
CN106682457A (en)*2016-12-162017-05-17北京握奇智能科技有限公司Picture copyright protection method and picture copyright protection system based on blockchain technology
CN106991573A (en)*2017-04-072017-07-28中链科技有限公司Art work fidelity method and server based on block chain technology
CN107086920A (en)*2017-06-202017-08-22无锡井通网络科技有限公司Copyright based on block chain really weighs method
CN107222303A (en)*2017-05-112017-09-29暨南大学Digital publishing rights traceability system building method based on block chain and cloud platform
CN107330694A (en)*2017-07-032017-11-07重庆小犀智能科技有限公司Copyright trading system and method for commerce based on block chain
CN107786504A (en)*2016-08-262018-03-09腾讯科技(深圳)有限公司ELF file publishing methods, ELF file verifications method, server and terminal
CN107888375A (en)*2017-11-082018-04-06深圳市携网科技有限公司A kind of electronic evidence safety system and method based on block chain technology
CN108664770A (en)*2018-05-222018-10-16上海七印信息科技有限公司There are methods of proof for a kind of high confidence level based on block chain technology
CN108711051A (en)*2018-05-032018-10-26法信公证云(厦门)科技有限公司A kind of intellectual property transaction shared platform and method based on block chain
CN108881244A (en)*2018-06-272018-11-23中国人民解放军国防科技大学Intellectual property protection method for network short texts based on block chains
CN109035024A (en)*2018-08-152018-12-18杭州链汇通区块链科技有限公司Method, system and the storage medium of electronic signature
CN109063426A (en)*2018-09-202018-12-21新华智云科技有限公司A kind of copyright based on alliance's block chain deposits card sharing method and system
CN109067524A (en)*2018-07-312018-12-21杭州复杂美科技有限公司A kind of public private key pair generation method and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20160300234A1 (en)*2015-04-062016-10-13Bitmark, Inc.System and method for decentralized title recordation and authentication
CN107786504A (en)*2016-08-262018-03-09腾讯科技(深圳)有限公司ELF file publishing methods, ELF file verifications method, server and terminal
CN106682457A (en)*2016-12-162017-05-17北京握奇智能科技有限公司Picture copyright protection method and picture copyright protection system based on blockchain technology
CN106991573A (en)*2017-04-072017-07-28中链科技有限公司Art work fidelity method and server based on block chain technology
CN107222303A (en)*2017-05-112017-09-29暨南大学Digital publishing rights traceability system building method based on block chain and cloud platform
CN107086920A (en)*2017-06-202017-08-22无锡井通网络科技有限公司Copyright based on block chain really weighs method
CN107330694A (en)*2017-07-032017-11-07重庆小犀智能科技有限公司Copyright trading system and method for commerce based on block chain
CN107888375A (en)*2017-11-082018-04-06深圳市携网科技有限公司A kind of electronic evidence safety system and method based on block chain technology
CN108711051A (en)*2018-05-032018-10-26法信公证云(厦门)科技有限公司A kind of intellectual property transaction shared platform and method based on block chain
CN108664770A (en)*2018-05-222018-10-16上海七印信息科技有限公司There are methods of proof for a kind of high confidence level based on block chain technology
CN108881244A (en)*2018-06-272018-11-23中国人民解放军国防科技大学Intellectual property protection method for network short texts based on block chains
CN109067524A (en)*2018-07-312018-12-21杭州复杂美科技有限公司A kind of public private key pair generation method and system
CN109035024A (en)*2018-08-152018-12-18杭州链汇通区块链科技有限公司Method, system and the storage medium of electronic signature
CN109063426A (en)*2018-09-202018-12-21新华智云科技有限公司A kind of copyright based on alliance's block chain deposits card sharing method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112685795A (en)*2020-12-312021-04-20树根互联技术有限公司Digital deposit certificate creating method, digital deposit certificate verifying method and digital deposit certificate system
CN112685795B (en)*2020-12-312023-09-05树根互联股份有限公司Digital certificate creation method, digital certificate verification method and digital certificate system
CN114884663A (en)*2021-02-052022-08-09腾讯科技(深圳)有限公司Multimedia object processing method, device, equipment and storage medium
CN114884663B (en)*2021-02-052024-06-11腾讯科技(深圳)有限公司Multimedia object processing method, device, equipment and storage medium
CN112926070A (en)*2021-03-022021-06-08浪潮云信息技术股份公司Domestic CPU and operating system based non-secret-related domain and secret-related domain official document exchange method and system
CN114971421A (en)*2022-07-222022-08-30中国长江三峡集团有限公司Hydropower station operation risk management and control system based on block chain technology

Also Published As

Publication numberPublication date
CN111444479B (en)2024-05-14

Similar Documents

PublicationPublication DateTitle
KR102051288B1 (en) Methods and systems for verifying the integrity of digital assets using distributed hash tables and peer-to-peer distributed ledgers
US8959346B2 (en)System and method for a single request—single response protocol with mutual replay attack protection
US8707404B2 (en)System and method for transparently authenticating a user to a digital rights management entity
CN108933667B (en)Management method and management system of public key certificate based on block chain
US8417966B1 (en)System and method for measuring and reporting consumption of rights-protected media content
CN109740317A (en) A blockchain-based digital fingerprint storage method and device
CN111444479B (en) A digital fingerprint ownership verification method and system
US8359473B1 (en)System and method for digital rights management using digital signatures
US20140289525A1 (en)System and method for decentralized management of keys and policies
CN103415856B (en) Online storage device and method, sending device and method, receiving device and method
US20130132733A1 (en)System And Method For Digital Rights Management With System Individualization
US11943339B2 (en)Information processing apparatus, information processing method, and program
CN110826091B (en) A file signature method, device, electronic device and readable storage medium
CN109145617B (en)Block chain-based digital copyright protection method and system
US20130067180A1 (en)Retaining verifiability of extracted data from signed archives
US20230066630A1 (en)System and method for ensuring document integrity with non-fungible tokens
Gao et al.Similarity-based secure deduplication for IIoT cloud management system
Iftikhar et al.A survey on reversible watermarking techniques for relational databases
CN115834035A (en) Multimedia data storage method, computer equipment and storage device
CA2986828C (en)Data recording method, device and system, and computer storage medium
CA2986837C (en)Data authentication method, device and system, and computer storage medium
Igarashi et al.Photrace: A blockchain-based traceability system for photographs on the internet
CN110866858B (en) Watermark embedding and query data providing method, device and data processing method
CN114793237B (en) Smart city data sharing method, equipment and medium based on block chain technology
CN116167071A (en)Digital asset right-determining registration method and device based on blockchain

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp