CN117522427A - Product service method and device and electronic equipment - Google Patents

Product service method and device and electronic equipment Download PDF

Info

Publication number
CN117522427A
CN117522427A CN202311481855.6A CN202311481855A CN117522427A CN 117522427 A CN117522427 A CN 117522427A CN 202311481855 A CN202311481855 A CN 202311481855A CN 117522427 A CN117522427 A CN 117522427A
Authority
CN
China
Prior art keywords
product
data
product data
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311481855.6A
Other languages
Chinese (zh)
Inventor
张庆胜
张平
何丽
尹刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN202311481855.6A priority Critical patent/CN117522427A/en
Publication of CN117522427A publication Critical patent/CN117522427A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The application discloses a service method, a service device and electronic equipment of a product, wherein the method is applied to a product service platform and comprises the following steps: receiving product data from a product issuer, wherein the product data comprises a digital signature of data corresponding to product information based on a digital certificate by the product issuer; product data is written to the target blockchain and synchronized to a plurality of blockchains. By the technical scheme provided by the embodiment of the application, the problems that the release of the product data is unsmooth, the supervision of the released product data is difficult, the authenticity of the product data is difficult to guarantee and the like in the traditional supply chain system are solved, and the real-time information sharing, the efficient automatic supervision and the data authenticity and credibility of the product data are realized.

Description

