CN108667632B - 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
CN108667632B
CN108667632B CN201810351841.5A CN201810351841A CN108667632B CN 108667632 B CN108667632 B CN 108667632B CN 201810351841 A CN201810351841 A CN 201810351841A CN 108667632 B CN108667632 B CN 108667632B
Authority
CN
China
Prior art keywords
user credit
block chain
chain
node
issued
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
CN201810351841.5A
Other languages
Chinese (zh)
Other versions
CN108667632A (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
Advantageous 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
Priority to CN201810351841.5A priority patent/CN108667632B/en
Publication of CN108667632A publication Critical patent/CN108667632A/en
Application granted granted Critical
Publication of CN108667632B publication Critical patent/CN108667632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

One or more embodiments of the present specification provide a block chain-based credit record sharing method and apparatus, and an electronic device, where the method may include: target node equipment in the block chain collects user credit records which are broadcast and issued to the block chain by each node equipment in the block chain in the current accounting period and are verified by each node equipment in the block chain together; initiating consensus processing of the collected user credit records in the blockchain to determine a billing node device; and if the target node device is determined to be a billing node, issuing a block broadcast created based on the collected user credit records to the block chain for storage in a distributed database of the block chain.

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 block chain technologies, and in particular, to a credit record sharing method and apparatus based on a block chain, and an electronic device.
Background
The block chain technology, also called distributed ledger technology, is an emerging technology in which several computing devices participate in "accounting" together, and a complete distributed database is maintained together. Because the block chain technology has the characteristics of decentralization and transparency, each computing device can participate in database recording, and data synchronization can be rapidly performed among the computing devices, the block chain technology is used for building a decentralization system, and the block chain technology is widely applied to a plurality of fields.
Disclosure of Invention
The present specification provides a credit record sharing method based on a block chain, including:
target node equipment in the block chain collects user credit records which are broadcast and issued to the block chain by each node equipment in the block chain in the current accounting period and are verified by each node equipment in the block chain together;
initiating consensus processing of the collected user credit records in the blockchain to determine a billing node device;
and if the target node device is determined to be a billing node, issuing a block broadcast created based on the collected user credit records to the block chain for storage in a distributed database of the block chain.
Optionally, the method further includes:
acquiring a user credit record to be issued;
broadcasting and issuing the user credit record in a block chain, so that other node equipment verifies the user credit record, and other node equipment broadcasts and issues a verification result in the block chain; and the number of the first and second groups,
and when receiving the user credit records broadcast and issued by other node equipment, verifying the user credit records, and broadcasting and issuing verification results in the block chain.
Optionally, the user credit record that is verified by each node device in the block chain together includes: verifying the passing user credit records by node equipment with a preset proportion in each node equipment in the block chain;
the collecting user credit records broadcast and issued to the blockchain by each node device in the blockchain in the current accounting period and verified by each node device in the blockchain together comprises:
collecting user credit records broadcast and issued to the block chain by each node device in the block chain in the current accounting period; each node device in the block chain broadcasts the verification result of the user credit record issued to the block chain in the current accounting period;
and screening out user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and pass verification by the node devices in the preset proportion in each node device.
Optionally, the initiating, in the blockchain, consensus processing on the collected user credit records to determine a billing node device includes:
determining the issuer node equipment corresponding to the collected user credit records;
counting the number of the user credit records issued by each issuing party node device in the current accounting period;
and determining the issuing party node equipment with the largest number of the user credit records issued in the current accounting period as the accounting node equipment.
Optionally, the counting the number of the user credit records issued by each issuer node device in the current accounting period includes:
and counting the number of the user credit records which are issued by each issuing party node device in the current accounting period and have no corresponding repeated record in the distributed database of the block chain.
Optionally, the method further includes:
if the target node equipment is determined as an accounting node, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node equipment; or,
if the user credit records issued by the target node equipment are stored in the distributed database of the block chain, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to account addresses corresponding to the target node equipment;
wherein the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the block chain.
Optionally, the method further includes:
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 amount of virtual resources from an account address corresponding to the target node equipment.
Optionally, the virtual resource is a virtual integral.
Optionally, the blockchain comprises a backbone; and, a plurality of daughter strands anchored to the backbone;
the publishing of the tile broadcast created based on the collected user credit records to the tile chain comprises:
broadcasting a block created based on user credit records collected in the current accounting period and verified by all node devices in the main chain to the main chain of the block chain if the target node device is the node device in the main chain;
and if the target node device is the node device in the sub-chain, issuing a block broadcast created based on the collected user credit records which are verified by all the node devices in the sub-chain together in the current accounting period to the main chain of the block chain.
Optionally, the block chain is a federation chain formed by a plurality of merchant node devices; the federation chain includes a main chain; and, a plurality of daughter strands anchored to the backbone; wherein, different sub-chains respectively correspond to different merchant types.
The present specification also provides a block chain-based credit record sharing apparatus, including:
the collection module is used for collecting user credit records which are broadcasted and issued to the block chain by each node device in the block chain in the current accounting period and are verified by each node device in the block chain together;
a consensus module initiating consensus processing of the collected user credit records in the blockchain to determine a billing node device;
and the issuing module is used for issuing the block broadcast created based on the collected user credit record to the block chain to be stored in a distributed database of the block chain if the target node device corresponding to the device is determined as an accounting node.
Optionally, the apparatus further comprises:
the acquisition module acquires a user credit record to be issued; broadcasting and issuing the user credit record in a block chain, so that other node equipment verifies the user credit record, and other node equipment broadcasts and issues a verification result in the block chain;
and the receiving module is used for verifying the user credit record when receiving the user credit record broadcast and issued by other node equipment, and broadcasting and issuing the verification result in the block chain.
Optionally, the user credit record that is verified by each node device in the block chain together includes: verifying the passing user credit records by node equipment with a preset proportion in each node equipment in the block chain;
the collection module:
collecting user credit records broadcast and issued to the block chain by each node device in the block chain in the current accounting period; each node device in the block chain broadcasts the verification result of the user credit record issued to the block chain in the current accounting period;
and screening out user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and pass verification by the node devices in the preset proportion in each node device.
Optionally, the consensus module:
determining the issuer node equipment corresponding to the collected user credit records;
counting the number of the user credit records issued by each issuing party node device in the current accounting period;
and determining the issuing party node equipment with the largest number of the user credit records issued in the current accounting period as the accounting node equipment.
Optionally, the consensus module further:
and counting the number of the user credit records which are issued by each issuing party node device in the current accounting period and have no corresponding repeated record in the distributed database of the block chain.
Optionally, the publishing module further:
if the target node equipment corresponding to the device is determined as an accounting node, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node equipment; or, if the user credit record issued by the target node device is stored in the distributed database of the block chain, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node device; wherein the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the block chain.
Optionally, the apparatus further comprises:
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 amount of virtual resources from an account address corresponding to the target node equipment.
Optionally, the virtual resource is a virtual integral.
Optionally, the blockchain comprises a backbone; and, a plurality of daughter strands anchored to the backbone;
the release module:
if the target node device corresponding to the device is the node device in the main chain, broadcasting and issuing a block created based on user credit records which are collected in the current accounting period and verified by all the node devices in the main chain and all the sub chains to the main chain of the block chain;
and if the target node device corresponding to the device is the node device in the sub-chain, broadcasting and issuing a block broadcast created by each node device in the sub-chain based on the collected current accounting period to the sub-chain and the user credit records verified by each node device in the sub-chain together to a main chain of the block chain.
Optionally, the block chain is a federation chain formed by a plurality of merchant node devices; the federation chain includes a main chain; and, a plurality of daughter strands anchored to the backbone; wherein, different sub-chains respectively correspond to different merchant types.
This specification also proposes an electronic device including:
a processor;
a memory for storing machine executable instructions;
wherein, by reading and executing machine-executable instructions stored by the memory corresponding to control logic shared with blockchain based blockchain credit records, the processor is caused to:
collecting user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and are verified by each node device in the block chain together;
initiating consensus processing of the collected user credit records in the blockchain to determine a billing node device;
and if the electronic equipment is determined to be a billing node, issuing the block broadcast created based on the collected user credit records to the block chain to be stored in a distributed database of the block chain.
Drawings
FIG. 1 is a flowchart of a block chain based credit record sharing method according to an exemplary embodiment;
FIG. 2 is a schematic diagram of a federation chain provided by an exemplary embodiment;
FIG. 3 is a flow diagram provided by an exemplary embodiment for merchants to share user credit records based on a federation chain;
FIG. 4 is a schematic diagram of an electronic device according to an exemplary embodiment;
fig. 5 is a block diagram of a block chain-based credit record sharing apparatus according to an exemplary embodiment.
Detailed Description
The credit closed-loop service refers to 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 evaluator can reach the user based on the maintained credit record and the channel of the credit evaluator, reversely supervise and promote the user to actively perform, and further continuously accumulate the maintained user credit record to form a service closed-loop service mode.
In the present specification, a credit record sharing platform is built by using a block chain technology in a business context of a credit closed-loop business, so that each node device (merchant) joining a block chain can share a credit record quickly and in a decentralized manner by depending on an architecture of the block chain.
In implementation, an operator of a block chain may set up a block chain network formed by a plurality of merchant node devices in advance, and deploy a credit closed-loop service by relying on the block chain network, so that the merchant node devices joining the block chain network can share user credit records in different merchants by broadcasting and issuing the user credit records to a distributed database (i.e., a distributed account book) of the block chain.
For each merchant node device in the block chain, the user credit records broadcast and issued to the block chain by each merchant node device in the current accounting period and passing through the common verification of each node device may be collected, a candidate block may be created based on the collected user credit records, and then a consensus process may be initiated in the block chain on the basis of a consensus algorithm supported by the block chain network to "compete" for the accounting authority.
If the merchant node device is determined not to be a booked node after the consensus is completed, the merchant node device may broadcast the candidate block as a latest block to the blockchain network, and add the latest block to the distributed database of the blockchain.
On one hand, since the block chain has historical traceability and non-tamper property, in this way, the user credit records generated in a period of time can be truly recorded on the block chain, and all the user credit records can be traced on the block chain; moreover, as the user credit record is verified and maintained by all the node devices together, the user credit record is tampered by controlling most of the node devices, so that the fairness of the user credit record can be ensured;
on the other hand, because the user credit records generated by each node device in the block chain are shared, each node device can obtain the user credit records issued by other node devices by inquiring on the chain, so that the credit closed loop can not be concentrated in one node device, and each node device can be mutually shared and supervised; and when the credit closed-loop service is deployed, channels reaching the users are correspondingly increased, and the plurality of node devices can jointly supervise and promote the users to actively perform through joint payment promotion, joint punishment, joint excitation and the like on the users by using the credit records of the users on the chain.
The present specification is described below with reference to specific embodiments and 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:
102, target node equipment in a block chain collects user credit records which are broadcast and issued to the block chain by each node equipment in the block chain in the current accounting period and are verified by each node equipment in the block chain together;
104, initiating consensus processing on the collected user credit records in the block chain to determine accounting node equipment;
and 106, if the target node device is determined to be a billing node, issuing the block broadcast created based on the collected user credit records to the block chain to be stored in a distributed database of the block chain.
The blockchain described in this specification may specifically include any type of blockchain network.
For example, in one embodiment shown, the blockchain may be a federation chain consisting of several merchant node devices. Each merchant can rely on the alliance chain, publish some user credit records generated by the operated 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 the sharing of the user credit records of each merchant.
In an 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 block chain as an example of a federation chain formed by several merchant node devices, the federation chain may be divided into a main chain and several sub-chains anchored to the main chain, each corresponding to a different merchant type, based on a specific type of merchant (such as an industry type of service provided by the merchant) as a member of the federation.
The node device may include any type of electronic device that can join the blockchain as a member; 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 record may specifically include any form of data record capable of reflecting the credit status of the user; such as records of usage of credit-related services, records of performance, records of default, and so forth.
The accounting period refers to a time interval between any two blocks in the block chain and the distributed database of the block chain. Correspondingly, the current accounting period refers to a time interval from a time when the latest block on the distributed database of the block chain is linked to the distributed database to a time when the accounting node successfully links the next block to the distributed database. The specific value of the accounting period may be set by an operator of the block chain based on actual service requirements, and is not particularly limited in this specification; for example, the accounting period of the blockchain network of bitcoins is 10 minutes, and a new block is generated every 10 minutes.
The technical solution of the present specification is described in detail below by taking the target node device as a merchant node device and the block chain as an example of a federation chain formed by a plurality of merchant node devices.
Referring to fig. 2, fig. 2 is a schematic diagram of a federation chain shown in this specification.
As shown in fig. 2, an operator of a block chain may pre-build a federation chain consisting of several merchants engaged in services related to user credit, and the merchant node devices of the respective merchants may access the federation chain as federation chains.
In an embodiment shown, each merchant node device may be equipped with a key algorithm for generating a private key and a public key, and when the merchant node device is accessed as a member device in a federation chain, a pair of the private key and the public key may be created by generating hardware of the equipped private key and the public key or calling the equipped key algorithm. Or, in practical application, the private keys and the public keys held by the merchants can also be uniformly distributed and issued by the operator of the federation chain.
Then, each merchant node device may further construct a transaction (transfer) for initiating registration, sign the transaction based on the generated private key, and issue the transaction in the federation chain to apply for joining the federation chain. After receiving the transaction, the member node device partially specified in the federation chain may 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 passes, may perform consensus processing on the transaction, and after the consensus passes, allow the merchant node device to join the federation chain, and then may calculate the public key of the merchant node device to create an account address in the federation chain for the merchant node device. At this time, the merchant node device successfully joins the alliance chain as a member node device, and the account address generated for the merchant node device is the identity of the merchant node device in the alliance chain.
After the alliance chain formed by the plurality of merchant node devices is built, an operator of the alliance chain deploys credit closed-loop services by relying on the alliance chain. And the merchants joining the alliance chain can share the user credit records in different merchants by broadcasting and issuing the user credit records to the distributed database of the alliance chain through the merchant node equipment.
Referring to fig. 3, fig. 3 is a flowchart illustrating a process for sharing user credit records based on a federation chain by merchants according to the present specification.
As shown in fig. 3, the merchant node device may obtain the user credit record to be issued, and may then initiate billing to the federation chain based on the obtained user credit record.
The user credit record to be issued may be entered manually by a merchant through a merchant node device, or may be automatically generated by the merchant node device based on service data generated when a user is provided with a service related to credit. That is, the merchant node device may obtain the user credit record manually entered by the merchant as the user credit record to be issued; a user data record, automatically generated based on service data generated by the user, may also be obtained as the user credit record to be issued.
It should be noted that, the specific format of the user credit record is not particularly limited in this specification, and in practical applications, a standard data format 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 specifically be a data record composed of the following fields:
a timestamp field for populating a timestamp of entry or generation of the user credit record. The timestamp may be obtained by querying a deployed timestamp server.
And the type field is used for filling the type identification of the credit record of the user. The operator of the alliance chain can define various types of user credit records based on actual requirements; for example, in one example, an operator of a federation chain may define three types of user credit records, namely "service usage record", "service default record" and "service performance record", and define a corresponding type identifier for each of the three types of user credit records.
And a record content field for filling the specific content of the user information record.
The user identity field is used for filling the user identity corresponding to the user credit record; such as an identification number, social security code, etc.
A certification material field for filling certification material for certifying validity of the user credit record; for example, in the case that the user credit record is a "service fulfillment record", the certification material may specifically be user data capable of certifying that the user has completed fulfillment; for example, taking the "service fulfillment record" as the "fulfillment service record of the shared product" as an example, the certification material may be specifically order data, deposit payment record, and the like of the shared product planned by the user on schedule.
With reference to fig. 3, when initiating billing to the alliance chain based on the obtained user credit record, the merchant node device may specifically broadcast and issue the user credit record in the alliance chain.
In one embodiment, the merchant node device may construct a transaction using the user credit record to be issued as the transaction content, and then sign the transaction based on the held private key.
Please continue to refer to fig. 3, after receiving the transaction, the other node devices in the federation chain may verify the transaction, and broadcast and issue the verification result in the federation chain after the verification is passed;
in this specification, the verification of the transaction may specifically include the authentication of the issuer of the transaction and the verification of the transaction content; wherein, the verification of the transaction content further comprises the integrity verification of the transaction content and the validity verification of the transaction content,
in implementation, when the merchant node device signs the transaction, the merchant node device may generally calculate the transaction to obtain a content digest (such as a hash value), and then encrypt the content digest based on a 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 authentication of the merchant node equipment issuing the transaction is passed, and the transaction is a legal transaction issued by the merchant node equipment.
Secondly, other node devices can further recalculate the transaction 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 are matched, 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 authentication of the issuer of the transaction and the integrity authentication of the transaction content, the validity authentication of the user credit record may 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 attestation material populated in the "attestation material field" in the user credit record to verify the validity of the user credit record.
Please refer to fig. 3, when the other node devices verify the transaction issued by the merchant node device, the verification result may be broadcast and issued in the federation chain; the other node devices may also sign the verification result based on the held private key, and the node device that receives the verification result may also verify the data signature of the verification result based on the public key corresponding to the private key, and specific implementation details are not described in this specification.
Correspondingly, after the other node devices acquire the user credit records to be distributed, the transaction can be constructed in the same way, and broadcast release is performed on the alliance chain; if the above-mentioned merchant node device receives the transaction issued by each other node device, the transaction may also be verified in the same manner, and then the verification result is broadcast to the alliance chain, which is not described in detail in this specification.
In this specification, the merchant node device may collect user credit records broadcast and issued to the federation chain by each node device in the blockchain (including the merchant node device) in the current accounting period, and verified by each node device in the federation chain together.
The common verification is that the node devices in the federation chain pass through verification. In other words, in the federation chain, as long as the user credit record is verified by most of the node devices in the federation chain and is recognized by the consensus of the most of the node devices in the federation chain, the user credit record is considered to be verified by all the node devices in the federation chain together.
In an embodiment shown, when the merchant node device collects the user credit records which are broadcast and issued to the federation chain by each node device in the block chain and are jointly verified by each node device in the federation chain in the current accounting period, specifically, the user credit records which are broadcast and issued to the federation chain by each node device (including the merchant node device) in the federation chain in the current accounting period may be collected; collecting the verification result of each node device in the alliance chain on the user credit record broadcasted to the block chain in the current accounting period; and then screening out user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and verified by the node devices in the preset proportion in each node device based on the collected information.
The value of the preset ratio is not particularly limited in this specification, and may be an arbitrary ratio greater than 50%; such as 51%, or 100%.
In this specification, after the merchant node device collects the user credit records broadcast by each node device in the block chain and issued to the federation chain in the current accounting period and the node devices in the federation chain jointly verify the passed user credit records, a candidate block may be constructed based on the collected user credit records, and then a consensus process is initiated in the federation chain on the user credit records included in the candidate block based on a consensus algorithm supported by the federation chain to "compete" for accounting authority.
The specific type of the consensus algorithm supported in the federation chain is not limited in this specification, and in practical applications, some classical consensus algorithms (such as a 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 business requirements.
In an illustrated embodiment, the consensus algorithm supported in the federation chain may specifically be a consensus algorithm customized by an operator of the federation chain, and based on a data amount of a user credit record issued by each merchant node device in a current accounting period, an issuer node device with the largest number of user credit records issued in the current accounting period is selected as an accounting node, and a candidate block is subjected to consensus processing.
When the method is implemented, when the merchant node device initiates consensus processing on the candidate block, firstly, issuer node devices corresponding to the collected user credit records can be determined; for example, the device identifier of the publisher node device may be added to the transaction carrying the user credit record; then, the number of user credit records issued by each issuing party node device in the current accounting period can be counted; finally, the issuer node device having the largest number of user credit records issued during the current accounting period may be determined as the accounting node device.
In practical application, some repeated records which are already stored in a distributed database of the federation chain may exist in user credit records issued by node devices in the federation chain, and in this case, the bookkeeping nodes which are commonly recognized through the common recognition algorithm may have an inaccurate problem; for example, some malicious node devices may issue a large number of repeated records to obtain the billing authority; in this case, according to the above consensus algorithm, such malicious node devices may be elected as accounting nodes.
Based on this, in one illustrated embodiment, in the consensus algorithm described above, the number of user credit records issued by each issuer node device during the current accounting period may be declared as the number of user credit records issued by each issuer node device during the current accounting period and for which there is no corresponding duplicate record in the distributed database of the federation chain.
In this case, when counting the number of user credit records issued by each issuer node device in the current accounting period, the merchant node device may initiate an inquiry to the distributed database of the federation chain to determine whether there is a duplicate record in the distributed database of the federation chain for the user credit record issued by each issuer node device;
for example, in implementation, it may be determined whether the user credit record is already included in a block of the block chain 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 a 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 accounting period and have no corresponding duplicate record in the distributed database of the federation chain, and determine, based on the consensus algorithm, the issuer node device with the largest number of user credit records issued in the current accounting period as the accounting node device.
By the method, some malicious node devices can be avoided, and the problem of accounting authority can be solved by issuing a large number of repeated records.
Of course, the algorithm logic in the consensus algorithm may be, in addition to the above description, electing the issuer node device with the largest number of user credit records issued in the current accounting period as the accounting node, and in practical application, may also be another form of algorithm logic customized by the operator in the federation chain; for example, the merchant node equipment with the highest quality and the highest issuing speed of the user credit records issued in the current accounting period is elected as an accounting node; alternatively, the operator of the federation chain may designate a specific node in each node device as an accounting node based on a certain rule (e.g., in a certain order), which is not listed in this specification.
With continued reference to fig. 3, if the merchant node device is finally determined as an accounting node, at this time, the candidate block generated by the merchant node device passes the consensus, and the merchant node device may broadcast and issue the candidate block as the latest block in the federation chain. And each node device receiving the latest block can initiate accounting based on the latest block, link the latest block with the historical block, and further add the latest block into distributed data of the alliance chain for permanent storage.
In this specification, since the merchants as coalition members may correspond to different types of merchants, respectively; for example, services offered by various merchants joining a federation chain may be affiliated with different industries; in the credit closed-loop service, credit evaluation systems of different merchants may have certain differences; thus, in one embodiment, an operator of a federation chain may divide the federation chain into a main chain and a number of sub-chains anchored to the main chain that each correspond to a different merchant type based on the particular type of merchant that is a member of the federation.
For example, taking merchants joining a chain of the federation as examples, including chain hotels, supermarkets, and shared product service providers, the node devices of the merchants such as the chain hotels, supermarkets, and shared product service providers may be divided into different sub-chains and anchored with the main chain.
The main chain and the sub-chain in the federation chain can run in the same manner, and the issued user credit records in the sub-chain can be added to the main chain in a block form in the same manner as shown above.
On one hand, for the merchant node devices in the sub-chain, after collecting the user credit records that are broadcast and issued to the sub-chain by each node device in the sub-chain in the current accounting period and are verified together by each node device in the sub-chain, a candidate block may be created based on the collected user credit records, and after being determined as an accounting node, the candidate block may be broadcast and issued to the sub-chain as the latest block broadcast and added to the distributed database of the sub-chain, and the candidate block may also be broadcast and issued to the main chain and added to the main chain.
On the other hand, for the merchant node device in the main chain, after the user credit records issued by the main chain and the node devices in the sub-chains in the current accounting period are collected and verified together by the node devices in the main chain (namely, the user credit records issued in the sub-chains are verified by the node devices in the main chain), a candidate block can be created based on the collected user credit records, and after the candidate block is determined to be the accounting node, the candidate block is broadcast to the main chain and added into the main chain.
When the user credit records issued by the merchant node equipment are successfully recorded and stored in a distributed database of the alliance chain, each merchant node equipment can complete online or offline operation of the 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 with the user credit records issued by other merchant node equipment and using the user credit records recorded and stored in the alliance chain;
for example, a plurality of merchant node devices may perform joint payment promotion, joint punishment, joint excitation, and the like on a user based on user credit records recorded and stored in a federation chain, so as to jointly supervise and promote the user to actively perform, and implement business linkage between the same industry and cross-industry. For example, after obtaining the latest user credit records included in the alliance chain, a plurality of merchants can perform payment promotion, punishment, incentive and the like on the user based on channels of respective touch users.
In this specification, the federation chain described above may also incorporate a billing reward mechanism. The accounting reward mechanism is specifically a node device participating in accounting, and can obtain a reward distributed by the alliance chain.
The node devices participating in accounting may specifically include a node device that obtains accounting authority, and may also include all node devices that successfully record user credit records in the federation chain.
In an illustrated embodiment, if a merchant node device in a federation chain is determined to be a billing node, a preset number of virtual resources generated by the federation chain may be acquired, and then the acquired 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 a merchant node device in the federation chain is finally successfully recorded and stored in a distributed database of the federation chain (that is, the node device is not a billing node, and the user credit record issued by the node device is successfully recorded and stored in the federation chain by the billing node), a preset number of virtual resources generated by the federation chain may be acquired, and then the acquired virtual resources are issued to an account address corresponding to the merchant node device for holding.
When the alliance chain generates the virtual resources, the alliance chain can be generated automatically by merchant node equipment participating in accounting based on an operation algorithm, or generated by designated node equipment in the alliance chain, and then uniformly issued; for example, an authoritative node device or a central node device may be designated in the node devices in the federation chain, and the node device is responsible for generating and issuing virtual resources as an accounting reward for each merchant node device participating in accounting.
The specific type of the virtual resource is not particularly limited in this specification; for example, in practical applications, the virtual resource may be a point, or other forms of virtual rewards similar to the point.
In this specification, the virtual resource is specifically used for acquiring the usage right of the user credit record stored in the distributed database of the federation chain. For a node device in a federation chain, it is necessary to "consume" a certain amount of virtual resources if it needs to use a user credit record that has been included and stored in a distributed database of the federation chain.
In implementation, an operator of a federation chain may define the amount of virtual resources in the federation chain that are "consumed" when using a user credit record in the federation chain.
In an illustrative embodiment, taking the virtual resources as the integral, an operator of the federation chain may issue an intelligent contract in advance in the federation chain related to the query for user credit records, and state in the intelligent contract the amount of virtual resources to be "consumed" in 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 "deduct" a certain amount of virtual resources from the account address of the inquiring party based on the amount of the user credit records to be inquired after receiving the data inquiry request for the user credit records in the distributed database.
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 a 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 invoke the intelligent contract, the number of points to be consumed in the query is calculated based on the number of points to be consumed and the number of the user credit records to be queried in the intelligent contract when the user credit records in the alliance chain are used, and then the corresponding number of points is deducted from the account address corresponding to the merchant node equipment. Of course, if the number of points in the account address corresponding to the merchant node device is insufficient, the merchant node device may send a prompt to the user that the query is failed at this time.
In this way, only the merchant node equipment participating in accounting can acquire the accounting reward of the alliance chain, so that each merchant can be encouraged to share the user credit records generated by the online or offline service of the operation to other merchants by issuing 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 accounting; meanwhile, the data query and use threshold in the alliance chain can be improved, and some merchants which do not participate in accounting or non-merchant users which are accessed to the alliance chain can be limited to acquire and use the user credit records shared by all the merchants.
As can be seen from the above embodiments, on one hand, since the block chain has historical traceability and non-tamper-ability, in this way, the user credit records generated in a period of time can be actually recorded on the block chain, and all the user credit records can be traced on the block chain; moreover, as the user credit record is verified and maintained by all the node devices together, the user credit record is tampered by controlling most of the node devices, so that the fairness of the user credit record can be ensured;
on the other hand, because the user credit records generated by each node device in the block chain are shared, each node device can obtain the user credit records issued by other node devices by inquiring on the chain, so that the credit closed loop can not be concentrated in one node device, and each node device can be mutually shared and supervised; and when the credit closed-loop service is deployed, channels reaching the users are correspondingly increased, and the plurality of node devices can jointly supervise and promote the users to actively perform through joint payment promotion, joint punishment, joint excitation and the like on the users by using the credit records of the users on the chain.
Corresponding to the above method embodiments, the present specification further provides an embodiment of a block chain-based credit record sharing apparatus. The embodiments of the block chain based credit record sharing apparatus of the present specification can be applied to electronic devices. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is formed by reading, by a processor of the electronic device where the device is located, a corresponding computer program instruction in the nonvolatile memory into the memory for operation. From a hardware aspect, as shown in fig. 4, the hardware structure diagram of the electronic device where the block chain-based credit record sharing apparatus of this specification is located is shown, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 4, the electronic device where the apparatus is located in the embodiment may also include other hardware according to an actual function of the electronic device, which is not described again.
Fig. 5 is a block diagram illustrating a block chain-based credit record sharing apparatus according to an exemplary embodiment of the present specification.
Referring to fig. 5, the block chain based credit record sharing apparatus 50 can 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.
The collecting module 501 is configured to collect user credit records that are broadcast and issued to the block chain by each node device in the block chain and are verified together by each node device in the block chain in the current accounting period;
a consensus module 502 initiating a consensus process on the collected user credit records in the blockchain to determine a billing node device;
the publishing module 503, if the target node device corresponding to the apparatus is determined as an accounting node, publishes the tile broadcast created based on the collected user credit records to the blockchain for storage in a distributed database of the blockchain.
In this embodiment, the apparatus 50 further comprises:
an obtaining module 504 (not shown in fig. 5) for obtaining a user credit record to be issued; broadcasting and issuing the user credit record in a block chain, so that other node equipment verifies the user credit record, and other node equipment broadcasts and issues a verification result in the block chain;
and the receiving module 505 (not shown in fig. 5) verifies the user credit record when receiving the user credit record broadcast and issued by each other node device, and broadcasts and issues the verification result in the block chain.
In this embodiment, the user credit record that is verified by each node device in the block chain together includes: verifying the passing user credit records by node equipment with a preset proportion in each node equipment in the block chain;
the collection module 501:
collecting user credit records broadcast and issued to the block chain by each node device in the block chain in the current accounting period; each node device in the block chain broadcasts the verification result of the user credit record issued to the block chain in the current accounting period;
and screening out user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and pass verification by the node devices in the preset proportion in each node device.
In this embodiment, the consensus module 502:
determining the issuer node equipment corresponding to the collected user credit records;
counting the number of the user credit records issued by each issuing party node device in the current accounting period;
and determining the issuing party node equipment with the largest number of the user credit records issued in the current accounting period as the accounting node equipment.
In this embodiment, the consensus module 502 further:
and counting the number of the user credit records which are issued by each issuing party node device in the current accounting period and have no corresponding repeated record in the distributed database of the block chain.
In this embodiment, the publishing module 503 further:
if the target node equipment corresponding to the device is determined as an accounting node, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node equipment; or, if the user credit record issued by the target node device is stored in the distributed database of the block chain, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node device; wherein the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the block chain.
In this embodiment, the apparatus further includes:
a query module 505 (not shown in FIG. 5) that receives a data query request directed to the distributed database; and responding to the data query request, calling an intelligent contract corresponding to the data query, and deducting a preset amount of virtual resources from an account address corresponding to the target node equipment.
In this embodiment, the virtual resource is a virtual integral.
In this embodiment, the blockchain includes a main chain; and, a plurality of daughter strands anchored to the backbone;
the release module:
if the target node device corresponding to the device is the node device in the main chain, broadcasting and issuing a block created based on user credit records which are collected in the current accounting period and verified by all the node devices in the main chain and all the sub chains to the main chain of the block chain;
and if the target node device corresponding to the device is the node device in the sub-chain, broadcasting and issuing a block broadcast created by each node device in the sub-chain based on the collected current accounting period to the sub-chain and the user credit records verified by each node device in the sub-chain together to a main chain of the block chain.
In this embodiment, the block chain is a federation chain formed by a plurality of merchant node devices; the federation chain includes a main chain; and, a plurality of daughter strands anchored to the backbone; wherein, different sub-chains respectively correspond to different merchant types.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The systems, devices, modules or modules illustrated in the above embodiments may be implemented by a computer chip or an entity, or by an article of manufacture with certain functionality. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
Corresponding to the method embodiment, 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:
collecting user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and are verified by each node device in the block chain together;
initiating consensus processing of the collected user credit records in the blockchain to determine a billing node device;
and if the electronic equipment is determined to be a billing node, issuing the block broadcast created based on the collected user credit records to the block chain to be stored in a distributed database of the block chain.
In this embodiment, the processor is caused to:
acquiring a user credit record to be issued;
broadcasting and issuing the user credit record in a block chain, so that other node equipment verifies the user credit record, and other node equipment broadcasts and issues a verification result in the block chain; and the number of the first and second groups,
and when receiving the user credit records broadcast and issued by other node equipment, verifying the user credit records, and broadcasting and issuing verification results in the block chain.
In this embodiment, the user credit record that is verified by each node device in the block chain together includes: verifying the passing user credit records by node equipment with a 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 with blockchain-based credit records, the processor is caused to:
collecting user credit records broadcast and issued to the block chain by each node device in the block chain in the current accounting period; each node device in the block chain broadcasts the verification result of the user credit record issued to the block chain in the current accounting period;
and screening out user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and pass verification by the node devices in the preset proportion in each node device.
In this embodiment, the processor is caused to:
determining the issuer node equipment corresponding to the collected user credit records;
counting the number of the user credit records issued by each issuing party node device in the current accounting period;
and determining the issuing party node equipment with the largest number of the user credit records issued in the current accounting period as the accounting node equipment.
In this embodiment, the processor is caused to:
and counting the number of the user credit records which are issued by each issuing party node device in the current accounting period and have no corresponding repeated record in the distributed database of the block chain.
In this embodiment, the processor is caused to:
if the target node equipment is determined as an accounting node, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node equipment; or,
if the user credit records issued by the target node equipment are stored in the distributed database of the block chain, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to account addresses corresponding to the target node equipment;
wherein the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the block chain.
In this embodiment, the processor is caused to:
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 amount 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 disclosure 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 will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, 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 above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (17)

1. A block chain based credit record sharing method, the method comprising:
obtaining a user credit record to be issued, the user credit record comprising certification material for certifying the validity of the user credit record;
broadcasting and issuing the user credit record in a block chain, so that other node equipment verifies the user credit record, and other node equipment broadcasts and issues a verification result in the block chain; when receiving user credit records which are broadcast and issued by other node equipment and comprise certification materials for certifying the validity of the user credit records, verifying the validity of the user credit records based on the corresponding certification materials, and broadcasting and issuing verification results in the block chain;
target node equipment in the block chain collects user credit records which are broadcast and issued to the block chain by each node equipment in the block chain in the current accounting period and are verified by each node equipment in the block chain together;
determining the issuing party node equipment corresponding to the collected user credit records, counting the number of the user credit records issued by each issuing party node equipment in the current accounting period, and determining the issuing party node equipment with the largest number of the user credit records issued in the current accounting period as the accounting node equipment;
and if the target node device is determined to be a billing node, issuing a block broadcast created based on the collected user credit records to the block chain for storage in a distributed database of the block chain.
2. The method of claim 1, the commonly validating the passed user credit records by the node devices in the blockchain comprising: verifying the passing user credit records by node equipment with a preset proportion in each node equipment in the block chain;
the collecting user credit records broadcast and issued to the blockchain by each node device in the blockchain in the current accounting period and verified by each node device in the blockchain together comprises:
collecting user credit records broadcast and issued to the block chain by each node device in the block chain in the current accounting period; each node device in the block chain broadcasts the verification result of the user credit record issued to the block chain in the current accounting period;
and screening out user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and pass verification by the node devices in the preset proportion in each node device.
3. The method of claim 1, wherein said counting the determined number of user credit records issued by each issuer node device in the current billing period comprises:
and counting the number of the user credit records which are issued by each issuing party node device in the current accounting period and have no corresponding repeated record in the distributed database of the block chain.
4. The method of claim 1, further comprising:
if the target node equipment is determined as an accounting node, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node equipment; or,
if the user credit records issued by the target node equipment are stored in the distributed database of the block chain, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to account addresses corresponding to the target node equipment;
wherein the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the block chain.
5. The method of claim 4, 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 amount of virtual resources from an account address corresponding to the target node equipment.
6. The method of claim 4 or 5, the virtual resource being a virtual credit.
7. The method of claim 1, the blockchain comprising a backbone; and, a plurality of daughter strands anchored to the backbone;
the publishing of the tile broadcast created based on the collected user credit records to the tile chain comprises:
broadcasting a block created based on user credit records collected in the current accounting period and verified by all node devices in the main chain to the main chain of the block chain if the target node device is the node device in the main chain;
and if the target node device is the node device in the sub-chain, issuing a block broadcast created based on the collected user credit records which are verified by all the node devices in the sub-chain together in the current accounting period to the main chain of the block chain.
8. The method of claim 7, the blockchain being a federation chain of a number of merchant node devices; the federation chain includes a main chain; and, a plurality of daughter strands anchored to the backbone; wherein, different sub-chains respectively correspond to different merchant types.
9. A block chain based credit record sharing apparatus, the apparatus comprising:
the system comprises an acquisition module, a verification module and a verification module, wherein the acquisition module acquires a user credit record to be issued and comprises a verification material for verifying the validity of the user credit record; broadcasting and issuing the user credit records in a block chain, so that other node equipment performs validity verification on the user credit records based on corresponding certification materials, and other node equipment broadcasts and issues verification results in the block chain;
the receiving module is used for verifying the validity of the user credit record based on the corresponding certification material when receiving the user credit record which is broadcasted and issued by other node equipment and comprises the certification material for certifying the validity of the user credit record, and broadcasting and issuing the verification result in the block chain;
the collection module is used for collecting user credit records which are broadcasted and issued to the block chain by each node device in the block chain in the current accounting period and are verified by each node device in the block chain together;
the consensus module is used for determining the issuing party node equipment corresponding to the collected user credit records, counting the number of the user credit records issued by each issuing party node equipment in the current accounting period, and determining the issuing party node equipment with the largest number of the user credit records issued in the current accounting period as the accounting node equipment;
and the issuing module is used for issuing the block broadcast created based on the collected user credit record to the block chain to be stored in a distributed database of the block chain if the target node device corresponding to the device is determined as an accounting node.
10. The apparatus of claim 9, the user credit records collectively validated as passed by each node device in the blockchain comprising: verifying the passing user credit records by node equipment with a preset proportion in each node equipment in the block chain;
the collection module:
collecting user credit records broadcast and issued to the block chain by each node device in the block chain in the current accounting period; each node device in the block chain broadcasts the verification result of the user credit record issued to the block chain in the current accounting period;
and screening out user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and pass verification by the node devices in the preset proportion in each node device.
11. The apparatus of claim 9, the consensus module further to:
and counting the number of the user credit records which are issued by each issuing party node device in the current accounting period and have no corresponding repeated record in the distributed database of the block chain.
12. The apparatus of claim 9, the publication module further to:
if the target node equipment corresponding to the device is determined as an accounting node, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node equipment; or, if the user credit record issued by the target node device is stored in the distributed database of the block chain, acquiring a preset number of virtual resources generated by the block chain, and issuing the virtual resources to an account address corresponding to the target node device; wherein the virtual resource is used for obtaining the use authority of the user credit record stored in the distributed database of the block chain.
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 amount 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. The apparatus of claim 9, the blockchain comprising a backbone; and, a plurality of daughter strands anchored to the backbone;
the release module:
if the target node device corresponding to the device is the node device in the main chain, broadcasting and issuing a block created based on user credit records which are collected in the current accounting period and verified by all the node devices in the main chain and all the sub chains to the main chain of the block chain;
and if the target node device corresponding to the device is the node device in the sub-chain, broadcasting and issuing a block broadcast created by each node device in the sub-chain based on the collected current accounting period to the sub-chain and the user credit records verified by each node device in the sub-chain together to a main chain of the block chain.
16. The apparatus of claim 15, the blockchain is a federation chain of merchant node devices; the federation chain includes a main chain; and, a plurality of daughter strands anchored to the backbone; wherein, different sub-chains respectively correspond to different merchant types.
17. An electronic device, comprising:
a processor;
a memory for storing machine executable instructions;
wherein, by reading and executing machine-executable instructions stored by the memory corresponding to control logic shared with blockchain based blockchain credit records, the processor is caused to:
obtaining a user credit record to be issued, the user credit record comprising certification material for certifying the validity of the user credit record;
broadcasting and issuing the user credit record in a block chain, so that other node equipment verifies the user credit record, and other node equipment broadcasts and issues a verification result in the block chain; when receiving user credit records which are broadcast and issued by other node equipment and comprise certification materials for certifying the validity of the user credit records, verifying the validity of the user credit records based on the corresponding certification materials, and broadcasting and issuing verification results in the block chain;
collecting user credit records which are broadcast and issued to the block chain by each node device in the block chain in the current accounting period and are verified by each node device in the block chain together;
determining the issuing party node equipment corresponding to the collected user credit records, counting the number of the user credit records issued by each issuing party node equipment in the current accounting period, and determining the issuing party node equipment with the largest number of the user credit records issued in the current accounting period as the accounting node equipment;
and if the electronic equipment is determined to be a billing node, issuing the block broadcast created based on the collected user credit records to the block chain to be stored in a distributed database of the block chain.
CN201810351841.5A 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment Active CN108667632B (en)

Priority Applications (2)

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
CN201810351841.5A CN108667632B (en) 2018-04-19 2018-04-19 Credit record sharing method and device based on block chain and electronic equipment

Applications Claiming Priority (1)

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

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202011475094.XA Division CN112600841B (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
CN108667632A CN108667632A (en) 2018-10-16
CN108667632B true CN108667632B (en) 2020-10-30

Family

ID=63780304

Family Applications (2)

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

Families Citing this family (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493171A (en) * 2018-10-18 2019-03-19 尚维斯 A kind of four-way model of a syndrome based on block chain across chain interaction
CN109409882A (en) * 2018-10-18 2019-03-01 中国联合网络通信集团有限公司 A kind of credit accreditation storage method and device based on block chain
CN109447642A (en) * 2018-10-18 2019-03-08 尚维斯 A method of it is mixed and is known together based on block chain multichain
CN109461080A (en) * 2018-10-18 2019-03-12 尚维斯 A kind of implementable mode of business based on block chain across chain interaction
WO2020082213A1 (en) * 2018-10-22 2020-04-30 深圳市哈希树科技有限公司 Network expandability blockchain implementation method
CN112232817A (en) 2018-10-25 2021-01-15 创新先进技术有限公司 Transaction processing method and device based on block chain and electronic equipment
CN109508968B (en) * 2018-10-25 2020-12-18 常州唯康信息科技有限公司 Block chain system and control method thereof
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
CN110471952B (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
CN109886659A (en) * 2018-12-29 2019-06-14 平安健康保险股份有限公司 Virtual resource allocation method, apparatus and computer equipment based on block chain
CN109886677B (en) * 2018-12-29 2021-06-29 创新先进技术有限公司 Commodity purchasing method and device 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
CN113706297A (en) * 2021-09-06 2021-11-26 中国银行股份有限公司 Method and device for selecting accounting node based on alliance chain
CN114297171A (en) * 2021-12-31 2022-04-08 支付宝(杭州)信息技术有限公司 Account data reading and writing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488675A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Distributed shared general ledger construction method of block chain
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN106651346A (en) * 2016-11-28 2017-05-10 上海凯岸信息科技有限公司 Block chain-based credit investigation data sharing and trading system
CN107169865A (en) * 2017-04-24 2017-09-15 北京果仁宝科技有限公司 Asset data processing system based on block chain technology
TW201732697A (en) * 2016-03-15 2017-09-16 現代財富控股有限公司 Clearing system based on blockchain and method thereof
TW201741969A (en) * 2016-05-30 2017-12-01 富邦金融控股股份有限公司 System and method based on blockchain for providing financial end networking
CN107563754A (en) * 2017-08-17 2018-01-09 杭州云象网络技术有限公司 A kind of storage of serial number information and verification method based on block chain
CN107862215A (en) * 2017-09-29 2018-03-30 阿里巴巴集团控股有限公司 A kind of date storage method, data query method and device

Family Cites Families (12)

* 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
US10013573B2 (en) * 2015-12-16 2018-07-03 International Business Machines Corporation Personal ledger blockchain
CN105719185B (en) * 2016-01-22 2019-02-15 杭州复杂美科技有限公司 The data comparison and common recognition method of block chain
EP3411824B1 (en) * 2016-02-04 2019-10-30 Nasdaq Technology AB Systems and methods for storing and sharing transactional data using distributed computer systems
KR101701131B1 (en) * 2016-04-28 2017-02-13 주식회사 라피 Data recording and validation methods and systems using the connecting of blockchain between different type
US20170357966A1 (en) * 2016-06-09 2017-12-14 Mastercard International Incorporated Method and system for use of a proprietary private blockchain
US10565570B2 (en) * 2016-09-27 2020-02-18 The Toronto-Dominion Bank Processing network architecture with companion database
CN106452785B (en) * 2016-09-29 2019-05-17 财付通支付科技有限公司 Block chain network, branch node and block chain network application method
CN106682907A (en) * 2016-12-10 2017-05-17 江苏恒为信息科技有限公司 Comparison and consensus method for block chain data
CN106878000B (en) * 2017-03-06 2020-02-21 中钞信用卡产业发展有限公司杭州区块链技术研究院 Alliance chain consensus method and system
CN107464112B (en) * 2017-07-20 2021-05-25 捷德(中国)科技有限公司 Transaction management method and system based on block chain
CN107864198B (en) * 2017-11-07 2019-09-24 山东浪潮人工智能研究院有限公司 A kind of block chain common recognition method based on deep learning training mission

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488675A (en) * 2015-11-25 2016-04-13 布比(北京)网络技术有限公司 Distributed shared general ledger construction method of block chain
TW201732697A (en) * 2016-03-15 2017-09-16 現代財富控股有限公司 Clearing system based on blockchain and method thereof
TW201741969A (en) * 2016-05-30 2017-12-01 富邦金融控股股份有限公司 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
CN106651346A (en) * 2016-11-28 2017-05-10 上海凯岸信息科技有限公司 Block chain-based credit investigation data sharing and trading system
CN107169865A (en) * 2017-04-24 2017-09-15 北京果仁宝科技有限公司 Asset data processing system based on block chain technology
CN107563754A (en) * 2017-08-17 2018-01-09 杭州云象网络技术有限公司 A kind of storage of serial number information and verification method based on block chain
CN107862215A (en) * 2017-09-29 2018-03-30 阿里巴巴集团控股有限公司 A kind of date storage method, data query method and device

Also Published As

Publication number Publication date
CN112600841A (en) 2021-04-02
CN112600841B (en) 2023-09-19
CN108667632A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN108667632B (en) Credit record sharing method and device based on block chain and electronic equipment
CN108492180B (en) Asset management method and device and electronic equipment
CN108764870B (en) Transaction processing method and device based on block chain and electronic equipment
TWI691919B (en) Blockchain-based transaction processing method and device, and electronic equipment
CN110473105B (en) Block chain transaction settlement method, system and related equipment
Pasdar et al. Connect API with blockchain: A survey on blockchain oracle implementation
CN109327528B (en) Node management method and device based on block chain
JP7320493B2 (en) Execution of smart contracts with distributed cooperation
CN108462724B (en) Data sharing method, device, system, member node and readable storage medium
US20200374113A1 (en) Decentralized application platform for private key management
US20220391887A1 (en) Systems and Methods for Maintenance of NFT Assets
CN109559120A (en) Block chain common recognition method, system, storage medium and electronic equipment based on weight
CN109003185B (en) Intelligent contract establishing method and device, computing equipment and storage medium
CN111445333A (en) Block generation method and device, computer equipment and storage medium
Forte et al. Beyond Bitcoin-Part I: A critical look at blockchain-based systems
US12047443B2 (en) Malleability of transactions for inclusion in a blockchain
CN111416709B (en) Voting method, device, equipment and storage medium based on block chain system
CN116192405B (en) Electronic voting method and related device
US12120252B2 (en) Methods for securely adding data to a blockchain using dynamic time quanta and version authentication
US20220253821A1 (en) Streaming portions of data over a side channel
CN111985007A (en) Contract signing and executing method and device based on block chain
CN113221191B (en) Block chain-based data evidence storage method, device, equipment and storage medium
Islam et al. A survey on consensus algorithms in blockchain-based applications: Architecture, taxonomy, and operational issues
Buldas et al. Blockchain Technology: Intrinsic Technological and Socio-Economic Barriers: FDSE’2020 Keynote
CN112749968A (en) Service data recording method and device based on block chain

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1262026

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant