CN111161006A - A blockchain credit service method, system and storage medium - Google Patents
A blockchain credit service method, system and storage medium Download PDFInfo
- Publication number
- CN111161006A CN111161006A CN201811327603.7A CN201811327603A CN111161006A CN 111161006 A CN111161006 A CN 111161006A CN 201811327603 A CN201811327603 A CN 201811327603A CN 111161006 A CN111161006 A CN 111161006A
- Authority
- CN
- China
- Prior art keywords
- credit
- blockchain
- network
- evaluation data
- service
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0609—Qualifying participants for shopping transactions
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The embodiment of the invention provides a block chain credit service method, a system and a storage medium; the method comprises the following steps: receiving evaluation data corresponding to an object provided by a service provider; calling an intelligent contract used for updating in a block chain network, and updating evaluation data corresponding to the object provided by the service party in the block chain network; receiving a network request for querying a candidate object; based on the evaluation data, candidate objects meeting the scoring condition are determined in the objects to respond to network requests for querying the candidate objects.
Description
Technical Field
The present invention relates to electrical digital data processing technology, and more particularly, to a block chain credit service method, system and storage medium.
Background
The services of the current internet service side are realized in a centralized manner, such as information search, application downloading, network social interaction and the like.
Objects provided by internet services in the prior art often have a large amount of evaluation data, and the technical problem that the reliability of the evaluation data of the objects is difficult to distinguish exists, so that a user is difficult to select a proper object.
Taking a search engine as an example, when a user inputs a keyword search in the search engine, the search result is limited by factors such as advertisements and commercial interests of a service party operating the search engine, so that the front position in a search result page is often used for displaying commercial elements (such as advertisements) adapted to the keyword, and although the official institution or authority label is displayed, the search intention of the user is often difficult to meet.
Even if commercial elements of the search results are excluded, it is difficult to effectively discriminate the reliability of the search results because of the anonymity of the information published by users in the internet and because users often do not need to be responsible for speaking.
Disclosure of Invention
The embodiment of the invention provides a block chain credit service method, a block chain credit service system and a storage medium, which can accurately discriminate the reliability of objects provided by various service parties.
The technical scheme of the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for block chain credit service, where the method includes:
receiving evaluation data corresponding to an object provided by a service provider;
calling an intelligent contract used for updating in a block chain network, and updating evaluation data corresponding to the object provided by the service party in the block chain network;
receiving a network request for querying a candidate object;
based on the evaluation data, candidate objects meeting the scoring condition are determined in the objects to respond to network requests for querying the candidate objects.
In a second aspect, an embodiment of the invention provides a system for block chain credit service, the system including
The interface layer is used for receiving evaluation data corresponding to an object provided by a service party;
the interface layer is used for calling an intelligent contract used for updating in a block chain network and updating evaluation data corresponding to the object provided by the service party in the block chain network;
the interface layer is further used for determining candidate objects meeting a score condition in the objects based on the evaluation data so as to respond to a network request for querying the candidate objects;
the block chain network is used for responding to the calling of the intelligent contract used for updating and responding to the calling of the intelligent contract used for inquiring.
In a third aspect, an embodiment of the present invention provides a system for block chain credit service, where the system includes:
a memory for storing executable instructions;
and the processor is used for executing the executable instructions stored in the memory to realize the block chain credit service method provided by the embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where executable instructions are stored in the storage medium, and when the executable instructions are executed, the storage medium is configured to cause a processor to execute the block chain credit service method provided by the embodiment of the present invention.
The embodiment of the invention has the following beneficial effects:
through the block chain network, the evaluation data of the object provided by the service party is stored in the block chain network, so that the technical effect that the evaluation data cannot be tampered is realized;
the intelligent contract is called in the block chain network to determine the score of the candidate object based on the evaluation data, so that the reliability of the candidate object is accurately discriminated according to the score, and the reliability of the query result is ensured.
Drawings
Fig. 1 is a schematic diagram of an exemplary application of a block chain credit service system 100 according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of an alternative block chain credit service method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of an alternative block chain credit service method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of an alternative block chain credit service method according to an embodiment of the present invention;
fig. 5 is a block chain credit service system 100 according to an embodiment of the present invention;
fig. 6 is a functional architecture diagram of a blockchain network 120 according to an embodiment of the present invention;
fig. 7 is an alternative structural schematic diagram of a node 1201 provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) A service side, an individual, a company, a group, or a structure that runs a service on a network to provide various objects, for example, a service side that provides a search engine service (provides various search results), a service that provides a social network (provides various network social products), and an application store that provides management of download and upgrade of various applications, and the like.
2) The object can be any entity with evaluation significance, such as real-world people, objects, places and the like, and can also be any item with evaluation significance, such as virtual currency/characters, games, multimedia data and the like; herein, the object in a narrow sense refers to various tangible or virtual articles other than a person.
3) The evaluation data is data for evaluating various objects provided by the service party by the user, and the data can be quantitative scores (for example, 1 to 5 points) or qualitative descriptions (for example, good, general, poor and the like scores).
4) Credit score, a measure of the credit of users participating in the evaluation object (i.e., participating users).
5) The block chain credit service provides a service for providing evaluation objects (namely, evaluating the objects provided by the service side to form evaluation data) for users and provides a service for inquiring the evaluation data for the users based on a block chain network with intelligent contract deployment capability.
6) The digital identity is a public key of an asymmetric encryption algorithm generated by a user, or a transaction address obtained by calculating the public key based on an address calculation mode of a block chain network, or a digital certificate carrying the public key of the user and related information.
7) A blockchain network incorporates new blocks into a set of centerless nodes of the blockchain in a consensus manner.
8) The ledger data, data actually stored in the blockchain, that is, a series of ordered and non-falsifiable records of transactions recorded in the blockchain, may be expressed in the form of files of a file system, and when an intelligent contract called in a transaction is executed, update of data in an account/account is achieved.
9) The ledger state, also referred to as state data, i.e. the state of the ledger data, may be in the form of key-value pairs in the database terminal, where the real-time ledger state is used to represent the latest record of key-value pairs updated by the agreed-upon exchange and the historical ledger state is used to represent the historical record of key-value pairs.
10) Consensus (Consensus), a process in a blockchain network, is used to agree on the transaction results among the nodes involved, and the mechanisms for achieving Consensus include Proof of workload (PoW), Proof of rights and interests (PoS, Proof of approval of stamp), Proof of share authorization (DPoS), Proof of Elapsed Time (PoET, Proof of Elapsed Time), and so on.
11) Intelligent Contracts (Smart Contracts), also called chain codes (chaincodes), are deployed in the blockchain network, and trigger the execution of programs according to conditions, and are used for operating the ledger (including ledger state and ledger data) in a query, addition and modification manner, so as to realize query or update of the ledger.
An exemplary application of the blockchain credit service system implementing the embodiment of the present invention to implement the blockchain credit service is described below, referring to fig. 1, fig. 1 is a schematic diagram of an exemplary application of the blockchain credit service system 100 provided by the embodiment of the present invention. The blockchain credit service system 100 may provide blockchain credit services to one or more servers 200 (illustrated in fig. 1 as server 200-1 through server 200-3), including rating and querying for objects provided by the servers.
An exemplary process of implementing the block chain credit service method by the block chain credit service system according to the embodiment of the present invention is described with reference to fig. 1, referring to fig. 2, fig. 2 is an optional process diagram of the block chain credit service method according to the embodiment of the present invention, and the block chain credit service method shown in fig. 1 will be described with reference to the block chain credit service system.
In step 101, the blockchain credit service system 100 receives evaluation data corresponding to an object provided by a service provider.
For example, when the service is a search engine, the evaluation data may be a quantitative score (e.g., from 1 to 5 points) for the search results, or may be a qualitative evaluation of whether the search results are accurate; as another example, when the service is an application store, the rating data may be a quantitative rating (e.g., from 1 to 5 points) or a qualitative rating (good, bad) for the application by the user.
In response to the received rating data, the blockchain credit service system 100 invokes an intelligent contract for updating in the blockchain network 120 in step 102 to update the rating data corresponding to the object provided by the service in the blockchain network 120 according to the received rating data.
The blockchain credit service system 100 will determine candidate objects satisfying the score condition among the objects based on the evaluation data in response to the network request for querying the candidate objects, which will be described below with reference to steps 103 to 105.
In step 103, the blockchain credit service system 100 receives a network request for querying candidate objects.
For example, when the server is a search engine, the candidate objects are search results that meet the keyword (which may also include more conditions that constrain the search results); as another example, when the service is an application store, the candidate may be any application that the user browses or queries in an application store page.
In response to the received network request, in step 104, the blockchain credit service system 100 invokes an intelligent contract for query in the blockchain network 120 to determine a score corresponding to the candidate object according to the evaluation data of the candidate object.
Continuing with the previous example, when the server is a search engine, and the candidate objects are search results that match the keywords, the blockchain credit service system 100 will determine a score for each search result; when the service is an application store, the candidate may be any application that the user browses or queries in an application store page, and the blockchain credit service system 100 will determine the score for the user browsing or querying the respective application.
In response to the received network request for query, the blockchain credit service system 100 responds to the network request for query according to the candidate objects satisfying the score condition in step 105.
Continuing with the previous example, when the server is a search engine and the candidate object is a search result that matches the keyword, the blockchain credit service system 100 determines the score of each search result, returns the search result whose score meets the score condition to the graphical interface display of the client that sent the query web request; when the service party is an application store, the candidate object may be any application that the user browses or queries in the application store page, and the blockchain credit service system 100 determines the score of each application browsed or queried by the user, and returns the relevant information of the application with the credit score meeting the score condition to the client sending the query network request for display.
It is noted that there is no restriction on the execution order of step 101 and step 103, and for example, there may be a sequential, reverse or parallel execution order, and similarly, there is no restriction on the execution order for the responses of step 101 and step 103.
It can be seen that the blockchain credit service system calls an intelligent contract for updating in the blockchain network, stores evaluation data of an object provided by a service party into the blockchain network, and achieves the technical effect of non-falsification of the evaluation data by means of the blockchain network; the candidate objects meeting the score condition are inquired by calling the intelligent contract for inquiry in the block chain network, and the score reflects the characteristic of whether the object is reliable or not, so that the candidate objects with low scores are filtered, and the reliability of the inquiry result of the candidate objects is ensured.
In fig. 1, a service party 200-1 and a service party 200-2 accessing the blockchain credit service of the blockchain credit service system 100 are referred to as an access service party, and an exemplary application of the blockchain credit service system to implement the blockchain credit service to the access service party as shown in fig. 1 is described in the following with reference to fig. 5.
Referring to fig. 5, fig. 5 is an alternative architecture diagram of the blockchain credit service system 100 according to an embodiment of the present invention, in which the blockchain credit service system 100 provides access to blockchain credit services to one or more service providers 200 (in fig. 5, the access service provider 200-1 and the service provider 200-2) through a blockchain gateway interface (the blockchain gateway interface shown in fig. 5 is a blockchain REST gateway 111) of the interface layer 110, the blockchain gateway interface stores service data (e.g., evaluation data) of the access service providers in the blockchain network 120 in a manner of abstracting resources, and provides an interface for performing different types of operations (e.g., query, creation, update, and deletion) on the resources, so that clients can make calls in a manner of declaring operation types in a network request, and when receiving a network request for evaluating an object (i.e., an object provided by the access service provider) from a user from a client of the access service provider The state of the target resource is changed according to the network request, for example, an object that is not evaluated is newly created in the blockchain network 120 and corresponding evaluation data is stored, or new evaluation data is added to the object that has already stored evaluation data in the blockchain network 120.
In fig. 5, a server 200-1 and a server 200-2 accessing an interface layer of the blockchain credit service system 100 are referred to as access servers, and some or all of business data (e.g., evaluation data) of the access servers are stored in the blockchain network 120 in a manner of abstracting as resources through the interface layer 110 of the blockchain credit service system 100, so that operations facing uniform resources can be realized through network requests for clients of different platforms and systems of the access servers, and the complexity problem that targeted adaptive access needs to be performed in network requests due to differences of platforms and systems is solved.
With continuing reference to fig. 3, fig. 3 is an alternative flowchart of the method for block chain credit service according to the embodiment of the present invention, and a scheme for providing an access service to the access service party shown in fig. 5 and implementing the block chain credit service for the access service party will be described.
In step 201, the blockchain gateway interface of the blockchain credit service system 100 provides the service party with access to the blockchain credit service.
In some embodiments, the blockchain credit service system 100 provides access to one or more servers through a blockchain gateway interface, for example, in fig. 5, a server 200-1 and a server 200-2 accessing the blockchain credit service system 100 are referred to as access servers, and some or all of the business data (e.g., evaluation data) of the access servers are stored in the blockchain network 120 through the blockchain gateway interface in a manner of abstracting to resources via the blockchain gateway interface, so that clients of different platforms and systems of different access servers can implement resource-oriented operations through network requests, and the complexity problem of requiring targeted adaptive access due to platform and system differences is solved.
An exemplary specification of data interaction between a client at a HyperText Transfer Protocol (HTTP) layer and a blockchain gateway interface at an APPlication Program Interface (API) layer is described below.
The block chain gateway interface abstracts the service data of the access service party into a series of resources, each resource has a unique resource identifier, the block chain gateway interface is encapsulated with an API (application programming interface), so that a client declares an operation type corresponding to the interface in a network request based on HTTP (hyper text transport protocol), and the operation of inquiring, creating, modifying and deleting in the block chain network is realized by calling the interface by declaring the operation type, but the operation of the client on the resources does not change the identifiers, but only changes the state of the corresponding target resource recorded in the block chain network 120, such as the operation type, operation parameters, operation time and the like of the resource.
The representation of the resource may include: data in data exchange formats, such as JavaScript Object Notation (JSON) and eXtensible markup language (XML) formats, and data in multimedia forms, such as images in Joint Photographic Experts Group (JPEG) format.
One exemplary format of a client's network request is: the type of operation; uniform Resource Locator (U RL, Uniform Resource Locator); an operating parameter.
The operation type indicates an operation to be performed on the target resource, and the operation parameter indicates specific data where the operation is located, for example, evaluation data that needs to be modified or newly added, and may also carry information such as a digital signature and a digital identity of the evaluation data.
Four operations can be specified for a resource: create, query, modify, and delete, identify and locate a target resource in blockchain network 120 by a URL, i.e., a URL in a network request is used to indicate that it is used to identify and locate a resource (i.e., a target resource) and does not relate to a specific operation on the target resource, an operation type in a network request indicates an operation performed on the target resource, and a resource is operated by changing the state of the resource.
Taking the example that the evaluation data of the object is abstracted by the blockchain gateway interface as a resource, examples of network requests of different operation types are as follows:
GET http:// xxxx/items query object list;
POST http:// xxxx/items creates an object;
PUT http:// xxxx/items/1 modifies the evaluation data of the object with ID 1;
DELETE http:// xxxx/items/1 DELETEs the rating data of the object with ID 1.
Therefore, the resource-oriented design makes the blockchain network interface become a stateless architecture mode, because the client can send the network request to the blockchain gateway interface at any time and obtain the required data, the currently sent network request does not depend on the influence of the data of the previous network request.
As for the interface of the blockchain gateway for implementing the embodiment of the present invention, a form of an interface of a change of State of presentation layer (R EST) may be adopted, and certainly, an interface for standardizing an operation mode for a resource is not limited to a REST interface.
In step 202, when the service provider is an access service provider accessing the blockchain credit service system 100, the blockchain gateway interface of the blockchain credit service system 100 receives a network request for evaluation sent by the access service provider.
Taking fig. 2 as an example, the access service parties are a service party 200-1 and a service party 200-2, and a user can access the service party 200-1 through a client such as a browser running in the terminal 300-1 or a dedicated APP, and perform any of the following operations in a graphical interface 310-1 of the client: evaluating various objects provided by the server 200-1 to form evaluation data, and inquiring the evaluation data of various objects provided by the server 200-1; the user may access the server 300-2 through a client in the form of a browser or a dedicated APP or the like in the terminal 300-2 to perform any of the following operations in the graphical interface 310-2 of the client: the various objects provided by the server 200-2 are evaluated to form evaluation data, and the evaluation data of the various objects provided by the server 200-2 is queried.
When a user implements an operation of evaluating an object at a client, the client sends a network request for evaluation, where evaluation data corresponding to the object provided by the access service is carried, and an example of the network request is:
PUT http://xxxx/items/
DATA:
ID=1
SCORE=2。
the operation type carried by the network request is modification (i.e., "PUT") for adding evaluation data "2" to the object whose ID is 1.
In some embodiments, the network request for updating may carry a digital identity and a digital signature of the source user of the evaluation data, and the block chain gateway interface of the block chain credit service system 100 verifies that the evaluation data is from a legitimate user and has not been tampered with, as will be described in connection with step 203.
In step 203, the blockchain gateway interface of the blockchain credit service system 100 extracts the digital identity and digital signature of the source user of the evaluation data.
In step 204, the blockchain gateway interface of the blockchain credit service system 100 verifies the digital identity and evaluates whether the data is not tampered according to the digital signature, and if so, performs step 205; otherwise, return to step 203.
When the authentication fails, the reason for the authentication failure may also be returned to the client of the user of the access service, e.g., the digital signature authentication fails.
In step 205, it is continuously verified whether the digital identity belongs to the blockchain network, if yes, step 206 is executed, otherwise, step 203 is returned.
Taking fig. 5 as an example, the blockchain gateway interface and the access service side of the blockchain credit service system 100 apply for a root certificate from the same certificate authority, so that the blockchain gateway interface verifies the digital signature of the source user through the root certificate, and if the verification passes, the evaluation data and the digital identity are not tampered (because the data signature is obtained by performing hash operation on all or part of the digital identity and the evaluation data and performing encryption); then, the digital identity blockchain network 120 is compared with the combined digital identity in the blockchain network, and if the comparison is passed, it is determined that the source user belongs to a valid user of the blockchain network 120, indicating that the source user is a valid user of the blockchain network 120.
In step 206, the blockchain gateway interface of the blockchain credit service system 100 calls the intelligent contract 121 for updating in the blockchain network 120.
In step 207, the intelligent contract 121 in the blockchain credit service system 100 updates the evaluation data corresponding to the object provided by the access service in the blockchain network 120 according to the evaluation data.
In some embodiments, the blockchain gateway interface performs at least one of the following operations on the blockchain network according to the operation type carried by the network request to update the evaluation data corresponding to the object provided by the access service in the blockchain network 120:
1) when the operation type carried by the network request is "POST" (i.e., newly added), evaluation data corresponding to the object provided by the service is stored in the blockchain network 120 to be stored as a target resource corresponding to the identifier carried by the network request.
2) When the operation type carried by the network request is 'PUT' (namely modification), the target resource is inquired in the block chain network according to the identification of the target resource carried by the network request, and the target resource is modified according to the evaluation data corresponding to the object provided by the service party.
In some embodiments, the blockchain gateway interface may also store the credit scores of the source users of the ratings data in blockchain network 120 when storing the ratings data for the objects in blockchain network 120; for example, the blockchain gateway interface abstracts the ratings data of the objects and the credit scores of the source users of the ratings data into resources and updates the credit scores of the ratings data and the source users of the ratings data to the blockchain network 120 in response to a network request for updating.
For example, a resource corresponding to the object is newly established in the blockchain network 120, and the evaluation data carried in the network request for updating and the credit score of the source user are stored; alternatively, the evaluation data and the credit score of the source user are additionally stored in the resource (i.e., target resource) corresponding to the target of the user evaluation in the blockchain network 120. The credit score can be used as a certificate for evaluating the reliability of the data, so that the evaluation data is screened for reliability.
Credit scores may be statistically derived from multiple dimensions, such as business data and/or personal portrait data of the accessing service party about the source user, feedback data of reliability of the score data of the source user, and the like; the credit score may be calculated based on a rule-based approach or predicted based on business data and/or personal representation data of the source user in a machine learning model.
In some embodiments, to avoid the situation of low quality evaluation of network navy, etc., a scheme of shielding the ul storage of low quality evaluation data may be implemented, for example, when the blockchain gateway interface calls an intelligent contract for updating, it is queried in the blockchain network 120 whether the source user of the evaluation data carried in the network request is a low credit user whose credit score is lower than a credit score threshold, and if so, the shielding is updated in the blockchain network 120 based on the evaluation data of the low credit user, thereby ensuring the reliability of the evaluation data stored in the blockchain network 120.
For example, when the network request for updating carries evaluation data of a low-credit user, the intelligent contract shields the updating of the evaluation data based on the low-credit user in the blockchain network until the freezing period of the low-credit user is ended, so that the quality of the evaluation data is ensured.
In step 208, when the service provider is an access service provider accessing the blockchain credit service system 100, the blockchain gateway interface of the blockchain credit service system 100 receives a network request for querying the candidate object sent by the access service provider.
In some embodiments, the network request for updating may carry a digital identity and digital signature of the source user of the ratings data, which is verified by the blockchain gateway interface of the blockchain credit service system 100 to be from a legitimate user and not tampered with, as will be described in connection with step 206.
In step 209, the blockchain gateway interface of the blockchain credit service system 100 extracts the digital identity and digital signature of the source user of the queried network request.
In step 210, the blockchain gateway interface of the blockchain credit service system 100 verifies whether the digital identity and the evaluation data are not tampered according to the digital signature, if so, step 211 is executed, otherwise, step 209 is returned.
In step 211, the blockchain gateway interface of the blockchain credit service system 100 continues to verify whether the digital identity belongs to the blockchain network, if so, step 212 is executed, otherwise, step 209 is returned.
In step 212, the blockchain gateway interface of the blockchain credit service system 100 calls the intelligent contract for query in the blockchain network 120.
In step 213, smart contract 213 determines a score for the candidate based on the evaluation data for the candidate.
In some embodiments, the blockchain gateway interface invokes an intelligent contract for a query in blockchain network 120 to determine credit scores for different ratings data for candidate objects. Firstly, inquiring all the evaluation users of the evaluation candidate object and the corresponding credit scores, and secondly, determining the credit weights of the evaluation users according to the credit scores, wherein the credit weights can be the proportion of the credit scores of the users in the credit scores of all the evaluation users; according to the credit weights of different evaluation users, carrying out weighted summation on the evaluation data of the different evaluation users to determine the weighted average value of the evaluation data of the different users evaluating the candidate object, wherein the weighted average value is used as the score of the candidate object and is expressed as:
for example, for each candidate object available for review (e.g., a website address, a gaming application, a restaurant, and may always be anything), one exemplary data structure maintained in the smart contract is: object: credit scores of users participating in the rating, number of users participating in the rating. Further, when the object is a narrowly defined object (e.g., item, location, application) excluding "people", an exemplary data structure that may also be maintained in the smart contract for each candidate person available for review is: human: credit scores of users participating in the rating, number of users participating in the rating.
The sum of the credit scores of the users participating in the evaluation and the credit scores of the users participating in the evaluation is subjected to ratio operation, so that the credit weight of the users participating in the evaluation can be determined; when new rating data of a subject or a person is obtained, based on the score of the history of the subject, it may be determined that the new score of the subject or the person may be expressed as:
in some embodiments, in order to avoid the situation of malicious evaluation, when the blockchain gateway interface calls an intelligent contract for inquiry to inquire evaluation data of different evaluation users evaluating the candidate object and corresponding credit scores, low-credit users with credit scores lower than a credit score threshold value can be screened out, so as to determine credit weights according to the credit scores of the evaluation users with credit scores not lower than the credit score threshold value, and further determine scores of the candidate object; furthermore, the rating data of the low credit user may also be frozen (e.g., one year), and when the freezing expires, the rating data of the low credit user can participate in the calculation of the score of the candidate object.
In some embodiments, when the blockchain gateway interface calls an intelligent contract for query according to the difference of evaluation criteria of different service parties, the intelligent contract can also normalize the evaluation data so that the evaluation data can accurately reflect the evaluation of the user.
For example, when the evaluation data is a quantified score, the intelligent contract normalizes the evaluation data; when the evaluation data is a text evaluation such as "good" or "general", the text evaluation is changed to a quantized score, and a normalization process is performed.
In step 214, the intelligent contracts 121 of the blockchain network 120 respond to the query network request of the client accessing the service party with the candidate objects meeting the score condition.
For example, when an intelligent contract for a query is invoked, scores for a plurality of candidate objects are determined, the candidate objects with scores above a score threshold value and related information (e.g., referral information, ratings data) are responded to the network request of the query; or, the plurality of candidate objects are sorted in descending order according to the candidate object scores, and a set number of candidate objects and related information (such as introduction information and evaluation data) in the top are sorted to respond to the network request of the query.
In some embodiments, when the blockchain gateway interface updates the blockchain network 120 according to evaluation data carried by a network request for updating, the evaluation data may be stored in the blockchain network 120 as ledger data of a file type, and at the same time, the evaluation data may also be stored as ledger status of an unstructured database type, for example, as data in the form of key value pairs in a NoSQL database; subsequently, when the evaluation data needs to be queried in the blockchain network 120 in response to the network request for querying, the evaluation data of the book state is preferentially queried, so as to improve the query efficiency by utilizing the optimization of the unstructured database for the query.
In practical applications, a service party is in a security requirement for protecting data of own services or for other reasons, and there is a case that a data interface cannot be exposed to the blockchain credit service system, that is, the blockchain credit service cannot be accessed through a blockchain gateway interface.
For example, in fig. 1, the server 200-1 and the server 200-2 accessing the blockchain credit service system 100 are referred to as accessing servers, but the server 200-3 accesses the blockchain credit service through a blockchain gateway interface for security reasons.
An exemplary application of the blockchain credit service system shown in fig. 1 to implement blockchain credit service to an access server is described in the following with reference to fig. 5. Referring to fig. 5, a server 200-1 and a server 200-2 accessing the blockchain credit service system 100 are called access servers, and for objects provided by a non-access server, i.e., the server 200-3, a website (shown as a rating and query website 112 in fig. 5) for rating and querying may be run in the interface layer 110 of the blockchain credit service system 100 for a user of the server 200-3 to rate and query through the objects provided for the object provided by the server 200-3 in the graphical interface 310-3/310-4 of the terminal 300-3/300-4.
With reference to fig. 4, fig. 4 is an alternative flowchart of the block chain credit service method according to the embodiment of the present invention, and the scheme of the block chain credit service system 100 shown in fig. 5 for implementing the block chain credit service for the unaccessed service party (i.e., the service party 200-3) will be described with reference to fig. 4.
In step 301, the network station operating the blockchain credit service system 100.
For objects provided by the non-access service, as shown in fig. 5, a network site for rating and query may be operated in the blockchain credit service system 100, which is shown as a rating and query website 112 in fig. 5.
The network site stores data (such as evaluation data) submitted by a user aiming at objects provided by non-accessed service parties in the blockchain network 120 in a resource-abstract mode, so that resource-oriented operation can be realized through network requests, and the complexity problem that targeted adaptive access is needed due to the difference of platforms and systems of different non-accessed service parties is solved.
The exemplary specification of the client for data interaction with the website at the API in HTTP may be implemented with reference to the above-mentioned exemplary specification of the client for data interaction at the API layer in the HTTP layer and the blockchain gateway interface.
For example, the network station abstracts the service data of the non-access service party into a series of resources, each resource has a unique resource identifier, and the network station encapsulates an API for the client to declare the operation type corresponding to the interface in the HTTP-based network request to call to implement the operations of querying, creating, modifying and deleting, but the operation of the client on the resource does not change the identifiers, but only changes the state of the corresponding target resource, such as the operation type, the operation parameters and the operation time, recorded in the blockchain network 120.
One exemplary format of a client's network request is: the type of operation; a URL; an operating parameter. The operation type indicates an operation to be performed on the target resource, and the operation parameter indicates specific data where the operation is located, for example, evaluation data that needs to be modified or newly added, and may also carry information such as a digital signature and a digital identity of the evaluation data. Four operations can be specified for a resource: create, query, modify and delete, identify and locate target resources in the blockchain network by URLs, and specify operations to be performed on those resources, i.e., a URL in a network request is used to indicate that a resource (i.e., a target resource) is to be identified and located and does not relate to a specific operation on the target resource, an operation type in a network request indicates an operation to be performed on the target resource, and a resource is operated by changing the state of the resource.
In step 302, when the service party is an unaccessed service party accessing the blockchain credit service system 100, the network station of the blockchain credit service system 100 receives a network request for evaluation sent by a client of the unaccessed service party.
Taking fig. 4 as an example, when the user accesses the server 200-3 through the terminal 300-3/the terminal 300-4, the server 200-3 can perform any operations as follows in the graphical interface 300-3/the graphical interface 300-4 of the client in the form of a browser or a dedicated APP: the various objects provided by the server 200-3 are rated to form rating data, and the rating data of the various objects provided by the server 200-3 is queried.
When the user performs an operation of rating an object on the graphical interface 300-3/graphical interface 300-4 of the client, the client will send a network request for rating, carrying rating data corresponding to the object provided by the server 200-3.
The operation type carried by the network request is modification (i.e., "PUT") for adding score data "2" to the object whose ID is 1.
In some embodiments, the network request for updating may carry a digital identity and a digital signature of the source user of the evaluation data, so that the network station of the blockchain credit service system 100 can verify that the evaluation data is from a legitimate user and has not been tampered with, as will be described in connection with step 303.
In step 303, the network station of the blockchain credit service system 100 extracts the digital signature verification digital identity and evaluation data carried by the network request.
In step 304, the network station of the blockchain credit service system 100 verifies whether the digital identity and the evaluation data are not tampered according to the digital signature carried by the network request, and if so, executes step 305; otherwise, return to step 303.
When the verification fails, the reason of the verification failure may also be returned to the client of the user who does not access the service, for example, the digital signature verification fails.
In step 305, when the network station of the blockchain credit service system 100 verifies the digital identity and evaluates that the data is not tampered, continuing to verify whether the digital identity belongs to the blockchain network 120, if so, executing step 306; otherwise, the procedure returns to step 303.
Still taking fig. 5 as an example, the network station and the non-access service party of the blockchain credit service system 100 apply for the root certificate from the same certificate authority, so that the network station verifies the digital signature of the source user according to the root certificate, and if the verification is passed, it indicates that the evaluation data and the digital identity are not tampered; then, the digital identity blockchain network 120 is compared with the combined digital identity in the blockchain network, and if the comparison is passed, it is determined that the source user belongs to a valid user of the blockchain network 120, indicating that the source user is a valid user of the blockchain network 120.
In step 306, the network site of the blockchain credit service system 100 invokes an intelligent contract for updating in the blockchain network 120.
In step 307, the smart contract 121 of the blockchain network 120 updates the evaluation data corresponding to the object provided by the unaccessed server (i.e., the server 200-3) in the blockchain network 120 according to the received evaluation data.
In some embodiments, the network station performs at least one of the following operations on the blockchain network according to the operation type carried by the network request, so as to update the evaluation data corresponding to the object provided by the unaccessed service party in the blockchain network 120:
1) when the operation type carried by the network request is "POST" (i.e., newly added), evaluation data corresponding to an object provided by the unaccessed service is stored in the blockchain network 120 to be stored as a target resource corresponding to the identifier carried by the network request.
2) When the operation type carried by the network request is "PUT" (i.e., modified), the target resource is queried in the blockchain network 120 according to the identifier of the target resource carried by the network request, and the target resource is modified according to the evaluation data corresponding to the object provided by the unaccessed service party.
In some embodiments, when the website stores ratings data for objects in the blockchain network 120, the website may also store credit scores for source users of the ratings data in the blockchain network 120; for example, the network site abstracts the ratings data for the object, and the credit scores of the source users of the ratings data, as resources, and in response to a network request for updating, will update the blockchain network 120 with the ratings data and the credit scores of the source users of the ratings data.
For example, a resource corresponding to the object is newly established in the blockchain network 120, and the evaluation data carried in the network request for updating and the credit score of the source user are stored; alternatively, the evaluation data and the credit score of the source user are additionally stored in the resource (i.e., target resource) corresponding to the target of the user evaluation in the blockchain network 120. The credit score can be used as a certificate for evaluating the reliability of the data, so that the evaluation data is screened for reliability.
In some embodiments, to avoid low quality evaluation of the network navy, etc., a scheme of masking the ul storage of low quality evaluation data may be implemented: when the website calls the intelligent contract for updating, the intelligent contract queries whether the source user of the evaluation data carried by the network request is a low-credit user with a credit score lower than a credit score threshold value in the blockchain network 120, and if so, the evaluation data based on the low-credit user is shielded from being updated in the blockchain network 120, so that the reliability of the evaluation data stored in the blockchain network 120 is ensured.
For example, when the network request for updating carries evaluation data of a low-credit user, the intelligent contract shields the updating of the evaluation data based on the low-credit user in the blockchain network until the freezing deadline of the low-credit user is finished, so that the quality of the evaluation data is ensured.
In step 308, when the service provider is an access service provider accessing the blockchain credit service system 100, the network station of the blockchain credit service system 100 receives a network request for querying the candidate object sent by the access service provider.
In some embodiments, the network request for updating may carry a digital identity and a digital signature of the source user of the evaluation data, and the network site of the blockchain credit service system 100 verifies that the evaluation data is from a legitimate user and has not been tampered with, as will be described in connection with step 309.
In step 309, the network station of the blockchain credit service system 100 extracts the digital identity and digital signature of the source user of the queried network request.
In step 310, the network station of the blockchain credit service system 100 verifies whether the digital identity and the evaluation data are not tampered according to the digital signature, and if so, step 311 is executed; otherwise, return to step 309.
In step 311, the blockchain gateway interface of the blockchain credit service system 100 continues to verify whether the digital identity belongs to the blockchain network, if so, step 312 is executed, otherwise, step 309 is returned to.
In step 312, the network site of the blockchain credit service system 100 invokes the intelligent contract 121 for query in the blockchain network 120.
In step 313, the intelligent contracts for queries 121 in the blockchain network 120 determine corresponding scores based on the evaluation data of the candidate objects.
In some embodiments, the network site invokes an intelligent contract for the query in blockchain network 120 to determine the score for the candidate object. Firstly, inquiring different evaluation users of the evaluation candidate object and corresponding credit scores, and secondly, determining the credit weights of the evaluation users according to the credit scores, wherein the credit weights can be the proportion of the credit scores of the evaluation users in the credit scores of the full evaluation users; according to the credit weights of different evaluation users who inquire and evaluate the candidate object, the evaluation data of the different evaluation users aiming at the candidate object are weighted and summed, and the weighted average value of the evaluation data of the different evaluation users who evaluate the candidate object is determined and used as the score of the candidate object, wherein the score is shown in the formula (1).
For example, for each candidate object available for review (e.g., a website address, a gaming application, a restaurant, and may always be anything), one exemplary data structure maintained in the smart contract is: object: credit scores of users participating in the rating, number of users participating in the rating. Further, when the object is a narrowly defined object (e.g., item, location, application) excluding "people", an exemplary data structure that may also be maintained in the smart contract for each candidate person available for review is: human: credit scores of users participating in the rating, number of users participating in the rating.
The sum of the credit scores of the users participating in the evaluation and the credit scores of the users participating in the evaluation is subjected to ratio operation, so that the credit weight of the users participating in the evaluation can be determined; when new evaluation data of the subject or person is obtained, based on the score of the history of the subject, it may be determined that the new score of the subject or person is as shown in the above formula (2).
In some embodiments, in order to avoid the malicious evaluation situation, when the website queries different users evaluating the candidate object and corresponding credit scores, low-credit users with credit scores lower than a credit score threshold value can be screened out, so as to determine credit weights according to the credit scores of the users with credit scores not lower than the credit score threshold value, and further determine the scores of the candidate object; furthermore, the rating data of the low credit user may also be frozen (e.g., one year), and when the freezing expires, the rating data of the low credit user can participate in the calculation of the score of the candidate object.
In some embodiments, the blockchain gateway interface may further normalize the evaluation data for differences in evaluation criteria of different service providers so that the evaluation data can accurately reflect the evaluation of the user.
For example, when the evaluation data is a quantified score, the evaluation data is subjected to a normalization process; when the evaluation data is a text evaluation such as "good" or "general", the text evaluation is changed to a quantized score, and a normalization process is performed.
In step 314, the network site of the blockchain credit service system 100 responds to the query network request of the client of the access service party with the candidate object satisfying the score condition.
For example, when the website calls the intelligent contract for the query, the score is determined according to the evaluation data and the credit weight of the candidate object participating users, and the candidate object with the score higher than the score threshold value and relevant information (such as introduction information and evaluation data) are responded to the network request for querying the candidate object; alternatively, the scores of the candidates are sorted in descending order, and a set number of previous candidates and associated information (e.g., introductory information, ratings data) are responded to the network request for querying the candidates.
In some embodiments, when a network station updates the blockchain network 120 according to evaluation data carried by a network request for updating, the evaluation data may be stored in the blockchain network 120 as ledger data in a file manner, and at the same time, the evaluation data may also be stored as ledger status in an unstructured database manner, for example, as key-value pair data in a NoSQL database; subsequently, when the evaluation data needs to be queried in the blockchain network 120 in response to the network request for querying, the evaluation data of the book state is preferentially queried, so as to improve the query efficiency by utilizing the optimized performance of the unstructured database for querying.
Continuing with the description of the exemplary architecture of the blockchain credit service system implementing the embodiment of the invention, referring to fig. 5, fig. 5 is an exemplary architecture diagram of the blockchain credit service system 100 provided by the embodiment of the invention, which includes an interface layer 110 and a blockchain network 120, where the interface layer 110 includes a blockchain gateway interface (taking the blockchain REST gateway 111 as an example in fig. 5) and a network site (taking the evaluation and query website 112 as an example in fig. 5).
The interface layer 110 is configured to receive a network request for evaluation (hereinafter, also referred to as an evaluation network request) sent by a client, where evaluation data corresponding to an object provided by a server is carried in the network request, and in response, invoke the smart contract 121 for updating in the blockchain network 120, so as to update the evaluation data corresponding to the object provided by the server in the blockchain network 120 according to the received evaluation data.
The interface layer 110 is further configured to receive a network request (hereinafter also referred to as a query network request) for a client to query for a candidate object, and in response, invoke an intelligent contract 121 for querying in the blockchain network 120 to determine a score corresponding to the candidate object according to evaluation data of the candidate object, and respond to the network request for the client to query according to the candidate object meeting a score condition.
A blockchain network 120 for responding to the call for the interface layer 110 to the intelligent contract 121 for updating, including responding to the call for the blockchain gateway interface (shown as blockchain REST gateway 111 in fig. 5) and the intelligent contract for updating by the network site (shown as evaluation and query website 112 in fig. 5), executing the intelligent contract 110 to call the intelligent contract for query in the blockchain network 120 in response to the call for the intelligent contract 121 for query by the interface layer 110, to determine a score corresponding to a candidate object according to evaluation data of the candidate object, and responding to the network request for query according to the candidate object meeting the score condition.
In some embodiments, the interface layer 110 includes a blockchain gateway interface, shown in fig. 5 as blockchain REST gateway 111, for providing access to blockchain credit services to the serving parties, referred to as access serving parties accessing the blockchain credit services, such as serving party 200-1 and serving party 200-2.
The blockchain gateway interface is further configured to receive a network request for evaluation sent by a client of the access server to the blockchain gateway interface, where the network request carries evaluation data corresponding to an object provided by the access server, and change a state of a target resource in the blockchain network 120 according to the evaluation network request.
For example, the blockchain gateway interface is specifically configured to, by calling the intelligent contract 121 for updating in the blockchain network 120, perform at least one of the following operations on the blockchain network 120 according to the operation type carried by the evaluation network request: when the type is newly added, newly adding evaluation data corresponding to an object provided by the access server to store as a target resource corresponding to the network request carrying identifier; when the operation type is modification, the target resource is queried in the blockchain network 120 according to the identifier of the target resource carried by the network request, and the target resource is modified according to the evaluation data corresponding to the object provided by the access service party.
In some embodiments, the blockchain gateway interface of the interface layer 110 is specifically configured to perform the following operations by invoking the intelligent contracts for updates/queries 121 in the blockchain network 120: before updating/querying the evaluation data corresponding to the object provided by the access service party in the blockchain network 120, extracting the digital identity and the corresponding digital signature carried by the evaluation data; when the digital identity is verified based on the digital signature and the evaluation data is not tampered with, it is continuously verified that the digital identity belongs to the blockchain network 120 to verify whether the digital identity belongs to a legitimate user of the blockchain network 120.
In some embodiments, the blockchain gateway interface of the interface layer 110 is specifically configured to perform the following operations by invoking the intelligent contracts 121 for querying in the blockchain network 120: the credit scores of different users who evaluate the candidate objects are inquired in the blockchain network 120, the credit weights of the different users are determined according to the credit scores, and the weighted average of the evaluation data of the users according to the credit weights of the different users is used as the score of the candidate objects.
In the process of calculating the credit weight by the intelligent contract, the corresponding score of the user with the credit score lower than the credit score threshold can be screened out, the credit weight of the corresponding user is determined according to the credit score of the user with the credit score not lower than the credit score threshold, and the credit score of the candidate object can be calculated only until the freezing expiration of the user with low credit, so that the condition of malicious evaluation is avoided.
In some embodiments, the interface layer 110 is further configured to perform the following operations by invoking the intelligent contract 121 for updating in the blockchain network 120: querying a low-credit user having a credit score below a credit score threshold in the blockchain network 120 and determining that the originating user is not a low-credit user before updating rating data corresponding to the service-provided object in the blockchain network 120 based on the received rating data; to avoid ul storage of rating data for low credit users.
In some embodiments, the interface layer 110 includes a network station; when the service party is a non-access service party of the non-access block chain credit service, the network site is used for receiving a network request for evaluation sent by a client of the non-access service party, wherein the network request carries evaluation data corresponding to an object provided by the non-access service party.
In some embodiments, the network site of the interface layer 110 is specifically configured to perform at least one of the following operations on the blockchain network 120 according to the operation type carried by the network request by calling the intelligent contract 121 for updating in the blockchain network 120: when the operation type is newly added, adding evaluation data corresponding to an object provided by the unaccessed service party to be stored as a target resource corresponding to the network request carrying identification; when the operation type is modification, the target resource is queried in the blockchain network 120 according to the identifier of the target resource carried by the network request, and the target resource is modified according to the evaluation data corresponding to the object provided by the non-access service party.
In some embodiments, the network site of the interface layer 110 is specifically configured to perform the following operations by invoking the intelligent contracts 121 for querying/updating in the blockchain network 120: before the blockchain network 120 queries/updates the evaluation data corresponding to the object provided by the service provider, extracting the digital identity and the digital signature of the source user of the evaluation data; when the digital identity is verified to have not been tampered with based on the digital signature, the digital identity continues to be verified to belong to the blockchain network 120 to determine whether the digital identity belongs to a legitimate user of the blockchain network 120.
In some embodiments, the interface layer 110 is specifically configured to perform the following operations by invoking the intelligent contracts for querying 121 in the blockchain network 120: querying credit scores of different users evaluating the candidate objects in the blockchain network 120, and determining credit weights of the corresponding users according to the credit scores; and determining the weighted average of the evaluation data of the corresponding user as the score of the candidate object according to the determined credit weight.
In the process of calculating the credit weight by the intelligent contract, the corresponding score of the user with the credit score lower than the credit score threshold can be screened out, the credit weight of the corresponding user is determined according to the credit score of the user with the credit score not lower than the credit score threshold, and the credit score of the candidate object can be calculated only until the freezing expiration of the user with low credit, so that the condition of malicious evaluation is avoided.
In some embodiments, the network interface of the interface layer 110 is further configured to perform the following operations by invoking the intelligent contract 121 for updating in the blockchain network 120: based on the received rating data, a low credit user with a credit score lower than a credit score threshold is queried in the blockchain network 120 before updating the rating data corresponding to the object provided by the service in the blockchain network 120, and it is determined that the source user is not a low credit user, so as to avoid uplink storage of the rating data of the low credit user.
Continuing with the description of the exemplary functional architecture of the blockchain network implementing the embodiment of the present invention, referring to fig. 6, fig. 6 is a functional architecture schematic diagram of a blockchain network 120 provided by the embodiment of the present invention, which includes an intelligent contract 121, a consensus layer 122, a network layer 123, a data layer 124, and a resource layer 125, which are described below separately.
The intelligent contract 121 encapsulates various services that can be implemented by the blockchain network, including evaluation objects, checking evaluation data of new objects, updating evaluation data of objects, freezing low-credit users, calculating scores of candidate objects, and the like.
The consensus layer 122 encapsulates mechanisms for achieving consistency Of transaction results propagated in the blockchain, including Proof Of rights over (POS) and Proof Of Work (POW), and supports pluggable consensus mechanisms.
Network layer 123 encapsulates point-to-point (P2P) network protocols, data propagation and verification mechanisms, access and authentication mechanisms, and service agent identities. The P2P network protocol realizes communication among nodes in the blockchain network, a data propagation mechanism ensures the propagation of transaction/transaction results in the blockchain network, and a data verification mechanism is used for realizing the reliability of data transmission among the nodes according to an encryption method (such as a digital certificate, a digital signature and a public/private key pair); the access and authentication mechanism is used for managing the access and authentication of the terminal according to the identity of the service subject.
Data layer 124 encapsulates various data structures that implement the ledger, including ledger data implemented in a file system, ledger status and presence proofs implemented in a database form.
The resource layer 125 encapsulates various available computing and storage resources, such as those in computers, servers/clusters, and clouds, abstracts and provides a uniform interface to the data layer 124 to mask the diversity of the underlying hardware implementing the resource layer 125.
The computing resources include various forms of processors such as a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), and a Field-Programmable Gate Array (FPGA).
The storage resources include various types of storage media such as various volatile memories and nonvolatile memories. The nonvolatile Memory may be a Read Only Memory (ROM) or a Programmable Read-Only Memory (PROM). Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory.
The computing resources and storage resources of the resource layer 125 may be mapped to various types of nodes in the blockchain network, and once the executable instructions deployed to the nodes are executed, the underlying resources (e.g., various types of processors) that implement the nodes will implement calls that will respond to the intelligent contracts for updates, as well as calls that will respond to the intelligent contracts for queries.
By way of example, executable instructions may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, in the form of software (including system programs and applications), software modules, scripts, plug-ins, and the like, and may be deployed in any form, including as a stand-alone program or as a module, component, or other unit suitable for use in a computing environment.
The block chain credit service method provided by the embodiment of the present invention adopts an example implemented by combining software and hardware, the block chain credit service system method provided by the embodiment of the present invention can be directly embodied as the above-mentioned different forms of software modules executed by a processor, the software modules can be located in a storage medium, the storage medium is located in a resource layer, the processor reads executable instructions included in the memory software modules, and the block chain credit service method provided by the embodiment of the present invention is implemented by combining necessary hardware.
An exemplary structure of a node of a blockchain network implementing an embodiment of the present invention is described below, and it is understood that the hardware structure of any type of node in the blockchain network 120 may be implemented according to the hardware structure described below.
Referring to fig. 7, fig. 7 is an optional structural schematic diagram of a node 1201 provided in the embodiment of the present invention, where the node 1201 may be one or more servers, and according to the structure of the node 1201, other exemplary structures of the node 1201 can be foreseen, so the structure described herein should not be considered as a limitation, for example, some components described below may be omitted, or components not described below may be added to adapt to special needs of some application scenarios.
The node 1201 shown in fig. 7 includes: at least one processor 12011, memory 12014, and at least one network interface 12012. The various components in the node 1201 are coupled together by a bus system 12013. It is understood that the bus system 12013 is used to enable connected communication between these components. The bus system 12013 includes a power bus, a control bus, and a status signal bus, in addition to the data bus. For clarity of illustration, however, the various buses are designated as the bus system 12013 in FIG. 7.
The memory 12014 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The memory 12014 described in connection with embodiments of the invention is intended to comprise these and any other suitable types of memory.
The Processor 12011 may be an integrated circuit chip with Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc., wherein the general purpose Processor may be a microprocessor or any conventional Processor, etc.
In conjunction with the above, a blockchain network implementing embodiments of the present invention is achieved by providing in the form of a series of memories and processors in which executable instructions are stored that, when executed by the processors, will respond to calls for updated smart contracts and to calls for queried smart contracts.
The following description is provided in combination with a specific application example of the blockchain credit service system implementing the embodiment of the present invention, and the blockchain credit service system can solve the problem of unreliable information provided by the centralized mechanism of the existing internet services.
Taking a search engine as an example, search results obtained based on keywords are provided by a search website based on a bidding ranking rule, the display sequence of the search results is not directly related to the reliability of the search results, because the ranking of the search structure relates to factors such as advertisements and commercial interests, the reliability is low, the search results really needed by a user often need to be found by turning pages in a search result page for multiple times, namely, the intention of the user is difficult to hit. The reliability of the search results ordered in the past may actually be questionable, although security tags and even official tags may be possible.
However, since the user has no way to verify whether the search results are authentic, the user can only trust the search results in a single direction, and most of the search results, except for the search results that are particularly recognized, cannot be falsified. For example, the search engine may preferentially expose paid merchant binding keywords, which may not be the result intended by the user.
For another example, the merchant recommended by the consumption comment website and the high-grade game recommended by the application store all have the situation that the merchant or the network water army intentionally raise the grade to do the game.
The block chain credit service system provided by the embodiment of the invention provides a way for discriminating whether the information of the objects provided by the service parties is authentic or not by introducing a block chain technology.
The block chain credit service system stores data (namely evaluation data) for effectively evaluating (including scoring and commenting) the object in a real name or anonymous mode through a block chain network, and supports the query of the evaluation data of the object.
For objects queried in the blockchain network, objects with high credit scores will be presented preferentially over objects with relatively low credit scores, although the rating data for the objects may also be displayed. The credit scores of the users participating in the evaluation are counted and stored in the uplink, and the credit scores of the users participating in the evaluation influence the proportion of the evaluation data in calculating the credit score of the object.
Therefore, unfair comments of the network water army (promotion or malicious users) can be effectively prevented. The application range is wide, the applicability is strong, the method is not only suitable for search engines and application stores, but also suitable for various commenting websites (such as various consumer commenting websites), and public commenting can be performed by integrating a plurality of things in life, even on public characters and public things.
The blockchain network implementing the embodiment of the invention can be any type of blockchain network capable of deploying intelligent contracts, such as a hyper book (hyper folder Fabric), an ether house and the like.
The blockchain REST gateway 111 is configured to provide a REST interface to an external service provider, and is configured to provide a system access service to a service provider (e.g., a search website, an application store, etc.), so that the service provider accesses the blockchain credit service, data of a user evaluating an object provided by the service provider can be approved by the blockchain credit service (including processing links such as verification of a digital signature and a digital identity, and obtaining of a consensus of evaluation data in the blockchain network 120) and stored, and any user can query the object and the evaluation data thereof in the evaluation and query website 112.
The evaluation and query website 112 is used for providing a Web-based evaluation and query service for the outside, so that for the objects provided by the service parties without accessing the blockchain credit service, the user can also evaluate in the pages of the evaluation and query website 112, and the evaluation data is obtained and stored in the blockchain network 120. If the amount of ratings data is large enough, the ratings and queries website 112 may provide a search engine function and any object ratings data may be stored and queried in the blockchain network 120.
The procedure of the blockchain credit service system 100 responding to the user's usage is as follows.
The user obtains a unique digital identity in the blockchain credit service system 100 in a real-name or anonymous manner, the type of the digital identity depends on the type of the blockchain network 120, for example, a digital certificate, a transaction address and the like can be adopted, and the digital certificate and the transaction address are an authentication system implemented based on an asymmetric encryption algorithm.
The user needs to provide the digital identity no matter when inquiring the evaluation data or when evaluating the object, and the client needs to submit the evaluation data and the digital signature of the digital identity when submitting the evaluation data, so that the blockchain credit service system 100 can verify the digital signature to ensure that the evaluation data and the digital identity are not tampered, and then verify whether the digital identity is the digital signature, so as to respond to the evaluation or inquiry of the client by calling the intelligent contract in the blockchain network 120.
The intelligent contract is designed as follows, and comprises two data objects:
user, < credit rating, number of participating rating >;
subject, < credit rating, number of participants >.
The object refers to an object to be evaluated (the object refers to a narrow object other than a person), may be a website address, may be a game application, may be a restaurant, may be a scenic spot, is an abstract concept, and may specify anything.
The credit scores of the users or subjects are obtained by others evaluating them. The credit score may be calculated in combination with data from various sources, such as a user's portrait data, consumption records, credit records, and so on, and the embodiment of the present invention does not limit the specific manner of obtaining the credit score of the user.
For a queried object (of course, the same applies to the user), the scoring is as follows:
the final score (current score + user credit weight) (current total +1), wherein the user credit weight may be in a manner that the credit score of the user accounts for the credit score of the participating user.
The user's credit rated against the object is also rated by others and stored in the blockchain network 120, which results in the credit rating of the malicious rated person being lower and lower. When below the credit score threshold (i.e., disqualified), the smart contract may freeze the low-credit user for a period of time (e.g., 1 year), during which the low-credit user's score for the object may not be used to calculate the object's score.
The intelligent contract introduces a user credit weight mode to calculate the score of the object and shields the evaluation data of the user with low credit, so that the network water army can be effectively prevented, the malicious user is frozen, and the network water army or the malicious evaluation is effectively realized.
Because the users in the block chain network can inquire the evaluation data of the concerned things at any time and then make a judgment according to the evaluation data, the users can visit the websites, shop, eat, play and the like with great care. The user may also participate in the evaluation.
For the service parties accessing the blockchain credit service, such as the service party 200-1 and the service party 200-2, the service parties can access the page provided by the service party through the client and perform evaluation and query, and of course, the service parties can also guide the client to jump to the page of the evaluation and query website 112 for evaluation and query, so that the user experience is good.
For a facilitator that does not access the blockchain credit service, such as facilitator 200-3, the user may directly rate or query in the pages of the rating and query website 112.
In summary, the embodiment of the invention has the following beneficial effects:
the block chain credit service system provides access service for a service party, verifies and stores evaluation data of an object provided by the service party through a block chain network, and provides inquiry based on credit scores, so that a user can obtain real user comments of the existing service party (such as a website or a system), the content is real, and the experience is better.
In addition, the method can also support evaluation and query of objects provided by the service side which does not access the block chain credit, thereby flexibly expanding the service range of the evaluated and queried objects according to the requirements, theoretically enabling any object to participate in the evaluation and query, and becoming a search engine which is large in size and credible in fact when the evaluation data is accumulated to be enough.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.
Claims (22)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811327603.7A CN111161006A (en) | 2018-11-08 | 2018-11-08 | A blockchain credit service method, system and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811327603.7A CN111161006A (en) | 2018-11-08 | 2018-11-08 | A blockchain credit service method, system and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111161006A true CN111161006A (en) | 2020-05-15 |
Family
ID=70555169
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811327603.7A Pending CN111161006A (en) | 2018-11-08 | 2018-11-08 | A blockchain credit service method, system and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111161006A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111429046A (en) * | 2020-06-12 | 2020-07-17 | 深圳大数据计算机信息股份有限公司 | A Decentralized User Evaluation Method and System Based on Blockchain |
| CN111930834A (en) * | 2020-07-15 | 2020-11-13 | 上海旺链信息科技有限公司 | Block chain based commenting method and device |
| CN112035883A (en) * | 2020-07-21 | 2020-12-04 | 杜晓楠 | Method and computer readable medium for user credit scoring in decentralized identity systems |
| CN112118289A (en) * | 2020-08-12 | 2020-12-22 | 北京大学 | An adaptive synchronization method and system for smart contracts |
| CN114422535A (en) * | 2022-01-18 | 2022-04-29 | 网易(杭州)网络有限公司 | Method and device for deploying contracts in block chain, computer equipment and storage medium |
| CN115099926A (en) * | 2022-06-13 | 2022-09-23 | 蚂蚁区块链科技(上海)有限公司 | Blockchain-based credit data analysis method, sharing method, device and equipment |
| CN115269986A (en) * | 2022-07-29 | 2022-11-01 | 蚂蚁区块链科技(上海)有限公司 | Data retrieval method and device |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090063247A1 (en) * | 2007-08-28 | 2009-03-05 | Yahoo! Inc. | Method and system for collecting and classifying opinions on products |
| CN107148037A (en) * | 2017-07-18 | 2017-09-08 | 宇龙计算机通信科技(深圳)有限公司 | A kind of system of selection, terminal and the server of the small base station of terminated |
| CN107358500A (en) * | 2017-06-30 | 2017-11-17 | 中山大学 | Evaluation sort method based on block chain |
| CN108124257A (en) * | 2016-11-28 | 2018-06-05 | 中国联合网络通信集团有限公司 | Evaluate treating method and apparatus |
| CN108665339A (en) * | 2018-03-27 | 2018-10-16 | 北京航空航天大学 | A kind of electric business product reliability index and its implementation estimated based on subjective emotion |
| CN108718341A (en) * | 2018-05-30 | 2018-10-30 | 北京阿尔山金融科技有限公司 | Shared and search the method for data |
| CN108717606A (en) * | 2018-06-08 | 2018-10-30 | 北京工商大学 | A kind of food security multiplicity of interests main body credit assessment method based on block chain |
-
2018
- 2018-11-08 CN CN201811327603.7A patent/CN111161006A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090063247A1 (en) * | 2007-08-28 | 2009-03-05 | Yahoo! Inc. | Method and system for collecting and classifying opinions on products |
| CN108124257A (en) * | 2016-11-28 | 2018-06-05 | 中国联合网络通信集团有限公司 | Evaluate treating method and apparatus |
| CN107358500A (en) * | 2017-06-30 | 2017-11-17 | 中山大学 | Evaluation sort method based on block chain |
| CN107148037A (en) * | 2017-07-18 | 2017-09-08 | 宇龙计算机通信科技(深圳)有限公司 | A kind of system of selection, terminal and the server of the small base station of terminated |
| CN108665339A (en) * | 2018-03-27 | 2018-10-16 | 北京航空航天大学 | A kind of electric business product reliability index and its implementation estimated based on subjective emotion |
| CN108718341A (en) * | 2018-05-30 | 2018-10-30 | 北京阿尔山金融科技有限公司 | Shared and search the method for data |
| CN108717606A (en) * | 2018-06-08 | 2018-10-30 | 北京工商大学 | A kind of food security multiplicity of interests main body credit assessment method based on block chain |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111429046A (en) * | 2020-06-12 | 2020-07-17 | 深圳大数据计算机信息股份有限公司 | A Decentralized User Evaluation Method and System Based on Blockchain |
| CN111930834A (en) * | 2020-07-15 | 2020-11-13 | 上海旺链信息科技有限公司 | Block chain based commenting method and device |
| CN112035883A (en) * | 2020-07-21 | 2020-12-04 | 杜晓楠 | Method and computer readable medium for user credit scoring in decentralized identity systems |
| CN112035883B (en) * | 2020-07-21 | 2023-08-01 | 杜晓楠 | Method and computer readable medium for user credit scoring in a decentralized identity system |
| CN112118289A (en) * | 2020-08-12 | 2020-12-22 | 北京大学 | An adaptive synchronization method and system for smart contracts |
| CN112118289B (en) * | 2020-08-12 | 2021-10-01 | 北京大学 | An adaptive synchronization method and system for smart contracts |
| CN114422535A (en) * | 2022-01-18 | 2022-04-29 | 网易(杭州)网络有限公司 | Method and device for deploying contracts in block chain, computer equipment and storage medium |
| CN114422535B (en) * | 2022-01-18 | 2024-04-09 | 网易(杭州)网络有限公司 | Method, device, computer equipment and storage medium for deploying contracts in blockchain |
| CN115099926A (en) * | 2022-06-13 | 2022-09-23 | 蚂蚁区块链科技(上海)有限公司 | Blockchain-based credit data analysis method, sharing method, device and equipment |
| CN115099926B (en) * | 2022-06-13 | 2025-05-06 | 蚂蚁区块链科技(上海)有限公司 | Credit data analysis method, sharing method, device and equipment based on blockchain |
| CN115269986A (en) * | 2022-07-29 | 2022-11-01 | 蚂蚁区块链科技(上海)有限公司 | Data retrieval method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111161006A (en) | A blockchain credit service method, system and storage medium | |
| KR102051231B1 (en) | Method and system for tracking transaction of the user personal information based in blockchain | |
| US11645676B2 (en) | Extending audience reach in messaging campaigns using probabilistic ID linking | |
| US20210174440A1 (en) | Providing virtual markers based upon network connectivity | |
| US20210232608A1 (en) | Trust scores and/or competence ratings of any entity | |
| JP7508521B2 (en) | Blockchain-based system and method for communicating, storing, and processing data over a blockchain network | |
| US8826155B2 (en) | System, method, and computer program product for presenting an indicia of risk reflecting an analysis associated with search results within a graphical user interface | |
| US8244664B2 (en) | Estimating influence of subjects based on a subject graph | |
| US8321791B2 (en) | Indicating website reputations during website manipulation of user information | |
| US9384345B2 (en) | Providing alternative web content based on website reputation assessment | |
| US20130290226A1 (en) | System and method for social graph and graph assets valuation and monetization | |
| US10628858B2 (en) | Initiating real-time bidding based on expected revenue from bids | |
| US20140331119A1 (en) | Indicating website reputations during user interactions | |
| US20060253582A1 (en) | Indicating website reputations within search results | |
| US20130151539A1 (en) | Real-Time Online-Learning Object Recommendation Engine | |
| JP2014527232A (en) | Coefficient assignment for various objects based on natural language processing | |
| TW200903265A (en) | Point of presence distribution mechanism for digital content objects | |
| CN111367965A (en) | Target object determination method and device, electronic equipment and storage medium | |
| US20140351271A1 (en) | Measuring participation in content propagation across a dynamic network topology | |
| US20230318837A1 (en) | Zero-Knowledge Proofs for Providing Browsing Data | |
| US20100082359A1 (en) | Multi-Granular Age Range Products For Use in Online Marketing | |
| Odiete | Using blockchain to support data & service monetization | |
| CN120218926A (en) | Blockchain-based data processing method, device, equipment and storage medium | |
| Amarasekara | Improving the robustness and privacy of HTTP cookie-based tracking systems within an affiliate marketing context: a thesis presented in fulfilment of the requirements for the degree of Doctor of Philosophy at Massey University, Albany, New Zealand | |
| Gruhler | A Reputation and Reward Scheme for a Cooperative, Multi-domain DDoS Defense |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200515 |
|
| RJ01 | Rejection of invention patent application after publication |