Product service method and device and electronic equipment
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a service method and apparatus for a product, and an electronic device.
Background
The supply chain refers to the supply system from raw materials to products, products to the sales network, and finally to the consumer. In this process, a release link of product data for a product is involved. Based on the release of the product data, the consumer is made aware of the product data of the product to determine whether to consume the product. Currently, product data for a product is published based on a traditional supply chain. However, when product data is distributed based on a conventional supply chain, there is a lack of objective and fair third parties to effectively manage the product data, so that the authenticity of the product data is difficult to guarantee, the product data is not smoothly transferred, and the distributed product data is difficult to manage.
Disclosure of Invention
The application provides a service method, a service device and electronic equipment of a product, which are used for solving the problems that the traditional supply chain system is unsmooth in transmitting product data, difficult in supervising the issued product data and difficult in guaranteeing the authenticity of the issued product data. The specific implementation scheme is as follows:
in a first aspect, the present application provides a service method of a product, applied to a product service platform, where the method includes:
receiving product data from a product issuer; the product data comprises a digital signature of the data corresponding to the product information based on the digital certificate by the product issuer;
the product data is written to a target blockchain and synchronized to a plurality of blockchains.
Through the application embodiment, the product data sent by the received product publisher is written into the target blockchain, and the product data is synchronized to a plurality of blockchains, so that the product data can be known by enterprises (such as product inquirers) at the first time, and the high efficiency and timeliness of the product data are ensured; and the product data is stored through the blockchain, so that the economic loss of enterprises caused by the loss or damage of the product data after the information of a certain node is damaged by the traditional supply chain system is avoided. Meanwhile, the problem that the traditional supply chain is difficult to supervise the published product data is avoided. In addition, the product data contains the digital signature of the product issuer, so that the product data has authenticity and traceability, and the repudiation of the product issuer is prevented; meanwhile, based on the digital signature, the product data cannot be modified by a malicious third party, so that the product data is also non-tamper-proof.
In one possible embodiment, the product data includes at least one of product release data, product modification data, and product revocation data.
In one possible implementation, the writing the product data to a target blockchain and synchronizing the product data to a plurality of blockchains includes:
storing the product data into a target database, and determining a product characteristic value corresponding to the product data;
writing the product characteristic value to the target blockchain and synchronizing the product characteristic value to the plurality of blockchains.
In one possible implementation, after the writing the product data to the target blockchain and synchronizing the product data to a plurality of blockchains, the method further includes:
receiving a query keyword input by a product query party;
searching target product data corresponding to the query keywords, and submitting the target product data to the product query party so that the product query party can verify the target product data by utilizing a digital certificate of a target product issuer corresponding to the target product data;
and if the passing information indicating the verification passing of the product inquiring party is received, providing the complete information corresponding to the target product data for the product inquiring party.
In a second aspect, the present application provides a service method of a product, applied to a product publisher, the method comprising:
determining product information, and carrying out digital signature on data corresponding to the product information based on a digital certificate to obtain product data;
and sending the product data to a product service platform, so that the product service platform writes the product data into a target blockchain and synchronizes the product data to a plurality of blockchains.
Through the application embodiment, the digital certificate is utilized to digitally sign the data corresponding to the product information, so that the obtained product data contains the digital signature of the product data (namely, the product issuer), and therefore, after the product data is modified by a malicious third party, the product data cannot be queried through the public key of the product issuer, the authenticity and the safety of the product data are further ensured, and meanwhile, the repudiation of the product issuer is avoided. After the product data is obtained, the product data is sent to the product service platform, so that the product service platform writes the product data into a target blockchain and synchronizes the product data to a plurality of blockchains, and therefore the product data is written and synchronized based on the blockchains, the learning efficiency of the product data by each enterprise is improved, the problem of unsmooth transmission of the product data is avoided, and meanwhile, the problem of difficult supervision of the product data is also avoided.
In one possible embodiment, the product information includes at least one of product release information, product modification information, and product revocation information, and the product data corresponds to the product information.
In a third aspect, the present application further provides a service device for a product, applied to a product service platform, where the device includes:
the receiving module is used for receiving the product data from the product publisher; the product data comprises a digital signature of the data corresponding to the product information based on the digital certificate by the product issuer;
and the first processing module is used for writing the product data into a target blockchain and synchronizing the product data to a plurality of blockchains.
In one possible embodiment, the product data includes at least one of product release data, product modification data, and product revocation data.
In a possible implementation manner, the first processing module is specifically configured to store the product data into a target database, and determine a product feature value corresponding to the product data; writing the product characteristic value to the target blockchain and synchronizing the product characteristic value to the plurality of blockchains.
In a possible implementation manner, the first processing module is further configured to receive a query keyword input by a product query party; searching target product data corresponding to the query keywords, and submitting the target product data to the product query party so that the product query party can verify the target product data by utilizing a digital certificate of a target product issuer corresponding to the target product data; and if the passing information indicating the verification passing of the product inquiring party is received, providing the complete information corresponding to the target product data for the product inquiring party.
In a fourth aspect, the present application further provides a service device for a product, applied to a product service platform, where the device includes:
the signature module is used for determining product information and carrying out digital signature on data corresponding to the product information based on the digital certificate to obtain product data;
and the second processing module is used for sending the product data to a product service platform so that the product service platform writes the product data into a target blockchain and synchronizes the product data to a plurality of blockchains.
In one possible embodiment, the product information includes at least one of product release information, product modification information, and product revocation information, and the product data corresponds to the product information.
In a fifth aspect, the present application provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for realizing the service method steps of one product when executing the computer program stored in the memory.
In a sixth aspect, the present application provides a computer readable storage medium having a computer program stored therein, the computer program implementing the steps of a method of servicing an article of manufacture as described above when executed by a processor.
The technical effects of each of the second to sixth aspects and the technical effects that may be achieved by each aspect are referred to above for the technical effects that may be achieved by each possible aspect of the first aspect or each possible aspect of the first aspect, and the description is not repeated here.
Drawings
FIG. 1 is a flowchart of a method for providing a product service according to an embodiment of the present application;
FIG. 2 is a second flowchart of a method for providing a service for a product according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a process of a method for servicing a product according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a service device of a product according to an embodiment of the present application;
fig. 5 is a schematic diagram two of a service device of a product according to an embodiment of the present application;
Fig. 6 is a schematic diagram of an electronic device provided in the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail with reference to the accompanying drawings. The specific method of operation in the method embodiment may also be applied to the device embodiment or the system embodiment. It should be noted that "a plurality of" is understood as "at least two" in the description of the present application. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. A is connected with B, and can be represented as follows: both cases of direct connection of A and B and connection of A and B through C. In addition, in the description of the present application, the words "first," "second," and the like are used merely for distinguishing between the descriptions and not be construed as indicating or implying a relative importance or order.
Embodiments of the present application are described in detail below with reference to the accompanying drawings.
When the traditional supply chain distributes product data, the problems of unsmooth distribution of the product data, difficulty in supervision of the distributed product data, difficulty in guaranteeing the authenticity of the product data and the like exist.
Therefore, the application provides a service method of a product, and the method can be applied to a product release platform. The product release platform may be a node in a blockchain consensus network, the product release platform having the ability to write data to the blockchain. The blockchain consensus network includes a producer, a logistics provider, a seller, and a regulatory authority. The product issuing platform writes the received product data sent by the product issuing party into the target blockchain and synchronizes the product data to a plurality of blockchains, wherein the product data comprises digital signatures of data corresponding to product information by the product issuing party by utilizing a digital certificate of the product issuing party, so that the problems that the product data is unsmooth to issue, the supervision of issued product data is difficult, the authenticity of the product data is difficult to guarantee and the like in a traditional supply chain system are solved, and the real-time information sharing, the efficient automatic supervision and the actual credibility of the product data are realized.
Referring to fig. 1, a flowchart of a service method of a product according to an embodiment of the present application is shown, where the method includes:
s11, receiving product data from a product publisher.
The product data comprises a digital signature which is carried out on the data corresponding to the product information by a product issuer based on the digital certificate.
The product information includes at least one of product release information, product modification information, and product revocation information. Since the product data corresponds to the product information, the product data includes at least one of product release data corresponding to the product release information, product modification data corresponding to the product modification information, and product revocation data corresponding to the product revocation information.
Illustratively, when the product information includes product release information, then the product data includes product release data; when the product information includes product modification information, then the product data includes product modification data; when the product information includes product revocation information, then the product data includes product revocation data.
In addition, the above product information may exist in the form of a list. Thus, the product information may be a product inventory. In this embodiment of the present application, the product list may include a list type of the product (such as publishing, modifying, and voiding), an identification number (Identity document, ID) of the product, a name of the product, a publishing time of the product, a main use of the product, a number of the product, a price of the product, a manufacturer corresponding to the product, a certification of the product, a contact, a phone number and mailbox of the contact, and the like.
When the list type of the product is modification, the product list may further include modification contents of the product, modification time of the product, release time of an initial version of the product, and the like. If there are multiple modifications to the product, the product list may also include the modification time for each modification, etc.
When the list type of the product is voided, the product list may further include voided contents of the product, voided time of the product, modified time of the product, release time of the original version of the product, and the like. If there is no modification to the product, the modification time of the product may be no.
The product service platform first determines that the product issuer has joined itself (i.e., the product service platform) before receiving product data from the product issuer. Firstly, receiving enterprise information sent by a product publisher, and then judging whether the enterprise information accords with a preset joining rule. If the enterprise information does not accord with the preset joining rule, the joining of the product publisher is refused. If the enterprise information accords with the preset joining rule, the joining of the product publisher is allowed, so that the product data sent by the product publisher can be received.
In addition, after the joining of the product publisher is allowed, the consent information can also be sent to the product publisher so that the product publisher can make sure that the product publisher has joined the product service platform.
In the embodiment of the present application, the above-mentioned adding rule may be adjusted according to a specific application scenario.
The product service platform can determine the addition of a plurality of product publishers to be added through the addition mode of the product publishers.
Further, the product service platform receives product data from a product issuer.
S12, writing the product data into the target blockchain, and synchronizing the product data to a plurality of blockchains.
After receiving the product data from the product issuer, the step S11 further needs to audit the product data. After the verification is passed, the product data is written into the target block chain and is synchronized to a plurality of block chains, so that consistent storage is realized.
In the embodiment of the application, when the product data is audited, the correctness, the integrity and the like of the product data are audited. In addition, aiming at the product release data, the product modification data and the product revocation data, different auditing modes can be adopted for auditing.
In one possible implementation, when product data is written to a target blockchain and synchronized to multiple blockchains, the product data is first stored to a target database and the product characteristic value corresponding to the product data is determined. And writing the product characteristic value into the target blockchain, and synchronizing the product characteristic value to a plurality of blockchains, so that the consumption of the bandwidth of the blockchain is reduced, the occupation of the space of the blockchain is reduced, and the running efficiency of the blockchain is improved.
In this embodiment of the present application, the target database may be a local database of the product service platform, and the target blockchain may be a blockchain corresponding to a blockchain node where the product service platform is located.
The blockchains may be blockchains corresponding to blockchain nodes (e.g., a platform corresponding to a product sales node and a platform corresponding to a product logistics node) in the complete blockchain (i.e., a blockchain consensus network) except for the product service platform.
The product characteristic value corresponding to the product data may be determined by secure hash algorithm 2 (Secure Hash Algorithm, SHA-2), commercial code 3 (Standards Manual 3, sm 3), or the like. In the embodiment of the application, the determination manner of determining the characteristic value of the product can be adjusted according to a specific application scene.
Illustratively, first product information corresponding to product data is received, wherein the product information is transmitted by the same product issuer that transmitted the product data. Then, the product information is input into SM3, and a hash value corresponding to the product information is output, wherein the hash value is the product characteristic value.
In the determining of the product characteristic value corresponding to the product data, the product characteristic value corresponding to the product data may be determined by receiving the product characteristic value corresponding to the product data. Specifically, a product publisher uses product information to generate a product characteristic value, and then the product characteristic value is sent to a product service platform. And the product service platform receives the product characteristic value to determine the product characteristic value corresponding to the product data.
After writing the product data into the target blockchain and synchronizing the product data to multiple blockchains, each enterprise (e.g., product querier) can quickly query the product data.
In one possible implementation, when the product querying party needs to acquire the target product data, the product querying party can query the target product data by inputting a query keyword in the product service platform so as to acquire complete information of the target product data. The complete information of the target product data includes at least the target product data.
When the target product data only includes the target product release data, the complete information of the target product data may also include the target product modification data and the target product revocation data, where the target product modification data and the target product revocation data are displayed as "none" to indicate that the target product data is not modified by the target product release party and is not revoked.
Specifically, the product service platform first receives a query keyword (such as a product feature value) input by a product query party. And then, searching target product data corresponding to the query keyword, and submitting the target product data to a product query party so that the product query party can verify the target product data by utilizing a digital certificate of a target product issuer corresponding to the target product data. And after the verification of the product inquirer is passed, namely when the product service platform receives the passing information indicating the verification of the product inquirer to pass, providing the complete information corresponding to the target product data for the product inquirer.
When the target product data corresponding to the query keyword is searched, firstly, the product identifier (such as the ID of the product, the index number of the product, etc.) corresponding to the query keyword is determined in the target blockchain through the query keyword. And then, determining target product data corresponding to the query keywords and complete information of the target product data in a target database based on the product identification.
The target product data is submitted to the product inquiry party, so that when the product inquiry party verifies the target product data by utilizing the digital certificate of the target product issuer corresponding to the target product data, the product inquiry party firstly acquires the digital certificate of the target product issuer corresponding to the target product data. The digital certificate is obtained in the prior art, and will not be described herein.
It should be noted that, the digital certificate includes the public key of the target product issuer corresponding to the target product data, so that the target product data can be verified based on the public key to obtain the verification result. If the verification result is the first preset value, determining that the verification is passed, and determining that the target product data is sent by the target product publisher. The first preset value may be 1. If the verification result is a second preset value, determining that the verification is not passed, wherein the second preset value can be 0.
When the complete information corresponding to the target product data is provided for the product inquirer, the complete information corresponding to the target product data can be provided for the product inquirer in a display interface mode, so that the product inquirer can more intuitively and rapidly learn the complete information corresponding to the target product data. And the product inquiry party can carry out operations such as transaction with the target product issuing party corresponding to the target product issuing data based on own requirements by providing the complete information corresponding to the target product data for the product inquiry party.
In addition, in the embodiment of the application, the product inquiry party and the target product issuer may be at the same blockchain node, or may not be at the same blockchain node, that is, the product inquiry may be an enterprise added with the product service platform, or may be an enterprise not added with the product service platform. The product inquirer can also be an enterprise in the blockchain corresponding to the blockchain nodes which are added into the complete blockchain and are except for the product service platform.
In summary, when the service method of the product provided by the application is applied to a product service platform, after receiving product data obtained by sorting and digitally signing data corresponding to product information based on a digital certificate from a product issuer, the product data is written into a target blockchain and is synchronized to a plurality of blockchains. According to the method, the digital certificate of the product issuer is utilized, so that the received product data contains the digital certificate signature of the product issuer, modification of the product data by a malicious third party is avoided, authenticity, reliability and credibility of the product data are ensured, denial of the product data by the product issuer is avoided, and the product data has undeniability and traceability.
And the product service platform rapidly synchronizes the product data to a plurality of blockchains through a blockchain technology, so that each enterprise (such as a product inquirer) can learn the product data at the first time, and accordingly related operations (such as transaction operations) are performed, and the product data is high in efficiency and timeliness.
In addition, the product service platform also supports the participation of mass enterprises (such as various product publishers) and the release of mass product data (such as various product release data, product modification data and product revocation data), and has the release capability of mass enterprises and mass product data.
Based on the same inventive concept, the embodiment of the present application provides a service method of a product, where the method is applied to a product publisher, please refer to fig. 2, and the implementation steps of the method include:
s21, determining product information, and carrying out digital signature on data corresponding to the product information based on the digital certificate to obtain product data.
The product information is consistent with the product information in the step S11, and the product data is consistent with the product data in the step S11, and specific product information and product data are not described herein.
Before determining the product information, firstly determining the product to be serviced (such as the product to be issued, the product to be declared to have modification, the product to be declared to be invalidated) and acquiring the information of each product of the product, such as the name, ID, qualification and the like of the product.
And after each product information of the product is obtained, each product information of the product is checked to further ensure the correctness of the product information, thereby ensuring the correctness of the product data.
After checking each product information of the product, when each product information of the product is determined to be free of errors, the product information can be determined.
Further, based on the digital certificate of the product issuer, the digital signature is carried out on the data corresponding to the product information to obtain the product data containing the digital signature of the product issuer, so that the authenticity, the reliability and the credibility of the product data are ensured, the phenomenon that the product issuer refuses to acknowledge that the product data are issued once is avoided, and the product data have non-repudiation and integrity.
The specific signature mode when the data corresponding to the target product information is digitally signed based on the digital certificate of the user is a conventional mode of digital signature in the prior art, and is not described herein.
In one possible implementation manner, before carrying out digital signature on data corresponding to product information based on a digital certificate of the device, finishing the data corresponding to the product information to obtain product data to be sent; and carrying out digital signature on the product data to be transmitted based on the digital certificate of the product data to obtain the product data.
The data corresponding to the product information may be modification data when the product is modified each time, first release data when the product is released for the first time, raw material data of the product, test data of the product, and the like. In the embodiment of the application, the data corresponding to the product can be adjusted according to the specific product and the application scene of the product.
When the data corresponding to the product information is sorted, the sorting operations of adjusting the data format of the data corresponding to the product information, cleaning the error data and the repeated data in the data corresponding to the product information, sorting the data corresponding to the product information, and the like are included. In the embodiment of the application, the overall operation can be adjusted according to specific products and application scenes of the products.
S22, the product data is sent to the product service platform, so that the product service platform writes the product data into the target blockchain and synchronizes the product data to a plurality of blockchains.
After the product data is obtained in step S21, the product data is sent to the product service platform, so that the product distribution platform writes the product data into the target blockchain and synchronizes the product data to a plurality of blockchains, thereby enabling each enterprise to quickly learn the product data and facilitating the communication cooperation between the product distributor and each enterprise.
The target blockchain and the blockchains are identical to the target blockchain and the blockchains in step S12, and are not described in detail herein.
In one possible implementation, before the product data is sent to the product service platform, the product service platform needs to be added to send the product data to the product service platform.
When joining the product service platform, the product service platform may send its own information (such as enterprise information of the product publisher) to the product service platform, so that the product service platform determines whether to allow joining of the product publisher based on comparison of the enterprise information and a preset joining rule.
And when receiving the consent information which is sent by the product service platform and indicates to allow joining, determining that the product service platform is joined based on the consent information. Thereafter, the product data may be sent to the product services platform.
The above-described operation of joining the product service platform may also be performed before step S21. Therefore, after determining the target product information in step S21, the product service platform may also log in and fill in the product information, so as to achieve the purpose of sending the product information to the product service platform, thereby enabling the product service platform to generate the product feature value based on the target product information.
In one possible implementation manner, when the product data is sent to the product service platform, the product characteristic value corresponding to the product data can also be sent to the product service platform, so that the product service platform writes the product data into the target database, writes the product characteristic value into the target blockchain, and synchronizes the product characteristic value to the plurality of blockchains, thereby reducing the bandwidth consumption of the blockchains, increasing the space remaining amount of the blockchains, and further avoiding the reduction of the running speed of the blockchains.
When the product characteristic value corresponding to the product data is also sent to the product service platform, the product characteristic value corresponding to the product data needs to be determined first, and then the product characteristic value is sent to the product service platform.
In the embodiment of the application, when determining the product characteristic value corresponding to the product data, the product publisher can also determine the product characteristic value by means of SHA-2 algorithm, SM3 and the like. In the embodiment of the application, the determination mode of the characteristic value of the product can be adjusted according to a specific application scene.
In summary, when the service method of the product provided by the application is applied to a product issuer, the data corresponding to the product information is digitally signed based on the digital certificate of the product issuer to obtain product data, so that the product data contains the digital signature of the product issuer. Therefore, when the malicious third party modifies the product data, the verification fails when the product data is verified by the public key of the product issuer. Only when the product data is not tampered, the verification can be successful when the public key of the product issuer is used for verification. Therefore, by the method, whether the product data is tampered or not can be determined based on the digital signature contained in the product data, and modification of the product data by a malicious third party is prevented, so that the product data has safety and authenticity; meanwhile, the identity of the product issuer can be confirmed through the digital signature, and the product issuer is prevented from repudiation.
Further, after the product data is obtained, the product data is sent to the product service platform, so that the product service platform writes the product data into the target blockchain and synchronizes the product data to the plurality of blockchains, and therefore the product data can be known by enterprises at the first time. And because the blockchain is the distributed storage that adopts, can prevent that certain node information from damaging the back, lead to the loss of product data, the enterprise economic loss that leads to because of the loss of product data.
The technical scheme of the application is further described below in connection with a specific application process.
Fig. 3 is a schematic diagram of a processing procedure of a service method of a product, in which a product publisher of a product service platform is added first, and a product list is filled in according to each product information of the product. The product inventory includes at least one of a product issue inventory, a product modification inventory, and a product revocation inventory. And then, the product publisher collates the data corresponding to the product list to obtain the product data to be sent. And secondly, the product issuer performs digital signature on the product data to be sent based on the digital certificate of the product issuer to obtain the product data. The product data comprises at least one of product release data corresponding to the product release list, product modification data corresponding to the product modification list and product revocation data corresponding to the product revocation list. Then, the product publisher sends the product data to the product service platform, so that the product service platform performs writing or synchronous operation on the product data in the blockchain.
And after the product data transmitted by the product publisher is received, the product service platform carries out auditing on the product data, stores the product data into a target database after the auditing is passed, and simultaneously determines a product characteristic value corresponding to the product data. The product characteristic value is then written into the target blockchain and synchronized to a plurality of blockchains so that each enterprise (e.g., product inquirer) knows the product data.
The product querier inputs query keywords (e.g., product feature values) at the product service platform.
After receiving the query keyword input by the product query party, the product service platform firstly searches the index number corresponding to the query keyword. And then, searching the complete information of the target product data corresponding to the query key words in the target database through the index number, wherein the complete information comprises the target product data. And then submitting the target product data to a product inquiring party so that the product inquiring party can verify based on the target product data.
After receiving target product data corresponding to the query key words, the product query party firstly acquires a digital certificate of a target product issuer corresponding to the target product data, then analyzes a public key of the digital certificate, and then verifies the target product data by using the public key. And after the verification is passed, receiving the complete information of the target product data provided by the product service platform.
When receiving passing information indicating that the target product inquirer passes verification, the product service platform displays the complete information of the target product data to the product inquirer through a display interface so that the product inquirer can execute corresponding operation based on own requirements.
By the method, the product issuer performs digital signature on the product data to be transmitted by using the digital certificate of the product issuer, so that the obtained product data contains the digital certificate signature of the product issuer, the authenticity, the reliability and the credibility of the product data are ensured, the phenomenon that the product issuer refuses to acknowledge that the product data are issued is avoided, the product data have undeniability and integrity, and the product data are prevented from being modified by a malicious third party. And the product service platform utilizes the blockchain technology to quickly synchronize the product characteristic value of the product data to other blockchains, so that the product data can be known by other enterprises at the first time. Meanwhile, as the product data is stored in a distributed mode, economic losses of enterprises (such as product publishers) caused by information loss corresponding to the product data after information of a certain node is damaged can be avoided. In addition, the product service platform also supports massive enterprise residence and massive product data release, and has the capabilities of massive enterprise and massive product data release, modification and revocation.
Based on the same inventive concept, the embodiment of the present application further provides a service device for a product, as shown in fig. 4, which is a schematic structural diagram of the service device for a product provided in the present application, where the device is applied to a product service platform, and the device corresponds to the service method for a product shown in fig. 1. The device comprises:
a receiving module 401, configured to receive product data from a product publisher; the product data comprises a digital signature which is carried out on the data corresponding to the product information by a product issuer based on the digital certificate;
the first processing module 402 is configured to write product data to a target blockchain and synchronize the product data to a plurality of blockchains.
In one possible embodiment, the product data includes at least one of product release data, product modification data, and product revocation data.
In one possible implementation manner, the first processing module 402 is specifically configured to store the product data in the target database, and determine a product feature value corresponding to the product data; the product feature value is written to the target blockchain and synchronized to a plurality of blockchains.
In a possible implementation manner, the first processing module 402 is further configured to receive a query keyword input by a product query party; searching target product data corresponding to the query keywords, and submitting the target product data to a product query party so that the product query party can verify the target product data by utilizing a digital certificate of a target product issuer corresponding to the target product data; and if the passing information indicating the verification passing of the product inquiring party is received, providing the complete information corresponding to the target product data for the product inquiring party.
Based on the same inventive concept, the embodiment of the present application further provides a service device for a product, as shown in fig. 5, which is a schematic structural diagram of a second service device for a product provided in the present application, where the device is applied to a product publisher, and the device corresponds to the service method for a product shown in fig. 2. The device comprises:
the signature module 501 is configured to determine product information, and digitally sign data corresponding to the product information based on a digital certificate, so as to obtain product data;
the second processing module 502 is configured to send the product data to the product service platform, so that the product service platform writes the product data to the target blockchain and synchronizes the product data to the plurality of blockchains.
In one possible embodiment, the product information includes at least one of product release information, product modification information, and product revocation information, and the product data corresponds to the product information.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, where the electronic device may implement a function of a service device of the foregoing product, and referring to fig. 6, the electronic device includes:
at least one processor 601, and a memory 602 connected to the at least one processor 601, a specific connection medium between the processor 601 and the memory 602 is not limited in the embodiment of the present application, and in fig. 6, the processor 601 and the memory 602 are connected by a bus 600 as an example. Bus 600 is shown in bold lines in fig. 6, and the manner in which the other components are connected is illustrated schematically and not by way of limitation. The bus 600 may be divided into an address bus, a data bus, a control bus, etc., and is represented by only one thick line in fig. 6 for convenience of representation, but does not represent only one bus or one type of bus. Alternatively, the processor 601 may be referred to as a controller, and the names are not limited.
In the embodiment of the present application, the memory 602 stores instructions executable by the at least one processor 601, and the at least one processor 601 may perform the service method of the product as previously discussed by executing the instructions stored in the memory 602. The processor 601 may implement the functions of the respective modules in the apparatus shown in fig. 4 and 5.
The processor 601 is a control center of the device, and various interfaces and lines can be used to connect various parts of the whole control device, and through running or executing instructions stored in the memory 602 and calling data stored in the memory 602, various functions of the device and processing data can be performed, so that the device can be monitored as a whole.
In one possible design, processor 601 may include one or more processing units, and processor 601 may integrate an application processor and a modem processor, wherein the application processor primarily processes operating systems, user interfaces, application programs, and the like, and the modem processor primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 601. In some embodiments, processor 601 and memory 602 may be implemented on the same chip, or they may be implemented separately on separate chips in some embodiments.
The processor 601 may be a general purpose processor such as a central processing unit (Central Processing Unit, CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, which may implement or perform the methods, steps and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the service method of the product disclosed in connection with the embodiments of the present application may be directly embodied as a hardware processor or may be executed by a combination of hardware and software modules in the processor.
The memory 602 is a non-volatile computer readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. The Memory 602 may include at least one type of storage medium, which may include, for example, flash Memory, hard disk, multimedia card, card Memory, random access Memory (Random Access Memory, RAM), static random access Memory (Static Random Access Memory, SRAM), programmable Read-Only Memory (Programmable Read Only Memory, PROM), read-Only Memory (ROM), charged erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory), magnetic Memory, magnetic disk, optical disk, and the like. Memory 602 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 602 in the present embodiment may also be circuitry or any other device capable of implementing a memory function for storing program instructions and/or data.
By programming the processor 601, the code corresponding to the service method of the product described in the foregoing embodiment can be cured into the chip, so that the chip can execute the steps of the service method of the product of the embodiment shown in fig. 1 and 2 at the time of operation. How to design and program the processor 601 is a well-known technique for those skilled in the art, and will not be described in detail herein.
Based on the same inventive concept, embodiments of the present application also provide a storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the service method of the product as discussed above.
In some possible embodiments, aspects of the service method of the product provided herein may also be implemented in the form of a program product comprising program code for causing the control apparatus to carry out the steps in the service method of the product according to the various exemplary embodiments of the application described herein above when the program product is run on a device.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (10)

