CN112600841B - Credit record sharing method and device based on block chain and electronic equipment - Google Patents

Credit record sharing method and device based on block chain and electronic equipment Download PDF

Info

Publication number
CN112600841B
CN112600841B CN202011475094.XA CN202011475094A CN112600841B CN 112600841 B CN112600841 B CN 112600841B CN 202011475094 A CN202011475094 A CN 202011475094A CN 112600841 B CN112600841 B CN 112600841B
Authority
CN
China
Prior art keywords
blockchain
user credit
node device
node
chain
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.)
Active
Application number
CN202011475094.XA
Other languages
Chinese (zh)
Other versions
CN112600841A (en
Inventor
张琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN202011475094.XA priority Critical patent/CN112600841B/en
Publication of CN112600841A publication Critical patent/CN112600841A/en
Application granted granted Critical
Publication of CN112600841B publication Critical patent/CN112600841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0609Buyer or seller confidence or verification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1854Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with non-centralised forwarding system, e.g. chaincast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

One or more embodiments of the present disclosure provide a method and apparatus for sharing credit records based on blockchain, and an electronic device, where the method may include: the method comprises the steps that target node equipment in a blockchain collects user credit records broadcast and released to the blockchain by all node equipment in the blockchain in a current billing period, and all node equipment in the blockchain jointly verifies the user credit records passing through; initiating consensus processing of the collected user credit records in the blockchain to determine an accounting node device; if the target node device is determined to be an accounting node, a blockbroadcast created based on the collected user credit records is published to the blockchain for storage in a distributed database of the blockchain.

Description

Credit record sharing method and device based on block chain and electronic equipment
Technical Field
One or more embodiments of the present disclosure relate to the field of blockchain technologies, and in particular, to a blockchain-based credit record sharing method and apparatus, and an electronic device.
Background
Blockchain technology, also known as distributed ledger technology, is an emerging technology that is commonly engaged in "accounting" by several computing devices, together maintaining a complete distributed database. Because the blockchain technology has the characteristics of decentralization, disclosure transparency, participation of each computing device in database recording and rapid data synchronization among the computing devices, the blockchain technology is utilized to build a decentralization system, and the method has been widely applied in a plurality of fields.
Disclosure of Invention
The specification provides a credit record sharing method based on a blockchain, which comprises the following steps:
the method comprises the steps that target node equipment in a blockchain collects user credit records broadcast and released to the blockchain by all node equipment in the blockchain in a current billing period, and all node equipment in the blockchain jointly verifies the user credit records passing through;
initiating consensus processing of the collected user credit records in the blockchain to determine an accounting node device;
if the target node device is determined to be an accounting node, a blockbroadcast created based on the collected user credit records is published to the blockchain for storage in a distributed database of the blockchain.
Optionally, the method further comprises:
acquiring a credit record of a user to be issued;
broadcasting and releasing the user credit record in a block chain so as to verify the user credit record by other node equipment, and broadcasting and releasing the verification result in the block chain by other node equipment; the method comprises the steps of,
and when receiving the user credit records broadcast and released by other node equipment, verifying the user credit records, and broadcasting and releasing the verification result in the block chain.
Optionally, the user credit record jointly verified by each node device in the blockchain includes: verifying the passed user credit records by node equipment with preset proportion in each node equipment in the block chain;
the collecting user credit records broadcast by each node device in a blockchain for issuing to the blockchain in the current billing period and jointly verified by each node device in the blockchain comprises:
collecting user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period; each node device in the blockchain broadcasts a verification result of the credit records of the users issued to the blockchain in the current billing period;
and screening out user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period, and verifying the passed user credit records by the node devices with preset proportion in each node device.
Optionally, the initiating the consensus processing of the collected user credit records in the blockchain to determine an accounting node device includes:
determining a publisher node device corresponding to the collected user credit records;
Counting the number of the user credit records released by each determined publisher node device in the current billing period;
and determining the publisher node device with the largest number of user credit records published in the current billing period as the billing node device.
Optionally, the counting the number of the user credit records released by each determined publisher node device in the current billing period includes:
and counting the number of the user credit records which are distributed by each determined publisher node device in the current billing period and have no corresponding repeated records in the distributed database of the blockchain.
Optionally, the method further comprises:
if the target node equipment is determined to be an accounting node, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; or alternatively, the process may be performed,
if the user credit records issued by the target node equipment are stored in the distributed database of the blockchain, obtaining a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment;
The virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the blockchain.
Optionally, the method further comprises:
receiving a data query request for the distributed database;
and responding to the data query request, calling an intelligent contract corresponding to the data query, and deducting a preset number of virtual resources from an account address corresponding to the target node equipment.
Optionally, the virtual resource is a virtual point.
Optionally, the blockchain includes a backbone; and, a plurality of sub-chains anchored to the backbone;
the publishing of the block broadcast created based on the collected user credit record to the blockchain includes:
if the target node device is a node device in the main chain, broadcasting a block created by the main chain and each node device in each sub-chain in the current collected billing period to the main chain, and jointly verifying the passing user credit record by each node device in the main chain, and broadcasting the block to the main chain of the block chain;
if the target node device is a node device in the sub-chain, a block broadcast created based on the collected current billing period by each node device in the sub-chain and by each node device in the sub-chain collectively verifying passing user credit records is published to the main chain of the block chain.
Optionally, the blockchain is a coalition chain formed by a plurality of merchant node devices; the coalition chain includes a backbone; and, a plurality of sub-chains anchored to the backbone; wherein different sub-chains respectively correspond to different merchant types.
The present specification also proposes a blockchain-based credit record sharing apparatus, the apparatus comprising:
the collecting module is used for collecting user credit records broadcast and released to the blockchain by all node equipment in the blockchain in the current billing period and jointly verified by all node equipment in the blockchain;
a consensus module for initiating a consensus process of the collected user credit records in the blockchain to determine an accounting node device;
and the issuing module issues the block broadcast created based on the collected user credit records to the blockchain to be stored in a distributed database of the blockchain if the target node device corresponding to the device is determined to be an accounting node.
Optionally, the apparatus further includes:
the acquisition module acquires a user credit record to be issued; broadcasting and releasing the user credit record in a block chain so as to verify the user credit record by other node equipment, and broadcasting and releasing the verification result in the block chain by other node equipment;
And the receiving module is used for verifying the credit records of the users when receiving the credit records of the users broadcasted and released by other node equipment, and broadcasting and releasing the verification results in the block chain.
Optionally, the user credit record jointly verified by each node device in the blockchain includes: verifying the passed user credit records by node equipment with preset proportion in each node equipment in the block chain;
the collection module:
collecting user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period; each node device in the blockchain broadcasts a verification result of the credit records of the users issued to the blockchain in the current billing period;
and screening out user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period, and verifying the passed user credit records by the node devices with preset proportion in each node device.
Optionally, the consensus module:
determining a publisher node device corresponding to the collected user credit records;
counting the number of the user credit records released by each determined publisher node device in the current billing period;
And determining the publisher node device with the largest number of user credit records published in the current billing period as the billing node device.
Optionally, the consensus module further:
and counting the number of the user credit records which are distributed by each determined publisher node device in the current billing period and have no corresponding repeated records in the distributed database of the blockchain.
Optionally, the publishing module further:
if the target node equipment corresponding to the device is determined to be an accounting node, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; or if the user credit record issued by the target node equipment is stored in the distributed database of the blockchain, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the blockchain.
Optionally, the apparatus further includes:
The query module receives a data query request aiming at the distributed database; and responding to the data query request, calling an intelligent contract corresponding to the data query, and deducting a preset number of virtual resources from an account address corresponding to the target node equipment.
Optionally, the virtual resource is a virtual point.
Optionally, the blockchain includes a backbone; and, a plurality of sub-chains anchored to the backbone;
the release module:
if the target node equipment corresponding to the device is node equipment in the main chain, broadcasting and publishing a block created by the main chain and each node equipment in each sub-chain in the current collected billing period to the main chain and jointly verifying the passing user credit record by each node equipment in the main chain, and broadcasting and publishing the block to the main chain of the block chain;
and if the target node equipment corresponding to the device is the node equipment in the sub-chain, broadcasting and publishing the block broadcasting created by each node equipment in the sub-chain based on the collected current billing period to the sub-chain, and jointly verifying the passing user credit record by each node equipment in the sub-chain to the main chain of the block chain.
Optionally, the blockchain is a coalition chain formed by a plurality of merchant node devices; the coalition chain includes a backbone; and, a plurality of sub-chains anchored to the backbone; wherein different sub-chains respectively correspond to different merchant types.
The present specification also proposes an electronic device comprising:
a processor;
a memory for storing machine-executable instructions;
wherein, by reading and executing the memory stored machine-executable instructions corresponding to control logic shared with blockchain-based credit records, the processor is caused to:
collecting user credit records broadcast and released to the blockchain by all node equipment in the blockchain in the current billing period, and jointly verified by all node equipment in the blockchain;
initiating consensus processing of the collected user credit records in the blockchain to determine an accounting node device;
if the electronic device is determined to be an accounting node, a blockbroadcast created based on the collected user credit records is published to the blockchain for storage in a distributed database of the blockchain.
Drawings
FIG. 1 is a flowchart of a blockchain-based credit sharing method provided by an exemplary embodiment;
FIG. 2 is a schematic diagram of a federated chain provided by an exemplary embodiment;
FIG. 3 is a flowchart of a merchant sharing user credit records based on a coalition chain provided by an example embodiment;
FIG. 4 is a schematic diagram of an electronic device according to an exemplary embodiment;
fig. 5 is a block diagram of a blockchain-based credit sharing device provided by an exemplary embodiment.
Detailed Description
A credit closed-loop service, which means that for some merchants engaged in services related to user credit, data related to the user credit can be shared to a credit evaluator, the credit evaluator generates a user credit record based on the information, and the generated user credit record is maintained; the credit evaluation party can reach the user based on the maintained credit records and the channels of the credit evaluation party to reversely monitor and promote the user to actively perform, so that the maintained credit records of the user are continuously accumulated to form a business mode of a business closed loop.
In this specification, it is in the business context of the credit closed-loop business that a technical scheme of setting up a credit record sharing platform by using the blockchain technology is proposed, so that the sharing of the credit records can be performed rapidly in a decentralization manner by relying on the architecture of the blockchain between each node device (merchant) joining the blockchain.
When the method is implemented, an operator of the blockchain can build a blockchain network formed by a plurality of merchant node devices in advance, and deploy credit closed-loop service by relying on the blockchain network, so that merchant node devices joining the blockchain network can share the user credit records in different merchants by broadcasting and releasing the user credit records into a distributed database (namely a distributed account book) of the blockchain.
For each merchant node device in the blockchain, the current billing period can be collected, the current billing period is broadcast to the blockchain by each merchant node device, the user credit records passing through the node devices are verified together, candidate blocks are created based on the collected user credit records, and then the consensus processing of the user credit records recorded in the candidate blocks is initiated in the blockchain based on the consensus algorithm supported by the blockchain network so as to 'compete' the billing authority.
If the consensus is complete, the merchant node device is determined to be an unanswered node, the merchant node device may publish the candidate block as the latest block broadcast to the blockchain network, adding the latest block to the blockchain's distributed database.
On the one hand, since the blockchain has historical traceability and non-tamper-resistance, user credit records generated in a period of time can be truly recorded on the blockchain in this way, and all user credit records can be traced on the blockchain; moreover, as the user credit records are verified and maintained by all the node devices together, and the tampering of the user credit records is required to be performed, most of the node devices are required to be controlled, so that the fairness of the user credit records can be ensured;
on the other hand, because the user credit records generated by each node device in the blockchain are shared, each node device can acquire the user credit records issued by other node devices by inquiring on the chain, so that a credit closed loop can be not concentrated on one node device, and each node device can share and monitor each other; in addition, when the credit closed-loop service is deployed, channels reaching users are correspondingly increased, and a plurality of node devices can jointly monitor and promote the positive performance of the users by using the credit records of the users on a chain to jointly collect, jointly punish and abstinence, jointly motivate the users and the like.
The following description is made by specific embodiments and with reference to specific application scenarios.
Referring to fig. 1, fig. 1 is a block chain-based credit record sharing method according to an embodiment of the present disclosure, which performs the following steps:
step 102, collecting user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period by the target node device in the blockchain, and jointly verifying the user credit records by each node device in the blockchain;
step 104, initiating consensus processing of the collected user credit records in the blockchain to determine an accounting node device;
if the target node device is determined to be an accounting node, a blockbroadcast created based on the collected user credit records is published to the blockchain for storage in a distributed database of the blockchain, step 106.
The blockchains described in this specification may include, in particular, any type of blockchain network.
For example, in one embodiment shown, the blockchain may be a federated chain consisting of several merchant node devices. Each merchant can rely on the alliance chain to issue the user credit records generated by some online or offline service related to the user credit in the blockchain and record the user credit records in the distributed database of the blockchain so as to realize sharing of the user credit records of each merchant.
Wherein in one embodiment shown, the blockchain may specifically include a main chain, and a plurality of sub-chains anchored to the main chain;
for example, taking the above blockchain as an example of a coalition chain made up of a number of merchant node devices, the coalition chain may be divided into a backbone and a number of sub-chains, anchored to the backbone, corresponding to different merchant types, based on the specific type of merchant that is a member of the coalition (e.g., the industry type of service provided by the merchant).
The node devices may include any type of electronic device capable of joining as a member to the blockchain; for example, the electronic device may include, but is not limited to, a PC terminal, a mobile terminal, a server, etc. of a merchant.
The credit records may specifically include any form of data record capable of reflecting the credit status of the user; such as usage records, performance records, breach records, etc. for credit-related services.
The billing period refers to the time interval over which any two blocks on the blockchain are linked to the blockchain's distributed database. Accordingly, the current billing period refers to the time interval between the time when the latest block on the distributed database of the blockchain is linked to the distributed database and the time when the billing node successfully links the next block to the distributed database. The specific value of the accounting period may be set by the operator of the blockchain based on the actual service requirement, and is not particularly limited in the present specification; for example, the billing period for a blockchain network is 10 minutes, with a new block generated every 10 minutes.
The technical scheme of the present specification will be described in detail below by taking the target node device as a merchant node device and the blockchain as a alliance chain formed by a plurality of merchant node devices as an example.
Referring to fig. 2, fig. 2 is a schematic diagram of a federation chain as shown in the present specification.
As shown in fig. 2, the operator of the blockchain may pre-build a coalition chain composed of several merchants engaged in the service related to the user credit, and the merchant node devices of the merchants may be used as coalition chains to access the coalition chain.
In one embodiment shown, each merchant node device may carry a key algorithm for generating a private key and a public key, and when the merchant node device accesses the federation chain as a member device, the merchant node device may first create a pair of the private key and the public key by carrying the hardware for generating the private key and the public key or invoking the carried key algorithm. Or in practical application, the private key and the public key held by each merchant can be uniformly distributed and issued by the operators of the alliance chain.
Each merchant node device may then further construct a transaction (transfer) for initiating registration and sign the transaction based on the generated private key and then publish the transaction in the federation chain to apply for joining the federation chain. And after receiving the transaction, the member node device partially designated in the alliance chain can verify the signature of the transaction based on a public key corresponding to a private key used when signing the transaction, and after the signature verification is passed, can perform consensus processing on the transaction, and after the consensus is passed, allows the merchant node device to join the alliance chain, and can calculate the public key of the merchant node device to create an account address in the alliance chain for the merchant node device. At this time, the merchant node device is used as a member node device to successfully join the alliance chain, and the account address generated for the merchant node device is the identity of the merchant node device on the alliance chain.
After the alliance chain formed by a plurality of merchant node devices is built, an operator of the alliance chain deploys the credit closed-loop service by relying on the alliance chain. And merchants joining the alliance chain can share the user credit records among different merchants by broadcasting the user credit records to the distributed database of the alliance chain through merchant node equipment.
Referring to fig. 3, fig. 3 is a flowchart illustrating a merchant sharing user credit records based on a coalition chain.
As shown in fig. 3, a merchant node device may obtain a user credit record to be published and may then initiate billing to the federation chain based on the obtained user credit record.
The credit record of the user to be issued can be manually input by a merchant through merchant node equipment, or can be automatically generated by the merchant node equipment based on service data generated when the service related to the credit is provided for the user. That is, the merchant node device may obtain a user credit record manually entered by the merchant as a user credit record to be issued; user data records automatically generated based on service data generated by the user may also be obtained as user credit records to be published.
The specific format of the user credit record is not particularly limited in this specification, and in practical application, a standard set of data formats may be customized for the federation chain by the operator of the federation chain based on actual requirements.
For example, in one embodiment shown, the user credit record may be a data record consisting of the following fields:
and a timestamp field for populating a timestamp of entry or generation of the user credit record. The time stamp can be specifically obtained by inquiring a deployed time stamp server.
A type field for populating a type identifier of the user credit record. Operators of the coalition chain can define various types of user credit records based on actual requirements; for example, in one example, an operator of the federation chain may define three types of user credit records, a "service usage record", a "service violation record", and a "service performance record", and define a corresponding type identifier for each of the three types of records.
And the record content field is used for filling specific content of the user information record.
A user identity field for filling the user identity corresponding to the user credit record; such as an identification number, a social security code, etc.
A certification material field for filling a certification material for certifying the validity of the user credit record; for example, taking the above-mentioned user credit record as a "service performance record" as an example, the above-mentioned certification material may specifically be user data capable of certifying that the user has completed performance; for example, taking the "service performance record" as an "performance service record of a shared product" as an example, the above-mentioned proof material may specifically be order data, deposit payment record, etc. of a user planning the shared product on schedule.
With continued reference to fig. 3, when the merchant node device initiates billing to the federation chain based on the obtained user credit records, the merchant node device may specifically broadcast the user credit records in the federation chain.
In one embodiment shown, the merchant node device may construct a transaction using the user credit record to be issued as transaction content, and then sign the transaction based on the held private key.
With continued reference to fig. 3, after receiving the transaction, other node devices in the federation chain may verify the transaction, and after the verification is passed, broadcast the verification result in the federation chain;
In the present specification, the verification of the transaction may specifically include identity verification of the issuer of the transaction and verification of the transaction content; wherein, the verification of the transaction content can further comprise the integrity verification of the transaction content and the validity verification of the transaction content,
in implementation, when signing the transaction, the merchant node device may typically calculate a content digest (such as a hash value) for the transaction, and then encrypt the content digest based on the held private key to obtain a digital signature. After receiving the signed transaction, other node devices can decrypt the digital signature based on the public key of the merchant node device; if the decryption is successful, the identity verification of the merchant node device issuing the transaction is passed, and the transaction is a legal transaction issued by the merchant node device.
Secondly, other node devices can further calculate the transaction again to obtain a content abstract, and then match the recalculated content abstract with the original content abstract obtained by decrypting the digital signature; if the two match, the integrity verification of the transaction content is passed, and the transaction content of the transaction is not illegally tampered in the transaction transmission process.
Further, after the merchant node device completes the identity verification of the issuer of the transaction and the integrity verification of the transaction content, the validity verification of the user credit record may also be performed based on the information recorded in the user credit record as the transaction content. For example, the merchant node device may read the certification material filled in the "certification material field" in the user credit record to verify the validity of the user credit record.
With continued reference to fig. 3, after the transaction issued by the other node devices to the merchant node device passes the verification, the verification result may be broadcast and issued in the coalition chain; other node devices may sign the verification result based on the held private key, and the node device that receives the verification result may verify the data signature of the verification result based on the public key corresponding to the private key, which is not described in detail in the present specification.
Correspondingly, after the credit records of the users to be distributed are acquired, other node devices can also construct transactions in the same way, and broadcast and release are carried out on the alliance chain; if the merchant node device receives the transaction issued by other node devices, the transaction can be verified in the same manner, and then the verification result is broadcasted to the alliance chain, which is not described in detail in the present specification.
In this specification, the merchant node device may collect user credit records broadcast by each node device in the blockchain (including the merchant node device) to the coalition chain in the current billing period, and collectively verified by each node device in the coalition chain.
The common authentication passes, specifically, authentication passes through most node devices in the alliance chain. In the federation chain, as long as the user credit records are verified by most node devices in the federation chain, after the recognition of the common recognition of the most node devices in the federation chain is obtained, the user credit records are considered to be verified by all node devices in the federation chain.
In one embodiment, when the merchant node device broadcasts and publishes to the federation chain by each node device in the blockchain in the current billing period and the node devices in the federation chain jointly verify the passed user credit records, the merchant node device may specifically collect the user credit records broadcast and published to the federation chain by each node device (including the merchant node device) in the federation chain in the current billing period; collecting verification results of user credit records broadcasted and released to the blockchain in the current billing period by each node device in the alliance chain; and screening out user credit records broadcast and issued to the blockchain by each node device in the blockchain in the current billing period based on the collected information, and verifying the passed user credit records by the node devices with preset proportion in each node device.
The value of the above preset proportion is not particularly limited in the present specification, and may be specifically any ratio greater than 50%; such as 51%, or 100%.
In this specification, when the merchant node device collects the user credit records that are broadcast by each node device in the blockchain and issued to the coalition chain in the current billing period and are jointly verified by each node device in the coalition chain, a candidate block can be constructed based on the collected user credit records, and then based on the consensus algorithm supported by the coalition chain, the consensus processing of the user credit records recorded in the candidate block is initiated in the coalition chain to "compete" for the billing authority.
The specific type of the consensus algorithm supported in the federation chain is not limited in this specification, and in practical application, some classical consensus algorithms (such as PBFT algorithm) suitable for use in the federation chain may be adopted, or some consensus algorithms capable of efficiently processing transactions may be customized by an operator of the federation chain based on actual service requirements.
In one embodiment, the consensus algorithm supported in the federation chain may be specifically customized by an operator of the federation chain, and the publisher node device with the largest number of user credit records published in the current billing period is elected as a billing node to perform consensus processing on the candidate blocks based on the data amount of the user credit records published in the current billing period by each merchant node device.
When the method is realized, the merchant node equipment can firstly determine the publisher node equipment corresponding to the collected user credit records when the merchant node equipment initiates the consensus processing of the candidate blocks; for example, the device identification of the publisher node device may be added to a transaction that carries a user credit record; then, the quantity of the credit records of the users issued by each issuer node equipment in the current billing period can be counted; finally, the publisher node device that has the greatest number of subscriber credit records published during the current billing period may be determined to be the billing node device.
In practical application, there may be some repeated records already stored in the distributed database of the federation chain in the user credit records issued by the node devices in the federation chain, in this case, there may be inaccurate problems with the accounting nodes identified by the above-mentioned consensus algorithm; for example, some malicious node devices may obtain the accounting rights by issuing a large number of duplicate records; for this case, such malicious node devices may be elected as billing nodes according to the consensus algorithm described above.
Based on this, in one embodiment shown, in the consensus algorithm described above, the number of user credit records that each publisher node device published in the current billing period may be declared as the number of user credit records that each publisher node device published in the current billing period and there are no corresponding duplicate records in the distributed database of the federation chain.
In this case, when the merchant node device counts the number of user credit records issued by each issuer node device in the current billing period, a query may be initiated to the distributed database of the federation chain to determine whether repeated records exist in the distributed database of the federation chain for the user credit records issued by each issuer node device;
for example, in implementation, it may be determined whether a user credit record has been included in a block of a blockchain by calculating a hash value of the user credit record to be queried, locating a block containing the user credit record based on the hash value, and then traversing the hash value of the user credit record in the Merkle tree of the located block.
Further, the merchant node device may remove the user credit records with duplicate records in the federation chain from the candidate block, count the number of user credit records that are issued by each issuer node device in the current billing period and have no corresponding duplicate records in the distributed database of the federation chain, and determine, as the billing node device, the issuer node device with the largest number of user credit records issued in the current billing period based on the consensus algorithm.
In this way, some malicious node devices can be avoided, and the problem of accounting rights can be obtained by issuing a large number of duplicate records.
Of course, the algorithm logic in the consensus algorithm may be, besides the above description, selecting the publisher node device with the largest number of user credit records published in the current billing period as the billing node, in practical application, also may be other forms of algorithm logic customized by the operator of the federation chain; for example, selecting the merchant node device with the highest quality and highest release speed of the user credit records released in the current billing period as the billing node; alternatively, the specific nodes in the node devices may be designated as billing nodes by the operator of the federation chain based on certain rules (e.g., in a certain order), which are not listed in this specification.
With continued reference to fig. 3, if the merchant node device is ultimately determined to be an accounting node, the candidate block generated by the merchant node device passes through the consensus, and the merchant node device may broadcast the candidate block in the coalition chain as the latest block. Each node device that receives the latest block can initiate accounting based on the latest block, respectively, and link the latest block with the history block, and then add the latest block to the distributed data of the alliance chain for permanent storage.
In this specification, since merchants that are members of the federation may correspond to different merchant types, respectively; for example, services offered by various merchants joining a federation chain may be affiliated with different industries; in the credit closed-loop service, a certain difference may exist in credit evaluation systems of different merchants; thus, in one embodiment, the operator of the coalition chain may divide the coalition chain into a main chain and sub-chains anchored to the main chain that correspond to different merchant types, respectively, based on the specific type of merchant that is a member of the coalition.
For example, taking the example that the merchants joining the chain of alliances include chain hotels, supermarkets, and shared product service providers as the merchants, the node devices of the chain hotels, supermarkets, and shared product service providers can be divided into different sub-chains to anchor with the main chain.
The main chain and the sub-chain in the alliance chain can be completely the same in operation mode, and the issued user credit records in the sub-chain can be added into the main chain in the form of blocks after being summarized in the same mode.
In one aspect, for merchant node devices in a sub-chain, after collecting user credit records that are broadcast by each node device in the sub-chain for distribution to the sub-chain and are jointly verified by each node device in the sub-chain in a current billing period, a candidate block may be created based on the collected user credit records, and after being determined as a billing node, the candidate block may be distributed to the sub-chain as a latest block broadcast, added to a distributed database of the sub-chain, or may be distributed to the main chain, and added to the main chain.
On the other hand, for merchant node devices in the backbone, after collecting user credit records that are broadcast to the backbone by the node devices in the backbone and each sub-chain for the current billing period and that are collectively verified by the node devices in the backbone (i.e., verifying the user credit records that are broadcast in the sub-chain by the node devices in the backbone), a candidate block may be created based on the collected user credit records and, after being determined as a billing node, the candidate block may be broadcast to the backbone for incorporation into the backbone.
When user credit records issued by merchant node equipment are successfully recorded and stored in a distributed database of a alliance chain, each merchant node equipment can complete on-line or off-line operation of credit closed-loop service by inquiring the user credit records in the alliance chain, sharing the user credit records issued by other merchant node equipment and using the recorded and stored user credit records in the alliance chain;
for example, the merchant node devices can perform joint prompt payment, joint punishment and joint excitation on the user based on the user credit records recorded and stored in the alliance chain, so as to jointly monitor and promote the positive performance of the user, and realize business linkage among the same industry and across industries. For example, after the multiple merchants acquire the credit records of the users newly recorded in the alliance chain, the merchants can collect the payment, punish the punishment, the incentive and the like for the users based on the channels of the users respectively reached.
In this specification, the federation chain described above may specifically also incorporate a billing rewards mechanism. The accounting rewards mechanism refers to a node device participating in accounting, and can obtain a reward distributed by a alliance chain.
The node devices participating in accounting specifically may include node devices that obtain accounting rights, or may include all node devices that successfully record user credit records in the federation chain.
In one embodiment shown, if a merchant node device in the federation chain is determined to be an accounting node, a preset number of virtual resources generated by the federation chain may be obtained, and then the obtained virtual resources are issued to an account address corresponding to the merchant node device for holding.
In another embodiment shown, if the user credit record issued by the merchant node device in the federation chain is finally successfully recorded and stored in the distributed database of the federation chain (i.e., the node device is not an accounting node, the user credit record issued by the node device is successfully recorded in the federation chain by the accounting node), a preset number of virtual resources generated by the federation chain can be acquired, and then the acquired virtual resources are issued to an account address corresponding to the merchant node device for holding.
The alliance chain can be automatically generated by merchant node equipment participating in accounting based on an operating algorithm when generating virtual resources, or can be generated by node equipment appointed in the alliance chain, and then unified issuing is carried out; for example, an authoritative node device or a central node device may be designated among the node devices in the federation chain that is responsible for generating and issuing virtual resources as billing rewards for each merchant node device involved in billing.
The specific type of the virtual resource is not particularly limited in the present specification; for example, in practical applications, the virtual resource may be a point, or other form of virtual reward similar to a point.
In the present specification, the virtual resource is specifically used to obtain the usage rights of the user credit records recorded and stored in the distributed database of the federation chain. For node devices in the federated chain, if it is desired to use user credit records already in the distributed database stored in the federated chain, then a certain amount of virtual resources need to be "consumed".
In implementation, the operator of the federated chain may define in the federated chain the number of virtual resources to be "consumed" when using the user credit records in the federated chain.
In one embodiment shown, taking the virtual resource as an example, the operator of the federation chain may issue in advance in the federation chain an intelligent contract related to user credit record queries, and declare in the intelligent contract the number of virtual resources to "consume" when querying and using the user credit records in the federation chain. Meanwhile, virtual resource deduction logic related to the credit record use of the user can be declared in the intelligent contract; for example, the logic may be such that upon receipt of a data query request for user credit records in a distributed database, a certain amount of virtual resources may be "deducted" from the account address of the querying party based on the number of user credit records that need to be queried.
When a merchant needs to use the user credit records recorded and stored in the alliance chain, a data query request (transaction) can be initiated to the distributed database of the alliance chain through merchant node equipment, after the merchant node equipment receives the data query request, the merchant node equipment can respond to the data query request and call the intelligent contract, and the amount of points to be consumed in the query is calculated based on the amount of points to be consumed and the amount of the user credit records required to be queried at the time when the user credit records in the alliance chain are used in the intelligent contract, and then the corresponding amount of points are deducted from account addresses corresponding to the merchant node equipment. Of course, if the account address corresponding to the merchant node device is insufficient in the amount of points, the merchant node device may send a prompt to the user that the query failed.
In this way, only merchant node equipment participating in billing can acquire billing rewards of the alliance chain, so that each merchant can be encouraged to share user credit records generated by online or offline business to other merchants by publishing the user credit records to the alliance chain, and the use authority of the user credit records recorded and stored in the alliance chain can be inclined to the merchants participating in billing; and meanwhile, the threshold of data query and use in the alliance chain can be improved, and some merchants which do not participate in accounting can be limited, or non-merchant users accessing the alliance chain can be used for acquiring and using the user credit records shared by all merchants.
As can be seen from the above embodiments, on the one hand, since the blockchain has historical traceability and non-tamper-ability, user credit records generated over a period of time can be truly recorded on the blockchain in this way, and all user credit records can be traced back on the blockchain; moreover, as the user credit records are verified and maintained by all the node devices together, and the tampering of the user credit records is required to be performed, most of the node devices are required to be controlled, so that the fairness of the user credit records can be ensured;
On the other hand, because the user credit records generated by each node device in the blockchain are shared, each node device can acquire the user credit records issued by other node devices by inquiring on the chain, so that a credit closed loop can be not concentrated on one node device, and each node device can share and monitor each other; in addition, when the credit closed-loop service is deployed, channels reaching users are correspondingly increased, and a plurality of node devices can jointly monitor and promote the positive performance of the users by using the credit records of the users on a chain to jointly collect, jointly punish and abstinence, jointly motivate the users and the like.
Corresponding to the above method embodiments, the present specification also provides an embodiment of a blockchain-based credit record sharing device. The embodiments of the blockchain-based credit sharing apparatus of the present specification may be applied to an electronic device. The apparatus embodiments may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking software implementation as an example, the device in a logic sense is formed by reading corresponding computer program instructions in a nonvolatile memory into a memory by a processor of an electronic device where the device is located for operation. In terms of hardware, as shown in fig. 4, a hardware structure diagram of an electronic device where the blockchain-based credit record sharing device in the present disclosure is located is shown in fig. 4, and in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 4, the electronic device where the device is located in the embodiment generally may further include other hardware according to the actual function of the electronic device, which is not described herein again.
Fig. 5 is a block diagram of a blockchain-based credit sharing device according to an exemplary embodiment of the present disclosure.
Referring to fig. 5, the blockchain-based credit sharing device 50 may be applied to the electronic device shown in fig. 5, and includes: a collection module 501, a consensus module 502, and a publication module 503.
A collection module 501 for collecting user credit records broadcast and issued to the blockchain by each node device in the blockchain in the current billing period and jointly verified by each node device in the blockchain;
a consensus module 502 for initiating a consensus process of the collected user credit records in the blockchain to determine an accounting node device;
a publishing module 503 publishes a blockbroadcast created based on the collected user credit record to the blockchain for storage in the blockchain's distributed database if the device's corresponding target node device is determined to be an accounting node.
In this embodiment, the apparatus 50 further includes:
an acquisition module 504 (not shown in fig. 5) that acquires a user credit record to be issued; broadcasting and releasing the user credit record in a block chain so as to verify the user credit record by other node equipment, and broadcasting and releasing the verification result in the block chain by other node equipment;
The receiving module 505 (not shown in fig. 5) verifies the user credit record when receiving the user credit record broadcast issued by other node devices, and broadcasts and issues the verification result in the blockchain.
In this embodiment, the user credit record jointly verified by each node device in the blockchain includes: verifying the passed user credit records by node equipment with preset proportion in each node equipment in the block chain;
the collection module 501:
collecting user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period; each node device in the blockchain broadcasts a verification result of the credit records of the users issued to the blockchain in the current billing period;
and screening out user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period, and verifying the passed user credit records by the node devices with preset proportion in each node device.
In this embodiment, the consensus module 502:
determining a publisher node device corresponding to the collected user credit records;
counting the number of the user credit records released by each determined publisher node device in the current billing period;
And determining the publisher node device with the largest number of user credit records published in the current billing period as the billing node device.
In this embodiment, the consensus module 502 further:
and counting the number of the user credit records which are distributed by each determined publisher node device in the current billing period and have no corresponding repeated records in the distributed database of the blockchain.
In this embodiment, the publishing module 503 further:
if the target node equipment corresponding to the device is determined to be an accounting node, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; or if the user credit record issued by the target node equipment is stored in the distributed database of the blockchain, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the blockchain.
In this embodiment, the apparatus further includes:
a query module 505 (not shown in fig. 5) that receives a data query request for the distributed database; and responding to the data query request, calling an intelligent contract corresponding to the data query, and deducting a preset number of virtual resources from an account address corresponding to the target node equipment.
In this embodiment, the virtual resource is a virtual point.
In this embodiment, the blockchain includes a backbone; and, a plurality of sub-chains anchored to the backbone;
the release module:
if the target node equipment corresponding to the device is node equipment in the main chain, broadcasting and publishing a block created by the main chain and each node equipment in each sub-chain in the current collected billing period to the main chain and jointly verifying the passing user credit record by each node equipment in the main chain, and broadcasting and publishing the block to the main chain of the block chain;
and if the target node equipment corresponding to the device is the node equipment in the sub-chain, broadcasting and publishing the block broadcasting created by each node equipment in the sub-chain based on the collected current billing period to the sub-chain, and jointly verifying the passing user credit record by each node equipment in the sub-chain to the main chain of the block chain.
In this embodiment, the blockchain is a coalition chain composed of a plurality of merchant node devices; the coalition chain includes a backbone; and, a plurality of sub-chains anchored to the backbone; wherein different sub-chains respectively correspond to different merchant types.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present description. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The system, apparatus, module or module set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having some function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
Corresponding to the method embodiment described above, the present specification also provides an embodiment of an electronic device. The electronic device includes: a processor and a memory for storing machine executable instructions; wherein the processor and the memory are typically interconnected by an internal bus. In other possible implementations, the device may also include an external interface to enable communication with other devices or components.
In this embodiment, the processor is caused to, by reading and executing the machine-executable instructions stored by the memory corresponding to the control logic shared by the blockchain-based credit record:
collecting user credit records broadcast and released to the blockchain by all node equipment in the blockchain in the current billing period, and jointly verified by all node equipment in the blockchain;
initiating consensus processing of the collected user credit records in the blockchain to determine an accounting node device;
if the electronic device is determined to be an accounting node, a blockbroadcast created based on the collected user credit records is published to the blockchain for storage in a distributed database of the blockchain.
In this embodiment, the processor is caused to, by reading and executing the machine-executable instructions stored by the memory corresponding to the control logic shared by the blockchain-based credit record:
acquiring a credit record of a user to be issued;
broadcasting and releasing the user credit record in a block chain so as to verify the user credit record by other node equipment, and broadcasting and releasing the verification result in the block chain by other node equipment; the method comprises the steps of,
and when receiving the user credit records broadcast and released by other node equipment, verifying the user credit records, and broadcasting and releasing the verification result in the block chain.
In this embodiment, the user credit record jointly verified by each node device in the blockchain includes: verifying the passed user credit records by node equipment with preset proportion in each node equipment in the block chain;
by reading and executing machine-executable instructions stored by the memory corresponding to control logic shared by blockchain-based credit records, the processor is caused to:
collecting user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period; each node device in the blockchain broadcasts a verification result of the credit records of the users issued to the blockchain in the current billing period;
And screening out user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period, and verifying the passed user credit records by the node devices with preset proportion in each node device.
In this embodiment, the processor is caused to, by reading and executing the machine-executable instructions stored by the memory corresponding to the control logic shared by the blockchain-based credit record:
determining a publisher node device corresponding to the collected user credit records;
counting the number of the user credit records released by each determined publisher node device in the current billing period;
and determining the publisher node device with the largest number of user credit records published in the current billing period as the billing node device.
In this embodiment, the processor is caused to, by reading and executing the machine-executable instructions stored by the memory corresponding to the control logic shared by the blockchain-based credit record:
and counting the number of the user credit records which are distributed by each determined publisher node device in the current billing period and have no corresponding repeated records in the distributed database of the blockchain.
In this embodiment, the processor is caused to, by reading and executing the machine-executable instructions stored by the memory corresponding to the control logic shared by the blockchain-based credit record:
if the target node equipment is determined to be an accounting node, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; or alternatively, the process may be performed,
if the user credit records issued by the target node equipment are stored in the distributed database of the blockchain, obtaining a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment;
the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the blockchain.
In this embodiment, the processor is caused to, by reading and executing the machine-executable instructions stored by the memory corresponding to the control logic shared by the blockchain-based credit record:
receiving a data query request for the distributed database;
and responding to the data query request, calling an intelligent contract corresponding to the data query, and deducting a preset number of virtual resources from an account address corresponding to the target node equipment.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (15)

1. A credit record sharing method based on a blockchain, wherein the blockchain is a alliance chain formed by a plurality of merchant node devices; the coalition chain includes a backbone; and, a plurality of sub-chains anchored to the backbone; wherein, different sub-chains respectively correspond to different merchant types; the method comprises the following steps:
The method comprises the steps that target node equipment in a blockchain collects user credit records broadcast and released to the blockchain by all node equipment in the blockchain in a current billing period, and all node equipment in the blockchain jointly verifies the user credit records passing through; wherein each node device creates a candidate block based on the user credit record;
initiating consensus processing of user credit records recorded in the candidate block in the block chain to determine accounting node devices in the node devices; the consensus process includes: determining publisher node devices corresponding to the collected user credit records, counting the number of the user credit records published by each publisher node device in the current billing period, and determining the publisher node device with the largest number of the user credit records published in the current billing period as the billing node device;
if the target node device is determined to be an accounting node device and the target node device is a node device in the backbone, publishing candidate blocks created based on collected user credit records broadcast by the backbone and each node device in each sub-chain within a current accounting period to the backbone and collectively verified by each node device in the backbone as the latest block broadcast to the backbone of the blockchain for storage in a distributed database of the blockchain;
If the target node device is determined to be an accounting node device and the target node device is a node device in the sub-chain, a candidate block created based on the collected current accounting period broadcast by each node device in the sub-chain and the user credit records passed by each node device in the sub-chain are jointly verified is broadcast as the latest block to be distributed to the main chain of the blockchain for storage in the distributed database of the blockchain.
2. The method of claim 1, the method further comprising:
acquiring a user credit record to be issued, the user credit record comprising proving material for proving validity of the user credit record;
broadcasting and releasing the user credit record in a block chain so as to verify the user credit record by other node equipment, and broadcasting and releasing the verification result in the block chain by other node equipment; and when receiving the user credit records which are broadcast and issued by other node equipment and comprise the proving materials for proving the validity of the user credit records, verifying the validity of the user credit records based on the corresponding proving materials, and broadcasting and issuing the verification result in the blockchain.
3. The method of claim 1, the co-authenticating, by each node device in the blockchain, the passing user credit record comprising: verifying the passed user credit records by node equipment with preset proportion in each node equipment in the block chain;
the collecting user credit records broadcast by each node device in a blockchain for issuing to the blockchain in the current billing period and jointly verified by each node device in the blockchain comprises:
collecting user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period; each node device in the blockchain broadcasts a verification result of the credit records of the users issued to the blockchain in the current billing period;
and screening out user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period, and verifying the passed user credit records by the node devices with preset proportion in each node device.
4. The method of claim 1, wherein the counting the determined number of user credit records issued by each publisher node device during the current billing period comprises:
And counting the number of the user credit records which are distributed by each determined publisher node device in the current billing period and have no corresponding repeated records in the distributed database of the blockchain.
5. The method of claim 1, further comprising:
if the target node equipment is determined to be accounting node equipment, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; or alternatively, the process may be performed,
if the user credit records issued by the target node equipment are stored in the distributed database of the blockchain, obtaining a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment;
the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the blockchain.
6. The method of claim 5, further comprising:
receiving a data query request for the distributed database;
and responding to the data query request, calling an intelligent contract corresponding to the data query, and deducting a preset number of virtual resources from an account address corresponding to the target node equipment.
7. The method of claim 5 or 6, the virtual resource being a virtual credit.
8. A credit record sharing device based on a blockchain, wherein the blockchain is a alliance chain formed by a plurality of merchant node devices; the coalition chain includes a backbone; and, a plurality of sub-chains anchored to the backbone; wherein, different sub-chains respectively correspond to different merchant types; the device comprises:
the collecting module is used for collecting user credit records broadcast and released to the blockchain by all node equipment in the blockchain in the current billing period and jointly verified by all node equipment in the blockchain; wherein each node device creates a candidate block based on the user credit record;
the consensus module initiates consensus processing of the user credit records recorded in the candidate block in the block chain to determine accounting node equipment in the node equipment; the consensus process includes: determining publisher node devices corresponding to the collected user credit records, counting the number of the user credit records published by each publisher node device in the current billing period, and determining the publisher node device with the largest number of the user credit records published in the current billing period as the billing node device;
A distribution module that distributes, if the target node device corresponding to the apparatus is determined to be an accounting node device and the target node device corresponding to the apparatus is a node device in the backbone, a candidate block created by the backbone and each node device in each sub-chain based on the collected current accounting period broadcast to the backbone and the user credit record passed through is commonly verified by each node device in the backbone as a latest block broadcast to the backbone of the blockchain to be stored in a distributed database of the blockchain;
if the target node device corresponding to the apparatus is determined to be an accounting node device, and the target node device corresponding to the apparatus is a node device in the sub-chain, a candidate block created based on the collected user credit records broadcast by each node device in the sub-chain in the current accounting period and commonly verified by each node device in the sub-chain is broadcast to the main chain of the block chain as the latest block broadcast to be stored in the distributed database of the block chain.
9. The apparatus of claim 8, the apparatus further comprising:
An acquisition module that acquires a user credit record to be issued that includes a certification material for certifying validity of the user credit record; broadcasting and releasing the user credit record in a blockchain so that other node equipment can verify the validity of the user credit record based on corresponding proving materials, and other node equipment can broadcast and release the verification result in the blockchain;
and the receiving module is used for verifying the validity of the user credit record based on the corresponding proving material when receiving the user credit record which is broadcasted and issued by other node equipment and comprises proving material for proving the validity of the user credit record, and broadcasting and issuing the verification result in the blockchain.
10. The apparatus of claim 8, the user credit record co-verified by each node device in the blockchain comprising: verifying the passed user credit records by node equipment with preset proportion in each node equipment in the block chain;
the collection module:
collecting user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period; each node device in the blockchain broadcasts a verification result of the credit records of the users issued to the blockchain in the current billing period;
And screening out user credit records broadcast and released to the blockchain by each node device in the blockchain in the current billing period, and verifying the passed user credit records by the node devices with preset proportion in each node device.
11. The apparatus of claim 8, the consensus module further to:
and counting the number of the user credit records which are distributed by each determined publisher node device in the current billing period and have no corresponding repeated records in the distributed database of the blockchain.
12. The apparatus of claim 8, the publication module further to:
if the target node equipment corresponding to the device is determined to be the billing node equipment, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; or if the user credit record issued by the target node equipment is stored in the distributed database of the blockchain, acquiring a preset number of virtual resources generated by the blockchain, and issuing the virtual resources to account addresses corresponding to the target node equipment; the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the blockchain.
13. The apparatus of claim 12, the apparatus further comprising:
the query module receives a data query request aiming at the distributed database; and responding to the data query request, calling an intelligent contract corresponding to the data query, and deducting a preset number of virtual resources from an account address corresponding to the target node equipment.
14. The apparatus of claim 12 or 13, the virtual resource being a virtual credit.
15. An electronic device, comprising:
a processor;
a memory for storing machine-executable instructions;
wherein, by reading and executing the memory stored machine-executable instructions corresponding to control logic shared with blockchain-based credit records, the processor is caused to:
collecting user credit records broadcast and released to the blockchain by all node equipment in the blockchain in the current billing period, and jointly verified by all node equipment in the blockchain; wherein each node device creates a candidate block based on the user credit record; the block chain is a alliance chain formed by a plurality of merchant node devices; the coalition chain includes a backbone; and, a plurality of sub-chains anchored to the backbone; wherein, different sub-chains respectively correspond to different merchant types;
Initiating consensus processing of user credit records recorded in the candidate block in the block chain to determine accounting node devices in the node devices; the consensus process includes: determining publisher node devices corresponding to the collected user credit records, counting the number of the user credit records published by each publisher node device in the current billing period, and determining the publisher node device with the largest number of the user credit records published in the current billing period as the billing node device;
if the electronic device is determined to be a billing node device and the electronic device is a node device in the backbone, publishing candidate blocks created based on collected current billing periods broadcast by the backbone and each node device in each sub-chain to the backbone and collectively verifying passing user credit records by each node device in the backbone as the latest block broadcast to the backbone of the blockchain for storage in a distributed database of the blockchain;
if the electronic device is determined to be a billing node device and the electronic device is a node device in the sub-chain, a candidate block created based on the collected current billing period broadcast by each node device in the sub-chain and the user credit record co-verified by each node device in the sub-chain is published to the main chain of the blockchain as the latest block broadcast for storage in the distributed database of the blockchain.
CN202011475094.XA 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment Active CN112600841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011475094.XA CN112600841B (en) 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810351841.5A CN108667632B (en) 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment
CN202011475094.XA CN112600841B (en) 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201810351841.5A Division CN108667632B (en) 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment

Publications (2)

Publication Number Publication Date
CN112600841A CN112600841A (en) 2021-04-02
CN112600841B true CN112600841B (en) 2023-09-19

Family

ID=63780304

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810351841.5A Active CN108667632B (en) 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment
CN202011475094.XA Active CN112600841B (en) 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201810351841.5A Active CN108667632B (en) 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment

Country Status (1)

Country Link
CN (2) CN108667632B (en)

Families Citing this family (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109461080A (en) * 2018-10-18 2019-03-12 尚维斯 A kind of implementable mode of business based on block chain across chain interaction
CN109447642A (en) * 2018-10-18 2019-03-08 尚维斯 A method of it is mixed and is known together based on block chain multichain
CN109409882A (en) * 2018-10-18 2019-03-01 中国联合网络通信集团有限公司 A kind of credit accreditation storage method and device based on block chain
CN109493171A (en) * 2018-10-18 2019-03-19 尚维斯 A kind of four-way model of a syndrome based on block chain across chain interaction
WO2020082213A1 (en) * 2018-10-22 2020-04-30 深圳市哈希树科技有限公司 Network expandability blockchain implementation method
CN109508968B (en) * 2018-10-25 2020-12-18 常州唯康信息科技有限公司 Block chain system and control method thereof
CN109598504B (en) 2018-10-25 2020-09-01 阿里巴巴集团控股有限公司 Transaction processing method and device based on block chain and electronic equipment
CN109493221B (en) * 2018-10-26 2021-01-12 全链通有限公司 Method, device, network and storage medium for keeping transaction records secret in block chain
CN109639430B (en) * 2018-11-09 2020-05-26 北京航空航天大学 Safe high-speed lightweight block chain system and method
CN109583912A (en) * 2018-11-14 2019-04-05 阿里巴巴集团控股有限公司 Trade company's authentication method and device based on block chain
CN109493052B (en) * 2018-11-21 2021-07-30 北京蓝石环球区块链科技有限公司 Cross-chain contract system based on main chain and parallel multiple sub-chains
CN111260362A (en) * 2018-12-03 2020-06-09 北京京东尚科信息技术有限公司 Information processing method and device of block chain network and storage medium
CN110471953B (en) * 2018-12-07 2023-05-26 深圳市智税链科技有限公司 Method, proxy node and medium for determining accounting node in blockchain network
CN109711869B (en) * 2018-12-12 2020-05-05 杭州基尔区块链科技有限公司 Chip research and development transaction data storage method and system
CN109684519B (en) * 2018-12-12 2020-04-03 杭州基尔区块链科技有限公司 Decentralized chip research and development transaction data storage method and system based on block chain
CN109784882A (en) * 2018-12-14 2019-05-21 深圳壹账通智能科技有限公司 Alliance's chain information distribution control method and terminal device
CN109657450B (en) * 2018-12-14 2021-04-16 泰康保险集团股份有限公司 Method, device, medium, and electronic device for evaluation based on block chain
CN110009337B (en) 2018-12-21 2020-04-21 阿里巴巴集团控股有限公司 Data processing method and device based on block chain
CN109886677B (en) * 2018-12-29 2021-06-29 创新先进技术有限公司 Commodity purchasing method and device based on block chain
CN109886659A (en) * 2018-12-29 2019-06-14 平安健康保险股份有限公司 Virtual resource allocation method, apparatus and computer equipment based on block chain
CN111401889B (en) * 2019-01-03 2023-08-18 百度在线网络技术(北京)有限公司 Credit data processing method, device, equipment and medium based on block chain
CN109902109B (en) * 2019-02-20 2021-04-30 北京邮电大学 Multi-party collaborative data mining method and device
CN109902091B (en) * 2019-02-21 2021-08-10 腾讯科技(深圳)有限公司 Method for recording data blocks on block chain, leading accounting node and medium
CN109743408A (en) * 2019-03-05 2019-05-10 北京比新科技有限公司 A kind of telecom client method of servicing based on block chain
CN109886695A (en) * 2019-03-26 2019-06-14 阿里巴巴集团控股有限公司 Information sharing method and device and electronic equipment between different blocks chain
CN110059136A (en) * 2019-04-17 2019-07-26 江苏全链通信息科技有限公司 Information storage means, equipment and storage medium based on domain name block chain
CN110175831B (en) * 2019-04-23 2023-09-29 创新先进技术有限公司 Credit transfer method and device based on blockchain and electronic equipment
CN110109929A (en) * 2019-04-30 2019-08-09 翟红鹰 Date storage method, device and computer readable storage medium
CN110928677B (en) * 2019-09-30 2022-09-06 咪咕文化科技有限公司 Virtual resource calculation method and device based on block chain, electronic equipment and storage medium
CN110674222B (en) * 2019-10-08 2021-08-13 腾讯科技(深圳)有限公司 Data sharing method, device, equipment and medium
CN110942383A (en) * 2019-11-26 2020-03-31 支付宝(杭州)信息技术有限公司 Risk processing method and device based on credit organization
CN111127144A (en) * 2019-12-16 2020-05-08 中国联合网络通信集团有限公司 User credit evaluation method, device and storage medium
CN111242718B (en) * 2019-12-18 2024-01-19 深圳大学 Block chain-based data transaction method, device, equipment and medium
CN111292093B (en) * 2020-05-09 2020-12-04 支付宝(杭州)信息技术有限公司 Risk control method and system based on double block chains
CN111862486A (en) * 2020-07-22 2020-10-30 中国工商银行股份有限公司 Card making method, device and system based on alliance chain
CN111932254B (en) * 2020-08-11 2024-03-22 杭州萌格信息科技有限公司 Application method of block chain multi-chain parallel structure
CN112308557A (en) * 2020-11-18 2021-02-02 盐城鸿石智能科技有限公司 Credit consumption system based on 3D camera and block chain and implementation method thereof
CN113012466A (en) * 2021-02-23 2021-06-22 中国联合网络通信集团有限公司 Parking space sharing method based on block chain, user node, equipment and storage medium
CN113065775A (en) * 2021-04-06 2021-07-02 国网浙江省电力有限公司物资分公司 Bidding system based on block chain
CN113256149A (en) * 2021-06-11 2021-08-13 武汉龙津科技有限公司 Block chain node reputation adjusting method and device, electronic equipment and storage medium
CN113506100B (en) * 2021-06-25 2023-08-08 网易(杭州)网络有限公司 Alliance chain data processing method, device, computer equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105719185A (en) * 2016-01-22 2016-06-29 杭州复杂美科技有限公司 Block chain data comparison and consensus method
KR101701131B1 (en) * 2016-04-28 2017-02-13 주식회사 라피 Data recording and validation methods and systems using the connecting of blockchain between different type
CN106682907A (en) * 2016-12-10 2017-05-17 江苏恒为信息科技有限公司 Comparison and consensus method for block chain data
CN106878000A (en) * 2017-03-06 2017-06-20 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of alliance's chain common recognition method and system
CN107169865A (en) * 2017-04-24 2017-09-15 北京果仁宝科技有限公司 Asset data processing system based on block chain technology
CN107464112A (en) * 2017-07-20 2017-12-12 捷德(中国)信息科技有限公司 Exchange management method and system based on block chain
WO2017213847A1 (en) * 2016-06-09 2017-12-14 Mastercard International Incorporated Method and system for use of a proprietary private blockchain
US9875510B1 (en) * 2015-02-03 2018-01-23 Lance Kasper Consensus system for tracking peer-to-peer digital records
CN107862215A (en) * 2017-09-29 2018-03-30 阿里巴巴集团控股有限公司 A kind of date storage method, data query method and device
CN107864198A (en) * 2017-11-07 2018-03-30 济南浪潮高新科技投资发展有限公司 A kind of block chain common recognition method based on deep learning training mission
WO2018059334A1 (en) * 2016-09-29 2018-04-05 腾讯科技(深圳)有限公司 Blockchain network, branch node, blockchain network application method and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488675B (en) * 2015-11-25 2019-12-24 布比(北京)网络技术有限公司 Block chain distributed shared general ledger construction method
US10013573B2 (en) * 2015-12-16 2018-07-03 International Business Machines Corporation Personal ledger blockchain
WO2017134281A1 (en) * 2016-02-04 2017-08-10 Nasdaq Technology Ab Systems and methods for storing and sharing transactional data using distributed computer systems
TWI631520B (en) * 2016-03-15 2018-08-01 現代財富控股有限公司 Clearing system based on blockchain and method thereof
TWI645354B (en) * 2016-05-30 2018-12-21 富邦金融控股股份有限公司 System and method based on blockchain for providing financial end networking
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
US10565570B2 (en) * 2016-09-27 2020-02-18 The Toronto-Dominion Bank Processing network architecture with companion database
CN106651346A (en) * 2016-11-28 2017-05-10 上海凯岸信息科技有限公司 Block chain-based credit investigation data sharing and trading system
CN107563754B (en) * 2017-08-17 2021-07-09 杭州云象网络技术有限公司 Block chain-based crown word number information storage and verification method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9875510B1 (en) * 2015-02-03 2018-01-23 Lance Kasper Consensus system for tracking peer-to-peer digital records
CN105719185A (en) * 2016-01-22 2016-06-29 杭州复杂美科技有限公司 Block chain data comparison and consensus method
KR101701131B1 (en) * 2016-04-28 2017-02-13 주식회사 라피 Data recording and validation methods and systems using the connecting of blockchain between different type
WO2017213847A1 (en) * 2016-06-09 2017-12-14 Mastercard International Incorporated Method and system for use of a proprietary private blockchain
WO2018059334A1 (en) * 2016-09-29 2018-04-05 腾讯科技(深圳)有限公司 Blockchain network, branch node, blockchain network application method and storage medium
CN106682907A (en) * 2016-12-10 2017-05-17 江苏恒为信息科技有限公司 Comparison and consensus method for block chain data
CN106878000A (en) * 2017-03-06 2017-06-20 中钞信用卡产业发展有限公司北京智能卡技术研究院 A kind of alliance's chain common recognition method and system
CN107169865A (en) * 2017-04-24 2017-09-15 北京果仁宝科技有限公司 Asset data processing system based on block chain technology
CN107464112A (en) * 2017-07-20 2017-12-12 捷德(中国)信息科技有限公司 Exchange management method and system based on block chain
CN107862215A (en) * 2017-09-29 2018-03-30 阿里巴巴集团控股有限公司 A kind of date storage method, data query method and device
CN107864198A (en) * 2017-11-07 2018-03-30 济南浪潮高新科技投资发展有限公司 A kind of block chain common recognition method based on deep learning training mission

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
许可链多中心动态共识机制;闵新平等;《计算机学报》;20180122(第05期);全文 *
鑫苑集团.《技术信任创造价值区块链技术的应用及监管》.中国经济出版社,2018,第6-11页. *

Also Published As

Publication number Publication date
CN108667632B (en) 2020-10-30
CN112600841A (en) 2021-04-02
CN108667632A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN112600841B (en) Credit record sharing method and device based on block chain and electronic equipment
TWI691919B (en) Blockchain-based transaction processing method and device, and electronic equipment
TWI694390B (en) Blockchain-based transaction processing method and device, and electronic equipment
CN110473105B (en) Block chain transaction settlement method, system and related equipment
CN108650270B (en) Data sharing method and system based on alliance chain and incentive mechanism
CN109155036B (en) System and method for controlling asset-related actions via blockchain
US11481375B2 (en) Point-to-point distributed decentralized system
CN111445333B (en) Block generation method, device, computer equipment and storage medium
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN113221191B (en) Block chain-based data evidence storage method, device, equipment and storage medium
CN110737723B (en) Method, device and equipment for getting card ticket and storage medium
CN111260399B (en) Advertisement data processing method and device based on block chain network and electronic equipment
CN110544134A (en) resource processing method and device and computer storage medium
WO2022261650A2 (en) Systems and methods for maintenance of nft assets
Buldas et al. Blockchain Technology: Intrinsic Technological and Socio-Economic Barriers: FDSE’2020 Keynote
Chen et al. Trusted audit with untrusted auditors: A decentralized data integrity Crowdauditing approach based on blockchain
Nguyen et al. Blockroam: Blockchain-based roaming management system for future mobile networks
EP3520370B1 (en) A decentralised database
CN112788555B (en) Cross-operator telephone charge transfer settlement method, device and computing equipment
WO2023116790A1 (en) Method and apparatus for executing computing task, and storage medium and electronic apparatus
CN111369277A (en) Advertisement data processing method, device and equipment based on block chain and readable medium
Kramer et al. A blockchain-based micro economy platform for distributed infrastructure initiatives
CN110769028B (en) Pattern authorization consensus system and method based on block chain technology
CN111202987A (en) Login control method and device for game application
CN110852891A (en) Data processing method and device based on rolling difference and readable storage medium

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
GR01 Patent grant
GR01 Patent grant