Right and interest voucher processing method, medium and electronic equipment

By decrypting the equity certificates and verifying the encrypted private information, combined with the feature vector calculation of the deep learning model, the abnormality of the equity certificates is quickly identified, solving the problems of high computing resource consumption and low efficiency in the existing technology, and realizing efficient equity Voucher processing.

CN118608288APending Publication Date: 2024-09-06WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410779107.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The equity voucher processing process in the existing technology consumes a large amount of computing resources and is inefficient, making it impossible to quickly identify equity vouchers suspected of plagiarism.

Method used

By decrypting the equity voucher to be detected, extracting and verifying the embedded encrypted private information, searching for the specified equity voucher based on the index information, and using the deep learning model to calculate the feature vector to determine the similarity, and determine whether the equity voucher to be detected is abnormal.

Benefits of technology

It reduces the computing resources required in the process of processing equity vouchers, improves processing efficiency, can quickly identify abnormal equity vouchers, and reduces the complexity of the comparison process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608288A
    Figure CN118608288A
Patent Text Reader

Abstract

The invention discloses a right and interest voucher processing method, a medium and electronic equipment. Decrypting the to-be-detected right and interest voucher to obtain encrypted privacy information embedded in the to-be-detected right and interest voucher; verifying the encrypted privacy information to obtain a verification result of the encrypted privacy information; if the verification result of the encrypted privacy information is successful, searching a specified right voucher corresponding to specified index information according to the specified index information contained in the encrypted privacy information; and when the similarity between the to-be-detected right and interest voucher and the specified right and interest voucher is greater than a threshold value, determining that the to-be-detected right and interest voucher is abnormal. Through the method provided by the invention, whether the to-be-detected right and interest voucher is possible to be the existing right and interest voucher can be rapidly and preliminarily detected, and whether the to-be-detected right and interest voucher is abnormal can be determined without comparing the to-be-detected right and interest voucher with all right and interest vouchers one by one, so that computing resources required in the processing process of the to-be-detected right and interest voucher are reduced, and the processing efficiency is improved. And the working efficiency of processing the to-be-detected right voucher is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of blockchain technology, and more specifically, particularly relates to a method, medium and electronic device for processing equity certificates. Background Art

[0002] With the emergence of blockchain, equity certificates exchanged based on blockchain have also emerged. The equity certificate system based on blockchain can provide creators with a blockchain value network that can realize value co-construction, cannot be tampered with, leaves traces throughout the process, and is traceable based on blockchain technology. However, in the current equity certificate industry, data between different exchanges is not shared, resulting in information asymmetry of equity certificates, and some issuers have problems such as impersonation, plagiarism, or repeated casting. Therefore, exchanges compare equity certificates across the entire network before listing equity certificates, but the comparison method in the relevant technology requires a large amount of computing resources to be wasted, and it is impossible to quickly identify equity certificates suspected of plagiarism.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present invention is to provide a method, medium and electronic device for processing equity certificates, so as to solve the problem in the related art that a large amount of computing resources are consumed and the processing efficiency is low during the equity certificate processing.

[0005] According to one aspect of an embodiment of the present application, a method for processing an equity certificate is provided, including:

[0006] Decrypt the equity certificate to be tested to obtain the encrypted privacy information embedded in the equity certificate to be tested;

[0007] Verifying the encrypted private information to obtain a verification result of the encrypted private information;

[0008] If the verification result of the encrypted private information is successful, then according to the specified index information contained in the encrypted private information, the specified equity certificate corresponding to the specified index information is searched;

[0009] When the similarity between the equity certificate to be detected and the specified equity certificate is greater than a threshold, it is determined that the equity certificate to be detected is abnormal.

[0010] In another embodiment of the present application, a rights certificate to be detected is decrypted to obtain encrypted privacy information embedded in the rights certificate to be detected, including: sliding a preset window of a preset size on a rights certificate image corresponding to the rights certificate to be detected, and using an image area framed by the preset window on the rights certificate image during the sliding process as a candidate sub-image; extracting a target sub-image from each candidate sub-image; the target sub-image is an image in the candidate sub-image that reflects the characteristics of the rights certificate image; dividing the target sub-image into multiple image blocks of a preset size; performing decryption calculation on the image block to obtain the encrypted privacy information value embedded in the image block; and summarizing the encrypted privacy information values ​​embedded in multiple image blocks to obtain the encrypted privacy information embedded in the rights certificate to be detected.

[0011] In another embodiment of the present application, a target sub-image is extracted from each candidate sub-image, including: calculating a uniqueness score of each candidate sub-image; the uniqueness score is used to represent the degree of uniqueness of the candidate sub-image; and the candidate sub-image with the highest uniqueness score among the candidate sub-images is used as the target sub-image.

[0012] In another embodiment of the present application, a decryption calculation is performed on an image block to obtain an encrypted privacy information value embedded in the image block, including: obtaining pixel data and a preset intensity coefficient of each pixel point in the image block in a preset color channel; the preset intensity coefficient is a coefficient set when the encrypted privacy information is embedded in the equity certificate; based on the pixel data and the preset intensity coefficient, determining the encrypted privacy information value corresponding to the image block in the preset color channel.

[0013] In another embodiment of the present application, the encrypted private information is verified to obtain a verification result of the encrypted private information, including: dividing the encrypted private information into encryption information and verification information; the encryption information is located before the verification information; performing encryption verification calculation on the encrypted information to obtain information to be verified corresponding to the encrypted information; when the information to be verified and the verification information are the same, the verification result of the encrypted private information is successful; when the information to be verified and the verification information are different, the verification result of the encrypted private information is failed.

[0014] In another embodiment of the present application, after searching for the designated equity certificate corresponding to the designated index information according to the designated index information contained in the encrypted privacy information, the method also includes: determining a first deep learning model corresponding to the designated equity certificate; based on the first deep learning model, determining a first feature vector of the designated equity certificate and a second feature vector of the equity certificate to be detected; and using the similarity between the first feature vector and the second feature vector as the similarity between the equity certificate to be detected and the designated equity certificate.

[0015] In another embodiment of the present application, the method further includes: if the decryption of the equity certificate to be tested fails, the verification of the encrypted privacy information fails, or there is no specified equity certificate corresponding to the specified index information, then the equity certificate to be tested is compared with the equity certificates of the entire library one by one for similarity; the equity certificates of the entire library include all stored equity certificates; and determining whether the equity certificate to be tested is abnormal based on the similarity between the equity certificate to be tested and the equity certificates of the entire library.

[0016] In another embodiment of the present application, whether the equity certificate to be tested is abnormal is determined based on the similarity between the equity certificate to be tested and the equity certificates in the entire library, including: when the similarity between the equity certificate to be tested and any one of the equity certificates in the entire library is greater than a threshold, determining that the equity certificate to be tested is abnormal; when the similarity between the equity certificate to be tested and the equity certificates in the entire library are both less than or equal to the threshold, determining that the equity certificate to be tested is normal.

[0017] According to one aspect of an embodiment of the present application, a device for processing equity certificates is provided, the device comprising:

[0018] A decryption module, used to decrypt the equity certificate to be tested and obtain the encrypted privacy information embedded in the equity certificate to be tested;

[0019] A verification module, used to verify the encrypted private information and obtain a verification result of the encrypted private information;

[0020] A search module, used for searching for a specified equity certificate corresponding to the specified index information according to the specified index information contained in the encrypted private information if the verification result of the encrypted private information is successful;

[0021] The comparison module is used to determine that the equity certificate to be detected is abnormal when the similarity between the equity certificate to be detected and the specified equity certificate is greater than a threshold.

[0022] According to one aspect of an embodiment of the present application, a computer medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a method for processing equity certificates provided in any embodiment of the present application is implemented.

[0023] According to one aspect of an embodiment of the present application, an electronic device is provided, including: a processor; a memory for storing executable instructions of the processor; the processor executes the executable instructions to enable the electronic device to implement the equity certificate processing method provided by any embodiment of the present application.

[0024] In the technical solution of the present application, the encrypted privacy information embedded in the equity certificate to be tested is obtained by decrypting the equity certificate to be tested. At this time, it can be preliminarily determined that the equity certificate to be tested may be similar to the existing equity certificate; the encrypted privacy information is then verified to obtain the verification result of the encrypted privacy information; if the verification result of the encrypted privacy information is successful, it means that the encrypted privacy information decrypted from the equity certificate to be tested meets the characteristics of the correct encrypted privacy information and is valid encrypted privacy information, and the valid encrypted privacy information may have a corresponding designated equity certificate. Therefore, according to the designated index information contained in the encrypted privacy information, the designated equity certificate corresponding to the designated index information is searched. At this time, it can be further determined that the equity certificate to be tested is similar to the designated equity certificate; when the similarity between the equity certificate to be tested and the designated equity certificate is greater than the threshold, it is determined that the equity certificate to be tested is abnormal. Through the method of the present application, it is possible to preliminarily detect whether the equity certificate to be tested is likely to be an existing equity certificate. If the specified equity certificate can be found according to the specified index information contained in the encrypted privacy information, there is no need to compare the equity certificate to be tested with all equity certificates one by one. It is also possible to determine whether the equity certificate to be tested is abnormal, thereby reducing the computing resources required in the processing of the equity certificate to be tested and improving the work efficiency of processing the equity certificate to be tested.

[0025] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 The flowchart schematically shows a method for processing equity certificates provided in one embodiment of the present application.

[0028] Figure 2 The flowchart schematically shows a method for processing equity certificates provided in one embodiment of the present application.

[0029] Figure 3 A schematic diagram of a rights certificate image provided by an embodiment of the present application is schematically shown.

[0030] Figure 4 A schematic diagram of a rights certificate image provided by an embodiment of the present application is schematically shown.

[0031] Figure 5A schematic diagram of a target sub-image provided by an embodiment of the present application is schematically shown.

[0032] Figure 6 A schematic diagram of the VGG16 algorithm model provided in an embodiment of the present application is schematically shown.

[0033] Figure 7 The flowchart schematically shows a method for processing equity certificates provided in one embodiment of the present application.

[0034] Figure 8 The structural block diagram of the equity certificate processing device provided in one embodiment of the present application is schematically shown.

[0035] Fig. 9 The structural block diagram of an electronic device provided by an embodiment of the present application is schematically shown.

[0036] Fig.10 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0038] In addition, the features, structures or characteristics described in the present application may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the present application.

[0039] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0040] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0041] like Figure 1 As shown, the present application provides a method for processing equity certificates, including S110 to S140, as follows;

[0042] S110: Decrypt the equity certificate to be tested to obtain the encrypted private information embedded in the equity certificate to be tested.

[0043] Specifically, the equity certificate refers to the electronic certification or certificate of the ownership of the digital collection. Digital collections are specific digitized works, artworks or commodities that are uniquely identified using blockchain technology, such as digital paintings, pictures, music, videos and 3D models. The equity certificate to be tested refers to the equity certificate that needs to be tested.

[0044] Decryption refers to performing predetermined processing on the equity certificate to be tested to obtain encrypted private information. If the equity certificate to be tested has corresponding encrypted private information, it can be preliminarily determined that the equity certificate to be tested may be similar to the existing equity certificate.

[0045] The encrypted private information is the information embedded in the equity certificate according to the preset encryption steps when the equity certificate is saved. The encrypted private information can be a sequence, symbol or image according to preset rules.

[0046] In another embodiment of the present application, Figure 2 As shown, the equity certificate to be detected is decrypted to obtain the encrypted private information embedded in the equity certificate to be detected, including S210 to S240, which are as follows:

[0047] S210: Slide a preset window of a preset size on the equity certificate image corresponding to the equity certificate to be detected, and use the image area framed by the preset window on the equity certificate image during the sliding process as a candidate sub-image.

[0048] Specifically, the size of the preset window is related to the size of the equity certificate image. For example, if the size of the equity certificate image is 200*200, then the preset size of the preset window may be 100*100 or 90*90. It should be understood that the size of the image in the present application may be a pixel size. For example, if a certain equity certificate image is 200 pixels long and 200 pixels wide, then the pixel size of the equity certificate image is 200*200. When decrypting, since the size of the preset window used when encrypting the equity certificate image may be uncertain, it is necessary to use preset windows of multiple preset sizes to slide on the equity certificate image corresponding to the equity certificate to be detected. If there is only one preset size of the preset window corresponding to a certain size of the equity certificate image, the number of target sub-images obtained after the decryption step may be 1 or greater than 1. Figure 3 As shown, the size of the equity certificate image corresponding to the equity certificate to be detected is 5*7, and the size of the preset window is 2*2. The preset window can slide one pixel at a time on the equity certificate image, so multiple candidate sub-images can be selected through the preset window.

[0049] S220, extracting a target sub-image from each candidate sub-image; the target sub-image is an image that reflects the characteristics of the equity certificate image among the candidate sub-images.

[0050] Specifically, the difference between adjacent candidate sub-images is not large, but the candidate sub-images located at different positions in the equity certificate image contain different pixels, that is, the image contents they contain are not the same. Figure 4 As shown, pattern A is the most characteristic image area in the equity certificate image, and other areas have no pattern or no valid image content. Candidate sub-image H1 may not frame pattern A, or only frame part of pattern A, and candidate sub-image H2 frames the entire pattern A. Then candidate sub-image H2 is the image that reflects the characteristics of the equity certificate image, so candidate sub-image H2 is extracted as the target sub-image.

[0051] S230, dividing the target sub-image into a plurality of image blocks of a preset size; performing decryption calculation on the image blocks to obtain encrypted private information values ​​embedded in the image blocks.

[0052] Specifically, assuming that the size of the target sub-image is 749*949, before dividing the target sub-image into multiple image blocks of a preset size, such as Figure 5 As shown, the area filled with diagonal lines represents the target sub-image, and a row of pixels is added at the bottom of the target sub-image and a column of pixels is added at the rightmost side of the target sub-image to make the size of the target sub-image an even number, so as to segment the target sub-image. Figure 5This is just a glimpse of the process of filling the target sub-image size, and does not mean that 749 pixels and 949 pixels are Figure 5 The length is shown. After padding, the size of the target sub-image is 750*950. The target sub-image is divided into four images of 375*475. For each 375*475 image, it is further divided into (46×59) 8*8 image blocks. Then, for the target sub-image of size 749*949, (2714×4) 8*8 image blocks can be obtained. Then, the (2714×4) image blocks are decrypted to obtain the encrypted privacy information value embedded in the image blocks. For example, the decryption calculation is performed according to the image content of each image block to obtain the encrypted privacy information value corresponding to the image block. The image content of the image block includes the color and brightness of the image.

[0053] S240 , summarizing the encrypted private information values ​​embedded in multiple image blocks to obtain the encrypted private information embedded in the equity certificate to be detected.

[0054] Specifically, the encrypted privacy information values ​​embedded in multiple image blocks are aggregated to obtain the encrypted privacy information embedded in the equity certificate to be detected. For example, if the encrypted privacy information value embedded in an image block is 1 bit, then by aggregating the encrypted privacy information values ​​of (2714×4) 8*8 image blocks, (2714×4) bits of encrypted privacy information can be obtained.

[0055] In another embodiment of the present application, a target sub-image is extracted from each candidate sub-image, including: calculating a uniqueness score of each candidate sub-image; the uniqueness score is used to represent the degree of uniqueness of the candidate sub-image; and the candidate sub-image with the highest uniqueness score among the candidate sub-images is used as the target sub-image.

[0056] Specifically, the uniqueness score can be calculated based on parameters such as the color value and brightness value of the candidate sub-image. For example, the equity certificate image corresponding to the equity certificate to be detected has RGB channel values, and the RGB channel values ​​specifically include: R (red) channel value, G (green) channel value and B (blue) channel value. The RGB channel value is converted to a grayscale value by a grayscale conversion formula, where the grayscale conversion formula is: grayscale value = 0.2989 × red channel value + 0.5870 × green channel value + 0.1140 × blue channel value. In the grayscale conversion formula, the weight of the red channel is 0.2989, the weight of the green channel is 0.5870, and the weight of the blue channel is 0.1140. These weights are determined in psychological research to better reflect the human eye's perception of different colors. By applying the grayscale conversion formula, each pixel in the color image is converted to a single grayscale value, thereby forming a grayscale image. Grayscale images have only one channel, and the value of each pixel represents the brightness or grayscale level of the position, and no longer has color information, in order to simplify the subsequent calculation process. In the process of continuous sliding of the preset window, the candidate sub-images are continuously iterated, and the candidate sub-image with the highest uniqueness score can be determined by calculating the uniqueness scores of all candidate sub-images; the uniqueness scores can also be compared simultaneously during the sliding process, and the final candidate sub-image with the highest uniqueness score is used as the target sub-image. The present application does not impose specific restrictions on the process of comparing the uniqueness scores of each candidate sub-image. For example, the grayscale values ​​of the four pixels in a 2*2 image block are: 255, 0, 255 and 0, respectively, and the average grayscale value is (255+0+255+0) / 4=127.5, then the difference between each pixel and the average grayscale value is 127.5, and the uniqueness score is equal to 127.5×4=510. In addition, since the highest uniqueness score may correspond to multiple candidate sub-images, multiple target sub-images may be selected, or a new target sub-image may be obtained by combining multiple candidate sub-images corresponding to the highest uniqueness score.

[0057] In another embodiment of the present application, a decryption calculation is performed on an image block to obtain an encrypted privacy information value embedded in the image block, including: obtaining pixel data and a preset intensity coefficient of each pixel point in the image block in a preset color channel; the preset intensity coefficient is a coefficient set when the encrypted privacy information is embedded in the equity certificate; based on the pixel data and the preset intensity coefficient, determining the encrypted privacy information value corresponding to the image block in the preset color channel.

[0058] For example, the preset color channel is the XYZ channel, and the pixel data of each pixel in the image block in the XYZ channel can be converted according to the RGB data of the equity certificate image. The conversion formula from the RGB channel to the XYZ channel is:

[0059] X=0.299×R+0.587×G+0.114×BFormula 1

[0060] Y=-0.169×R-0.331×G+0.5×B+128 Formula 2

[0061] Z=0.5×R-0.419×G-0.081×B+128Formula 3

[0062] According to formula 1, formula 2 and formula 3, the pixel data of each pixel in the XYZ channel can be calculated. Assume there is a 2*2 pixel image, and its RGB representation is: Taking the RGB data of the first pixel as an example, the specific calculation process is as follows:

[0063] X=(0.299×255)+(0.587×0)+(0.114×0)=76.2

[0064] Y=(-0.169×R)-(0.331×G)+(0.5×B)+128=84.9

[0065] Z=(0.5×R)-(0.419×G)-(0.081×B)+128=255

[0066] Therefore, the pixel data of the first pixel in the XYZ channel is (76.2, 84.9, 255).