1. A product service method applied to a product service platform, comprising the following steps:
receiving product data from a product issuer; the product data comprises a digital signature of the data corresponding to the product information based on the digital certificate by the product issuer;
the product data is written to a target blockchain and synchronized to a plurality of blockchains.
2. The method of claim 1, wherein the product data comprises at least one of product release data, product modification data, and product voiding data.
3. The method of claim 1, wherein the writing the product data to a target blockchain and synchronizing the product data to a plurality of blockchains comprises:
storing the product data into a target database, and determining a product characteristic value corresponding to the product data;
writing the product characteristic value to the target blockchain and synchronizing the product characteristic value to the plurality of blockchains.
4. The method of claim 1, further comprising, after said writing said product data to a target blockchain and synchronizing said product data to a plurality of blockchains:
receiving a query keyword input by a product query party;
searching target product data corresponding to the query keywords, and submitting the target product data to the product query party so that the product query party can verify the target product data by utilizing a digital certificate of a target product issuer corresponding to the target product data;
And if the passing information indicating the verification passing of the product inquiring party is received, providing the complete information corresponding to the target product data for the product inquiring party.
5. A method for serving a product, applied to a product publisher, comprising:
determining product information, and carrying out digital signature on data corresponding to the product information based on a digital certificate to obtain product data;
and sending the product data to a product service platform, so that the product service platform writes the product data into a target blockchain and synchronizes the product data to a plurality of blockchains.
6. The method of claim 5, wherein the product information includes at least one of product release information, product modification information, and product revocation information, the product data corresponding to the product information.
7. A product service device for use in a product service platform, the device comprising:
the receiving module is used for receiving the product data from the product publisher; the product data comprises a digital signature of the data corresponding to the product information based on the digital certificate by the product issuer;
And the first processing module is used for writing the product data into a target blockchain and synchronizing the product data to a plurality of blockchains.
8. A service device for a product, for use by a sender of the product, the device comprising:
the signature module is used for determining product information and carrying out digital signature on data corresponding to the product information based on the digital certificate to obtain product data;
and the second processing module is used for sending the product data to a product service platform so that the product service platform writes the product data into a target blockchain and synchronizes the product data to a plurality of blockchains.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-6 when executing a computer program stored on said memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
CN202311481855.6A 2023-11-08 2023-11-08 Product service method and device and electronic equipment Pending CN117522427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311481855.6A CN117522427A (en) 2023-11-08 2023-11-08 Product service method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311481855.6A CN117522427A (en) 2023-11-08 2023-11-08 Product service method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117522427A true CN117522427A (en) 2024-02-06

