Transaction information security maintenance system based on block chain
Technical Field
The invention relates to the technical field of information security, in particular to a transaction information security maintenance system based on a block chain.
Background
In the jade trade process, standard components such as jade cups, jade bowls and the like are provided for sale, and the light sensitivity and the lines of the jade are important indexes for measuring the value.
In the transaction process, the situation that the information of the buyer and the seller is not equal is usually faced, and when the buyer who is not intelligible purchases the jade article on the internet, the seller changes hands to sell the similar jade article with the defect inside to the buyer when the transaction is completed, and the jade article with the defect can cause the loss of value. And because the wave shape and the light transmittance of the same jade ware are similar, buyers can easily make a batch of similar fake products, and the existing image recognition system can cause low recognition rate due to the accuracy limitation. Therefore, it is necessary to design a transaction information security maintenance system based on the blockchain, which has strong practicability.
Disclosure of Invention
The invention aims to provide a transaction information security maintenance system based on a block chain, so as to solve the problems in the background technology.
In order to solve the technical problems, the invention provides the following technical scheme: a transaction information security maintenance system based on a block chain comprises a jade article delivery module, a jade article storage module, a buyer operation end and a seller operation end, wherein the buyer operation end is electrically connected with the jade article delivery module, and the seller operation end is electrically connected with the jade article storage module;
the jade ware delivery module is used for delivering jade ware to a buyer, the jade ware storage module is used for storing the jade ware, the buyer operation end is used for verifying the legality so as to extract the jade ware, the seller operation end is used for taking out the jade ware to be displayed, and the jade ware which is displayed is stored as a certificate.
According to the technical scheme, the jade article storage module comprises a light irradiation module, an image identification module, an image information encryption module, a jade article containing unit and a photosensitive module, wherein the image identification module is electrically connected with the image information encryption module;
the light shines the module and is used for shining the jade article and make its line clear visible, the image identification module is used for discerning the pattern of jade article, image information encryption module is used for coding image information to prevent seller's discernment, the jade article holds the unit and is arranged in placing the jade article in the system and supplies the observation, sensitization module is used for the perception to see through the luminosity of jade article.
According to the technical scheme, the working process of the jade ware warehousing module is as follows:
s1, placing the newly purchased jade article into a jade article holding unit, irradiating the jade article by using a light irradiation module, and identifying image information on the jade article by using an image identification module;
s2, encoding the image information on the jade article by using the image information encryption module, and coding parameters such as the wave shape, the light transmittance and the like of the jade article;
s3, the buyer opens the jade article containing unit after reading the jade articles through the buyer operating end, takes out a certain jade article for displaying, puts the jade articles into the jade article containing unit in the same way after displaying, repeats the step S1 for scanning, checks the scanned information of the previous and next two times, and finds out a batch of jade articles with similar parameters in the library.
According to the above technical solution, in the step S2, the image information is encoded in a manner that:
s2-1, establishing a plane rectangular coordinate system xoy, drawing grains of the jade article along an x axis by taking an arbitrary value of a y-axis positive coordinate as a starting point and taking a color boundary line of the jade article as a reference, making a color division line waveform diagram, and ensuring the positive coordinate of the whole color division line waveform diagram on the y axis;
s2-2, drawing a sensitization value oscillogram by taking a y-axis negative coordinate as a starting point, taking the circumferential position of the jade article as an abscissa and the sensitization value as an absolute value of a ordinate, and calculating the area formed between the sensitization value oscillogram and the color division line oscillogram, wherein a batch of jade articles with similar areas mean that all parameters are similar;
s2-3, setting up a plurality of separating points, and dividing the color separating line oscillogram into a plurality of parts according to different abscissas;
and S2-4, rotating the sensitization value oscillogram for 180 degrees by taking the point o as a rotation central point, connecting each separation point with the left end starting point and the right end point of the oscillogram, and obtaining the area of each triangular region.
According to the technical scheme, the jade ware delivery module is delivered in a delivery process as follows:
s4, the buyer inputs the abscissa of the selected separation point into the image information encryption module through the buyer operation end;
s5, screening a batch of jade ware with similar photosensitivity value oscillogram and ripple shape from the library;
and S6, recording the selected abscissa into an image information encryption module, calculating whether the area of a triangular area connected with the point after the sensitization value oscillogram rotates by 180 degrees is equal to the area of the start record, and judging whether the jade is fallen into a bag.
According to the above technical solution, in the step S2-4, the method for calculating the area of the triangle-like region includes:
judging whether the selected point rotated by 180 degrees intersects with the rotated sensitivity oscillogram, if so, connecting the point with the end point of the color division line oscillogram, simultaneously judging whether the two end points intersect with the color division line oscillogram, if so, connecting the point with the sensitivity oscillogram, if not, connecting the line according to the changed point, and calculating the area according to the area between the connecting line and the oscillogram.
According to the technical scheme, the jade article containing unit further comprises an angle calibration module and a pressure sensor, wherein the angle calibration module is used for judging whether the placing angle of the jade article is standard according to circumferential pressure information obtained by the pressure sensor.
According to the technical scheme, the sensitization value oscillogram and the color distinguishing line oscillogram are obtained by smoothing according to the texture information collected by the image identification module.
According to the above technical solution, in the step S2, the number of the separation points is 2 to 8.
According to the technical scheme, the buyer operation end and the seller operation end can interact with the jade article delivery module and the jade article storage module in a two-dimensional code and RFID identification mode.
Compared with the prior art, the invention has the following beneficial effects: according to the invention, by extracting and encrypting the shape characteristics of the jade article, the reasonability of the image can be optionally verified when a buyer takes the goods, the cost for manufacturing fake articles for substitution by the seller is increased, and the safety of transaction is maintained.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of the principles of the present invention;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present invention provides a technical solution: a transaction information security maintenance system based on a block chain comprises a jade article delivery module, a jade article storage module, a buyer operation end and a seller operation end, wherein the buyer operation end is electrically connected with the jade article delivery module, and the seller operation end is electrically connected with the jade article storage module;
the jade article delivery module is used for delivering jade articles to a buyer, the jade article storage module is used for storing the jade articles, the buyer operation end is used for verifying the legality of the jade articles to extract the jade articles, the seller operation end is used for taking out the jade articles to be displayed and storing the displayed jade articles as certificates;
the jade article storage module comprises a light irradiation module, an image identification module, an image information encryption module, a jade article storage unit and a photosensitive module, wherein the image identification module is electrically connected with the image information encryption module;
the jade device comprises a light irradiation module, an image recognition module, an image information encryption module, a jade device containing unit and a photosensitive module, wherein the light irradiation module is used for irradiating the jade device to enable lines of the jade device to be clear and visible, the image recognition module is used for recognizing patterns of the jade device, the image information encryption module is used for coding image information to prevent a seller from recognizing, the jade device containing unit is used for placing the jade device in a system for observation, and the photosensitive module is used for sensing the luminosity penetrating through the jade device;
the working process of the jade ware warehousing module is as follows:
s1, placing the newly purchased jade article into a jade article holding unit, irradiating the jade article by using a light irradiation module, and identifying image information on the jade article by using an image identification module;
s2, encoding the image information on the jade article by using the image information encryption module, and coding parameters such as the wave shape, the light transmittance and the like of the jade article;
s3, the buyer opens the jade article containing unit after reading the jade articles by the buyer operating end, takes out a certain jade article for display, puts the same jade articles into the jade article containing unit after display, repeats the step S1 for scanning, checks the information of the scanning twice, and finds out a batch of jade articles with similar parameters in the library;
in step S2, the image information is encoded in the following manner:
s2-1, establishing a plane rectangular coordinate system xoy, drawing grains of the jade article along an x axis by taking an arbitrary value of a y-axis positive coordinate as a starting point and taking a color boundary line of the jade article as a reference, making a color division line waveform diagram, and ensuring the positive coordinate of the whole color division line waveform diagram on the y axis;
s2-2, drawing a sensitization value oscillogram by taking a y-axis negative coordinate as a starting point, taking the circumferential position of the jade article as an abscissa and the sensitization value as an absolute value of a ordinate, and calculating the area formed between the sensitization value oscillogram and the color division line oscillogram, wherein a batch of jade articles with similar areas mean that all parameters are similar;
s2-3, setting up a plurality of separating points, and dividing the color separating line oscillogram into a plurality of parts according to different abscissas;
s2-4, rotating the photographic sensitivity value oscillogram for 180 degrees by taking the o point as a rotation central point, connecting each separation point with a left end starting point and a right end terminal point of the oscillogram, and obtaining the area of each formed triangular region, wherein by the method, if a seller manufactures fake products and needs to completely resemble the whole texture waveform and the light sensitivity simulation or the similarity is extremely high, the phenomenon of overlarge area deviation of the triangular region cannot occur, and the counterfeiting cost of the seller is greatly improved;
the process of delivering the jade ware out of the warehouse module is as follows:
s4, the buyer inputs the abscissa of the selected separation point into the image information encryption module through the buyer operation end;
s5, screening a batch of jade ware with similar photosensitivity value oscillogram and ripple shape from the library;
s6, recording the selected abscissa into an image information encryption module, calculating whether the area of a triangular area connected with a sensitization value oscillogram at a point after 180-degree rotation is equal to the area of the start record, and judging whether the jade is fallen out of the bag;
in step S2-4, the method for calculating the area of the triangle-like region includes:
judging whether a selected point rotated by 180 degrees intersects with the rotated sensitivity oscillogram, if so, connecting a line with an end point of the color distinguishing line oscillogram, simultaneously judging whether two end points intersect with the color distinguishing line oscillogram, if so, connecting the line with the sensitivity oscillogram, if not, connecting the line according to a changed point, and calculating the area according to the area between the connecting line and the oscillogram, wherein the selected coordinate points are random and two ripple lines are different, so that the arbitrary positions of the two oscillograms are required to be greatly similar, and if any point has defects, the judgment of the end points has larger deviation fundamentally, the seller is prevented from falling off the package, and similar fake products are used for replacement;
the jade article containing unit also comprises an angle calibration module and a pressure sensor, wherein the angle calibration module is used for judging whether the placement angle of the jade article is standard or not according to the circumferential pressure information obtained by the pressure sensor;
the sensitization value oscillogram and the color distinguishing line oscillogram are obtained by smoothing according to the texture information collected by the image identification module;
in the above step S2, the number of the division points is 2 to 8;
the buyer operation end and the seller operation end can interact with the jade article delivery module and the jade article storage module in a two-dimensional code and RFID identification mode.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.