[0067] Then, the image block is decrypted and the bit values ​​corresponding to the X channel, Y channel, and Z channel are calculated respectively. The X channel matrix, Y channel matrix, and Z channel matrix of the image block are transformed respectively. The specific transformation formula is as follows:

[0068]

[0069] Taking a 2*2 image block as an example, the matrix composed of its X channel values ​​is: According to formula 4, formula 5 and formula 6, the matrix is ​​transformed to obtain the transformed matrix

[0070] Transpose the transformed matrix A to obtain the transposed matrix

[0071] Calculate matrix A and transpose matrix A T The product matrix AA T ,get

[0072] For the matrix AA TPerform eigenvalue decomposition and obtain the eigenvalues ​​[44065.833244344630.69675566] and the corresponding eigenvectors arranged from large to small

[0073] Take the eigenvalues ​​and square them to get the singular values, forming a diagonal matrix

[0074] Continue to transpose the matrix A T Perform eigenvalue decomposition and obtain the eigenvalues ​​[208.95 -68.75] and corresponding eigenvectors arranged from large to small

[0075] Finally, the matrix A can be expressed as A = U∑V T .

[0076] From the above decomposed matrix ∑, the corresponding bit value can be solved. According to the fact that the element with the largest element value in the matrix ∑ is the element in the upper left corner, the upper left corner element is obtained and ∑(0,0)%k is calculated, where k is the preset intensity coefficient and % is the calculation symbol for taking the remainder. If the remainder is greater than k / 2, the solved embedded bit value is 1; if the remainder is less than or equal to k / 2, the solved embedded bit value is 0. Assuming k=32, then when ∑(0,0)=210, 210%32=18>(32 / 2), that is, the solved bit value corresponding to the image block in the X channel is 1.

[0077] Assuming that according to the above method, the bit value corresponding to the image block in the Y channel is 0, and the bit value corresponding to the Z channel is 1, then the set of bit values ​​corresponding to the 2*2 image block is (1, 0, 1), and the encrypted privacy information value of the image block is the bit value with a larger proportion in the set, then it is judged that the encrypted privacy information value of the image block is 1. Then, the above decryption steps are performed on each image block, and the encrypted privacy information corresponding to the equity certificate image of the equity certificate to be detected can be obtained.

[0078] In another embodiment, the encrypted privacy information values ​​embedded in multiple image blocks are aggregated to obtain the encrypted privacy information embedded in the equity certificate to be detected, including: aggregating the encrypted privacy information values ​​embedded in multiple image blocks; dividing the multiple encrypted privacy information values ​​into a specified number of encrypted sets; the encrypted sets include a preset number of encrypted privacy information values; and aggregating the set values ​​corresponding to the multiple encrypted sets to obtain the encrypted privacy information embedded in the equity certificate to be detected.

[0079] Specifically, it can be understood that the more encrypted privacy information values ​​are embedded, the more difficult it is to accurately extract. If the length of the embedded encrypted privacy information is 64 bytes, then the probability of extracting one byte of encrypted privacy information incorrectly is 1 / 512, that is, in the 512-bit encrypted privacy information, even if only one bit is wrong, it is impossible to find and match the previously stored designated index information. Therefore, in order to improve the accuracy of the encrypted privacy information, after summarizing the encrypted privacy information values ​​embedded in multiple image blocks, the encrypted privacy information values ​​are further encrypted to improve the robustness of the encrypted privacy information. For example, after summarizing the encrypted privacy information values ​​corresponding to 2714 8*8 image blocks, it is assumed that 32 bytes of encrypted privacy information need to be set, each byte includes 8 bits, and the quotient of 2714 / (32×8) is approximately 10.6015. In order to facilitate the determination of the set value of each encrypted set, the number of encrypted privacy information values ​​in each encrypted set is set to an odd number, so the encrypted privacy information values ​​included in each encrypted set can be 9, 7, 5 or 3. Assuming that each encryption set includes 9 encrypted privacy information values, then 2714 encrypted privacy information values ​​can be divided into 256 groups of encryption sets at most, requiring 256×9=2304 encrypted privacy information values, and the first 2304 encrypted privacy information values ​​can be selected to determine the encrypted privacy information. For example, a certain encryption set is (0,1,1,1,0,1,0,0,0,), where the number of "1" is 4, the number of "0" is 5, and the number of "0" accounts for a larger proportion, then the set value of the encryption set is 0. By determining the set values ​​of 256 encryption sets in sequence, 256 bits of encrypted privacy information can be obtained, and each 8 bits is 1 byte, so 32 bytes of encrypted privacy information can be obtained. It can be known that the encrypted privacy information value may be extracted incorrectly due to an error in the calculation process, but this embodiment gathers multiple encrypted privacy information values ​​together through an encryption set, and determines the set value by determining the encrypted privacy information value that accounts for a larger proportion. The error in extracting a certain encrypted privacy information value will not affect the final set value, thereby improving the accuracy and robustness of the encrypted privacy information determined by this embodiment.

[0080] S120: Verify the encrypted private information to obtain a verification result of the encrypted private information.

[0081] Specifically, the purpose of verifying the encrypted private information is to determine whether the encrypted private information complies with the rules of normal encrypted private information. The verification results include verification success and verification failure. If the verification is successful, it means that the encrypted private information obtained by decryption complies with the rules of normal encrypted private information, and the equity certificate to be tested may be abnormal; otherwise, it means that the encrypted private information obtained by decryption does not comply with the rules of normal encrypted private information, and the equity certificate to be tested may be normal.

[0082] In another embodiment of the present application, the encrypted private information is verified to obtain a verification result of the encrypted private information, including: dividing the encrypted private information into encryption information and verification information; the encryption information is located before the verification information; performing encryption verification calculation on the encrypted information to obtain information to be verified corresponding to the encrypted information; when the information to be verified and the verification information are the same, the verification result of the encrypted private information is successful; when the information to be verified and the verification information are different, the verification result of the encrypted private information is failed.

[0083] Specifically, the verification information is information divided from the encrypted private information, and the information to be verified is information obtained by performing encryption verification calculation on the encrypted information. If the encrypted private information complies with the correct rules for encrypted private information, then the verification information and the information to be verified are equal, and it is further determined that the equity certificate to be tested may be abnormal. If the encrypted private information does not comply with the correct rules for encrypted private information, then the verification information and the information to be verified are not equal, and the equity certificate to be tested may be normal. In addition, the encrypted information, the verification information and the information to be verified can be numbers, symbols or pictures, etc. For example, the encrypted private information is 32 bytes, of which the first 16 bytes are the encrypted information a, and the last 16 bytes are the verification information b. The process of performing encryption verification calculation on the encrypted information a includes: adding salt to the encrypted information a and calculating the first 16 bytes of the hash result, and the first 16 bytes are the information to be verified c, that is, c=Sub16(Hash(a|Salt)).

[0084] Assume that the encrypted information a is 0x25d28ff58144ffcf49e2a39d15c549f7, the check information b is 3cefec08f5aa9ac3e2a4d36ae6a24d5a, and the agreed salt value salt is 0x123456ABCD, then the hash result is as follows:

[0085] 0x3cefec08f5aa9ac3e2a4d36ae6a24d5a1c2451d4a4ce006bb47d1e8f5f463511

[0086] The first 16 bytes of the above hash result 3cefec08f5aa9ac3e2a4d36ae6a24d5a are selected as the information to be verified c. The verification information b is compared with the information to be verified c. It can be determined that the verification information b is equal to the information to be verified c, so the verification result can be determined to be successful.

[0087] S130: If the verification result of the encrypted private information is successful, searching for a designated equity certificate corresponding to the designated index information according to the designated index information included in the encrypted private information.

[0088] Specifically, the designated index information is information determined based on the encrypted privacy information, such as the designated index information is equal to the encrypted privacy information, or the designated index information is obtained by calculating the encrypted privacy information according to a preset rule, or information of a preset length and a preset position in the encrypted privacy information is selected as the designated index information. The designated equity certificate is the equity certificate corresponding to the designated index information. The index information of the designated equity certificate is the same as the index information of the equity certificate to be tested, indicating that the designated equity certificate and the equity certificate to be tested are similar equity certificates. It can be seen that by finding the designated equity certificate, the equity certificate similar to the equity certificate to be tested can be preliminarily determined, thereby improving the detection efficiency.

[0089] S140: When the similarity between the equity certificate to be detected and the designated equity certificate is greater than a threshold, it is determined that the equity certificate to be detected is abnormal.

[0090] Specifically, similarity refers to the degree of similarity between two equity certificates. A threshold value of similarity can be set in advance. If the similarity between the equity certificate to be detected and the specified equity certificate is greater than the threshold value, it means that the degree of similarity between the equity certificate to be detected and the specified equity certificate is very high, and therefore the equity certificate to be detected is determined to be abnormal.

[0091] In the technical solution of the present application, by decrypting the equity certificate to be detected, the encrypted privacy information embedded in the equity certificate to be detected is obtained, and at this time, it can be preliminarily determined that the equity certificate to be detected may be similar to the existing equity certificate; then the encrypted privacy information is verified to obtain the verification result of the encrypted privacy information; if the verification result of the encrypted privacy information is successful, it means that the encrypted privacy information decrypted from the equity certificate to be detected meets the characteristics of the correct encrypted privacy information and belongs to valid encrypted privacy information, and the valid encrypted privacy information may have a corresponding designated equity certificate, so according to the designated index information contained in the encrypted privacy information, the designated equity certificate corresponding to the designated index information is searched, and at this time, it can be further determined that the equity certificate to be detected is similar to the designated equity certificate; when the similarity between the equity certificate to be detected and the designated equity certificate is greater than the threshold, it is determined that the equity certificate to be detected is abnormal. Through the method of the present application, it is possible to quickly and preliminarily detect whether the equity certificate to be detected may be an existing equity certificate. If the designated equity certificate can be found according to the designated index information contained in the encrypted privacy information, there is no need to compare the equity certificate to be detected with all equity certificates one by one, and it is also possible to determine whether the equity certificate to be detected is abnormal, thereby reducing the computing resources required in the processing of the equity certificate to be detected and improving the work efficiency of processing the equity certificate to be detected.

[0092] At present, by identifying digital content and performing copyright authentication by the issuer, each digital content can be assigned a unique digital content serial number. The issuer puts the digital content serial number and the associated copyright information on the chain. The unique serial number can be embedded in the data carrier as a digital watermark invisibly, so that the watermark can be extracted to obtain the associated copyright information, but the existing technical solution has the problem of inaccurate blind watermark extraction. If the prior art is applied to a single scene, the inaccuracy of blind watermark extraction is not prominent, but if it needs to be applied to multiple scenes, the prior art will make frequent mistakes. It should be understood that the encrypted privacy information mentioned in this application can be understood as a digital watermark. However, this application does not adopt the method of assigning a unique serial number to each existing equity certificate and embedding the unique serial number into the equity certificate, but determines the index information based on the encrypted privacy information extracted from the equity certificate to be detected, and searches for the specified equity certificate based on the index information, which can shorten the embedding length of the encrypted privacy information. For equity certificate images with smaller sizes, the corresponding encrypted privacy information can also be extracted, and for equity certificate images with larger sizes, the extraction accuracy can be improved by increasing redundant embedding, thereby obtaining more accurate encrypted privacy information under the limited length of encrypted privacy information.

[0093] In another embodiment, when the similarity between the equity certificate to be detected and the designated equity certificate is less than or equal to a threshold, it is determined that the equity certificate to be detected is normal.

[0094] Specifically, if the similarity between the equity certificate to be tested and the designated equity certificate is less than or equal to the threshold, it means that the similarity between the equity certificate to be tested and the designated equity certificate is not high, the equity certificate to be tested is normal, and the equity certificate to be tested can be encrypted.

[0095] In another embodiment of the present application, after searching for the designated equity certificate corresponding to the designated index information according to the designated index information contained in the encrypted privacy information, the method provided by the present application also includes: determining a first deep learning model corresponding to the designated equity certificate; based on the first deep learning model, determining a first feature vector of the designated equity certificate and a second feature vector of the equity certificate to be detected; and using the similarity between the first feature vector and the second feature vector as the similarity between the equity certificate to be detected and the designated equity certificate.

[0096] Specifically, the first deep learning model is the model used when calculating the feature vector of the specified equity certificate. The first deep learning model includes algorithm models based on convolutional neural networks such as ResNet, VGG and YOLO. Since the first deep learning models adopted by different issuers or institutions are different, before calculating the feature vector of the equity certificate to be tested, it is necessary to download the algorithm model adopted by the specified equity certificate. Then calculate the hash value HASH1 of the downloaded algorithm model and compare it with the hash value HASH disclosed by the algorithm model. For example, a smart contract is published on the public chain, the relevant information of the algorithm model is stored, and the code and address of the smart contract are made public on the entire network. For example, the summary information stored in the smart contract is as follows:

[0097] Model name: VGG16-ImageNET

[0098] Applicable digital collection type: Image

[0099] Applicable digital collection formats: gif, jpg, jpeg, bng and png

[0100] Model version: V1.0.0

[0101] Model operating environment: [Linux, Windows, MACOS]

[0102] Running language: Python 3.9.6

[0103] URI: IPFS: xxxxxxxxxxxxx

[0104] HASH: YYYYYYYYYYYYYYYYYYYYYYYYYYYY

[0105] Similarity threshold: 0.999

[0106] It can be seen that the summary information of the algorithm model includes the public hash value HASH, and the calculated hash value HASH1 is compared with the hash value HASH to verify the accuracy of the downloaded verification model. Then, based on the VGG16 deep learning model, the first feature vector of the specified equity certificate and the second feature vector of the equity certificate to be tested are determined. VGG16 has been open source, and its complete deep learning algorithm model can be downloaded online. Since the original model of the VGG algorithm is used as a classifier, and it is used as a feature vector extractor in this application, this application abandons the last 3 FC layers and softmax layers, and after the algorithm calculation of the 7*7*512 layer, the obtained matrix is ​​flattened, and finally a one-dimensional vector with a length of 25088 is obtained. For a certain equity certificate to be tested, such as Figure 6As shown, the specific process of calculating the feature vector through the VGG16 algorithm model is as follows:

[0107] First, the equity certificate image of the equity certificate to be tested is cropped into a 224*224 RGB image as the input of the following algorithm model.

[0108] The first input layer: The input is a three-channel image of 224×224×3.

[0109] The second vgg block layer: The input is a three-channel image of 224×224×3. After 64 convolutions with a kernel size of 3×3×3 filters, stride=1, and padding=same, a block layer with a shape of 224×224×64 is obtained (referring to the vgg-block composed of conv).

[0110] The third max-pooling layer: The input is a block layer of 224×224×64, which is halved by pooling with pool size=2 and stride=2 to obtain a pooling layer of size 112×112×64.

[0111] The fourth vgg block layer: the input pooling layer is of size 112×112×64, and after 128 3×3×64 filter convolutions, a block layer of 112×112×128 is obtained.

[0112] The fifth max-pooling layer: The input is a block layer of 112×112×128, which is halved by pooling with pool size=2 and stride=2 to obtain a pooling layer of size 56×56×128.

[0113] The sixth vgg block layer: the input pooling layer is of size 56×56×128, and after 256 convolutions of 3×3×128 filters, a block layer of 56×56×256 is obtained.

[0114] The 7th Max-pooling layer: The input is a block layer of 56×56×256, which is halved after pooling with pool size=2 and stride=2 to obtain a pooling layer of size 28×28×256.

[0115] The 8th vgg block layer: the input pooling layer is of size 28×28×256, and after 512 3×3×256 filter convolutions, a 28×28×512 block layer is obtained.

[0116] The 9th Max-pooling layer: The input is a block layer of 28×28×512, which is halved after pooling with pool size=2 and stride=2 to obtain a pooling layer of size 14×14×512.

[0117] The 10th vgg block layer: the input pooling layer is of size 14×14×512, and after 512 convolutions of 3×3×512 filters, a block layer of 14×14×512 is obtained.

[0118] The 11th Max-pooling layer: The input is a block layer of 14×14×512, and after halving the pooling with pool size=2 and stride=2, a pooling layer of size 7×7×512 is obtained. Perform a flatten operation, and obtain 7×7×512=25088 parameters by flattening to obtain the second feature vector n of the equity certificate to be tested. Similarly, the first feature vector m of the specified equity certificate can be calculated, or the first feature vector m of the specified equity certificate has been recorded when the specified equity certificate is issued, and then the similarity between the first feature vector m and the second feature vector n is used as the similarity between the specified equity certificate and the equity certificate to be tested.

[0119] In addition, the threshold of the similarity between the first feature vector m and the second feature vector n is related to the first deep learning model used. The thresholds corresponding to different first deep learning models are not the same. For example, the similarity threshold of VGG16-ImageNET is 0.999, that is, when the similarity between the first feature vector m and the second feature vector n is greater than 0.999, the equity certificate to be tested is judged to be abnormal; otherwise, the equity certificate to be tested is judged to be normal.

[0120] In another embodiment of the present application, the method further includes: if the decryption of the equity certificate to be tested fails, the verification of the encrypted privacy information fails, or there is no specified equity certificate corresponding to the specified index information, then the equity certificate to be tested is compared with the equity certificates of the entire library one by one for similarity; the equity certificates of the entire library include all stored equity certificates; and determining whether the equity certificate to be tested is abnormal based on the similarity between the equity certificate to be tested and the equity certificates of the entire library.

[0121] Specifically, the entire database equity certificate refers to all existing equity certificates stored or disclosed in the entire database. Figure 7As shown, after the processing method of the equity certificate to be detected is started, S710 is executed. If the decryption of the equity certificate to be detected is successful, S720 is executed; if the encrypted privacy information is verified successfully, S730 is continued to be executed; if the search for the designated equity certificate corresponding to the specified index information is successful, S740 is executed to compare the similarity between the equity certificate to be detected and the designated equity certificate. If the decryption of the equity certificate to be detected fails, the encrypted privacy information verification fails, or the designated equity certificate corresponding to the specified index information does not exist, it means that the equity certificate to be detected is probably normal, then S750 is executed to compare the similarity between the equity certificate to be detected and the equity certificates in the entire library one by one, so as to comprehensively determine whether the equity certificate to be detected is abnormal. Through this embodiment, the detection accuracy of the equity certificate to be detected can be improved, and it is avoided that the equity certificate to be detected fails to be decrypted, the encrypted privacy information verification fails, or the designated equity certificate corresponding to the specified index information does not exist is directly identified as a normal equity certificate.

[0122] In another embodiment of the present application, whether the equity certificate to be tested is abnormal is determined based on the similarity between the equity certificate to be tested and the equity certificates in the entire library, including: when the similarity between the equity certificate to be tested and any one of the equity certificates in the entire library is greater than a threshold, determining that the equity certificate to be tested is abnormal; when the similarity between the equity certificate to be tested and the equity certificates in the entire library are both less than or equal to the threshold, determining that the equity certificate to be tested is normal.

[0123] Specifically, Figure 7 As shown, after executing S750, S760 is performed to determine whether the similarity between the equity certificate to be tested and the equity certificate of the entire library is greater than the threshold. If the similarity between the equity certificate to be tested and any equity certificate of the entire library is greater than the threshold, S770 is performed to determine that the equity certificate to be tested is abnormal; otherwise, S780 is performed to determine that the equity certificate to be tested is normal. For example, assuming that the threshold of similarity is 0.98, when the similarity between the equity certificate to be tested and any equity certificate in the entire library is greater than 0.98, the equity certificate to be tested is determined to be abnormal; when the similarity between the equity certificate to be tested and the equity certificate of the entire library is less than or equal to 0.98, the equity certificate to be tested is determined to be normal.

[0124] In another embodiment, after determining that the equity certificate to be tested is normal, the method provided by the present application also includes: using the equity certificate to be tested as the equity certificate to be added; encrypting the equity certificate to be added to determine the watermark information of the equity certificate to be added; determining the index information of the equity certificate to be added based on the watermark information; and storing the equity certificate to be added based on the index information.

[0125] Specifically, the watermark information is information determined based on the content of the equity certificate to be added. The process of encrypting the equity certificate to be added is similar to the process of decrypting the equity certificate to be detected. It is also necessary to process the equity certificate image of the equity certificate to be added, such as identifying the target sub-image in the equity certificate to be added, dividing the target sub-image into multiple image blocks, and then determining the bit values ​​corresponding to the multiple image blocks, and finally summarizing the bit values ​​corresponding to all image blocks, so as to determine the watermark information corresponding to the equity certificate to be added. In order to increase the accuracy of the watermark information, the summarized bit values ​​can be divided into a specified number of sets. The subsequent steps have been described in the previous embodiments and will not be repeated here. After the equity certificate to be added is stored based on the index information, the equity certificate to be added is converted into an existing equity certificate. When the new equity certificate to be detected is subsequently detected, it will also be used as a comparison object for the new equity certificate to be detected.

[0126] The following describes an embodiment of the device for processing equity certificates of the present application, and the method for processing equity certificates in the above-mentioned embodiments of the present application can be applied. Figure 8 As shown, the present application provides a device for processing equity certificates, the device comprising:

[0127] Decryption module 810, used to decrypt the equity certificate to be detected to obtain the encrypted privacy information embedded in the equity certificate to be detected;

[0128] Verification module 820, used to verify the encrypted private information and obtain the verification result of the encrypted private information;

[0129] A search module 830 is used to search for a designated equity certificate corresponding to the designated index information according to the designated index information contained in the encrypted private information if the verification result of the encrypted private information is successful;

[0130] The comparison module 840 is used to determine that the equity certificate to be detected is abnormal when the similarity between the equity certificate to be detected and the specified equity certificate is greater than a threshold.

[0131] In another embodiment of the present application, the decryption module 810 includes: a sliding unit, which is used to slide a preset window of a preset size on the equity certificate image corresponding to the equity certificate to be detected, and use the image area framed by the preset window on the equity certificate image during the sliding process as a candidate sub-image; an extraction unit, which is used to extract a target sub-image from each candidate sub-image; the target sub-image is an image in the candidate sub-image that reflects the characteristics of the equity certificate image; an image division unit, which is used to divide the target sub-image into multiple image blocks of a preset size; a first calculation unit, which is used to perform decryption calculation on the image block to obtain the encrypted privacy information value embedded in the image block; and a summary unit, which is used to summarize the encrypted privacy information values ​​embedded in multiple image blocks to obtain the encrypted privacy information embedded in the equity certificate to be detected.

[0132] In another embodiment of the present application, the extraction unit is used to calculate the uniqueness score of each candidate sub-image; the uniqueness score is used to indicate the degree of uniqueness of the candidate sub-image; and the candidate sub-image with the highest uniqueness score among the candidate sub-images is used as the target sub-image.

[0133] In another embodiment of the present application, the first computing unit is used to obtain pixel data and a preset intensity coefficient of each pixel point in the image block in a preset color channel; the preset intensity coefficient is a coefficient set when the encrypted privacy information is embedded in the equity certificate; based on the pixel data and the preset intensity coefficient, the encrypted privacy information value corresponding to the image block in the preset color channel is determined.

[0134] In another embodiment of the present application, the verification module 820 includes: an information division unit, used to divide the encrypted privacy information into encryption information and verification information; the encryption information is located before the verification information; a second calculation unit, used to perform encryption verification calculation on the encrypted information to obtain information to be verified corresponding to the encrypted information; a first verification unit, used to verify the encrypted privacy information as a success when the information to be verified and the verification information are the same; a second verification unit, used to verify the encrypted privacy information as a failure when the information to be verified and the verification information are not the same.

[0135] In another embodiment of the present application, the equity certificate processing device of the present application also includes: a similarity calculation module, which is used to determine the first deep learning model corresponding to the specified equity certificate after searching for the specified equity certificate corresponding to the specified index information according to the specified index information contained in the encrypted privacy information; based on the first deep learning model, determine the first feature vector of the specified equity certificate and the second feature vector of the equity certificate to be detected; and use the similarity between the first feature vector and the second feature vector as the similarity between the equity certificate to be detected and the specified equity certificate.

[0136] In another embodiment of the present application, the equity certificate processing device of the present application also includes: a full-library comparison module, which is used to compare the equity certificate to be tested with the equity certificates in the full library one by one for similarity if the decryption of the equity certificate to be tested fails, the encrypted privacy information verification fails, or the specified equity certificate corresponding to the specified index information does not exist; the equity certificates in the full library include all stored equity certificates; and an anomaly detection module, which is used to determine whether the equity certificate to be tested is abnormal based on the similarity between the equity certificate to be tested and the equity certificates in the full library.

[0137] In another embodiment of the present application, the anomaly detection module includes: a first detection unit, used to determine that the equity certificate to be detected is abnormal when the similarity between the equity certificate to be detected and any one of the equity certificates in the entire library is greater than a threshold; a second detection unit, used to determine that the equity certificate to be detected is normal when the similarity between the equity certificate to be detected and the equity certificates in the entire library are both less than or equal to the threshold.