Family

ID=89748861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311481855.6A Pending CN117522427A (en) 2023-11-08 2023-11-08 Product service method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117522427A (en)

Similar Documents

Publication Publication Date Title
CN108805656B (en) Supply and demand matching method, platform, system and computer readable storage medium
CN108667632B (en) Credit record sharing method and device based on block chain and electronic equipment
CN110390525B (en) Direct access method for block chain world state and block chain node
CN111314172B (en) Block chain-based data processing method, device, equipment and storage medium
CN112000730B (en) Tracing information writing and tracing information verification method and system based on block chain
CN114553515B (en) Block chain-based NFT asset checking method, business processing method and hardware
WO2021208762A1 (en) Data storage and query
CN114884674B (en) User data circulation method, device and equipment based on block chain
CN111324661A (en) User cooperation method, device and medium based on block chain
CN111125778A (en) Copyright transaction information processing method and device
CN111723159A (en) Data verification method and device based on block chain
CN111611249A (en) Data management method, device, equipment and storage medium
CN113706313A (en) Financing method, system and computer readable storage medium based on block chain
CN114221972A (en) Relay blockchain system and cross-chain transaction method
CN115085909B (en) Random number generation method, device, computer equipment and medium
CN115131022A (en) Block chain-based digital asset transaction method, device, equipment and medium
CN115701078B (en) Cross-chain transaction processing method, device, electronic equipment and storage medium
CN114386983A (en) Scenario payment management method, system and device and readable storage medium
CN113111125A (en) Business evidence storage method based on block chain
CN117522427A (en) Product service method and device and electronic equipment
CN114092093B (en) Block chain transaction processing method and device, electronic equipment and readable medium
CN113672988B (en) Information management method, system, medium and electronic equipment based on block chain
CN113761496A (en) Identity verification method and device based on block chain and electronic equipment
CN114092250A (en) Method and device for creating and verifying digital resources in block chain
CN113094732A (en) Certificate storage data verification method, verification device, certificate storage method and certificate storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination