Merchant Rating Calculation Method and Device Based on Consortium Blockchain

Through the alliance chain technology sharing and computing merchants' scoring data on different platforms, the problem of inconsistent scoring is solved and higher scoring credibility and consistency are achieved.

CN114493769BActive Publication Date: 2025-06-20ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210050358.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2025-06-20
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively share and calculate the rating data of merchants on different platforms, resulting in inconsistent ratings of the same merchant on different platforms from the user's perspective, affecting the credibility of the ratings.

Method used

Through alliance chain technology, the merchant’s score calculation request is submitted, the encrypted scoring data of the third-party platform is obtained, the preset interface is called to apply for private key sharding, the private key is generated and the scoring data is decrypted, and the merchant’s credible scoring is calculated based on the scoring data of the target platform.

Benefits of technology

It realizes the sharing and calculation of cross-platform merchant ratings, improves the credibility and consistency of ratings, and avoids inconsistent ratings seen by users on different platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114493769B_ABST
    Figure CN114493769B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a method and device for calculating merchant scores based on a consortium blockchain. Among them, a method for calculating merchant scores based on a consortium blockchain includes: based on a score calculation request of a merchant submitted by a target platform, obtaining encrypted score data of the merchant on a third-party platform stored on the consortium blockchain; calling a preset interface to apply for a private key shard from the third-party platform and obtaining a private key generated by the preset interface according to the private key shard and the private key shard of the target platform; using the private key to decrypt the encrypted score data to obtain third-party score data; and calculating a trusted score of the merchant according to the third-party score data and the score data of the merchant on the target platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of blockchain technology, and in particular, to a method and device for calculating merchant scores based on a consortium blockchain. Background Art

[0002] A blockchain is a decentralized distributed ledger in which data is stored in blocks and chained together in chronological order, and at the same time, cryptography is used to ensure immutability, non-forgery, and data transmission and access security. As a typical form of blockchain, the consortium blockchain has a wide range of applications in many fields. The consortium blockchain is a blockchain applied among institutions, and each of its nodes usually has a corresponding entity institution, and these institutions form an alliance of interested parties to jointly maintain the operation of the blockchain. Summary of the Invention

[0003] One or more embodiments of this specification provide a method for calculating merchant scores based on a consortium blockchain. The consortium blockchain includes a target platform and nodes corresponding to at least one third-party platform. The method includes: based on a score calculation request of a merchant submitted by the target platform, obtaining encrypted score data of the merchant on the third-party platform stored on the consortium blockchain. Invoking a preset interface to apply for a private key shard from the third-party platform, and obtaining a private key generated by the preset interface according to the private key shard and the private key shard of the target platform. Using the private key to decrypt the encrypted score data to obtain third-party score data. Calculating a credible score of the merchant according to the third-party score data and the score data of the merchant on the target platform.

[0004] One or more embodiments of this specification provide a device for calculating merchant scores based on a consortium blockchain. The consortium blockchain includes a target platform and nodes corresponding to at least one third-party platform. The device includes: an encrypted score data acquisition module configured to obtain encrypted score data of the merchant on the third-party platform stored on the consortium blockchain based on a score calculation request of the merchant submitted by the target platform. A private key shard application module configured to invoke a preset interface to apply for a private key shard from the third-party platform and obtain a private key generated by the preset interface according to the private key shard and the private key shard of the target platform. An encrypted score data decryption module configured to use the private key to decrypt the encrypted score data to obtain third-party score data. A credible score calculation module configured to calculate a credible score of the merchant according to the third-party score data and the score data of the merchant on the target platform.

[0005] One or more embodiments of the present specification provide a merchant rating calculation device based on a consortium blockchain, including: a processor; and a memory configured to store computer-executable instructions, the computer-executable instructions, when executed, causing the processor to: based on a rating calculation request of a merchant submitted by a target platform, obtain encrypted rating data of the merchant stored on the consortium blockchain on at least one third-party platform. The consortium blockchain includes nodes corresponding to the target platform and the third-party platform. Call a preset interface to apply for a private key shard from the third-party platform and obtain the private key generated by the preset interface according to the private key shard and the private key shard of the target platform. Use the private key to decrypt the encrypted rating data to obtain third-party rating data. Calculate the trusted rating of the merchant according to the third-party rating data and the rating data of the merchant on the target platform.

[0006] One or more embodiments of the present specification provide a storage medium for storing computer-executable instructions, the computer-executable instructions, when executed by a processor, implementing the following process: based on a rating calculation request of a merchant submitted by a target platform, obtain encrypted rating data of the merchant stored on the consortium blockchain on at least one third-party platform. The consortium blockchain includes nodes corresponding to the target platform and the third-party platform. Call a preset interface to apply for a private key shard from the third-party platform and obtain the private key generated by the preset interface according to the private key shard and the private key shard of the target platform. Use the private key to decrypt the encrypted rating data to obtain third-party rating data. Calculate the trusted rating of the merchant according to the third-party rating data and the rating data of the merchant on the target platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] In order to more clearly illustrate the technical solutions in one or more embodiments of the present specification or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present specification. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings;

[0008] Figure 1 It is a processing flow chart of a merchant rating calculation method based on a consortium blockchain provided by one or more embodiments of the present specification;

[0009] Figure 2 It is a processing flow chart of a merchant rating calculation method based on a consortium blockchain applied to the takeaway platform scenario provided by one or more embodiments of the present specification;

[0010] Figure 3Schematic diagram of a merchant score calculation device based on a consortium blockchain provided for one or more embodiments of this specification;

[0011] Figure 4 Schematic structure diagram of a merchant score calculation device based on a consortium blockchain provided for one or more embodiments of this specification. Detailed implementation manners

[0012] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will clearly and completely describe the technical solutions in one or more embodiments of this specification with reference to the accompanying drawings in one or more embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this document.

[0013] An embodiment of a merchant score calculation method based on a consortium blockchain provided by this specification:

[0014] The merchant score calculation method based on a consortium blockchain provided in this embodiment shares the score data of merchants on multiple platforms by means of a consortium blockchain. When calculating the product score of a merchant on any platform based on the shared score data, a private key shard of the remaining platforms is obtained by applying for a key from the remaining platforms, and the private key is restored by combining the private key shard of this platform with the private key shards of the remaining platforms. Then, the score data of the merchant on the remaining platforms obtained from the consortium blockchain is decrypted by using the restored private key. Finally, the cross-platform merchant score is calculated by combining the score data of the merchant on the remaining platforms obtained by decryption with the score data of the merchant on this platform, avoiding the inconsistency of the scores of the same merchant on different platforms from the user's perspective and helping to improve the credibility of the merchant score.

[0015] Refer to Figure 1 , the merchant score calculation method based on a consortium blockchain provided in this embodiment specifically includes steps S102 to S108.

[0016] Step S102, based on the score calculation request of the merchant submitted by the target platform, obtain the encrypted score data of the merchant on the third-party platform stored on the consortium blockchain.

[0017] In this embodiment, the consortium blockchain includes consortium blockchain nodes of the target platform and consortium blockchain nodes of at least one third-party platform. The target node and at least one third-party platform are both member platforms of the consortium blockchain. The target platform and the third-party platform both refer to platforms that provide services, such as platforms that provide takeout services and food ordering services. Among the multiple platforms composed of the target platform and at least one third-party platform, the target platform is any one of the multiple platforms, and the platforms other than the target platform among the multiple platforms are third-party platforms. The merchant is the seller or service provider that settles in the platform.

[0018] Optionally, the scoring calculation request is generated for a scoring access request for the merchant in the target platform. For example, the blockchain nodes of the first platform, the second platform, and the third platform form a consortium blockchain. Merchant A settles in these 3 platforms. When Merchant A is accessed by users on the first platform, it is necessary to display the scoring data of Merchant A to the users, generate a scoring access request for Merchant A, and generate a scoring calculation request for Merchant A on the first platform for this scoring access request.

[0019] Based on generating a scoring calculation request when the merchant in the target platform is accessed as provided above, it is also possible to actively calculate and update the scores of merchants that have not been accessed by users, that is: the scoring calculation request is generated according to the scoring update task or scoring update instruction of the merchant. Specifically, in the process of calculation and update, merchants in the target platform that have not been accessed by users are screened out, and a scoring update task or scoring update instruction is created for the screened merchants to generate a scoring calculation request for the screened merchants.

[0020] Specifically, when implementing, according to the generated scoring calculation request for the merchant, the encrypted scoring data of the merchant on the third-party platform stored on the consortium blockchain is obtained as the data basis for subsequent scoring calculation for the merchant. Optionally, the encrypted scoring data stored on the consortium blockchain is called by the consortium blockchain nodes of the third-party platform to be stored on the chain through a smart contract; the consortium blockchain nodes of the third-party platform call the smart contract after receiving a transaction carrying a data on-chain request sent by the third-party platform, and the data on-chain request carries the encrypted scoring data.

[0021] Based on this, in order to improve the scoring calculation efficiency, in an optional implementation manner provided in this embodiment, the third-party scoring data is obtained by structuring the scoring summary data of the merchant within a preset time span, where the scoring summary data includes the scores and the number of scoring times of the merchant on the third-party platform within the preset time span, and the score is calculated according to the total score and the total number of scoring times within the preset time span, and the total score is the sum of the scores of the merchant within the preset time span.

[0022] It should be noted that the scoring data in this embodiment can be composed of sub-scoring data of multiple scoring types, or can be composed of scoring data of one scoring type. In the specific implementation process, the sub-scoring data of one scoring type is used to compose the scoring data, or the sub-scoring data of multiple scoring types is used to compose the scoring data, which can be determined according to the actual application scenario requirements and is not limited herein.

[0023] For example, the scoring of merchant A on the second platform has m scoring types. For the scoring of any one scoring type i among the m scoring types, the following formula is used for calculation:

[0024] Scoring of scoring type i = Total score of scoring type i within the scoring time span / Total number of evaluations of scoring type i within the scoring time span;

[0025] Among them, the total score is the sum of the score values given by all users to merchant A under this scoring type i within the scoring time span. The scoring time span can be the last 30 days or the last 90 days;

[0026] And so on, calculate the scores of all scoring types of merchant A on the second platform. This score and the total number of evaluations are the scoring summary data of merchant A within the scoring time span. On the basis of obtaining the scoring summary data of merchant A on the second platform, the scoring summary data is structurally processed according to the preset data format to obtain the structured scoring data shown in Table 1 below:

[0027]

[0028] Table 1

[0029] After obtaining the structured scoring data, use the shared public key to encrypt the structured scoring data into encrypted scoring data, and send a transaction carrying the encrypted scoring data to the corresponding consortium chain node of the second platform in the consortium chain. After receiving the transaction carrying the encrypted scoring data, the consortium chain node calls the smart contract to store the encrypted scoring data on the chain.

[0030] In practical applications, in many scenarios, scoring detail data is required. For example, users view the scoring details of merchants on the platform. For this reason, in the process of uploading the third-party scoring data to the chain in this embodiment, the scoring detail data can also be uploaded to the chain, so that in the case where the target platform has a need to access the scoring detail data, the scoring detail data can be obtained from the consortium chain and displayed after decryption processing, so as to meet the diverse scoring access needs in actual scenarios. Optionally, the data upload request also carries the encrypted incremental scoring data obtained by encrypting the incremental scoring data with the shared public key; the incremental scoring data is obtained by structurally processing the scoring detail data within the incremental period.

[0031] For example, with a 1-day increment period, obtain the detailed rating data of merchant A on the second platform within 1 day, and structurally process the obtained detailed rating data according to a preset data format to obtain the structured incremental rating data shown in Table 2 below:

[0032]

[0033] Table 2

[0034] After obtaining the structured incremental rating data, encrypt the structured incremental rating data into encrypted incremental rating data using the shared public key, and send a transaction carrying the encrypted incremental rating data to the corresponding consortium chain node of the second platform in the consortium chain. After receiving the transaction carrying the incrementally encrypted rating data, the consortium chain node calls the smart contract to store the incrementally encrypted rating data on the chain.

[0035] Step S104, call a preset interface to apply for a private key shard from the third-party platform, and obtain the private key generated by the preset interface according to the private key shard and the private key shard of the target platform.

[0036] The preset interface is used for key processing and key application, and specifically includes: generating a private key and a shared public key when the consortium chain is created, and updating the private key and the shared public key when the member platforms of the consortium chain change; inputting the private key into a key sharing algorithm during the key distribution process for splitting calculation to obtain key shards and distributing them to the target platform and the third-party platform; and, when called by any one of multiple platforms, applying for key shards from the remaining platforms, and inputting the obtained private key shards into the key sharing algorithm for restoration calculation to obtain the private key for decrypting the encrypted rating data.

[0037] Optionally, the private key application includes: sending a private key application request to the third-party platform to obtain a request response carrying the private key shard of the third-party platform. During the specific execution process, when the preset interface is called by the target platform, it sends a private key application request to the third-party platform respectively to obtain the private key shard of the third-party platform. On this basis, the private key capable of decrypting the rating data is restored according to the private key shard of the third-party platform and the private key shard of the target platform, so as to improve the security of the rating data through the private key shard application mechanism.

[0038] Optionally, the preset interface includes: inputting the private key shard carried in the request response and the private key shard of the target platform into the key sharing algorithm for restoration calculation, and outputting the private key. For example, inputting N private key shards of N third-party platforms and the private key shard of the target platform into the Shamir key sharing algorithm for restoration calculation, and outputting the private key capable of decrypting the encrypted rating data of each third-party platform.

[0039] In this embodiment, in order to prevent the scoring data from being leaked, a system for splitting and restoring the shared public key and private key is used to ensure the data security of the scoring data during the data transfer process such as uploading the scoring data to the consortium blockchain, storing the data on the chain, and downloading the data from the chain, as well as during the scoring calculation process. By generating an asymmetric encryption private key and a shared public key, the generated shared public key is used to encrypt the data of the target platform and the third-party platform. The generated private key is input into the key sharing algorithm for splitting calculation to obtain the private key shards of the target platform and the third-party platform respectively. For example, if the number of third-party platforms is N and the total number of platforms composed of the target platform and the third-party platforms is N + 1, the private key is split into N + 1 private key shards by inputting it into the Shamir key sharing algorithm, and the N + 1 private key shards are distributed to the target platform and the third-party platforms, and each platform stores one private key shard.

[0040] In this embodiment, the generation of the private key and the shared public key and the splitting of the private key are implemented through a preset interface. Optionally, the preset interface includes: generating the private key and the corresponding shared public key; inputting the private key into the key sharing algorithm for splitting calculation to obtain the private key shards of the third-party platform and the target platform. Among them, the encrypted scoring data is obtained by encrypting the third-party scoring data using the shared public key.

[0041] Step S106, decrypt the encrypted scoring data using the private key to obtain the third-party scoring data.

[0042] As described above, the encrypted scoring data is obtained by encrypting the third-party scoring data using the shared public key. Here, after decrypting the encrypted scoring data using the private key, the third-party scoring data is obtained, that is, the scoring data stored by the third-party platform on the consortium blockchain.

[0043] Step S108, calculate the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform.

[0044] The trust score refers to the cross-platform score calculated based on the scoring data of the third-party platform stored on the consortium blockchain and the scoring data of the target platform itself. This cross-platform score is more reliable and comprehensive than the score of the merchant on a single platform.

[0045] In an optional implementation manner provided in this embodiment, calculating the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform includes: calculating the trust score of the merchant according to the scores and the number of scoring times in the third-party scoring data and the scores and the number of scoring times in the scoring data.

[0046] In practical applications, the ratings of merchants on the platform can be of one type or multiple types. In view of this, in order to improve the adaptability of rating calculation to different platforms, in an optional implementation provided in this embodiment, when the trusted rating is composed of trusted sub-ratings of at least one rating type, the trusted sub-rating of any one rating type is calculated as follows:

[0047] Calculate the first product of the rating of this rating type in the third-party rating data and the number of ratings, and the second product of the rating of this rating type in the rating data and the number of ratings;

[0048] Calculate the sum of the first product and the second product, and calculate the ratio of the sum to the total number of ratings as the trusted sub-rating of this rating type.

[0049] For example, the ratings of merchant A on the first platform, the second platform, and the third platform specifically include three rating types: overall rating, classification rating 1, and classification rating 2. The processes of the trusted sub-ratings of these three rating types are the same, and are specifically calculated using the following formula:

[0050] The trusted sub-rating of merchant A in rating type m = the sum of the products of the ratings of merchant A under rating type m on each platform and the number of ratings / the total number of ratings of merchant A under rating type m on each platform;

[0051] Among them, the value range of m is (1, 2, 3), and each platform refers to the first platform, the second platform, and the third platform.

[0052] The following takes the application of the merchant rating calculation method based on the consortium blockchain in the takeaway platform scenario provided in this embodiment as an example to further illustrate the merchant rating calculation method based on the consortium blockchain provided in this embodiment. See Figure 2 , The merchant rating calculation method based on the consortium blockchain applied to the takeaway platform scenario specifically includes steps S202 to S212.

[0053] Step S202, obtain a rating calculation request generated for a rating access request of a merchant in the first platform.

[0054] Step S204, obtain the encrypted rating data of the merchant on the second platform and the third platform stored on the consortium blockchain based on the rating calculation request.

[0055] Step S206, call a preset interface to send a private key application request to the second platform and the third platform to obtain a request response. The request response of the second platform carries a private key shard of the second platform, and the request response of the third platform carries a private key shard of the third platform.

[0056] Step S208: Obtain the private key obtained by the preset interface after restoring the key based on the private key shards of the first platform, the second platform, and the third platform.

[0057] Step S210: Use the private key to decrypt the encrypted scoring data of the second platform and the third platform to obtain the scoring data of the second platform and the third platform.

[0058] Step S212: Calculate the trust score of the merchant according to the scoring data of the first platform, the second platform, and the third platform.

[0059] An embodiment of a merchant scoring calculation device based on a consortium blockchain provided in this specification is as follows:

[0060] In the above embodiment, a method for calculating a merchant score based on a consortium blockchain is provided. Correspondingly, a device for calculating a merchant score based on a consortium blockchain is also provided. The following will be described with reference to the accompanying drawings.

[0061] Refer to Figure 3 , which shows a schematic diagram of a device for calculating a merchant score based on a consortium blockchain provided in this embodiment.

[0062] Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiments described below are only illustrative.

[0063] This embodiment provides a device for calculating a merchant score based on a consortium blockchain. The consortium blockchain includes a target platform and nodes corresponding to at least one third-party platform, and includes:

[0064] An encrypted scoring data acquisition module 302, configured to obtain the encrypted scoring data of the merchant on the third-party platform stored on the consortium blockchain based on a scoring calculation request of the merchant submitted by the target platform;

[0065] A private key shard application module 304, configured to call a preset interface to apply for a private key shard from the third-party platform, and obtain the private key generated by the preset interface according to the private key shard and the private key shard of the target platform;

[0066] An encrypted scoring data decryption module 306, configured to decrypt the encrypted scoring data using the private key to obtain third-party scoring data;

[0067] A trust score calculation module 308, configured to calculate the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform.

[0068] An embodiment of a merchant scoring calculation device based on a consortium blockchain provided in this specification is as follows:

[0069] A merchant rating calculation method based on the consortium blockchain described above. Based on the same technical concept, one or more embodiments of this specification also provide a merchant rating calculation device based on the consortium blockchain. This merchant rating calculation device based on the consortium blockchain is used to execute the merchant rating calculation method based on the consortium blockchain provided above. Figure 4 It is a schematic structural diagram of a merchant rating calculation device based on the consortium blockchain provided by one or more embodiments of this specification.

[0070] A merchant rating calculation device based on the consortium blockchain provided in this embodiment includes:

[0071] As Figure 4 shown, the merchant rating calculation device based on the consortium blockchain may vary greatly due to configuration or performance differences. It may include one or more processors 401 and a memory 402. One or more application programs or data may be stored in the memory 402. Among them, the memory 402 may be short-term storage or persistent storage. The application programs stored in the memory 402 may include one or more modules (not shown in the figure). Each module may include a series of computer-executable instructions in the merchant rating calculation device based on the consortium blockchain. Further, the processor 401 may be set to communicate with the memory 402 and execute a series of computer-executable instructions in the memory 402 on the merchant rating calculation device based on the consortium blockchain. The merchant rating calculation device based on the consortium blockchain may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input / output interfaces 405, one or more keyboards 406, etc.

[0072] In a specific embodiment, the merchant rating calculation device based on the consortium blockchain includes a memory and one or more programs. One or more of the programs are stored in the memory, and one or more of the programs may include one or more modules. Each module may include a series of computer-executable instructions in the merchant rating calculation device based on the consortium blockchain and is configured to be executed by one or more processors. The one or more programs include the following computer-executable instructions:

[0073] Based on the rating calculation request of the merchant submitted by the target platform, obtain the encrypted rating data of the merchant stored on the consortium blockchain on at least one third-party platform; the consortium blockchain includes nodes corresponding to the target platform and the third-party platform;

[0074] Call a preset interface to apply for a private key shard from the third-party platform and obtain the private key generated by the preset interface according to the private key shard and the private key shard of the target platform;

[0075] Decrypt the encrypted scoring data using the private key to obtain third-party scoring data;

[0076] Calculate the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform.

[0077] An embodiment of a storage medium provided in this specification is as follows:

[0078] Corresponding to the above-described method for calculating a merchant score based on a consortium blockchain, based on the same technical concept, one or more embodiments of this specification also provide a storage medium.

[0079] The storage medium provided in this embodiment is used to store computer-executable instructions, and the computer-executable instructions, when executed by a processor, implement the following process:

[0080] Based on a scoring calculation request of a merchant submitted by a target platform, obtain encrypted scoring data of the merchant stored on a consortium blockchain on at least one third-party platform; the consortium blockchain includes nodes corresponding to the target platform and the third-party platform;

[0081] Call a preset interface to apply for a private key shard from the third-party platform to obtain a private key shard, and obtain a private key generated by the preset interface according to the private key shard and the private key shard of the target platform;

[0082] Decrypt the encrypted scoring data using the private key to obtain third-party scoring data;

[0083] Calculate the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform.

[0084] It should be noted that the embodiment of the storage medium in this specification and the embodiment of the method for calculating a merchant score based on a consortium blockchain in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method described above, and the repeated parts will not be elaborated.

[0085] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0086] In the 1930s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements to method flows). However, with the development of technology, many method flow improvements today can be regarded as direct improvements to hardware circuit structures. Almost all designers obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement to a method flow cannot be implemented using a hardware entity module. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logical function is determined by the user programming the device. Designers can program themselves to "integrate" a digital system onto a single PLD, without having to ask a chip manufacturer to design and fabricate a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation also has to be written in a specific programming language, which is called a Hardware Description Language (HDL), and there is not just one type of HDL, but many types, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones currently are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be aware that by simply performing a little logical programming on the method flow using the above-mentioned several hardware description languages and programming it into an integrated circuit, it is easy to obtain the hardware circuit that implements the logical method flow.

[0087] The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of the controller include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program code, it is entirely possible to make the controller implement the same function in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be regarded as the structures within the hardware component. Or even, the devices for implementing various functions can be regarded as either software modules for implementing the method or the structures within the hardware component.

[0088] The systems, devices, modules, or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0089] For the convenience of description, when describing the above devices, they are described separately as various units according to their functions. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0090] Those skilled in the art should understand that one or more embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of this specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.

[0091] This specification is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate means for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 one or more of the blocks and to implement the functions specified therein.

[0092] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including instruction means that implement the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 one or more of the blocks and to implement the functions specified therein.

[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 one or more of the blocks and to implement the functions specified therein.

[0094] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0095] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of computer-readable media.

[0096] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0097] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0098] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0099] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0100] The above are only examples of this document and are not intended to limit this document. For those skilled in the art, this document may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document shall be included within the scope of the claims of this document.

Claims

1. A merchant rating calculation method based on a consortium blockchain, where the consortium blockchain includes a target platform and nodes corresponding to at least one third-party platform, and the method includes: Based on the scoring calculation request of the merchant submitted by the target platform, obtain the encrypted scoring data of the merchant on the third-party platform stored on the consortium chain; Call a preset interface to apply for a private key shard from the third-party platform and obtain the private key generated by the preset interface according to the private key shard and the private key shard of the target platform; the private key shard of the target platform is obtained by the preset interface splitting and calculating the private key through a key sharing algorithm; Use the private key to decrypt the encrypted scoring data to obtain the third-party scoring data; Calculate the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform.

2. The merchant rating calculation method based on a consortium blockchain according to claim 1, where the rating calculation request is generated for a rating access request of the merchant in the target platform.

3. The merchant rating calculation method based on a consortium blockchain according to claim 1, where the encrypted rating data stored on the consortium blockchain is called by the consortium blockchain nodes of the third-party platform to be stored on the chain through a smart contract; The consortium blockchain nodes of the third-party platform call the smart contract after receiving a transaction carrying a data on-chain request sent by the third-party platform, and the data on-chain request carries the encrypted rating data.

4. The merchant rating calculation method based on a consortium blockchain according to claim 3, where the data on-chain request also carries encrypted incremental rating data obtained by encrypting incremental rating data using a shared public key; The incremental rating data is obtained by structuring rating detail data within an incremental period.

5. The merchant rating calculation method based on a consortium blockchain according to claim 1, where the private key application includes: Send a private key application request to the third-party platform to obtain a request response carrying the private key shard of the third-party platform.

6. The merchant rating calculation method based on a consortium blockchain according to claim 5, where the preset interface includes: Input the private key shard carried by the request response and the private key shard of the target platform into the key sharing algorithm for reduction calculation and output the private key.

7. The merchant rating calculation method based on a consortium blockchain according to claim 6, where the preset interface further includes: Generate the private key and the corresponding shared public key; Input the private key into the key sharing algorithm for splitting calculation to obtain the private key shard of the third-party platform and the private key shard of the target platform.

8. The merchant rating calculation method based on a consortium blockchain according to claim 1, where calculating the credible rating of the merchant according to the third-party rating data and the rating data of the merchant in the target platform includes: Calculate the trust score of the merchant according to the score and the number of scores in the third-party scoring data, and the score and the number of scores in the scoring data.

9. The merchant rating calculation method based on a consortium blockchain according to claim 1, where the credible rating is composed of credible sub-ratings of at least one rating type, and the credible sub-rating of any one rating type is calculated in the following manner: Calculate the first product of the score of this score type and the number of score times in the third-party score data, and the second product of the score of this score type and the number of score times in the score data; Calculate the sum of the first product and the second product, and calculate the ratio of the sum to the total number of score times as the credible sub-score of this score type.

10. The method for calculating the merchant score based on the consortium blockchain according to claim 3, wherein the third-party score data is obtained by structurally processing the score summary data of the merchant within a preset time span; Wherein, The score summary data includes the scores and the number of scores of the merchant on the third-party platform within the preset time span, the score is calculated according to the total score and the total number of scores within the preset time span, and the total score is the sum of the scores of the merchant within the preset time span.

11. A device for calculating the merchant score based on the consortium blockchain, the consortium blockchain includes a target platform and nodes corresponding to at least one third-party platform, and the device includes: An encrypted scoring data acquisition module, configured to obtain the encrypted scoring data of the merchant on the third-party platform stored on the consortium chain based on the scoring calculation request of the merchant submitted by the target platform; A private key shard application module, configured to call a preset interface to apply for a private key shard from the third-party platform and obtain the private key generated by the preset interface according to the private key shard and the private key shard of the target platform; the private key shard of the target platform is obtained by the preset interface splitting and calculating the private key through a key sharing algorithm; An encrypted scoring data decryption module, configured to use the private key to decrypt the encrypted scoring data to obtain the third-party scoring data; A trust score calculation module, configured to calculate the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform.

12. A device for calculating the merchant score based on the consortium blockchain, including: A processor; And a memory configured to store computer-executable instructions, the computer-executable instructions when executed cause the processor to: Based on the scoring calculation request of the merchant submitted by the target platform, obtain the encrypted scoring data of the merchant on at least one third-party platform stored on the consortium chain; the consortium chain includes the target platform and the nodes corresponding to the third-party platform; Call a preset interface to apply for a private key shard from the third-party platform, and obtain the private key generated by the preset interface based on the private key shard and the private key shard of the target platform; the private key shard of the target platform is obtained by the preset interface splitting and calculating the private key through a key sharing algorithm; Use the private key to decrypt the encrypted scoring data to obtain third-party scoring data; Calculate the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform.

13. A storage medium for storing computer-executable instructions, the computer-executable instructions, when executed by a processor, implement the following process: Based on the score calculation request of the merchant submitted by the target platform, obtain the encrypted score data of the merchant on at least one third-party platform stored on the consortium blockchain; the consortium blockchain includes the target platform and the nodes corresponding to the third-party platform; Call a preset interface to apply for a private key shard from the third-party platform, and obtain the private key generated by the preset interface based on the private key shard and the private key shard of the target platform; the private key shard of the target platform is obtained by the preset interface splitting and calculating the private key through a key sharing algorithm; Use the private key to decrypt the encrypted scoring data to obtain third-party scoring data; Calculate the trust score of the merchant according to the third-party scoring data and the scoring data of the merchant on the target platform.

Citation Information

Patent Citations

  • Method and device for multi-party joint training of risk assessment model for IoT machine

    CN111027981A

  • Systems and methods for expediting math-based currency transactions

    US11188918B1