[0138] It should be known that the specific implementation of the equity certificate processing device provided in this application has been specifically explained in the corresponding method embodiment and will not be elaborated here.

[0139] like Fig. 9 As shown, the present application provides an electronic device 900, including: a processor 910 and a memory 920, the memory 920 is used to store executable instructions of the processor; the processor 910 executes the executable instructions to enable the electronic device to implement the equity certificate processing method provided by any embodiment of the present application.

[0140] Specifically, the processing method of the equity certificate provided in the present application is stored in the memory 920 of the electronic device, and the processing method of the equity certificate is executed by the processor 910 to decrypt the equity certificate to be detected. If the decryption is successful, the encrypted privacy information can be obtained; then the encrypted privacy information is verified. If the verification result is successful, the corresponding designated equity certificate is searched according to the designated index information; finally, when the similarity between the equity certificate to be detected and the designated equity certificate is greater than a threshold, it is determined that the equity certificate to be detected is abnormal.

[0141] Fig.10 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0142] It should be noted that Fig.10 The computer system 1000 shown from the mobile device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0143] like Fig.10As shown, the computer system 1000 includes a processor 1001, which can be a CPU (Central Processing Unit) or an MCU (Microcontroller Unit). The processor 1001 can perform various appropriate actions and processes according to the program stored in the read-only memory 1002 (Read-Only Memory, ROM) or the program loaded from the storage part 1008 to the random access memory 1003 (Random Access Memory, RAM). In the random access memory 1003, various programs and data required for system operation are also stored. The processor 1001, the read-only memory 1002 and the random access memory 1003 are connected to each other through a bus 1004. The input / output interface 1005 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1004.

[0144] The following components are connected to the input / output interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the input / output interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0145] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1009, and / or installed from a removable medium 1011. When the computer program is executed by the processor 1001, various functions defined in the system of the present application are executed.

[0146] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0147] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0148] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0149] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the implementation method according to the present application.

[0150] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0151] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for processing equity certificates, It is characterized in that include: Decrypt the equity certificate to be tested to obtain the encrypted privacy information embedded in the equity certificate to be tested; Verifying the encrypted private information to obtain a verification result of the encrypted private information; If the verification result of the encrypted private information is successful, searching for a designated equity certificate corresponding to the designated index information according to the designated index information contained in the encrypted private information; When the similarity between the equity certificate to be detected and the designated equity certificate is greater than a threshold, it is determined that the equity certificate to be detected is abnormal.

2. The method for processing equity certificates as claimed in claim 1, It is characterized in that The decrypting of the equity certificate to be detected to obtain the encrypted private information embedded in the equity certificate to be detected includes: Slide a preset window of a preset size on the equity certificate image corresponding to the equity certificate to be detected, and use the image area framed by the preset window on the equity certificate image during the sliding process as a candidate sub-image; Extracting a target sub-image from each candidate sub-image; the target sub-image is an image in the candidate sub-images that reflects the characteristics of the equity certificate image; Dividing the target sub-image into a plurality of image blocks of preset sizes; Performing a decryption calculation on the image block to obtain an encrypted privacy information value embedded in the image block; The encrypted private information values ​​embedded in the plurality of image blocks are aggregated to obtain the encrypted private information embedded in the equity certificate to be detected.

3. The method for processing equity certificates as claimed in claim 2, It is characterized in that The step of extracting a target sub-image from each candidate sub-image comprises: Calculating a uniqueness score for each candidate sub-image; the uniqueness score is used to indicate the degree to which the candidate sub-image is distinguished from other candidate sub-images; The candidate sub-image with the highest uniqueness score among the candidate sub-images is used as the target sub-image.

4. The method for processing equity certificates as claimed in claim 2, It is characterized in that The performing decryption calculation on the image block to obtain the encrypted privacy information value embedded in the image block includes: Obtaining pixel data and a preset intensity coefficient of each pixel point in the image block in a preset color channel; the preset intensity coefficient is a coefficient set when the encrypted privacy information is embedded in the equity certificate; Based on the pixel data and the preset intensity coefficient, the encrypted private information value corresponding to the image block in the preset color channel is determined.

5. The method for processing equity certificates as claimed in claim 1, It is characterized in that The verifying the encrypted private information to obtain a verification result of the encrypted private information includes: Dividing the encrypted private information into encryption information and verification information; the encryption information is located before the verification information; Performing encryption verification calculation on the encrypted information to obtain information to be verified corresponding to the encrypted information; When the information to be verified is the same as the verification information, the verification result of the encrypted private information is successful; When the information to be verified is different from the verification information, the verification result of the encrypted private information is failure.

6. The method for processing equity certificates as claimed in claim 1, It is characterized in that After searching for a designated equity certificate corresponding to the designated index information according to the designated index information included in the encrypted private information, the method further includes: Determining a first deep learning model corresponding to the specified equity certificate; Determine, based on the first deep learning model, a first feature vector of the designated equity certificate and a second feature vector of the equity certificate to be detected; The similarity between the first feature vector and the second feature vector is used as the similarity between the equity certificate to be detected and the designated equity certificate.

7. The method for processing equity certificates as claimed in claim 1, It is characterized in that The method further comprises: If the decryption of the equity certificate to be detected fails, the verification of the encrypted privacy information fails, or there is no designated equity certificate corresponding to the designated index information, then the equity certificate to be detected is compared with the equity certificates in the entire library one by one for similarity; the equity certificates in the entire library include all the stored equity certificates; Whether the equity certificate to be detected is abnormal is determined based on the similarity between the equity certificate to be detected and the equity certificates in the entire library.

8. The method for processing equity certificates as claimed in claim 7, It is characterized in that The determining whether the equity certificate to be detected is abnormal according to the similarity between the equity certificate to be detected and the equity certificates in the entire library includes: When the similarity between the equity certificate to be detected and any equity certificate in the entire database is greater than a threshold, it is determined that the equity certificate to be detected is abnormal; When the similarity between the equity certificate to be detected and the equity certificate of the entire library is less than or equal to a threshold, it is determined that the equity certificate to be detected is normal.

9. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for processing the equity certificate described in any one of claims 1 to 8 is implemented.

10. An electronic device, It is characterized in that include: processor; A memory, configured to store executable instructions of the processor; The processor executes the executable instructions to enable the electronic device to implement the equity certificate processing method as described in any one of claims 1 to 8 above.