CN109685504B - Block chain-based shared economy accounting method - Google Patents

Block chain-based shared economy accounting method Download PDF

Info

Publication number
CN109685504B
CN109685504B CN201811561034.2A CN201811561034A CN109685504B CN 109685504 B CN109685504 B CN 109685504B CN 201811561034 A CN201811561034 A CN 201811561034A CN 109685504 B CN109685504 B CN 109685504B
Authority
CN
China
Prior art keywords
node
nodes
data
leader
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811561034.2A
Other languages
Chinese (zh)
Other versions
CN109685504A (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.)
Xiong'an New District Smart City Innovation Association
Original Assignee
Xiong'an New District Smart City Innovation Association
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 Xiong'an New District Smart City Innovation Association filed Critical Xiong'an New District Smart City Innovation Association
Priority to CN201811561034.2A priority Critical patent/CN109685504B/en
Publication of CN109685504A publication Critical patent/CN109685504A/en
Application granted granted Critical
Publication of CN109685504B publication Critical patent/CN109685504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • 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]
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a block chain-based shared economy accounting method, which is characterized in that a plurality of participating bodies of a shared economy are respectively provided with a node on a block chain, the nodes form an alliance chain, a block chain technology is introduced into the traditional shared economy, and a credible, reliable and traceable shared economy system is constructed by utilizing the characteristics of trust avoidance, mediation removal, non-tampering and traceability of the block chain in a shared environment, so that high trust among a demand side, a supply side, a platform side and a site provider is achieved, traceable and trustworthy value evaluation is further provided for purchasing and financial means, and the running efficiency of the shared economy is improved.

Description

Block chain-based shared economy accounting method
Technical Field
The invention relates to the technical field of block chains and Internet of things, in particular to a block chain-based sharing economic billing method.
Background
The sharing economy generally refers to a new economic model based on strangers and temporary transfer of the use right of the article, with the main purpose of obtaining a certain reward. The essence of the method is to integrate spare articles, labor force and educational medical resources under the line. Some economy sharing is that people fairly share social resources, and people pay and benefit in different ways to obtain economic dividends together, and the sharing is realized by taking the internet as a medium.
Sharing economy is one of the most popular topics in recent years, and various sharing models are touted by capital from sharing offices, sharing automobiles, sharing bicycles to sharing umbrellas, sharing power supplies, sharing furniture, sharing KTVs, sharing massage chairs, and so on.
The sharing economy has the following advantages:
1. the occurrence of the sharing economy greatly enriches and facilitates the personal life of people, and even reduces the operating cost of enterprises. For example, the sharing bicycle provides convenience for traveling, the sharing charger solves the problem that a mobile phone is out of home and has no electricity, and the sharing charger serves as an online payment question-answering community in a sharing economic form and provides learning opportunities for people in fragmentation time.
2. For enterprises, especially internet companies, the share economy is a tuyere, and not only can profit through participating in the share economy, but also can drain own products through the share economy. If the Tencent investment of 'small power' (shared charging treasure) is 'small program' drainage, and the converged American and excellent investment shared charging treasure is to promote a platform product and make a communication line to enter. In addition, the Mobai bicycle parking WeChat nine-square grid can not only perfect the self ecology of WeChat, but also realize the drainage of the Mobai bicycle, which can be called win-win.
3. The sharing economy is beneficial to the optimization of social environment.
4. The sharing economy can optimize the social resources and is beneficial to social progress. The shared bicycle is convenient for traveling and is beneficial to environmental protection, and the problem of urban congestion is relieved to a certain extent.
5. The shared economy has also facilitated government regulatory thinking. The number of urban public bicycles is extremely limited, the use is extremely inconvenient, and the appearance of shared bicycles promotes the conversion of public bicycles into an intelligent mode.
The shared economy involves a demand party, a supply party, a shared economy platform party and a shared equipment site provider of goods or services, the shared economy sufficiently mobilizes social resources, efficiently shares data and removes traditional intermediaries, however, in the multi-party participation sharing system, the problems of resource ownership, right of use and economic trust among participants can be involved, the current shared economy seriously depends on the data of the platform party, so that the distrust among the demand party, the supply party and the site provider is caused, and the means of purchasing and finance is lack of data support, so that the shared economy is more and more difficult to develop.
Disclosure of Invention
The present invention is directed to a block chain-based shared economic billing method to solve at least one of the above technical problems in the prior art.
The invention aims to introduce a block chain technology into the traditional sharing economy, construct a credible, credible and traceable sharing economy system by utilizing the characteristics of distrust avoidance, mediation removal, non-tampering and traceability of the block chain in a sharing environment, achieve high trust among a demand party, a supply party, a platform party and a site provider, further provide traceable and credible value evaluation for purchasing and financial means, and improve the running efficiency of the sharing economy.
In order to solve the technical problem, the invention provides a block chain-based shared economic billing method, which comprises the following steps:
step 1: a plurality of participating bodies sharing economy respectively establish a node on a block chain, and a plurality of nodes form a alliance chain; wherein a plurality of the participating main body nodes are bookkeepers;
step 2: the participation main body writes data related to the sharing equipment and business logic thereof into the block chain in the form of an intelligent contract;
and step 3: an intelligent chip is embedded in the shared equipment, a block chain verification code and block header information are stored in the intelligent chip, and the intelligent chip is used for reading, writing and verifying related data of the shared equipment and uploading the related data to the block chain, so that the problem of credibility of the related data of the shared equipment before chaining is solved;
the intelligent chip comprises an identity module for identity verification and identification of the sharing equipment and a wallet module for recording transaction information of the sharing equipment;
and 4, step 4: the operation platform of the shared device is used for displaying and interacting service data and service layer logic, and the operation platform queries and uses related data of the shared device on the block chain by calling the intelligent contract of the block chain and provides data use and interaction on a user interface level;
and 5: the sharing device comprises a data acquisition module for acquiring transaction data, and the data acquisition module uploads the transaction data to the block chain through the intelligent chip;
step 6: the block chain summarizes and shares service data, user data, shared equipment data and credit data of participating main bodies of the operation platform, and provides a trust basis for the operation of the whole sharing economic system;
and 7: the operation data of the shared equipment is updated in real time, and all the participating main bodies can inquire the operation data of the shared equipment through a block chain (therefore, the fast and efficient settlement efficiency can be obtained, the operation data can be monitored in real time, and the operation income can be traced).
Further, the method also comprises the step 8: the financial institution calculates the credit rating of each participating entity through the operation data and transaction data recorded on the blockchain.
The financial institution can inquire the original delivery and the participation main body operation credit of each order through the block chain, and the block chain data can provide credit endorsements for each participation main body in the ecology, so as to obtain the approval of the financial institution and more easily obtain financial support.
Further, the transaction data includes: user behavior, shared device operating conditions, user credit conditions, and the like.
Further, the participating entities as billers include, but are not limited to: a shared device producer, a shared device provider, a platform operator, a site provider, and a financial institution.
Wherein one block includes a block head and a block body. The block header stores header information of the block, including Hash value (prelash) of the last block, Hash value (Hash) of the block, and TimeStamp (TimeStamp), etc. The block stores the detailed Data (Data) of the block, which includes several lines of records, and may be transaction information or some other information. The blocks are in one-to-one correspondence with hash values, which can be regarded as unique identifications of the blocks.
Further, the user interface level data usage and interaction includes: recommendation and transaction of the sharing device, presentation of relevant data of the sharing device, presentation and analysis of usage of the sharing device, and self-learning of the sharing device.
The invention solves the mutual trust problem between all participating bodies of the shared economy and the trust problem from offline to online by introducing the block chain technology.
The blockchain technique is an innovative distributed transaction verification and data sharing technique, also referred to as a distributed ledger technique. The core value is that a P2P self-organizing network, a time-ordered and non-tamper-able cryptology shared account book and a distributed consensus mechanism are constructed, so that multi-centralization trust is realized. In brief, the blockchain is a trusted multi-center system constructed by the distributed ledger technology, and therefore, the blockchain technology can solve the trust problem among multiple parties participating in the sharing economy.
Secondly, in the sharing economy, a alliance chain is adopted as a basic block chain service product, the alliance chain only aims at members of a certain specific group and limited third parties, a plurality of preselected nodes are designated as bookkeeping persons inside, generation of each block is determined by all the preselected nodes, other access nodes can participate in transactions, but the bookkeeping process is not asked, and other third parties can carry out limited query through an API opened by the block chain.
In the invention, an alliance chain is formed among an equipment producer, an equipment provider, a platform operator, a site provider and a financial institution, an intelligent chip is added into shared equipment of a shared economy, a block chain intelligent contract code is built in to form a light node to participate in the verification of the transaction and the verification of the identity, and transaction records in all the shared economies are linked up through the light node to form a credible transaction database of the shared economy. On one hand, the multiple parties participating in the shared economic operation activity generate mutual trust and benefit each other, and the operation efficiency is improved. On the other hand, credible data and credible transactions can be penetrated from equipment production to equipment operation and income data, so that the supply and demand balance between equipment production and demand can be provided, and credible operation data can be provided for financial institutions to serve as credible certificates of financing loans.
In addition, in order to ensure the authenticity, consistency at a certain time point and rapid uniformity of data, the block chain-based shared economic accounting method further comprises the following steps:
step S1: the shared equipment producer, the shared equipment provider, the platform operator, the site provider and the server of the financial institution are respectively used as a core node on the block chain to jointly form a core node set of shared economy;
the communication between the core nodes is maintained between every two core nodes in a heartbeat message mode, and each core node broadcasts the self capacity information to other core nodes through the capacity information;
step S2: the core node set is provided with one and only current leader node; the prior leader node periodically broadcasts announcement information about the core node set to all other core nodes so that all core nodes maintain the same core node set information;
step S3: the current leader node selects a core node which meets the set constraint condition as an alternative node; other core nodes except the prior leader node and the alternative node are candidate nodes;
the prior leader node broadcasts alternative node information to all other core nodes, and the core node selected as the alternative node sets the self state as the alternative state;
the candidate node continuously keeps the candidate state of a new leader in the permission chain after the candidate node is prepared to take part in the election of the consensus algorithm leader of the existing leader node;
step S4: when the prior leader detects that the preset period expires, sending a switching message to the alternative node; the alternative node receives the switching message and sends switching confirmation information to the current leader node, the current leader node is converted into a candidate node, the alternative node is converted into a new leader node, and the new leader node sends leader announcement information to all the candidate nodes; the new leader node selects a new alternative node according to the step S3;
step S5: if an abnormal event occurs and the alternative node cannot receive the announcement message of the current leader node within a certain time, the alternative node is automatically switched into a new leader node; the new leader node sends leader announcement information to all candidate nodes; the new leader node selects a new candidate node according to step S3;
step S6: the candidate nodes continuously monitor the announcement information of the current leader node and the alternative nodes in the permission chain, if the announcement information of the current leader node and the alternative nodes is not monitored in the set time, one or more candidate nodes change the self state into the participation state and further change the self state into the participation node;
step S7: the method comprises the steps that a participating node broadcasts own election declaration to other core nodes in a permission chain, wherein the election declaration is an advertisement message comprising node capacity and node state, and the permission chain selects a new leader node from the participating node;
any core node receiving the election declaration checks whether one election node is suitable to become a leader node or not according to a preset strategy or rule, or checks which election node is more suitable to become the leader node, and then replies confirmation information supporting the election of the node to each election node, or replies rejection information not supporting the election of the node to each election node, or replies voting support to all the election nodes to become the new leader node;
if one candidate node receives the confirmation information of more than 2/3 core nodes in the candidate node set, the candidate node is automatically converted into a leader state and becomes a new leader node, and the dropped candidate node automatically converts the self state into a candidate state and back into a candidate node;
the new leader node checks the current core node set information, announces the core node set information according to step S2, and selects an alternative node according to step S3.
Wherein, the constraint conditions are set as follows: and selecting the core node ranked at the first position as the alternative node according to a preset strategy or rule. Such as priority order, weighted queuing, or derived function results from node capability information. The node capability includes CPU speed, memory size or storage space size, etc.
The shared equipment producer, the shared equipment provider, the platform operator, the site provider and the server of the financial institution randomly become leader nodes according to the rules, the leader nodes issue announcement information, and other nodes update commodity online and offline information of the distributed database according to the announcement information, so that information errors caused by the manual or unintentional operation of individual nodes are avoided, and the reality and the effectiveness of data are ensured.
By adopting the technical scheme, the invention has the following beneficial effects:
1. the application scene of the block chain is creatively provided, and how to construct the block chain model in the service scene is designed;
2. a shared economic business model based on a block chain is innovatively constructed, basic business process description, module design and interfaces among modules are carried out.
3. The intelligent chip is innovatively designed, and the block chain light nodes are embedded in the intelligent chip, so that the intelligent equipment participates in verification of the block chain, and the problem that the traditional data uplink source cannot be trusted is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description in the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a block chain-based shared economic billing method according to embodiment 1 of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The present invention will be further explained with reference to specific embodiments.
Referring to fig. 1, the method for sharing economic billing based on a blockchain according to this embodiment includes the following steps:
step 1: a plurality of participating bodies sharing economy respectively establish a node on a block chain, and a plurality of nodes form a alliance chain; wherein a plurality of the participating main body nodes are bookkeepers; in the present embodiment, the participating subjects as the bookers include: a shared device producer, a shared device provider, a platform operator, a site provider, and a financial institution.
Step 2: the participation main body writes data related to the sharing equipment and business logic thereof into the block chain in the form of an intelligent contract;
and step 3: an intelligent chip is embedded in the shared equipment, a block chain verification code and block header information are stored in the intelligent chip, and the intelligent chip is used for reading, writing and verifying related data of the shared equipment and uploading the related data to the block chain, so that the problem of credibility of the related data of the shared equipment before chaining is solved;
the intelligent chip comprises an identity module for identity verification and identification of the sharing equipment and a wallet module for recording transaction information of the sharing equipment;
and 4, step 4: the operation platform of the shared device is used for displaying and interacting service data and service layer logic, and the operation platform queries and uses related data of the shared device on the block chain by calling the intelligent contract of the block chain and provides data use and interaction on a user interface level;
and 5: the sharing device comprises a data acquisition module for acquiring transaction data, and the data acquisition module uploads the transaction data to the block chain through the intelligent chip;
step 6: the block chain summarizes and shares service data, user data, shared equipment data and credit data of participating main bodies of the operation platform, and provides a trust basis for the operation of the whole sharing economic system;
and 7: the operation data of the shared equipment is updated in real time, and all participating main bodies can inquire the operation data of the shared equipment through the block chain (therefore, the fast and efficient settlement efficiency can be obtained, the operation data can be monitored in real time, and the operation income can be traced).
The financial institution calculates the credit rating of each participating entity through the operation data and transaction data recorded on the blockchain. The financial institution can inquire the original delivery and the participation main body operation credit of each order through the block chain, and the block chain data can provide credit endorsements for each participation main body in the ecology, so as to obtain the approval of the financial institution and more easily obtain financial support.
Wherein the transaction data includes: user behavior, shared device operating conditions, user credit conditions, and the like.
Wherein one block includes a block head and a block body. The block header stores header information of the block, including Hash value (prelash) of the last block, Hash value (Hash) of the block, and TimeStamp (TimeStamp), etc. The block stores the detailed Data (Data) of the block, which includes several lines of records, and may be transaction information or some other information. The blocks are in one-to-one correspondence with hash values, which can be regarded as unique identifications of the blocks.
User interface level data usage and interaction includes: recommendation and transaction of the sharing device, presentation of relevant data of the sharing device, presentation and analysis of usage of the sharing device, and self-learning of the sharing device.
The invention solves the mutual trust problem between all participating bodies of the shared economy and the trust problem from offline to online by introducing the block chain technology.
The blockchain technique is an innovative distributed transaction verification and data sharing technique, also referred to as a distributed ledger technique. The core value is that a P2P self-organizing network, a time-ordered and non-tamper-able cryptology shared account book and a distributed consensus mechanism are constructed, so that multi-centralization trust is realized. In brief, the blockchain is a trusted multi-center system constructed by the distributed ledger technology, and therefore, the blockchain technology can solve the trust problem among multiple parties participating in the sharing economy.
Secondly, in the sharing economy, a alliance chain is adopted as a basic block chain service product, the alliance chain only aims at members of a certain specific group and limited third parties, a plurality of preselected nodes are designated as bookkeeping persons inside, generation of each block is determined by all the preselected nodes, other access nodes can participate in transactions, but the bookkeeping process is not asked, and other third parties can carry out limited query through an API opened by the block chain.
In the invention, an alliance chain is formed among an equipment producer, an equipment provider, a platform operator, a site provider and a financial institution, an intelligent chip is added into shared equipment of a shared economy, a block chain intelligent contract code is built in to form a light node to participate in the verification of the transaction and the verification of the identity, and transaction records in all the shared economies are linked up through the light node to form a credible transaction database of the shared economy. On one hand, the multiple parties participating in the shared economic operation activity generate mutual trust and benefit each other, and the operation efficiency is improved. On the other hand, credible data and credible transactions can be penetrated from equipment production to equipment operation and income data, so that the supply and demand balance between equipment production and demand can be provided, and credible operation data can be provided for financial institutions to serve as credible certificates of financing loans.
In addition, in order to ensure the authenticity, consistency at a certain time point and rapid uniformity of data, the block chain-based shared economic accounting method further comprises the following steps:
step S1: the method comprises the following steps that a shared device producer, a shared device provider, a platform operator, a site provider and a server of a financial institution are respectively used as core nodes on a block chain to jointly form a core node set of shared economy;
the communication between the core nodes is maintained between every two core nodes in a heartbeat message mode, and each core node broadcasts the self capacity information to other core nodes through the capacity information;
step S2: the core node set is provided with one and only current leader node; the prior leader node periodically broadcasts announcement information about the core node set to all other core nodes so that all core nodes maintain the same core node set information;
step S3: the current leader node selects a core node which meets the set constraint condition as an alternative node; other core nodes except the prior leader node and the alternative node are candidate nodes;
the prior leader node broadcasts alternative node information to all other core nodes, and the core node selected as the alternative node sets the self state as the alternative state;
the candidate node continuously keeps the candidate state of a new leader in the permission chain after the candidate node is prepared to take part in the election of the consensus algorithm leader of the existing leader node;
step S4: when the prior leader detects that the preset period expires, sending a switching message to the alternative node; the alternative node receives the switching message and sends switching confirmation information to the current leader node, the current leader node is converted into a candidate node, the alternative node is converted into a new leader node, and the new leader node sends leader announcement information to all the candidate nodes; the new leader node selects a new alternative node according to the step S3;
step S5: if an abnormal event occurs and the alternative node cannot receive the announcement message of the current leader node within a certain time, the alternative node is automatically switched into a new leader node; the new leader node sends leader announcement information to all candidate nodes; the new leader node selects a new candidate node according to step S3;
step S6: the candidate nodes continuously monitor the announcement information of the current leader node and the alternative nodes in the permission chain, if the announcement information of the current leader node and the alternative nodes is not monitored in the set time, one or more candidate nodes change the self state into the participation state and further change the self state into the participation node;
step S7: the participating nodes broadcast own election declarations to other core nodes in the permission chain, the election declarations are advertisement messages comprising node capacity and node states, and the permission chain selects new leader nodes from the participating nodes;
any core node receiving the election declaration checks whether one election node is suitable to become a leader node or not according to a preset strategy or rule, or checks which election node is more suitable to become the leader node, and then replies confirmation information supporting the election of the node to each election node, or replies rejection information not supporting the election of the node to each election node, or replies voting support to all the election nodes to become the new leader node;
if one candidate node receives the confirmation information of more than 2/3 core nodes in the candidate node set, the candidate node is automatically converted into a leader state and becomes a new leader node, and the dropped candidate node automatically converts the self state into a candidate state and back into a candidate node;
the new leader node checks the current core node set information, announces the core node set information according to step S2, and selects an alternative node according to step S3.
Wherein, the constraint conditions are set as follows: and selecting the core node ranked at the first position as the alternative node according to a preset strategy or rule. Such as priority order, weighted queuing, or derived function results from node capability information. The node capability includes CPU speed, memory size or storage space size, etc.
The shared equipment producer, the shared equipment provider, the platform operator, the site provider and the server of the financial institution randomly become leader nodes according to the rules, the leader nodes issue announcement information, and other nodes update commodity online and offline information of the distributed database according to the announcement information, so that information errors caused by the manual or unintentional operation of individual nodes are avoided, and the reality and the effectiveness of data are ensured.
The invention has the following beneficial effects:
1. the application scene of the block chain is creatively provided, and how to construct the block chain model in the service scene is designed;
2. a shared economic business model based on a block chain is innovatively constructed, basic business process description, module design and interfaces among modules are carried out.
3. The intelligent chip is innovatively designed, and the block chain light nodes are embedded in the intelligent chip, so that the intelligent equipment participates in verification of the block chain, and the problem that the traditional data uplink source cannot be trusted is solved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A block chain-based shared economic billing method is characterized by comprising the following steps:
step 1: a plurality of participating main bodies sharing economy establish a node on a block chain respectively, and the plurality of nodes form a alliance chain, wherein a plurality of participating main body nodes are bookkeepers;
step 2: the participation main body writes data related to the sharing equipment and business logic thereof into the block chain in the form of an intelligent contract;
and step 3: an intelligent chip is embedded in the shared equipment, a block chain verification code and block header information are stored in the intelligent chip, and the intelligent chip is used for reading, writing and verifying related data of the shared equipment and uploading the related data to the block chain, so that the problem of credibility of the related data of the shared equipment before chaining is solved;
the intelligent chip comprises an identity module for identity verification and identification of the sharing equipment and a wallet module for recording transaction information of the sharing equipment;
and 4, step 4: the operation platform of the shared device is used for displaying and interacting service data and service layer logic, and the operation platform queries and uses related data of the shared device on the block chain by calling the intelligent contract of the block chain and provides data use and interaction on a user interface level;
and 5: the sharing device comprises a data acquisition module for acquiring transaction data, and the data acquisition module uploads the transaction data to the block chain through the intelligent chip;
step 6: the block chain summarizes and shares service data, user data, shared equipment data and credit data of participating main bodies of the operation platform, and provides a trust basis for the operation of the whole sharing economic system;
and 7: updating the operation data of the shared equipment in real time, wherein all the participating main bodies can inquire the operation data of the shared equipment through a block chain;
the participating entities as billers include, but are not limited to: a shared device producer, a shared device provider, a platform operator, a site provider, and a financial institution;
and further comprising the steps of:
step S1: the shared equipment producer, the shared equipment provider, the platform operator, the site provider and the server of the financial institution are respectively used as a core node on the block chain to jointly form a core node set of shared economy;
the communication between the core nodes is maintained between every two core nodes in a heartbeat message mode, and each core node broadcasts the self capacity information to other core nodes through the capacity information;
step S2: the core node set is provided with one and only current leader node; the prior leader node periodically broadcasts announcement information about the core node set to all other core nodes so that all core nodes maintain the same core node set information;
step S3: the current leader node selects a core node which meets the set constraint condition as an alternative node; other core nodes except the prior leader node and the alternative node are candidate nodes;
the prior leader node broadcasts alternative node information to all other core nodes, and the core node selected as the alternative node sets the self state as the alternative state;
the candidate node continuously keeps the candidate state of a new leader in the permission chain after the candidate node is prepared to take part in the election of the consensus algorithm leader of the existing leader node;
step S4: when the prior leader detects that the preset period expires, sending a switching message to the alternative node; the alternative node receives the switching message and sends switching confirmation information to the current leader node, the current leader node is converted into a candidate node, the alternative node is converted into a new leader node, and the new leader node sends leader announcement information to all the candidate nodes; the new leader node selects a new alternative node according to the step S3;
step S5: if an abnormal event occurs and the alternative node cannot receive the announcement message of the current leader node within a certain time, the alternative node is automatically switched into a new leader node; the new leader node sends leader announcement information to all candidate nodes; the new leader node selects a new candidate node according to step S3;
step S6: the candidate nodes continuously monitor the announcement information of the current leader node and the alternative nodes in the permission chain, if the announcement information of the current leader node and the alternative nodes is not monitored in the set time, one or more candidate nodes change the self state into the participation state and further change the self state into the participation node;
step S7: the method comprises the steps that a participating node broadcasts own election declaration to other core nodes in a permission chain, wherein the election declaration is an advertisement message comprising node capacity and node state, and the permission chain selects a new leader node from the participating node;
any core node receiving the election declaration checks whether one election node is suitable to become a leader node or not according to a preset strategy or rule, or checks which election node is more suitable to become the leader node, and then replies confirmation information supporting the election of the node to each election node, or replies rejection information not supporting the election of the node to each election node, or replies voting support to all the election nodes to become the new leader node;
if one candidate node receives the confirmation information of more than 2/3 core nodes in the candidate node set, the candidate node is automatically converted into a leader state and becomes a new leader node, and the dropped candidate node automatically converts the self state into a candidate state and back into a candidate node;
the new leader node checks the current core node set information, announces the core node set information according to step S2, and selects an alternative node according to step S3.
2. The block chain based shared economic billing method according to claim 1, further comprising the step 8: the financial institution calculates the credit rating of each participating entity through the operation data and transaction data recorded on the blockchain.
3. The blockchain-based shared economic billing method of claim 1 wherein the transaction data comprises: user behavior, shared device operating conditions, and user credit conditions.
4. The blockchain-based shared economic billing method of claim 1 wherein the user interface-level data usage and interaction comprises: recommendation and transaction of the sharing device, presentation of relevant data of the sharing device, presentation and analysis of usage of the sharing device, and self-learning of the sharing device.
5. The block chain-based shared economic billing method according to claim 1, wherein the constraint conditions are set as follows: and selecting the core node ranked at the first position as the alternative node according to a preset strategy or rule.
6. The blockchain-based shared economic billing method of claim 5 wherein the node capabilities include CPU speed, memory size or storage space size.
CN201811561034.2A 2018-12-20 2018-12-20 Block chain-based shared economy accounting method Active CN109685504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811561034.2A CN109685504B (en) 2018-12-20 2018-12-20 Block chain-based shared economy accounting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811561034.2A CN109685504B (en) 2018-12-20 2018-12-20 Block chain-based shared economy accounting method

Publications (2)

Publication Number Publication Date
CN109685504A CN109685504A (en) 2019-04-26
CN109685504B true CN109685504B (en) 2020-08-28

Family

ID=66187926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811561034.2A Active CN109685504B (en) 2018-12-20 2018-12-20 Block chain-based shared economy accounting method

Country Status (1)

Country Link
CN (1) CN109685504B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221938A (en) * 2019-05-06 2019-09-10 深圳壹账通智能科技有限公司 The method and storage medium of electronic device, block chain common recognition
CN110310094A (en) * 2019-07-03 2019-10-08 广东投盟科技有限公司 Talent's sharing method and system, block chain network based on block chain
CN110851530A (en) * 2019-11-06 2020-02-28 四川长虹电器股份有限公司 Block chain based shared economic credible transaction method
CN110990490B (en) * 2019-12-19 2023-09-01 京东科技信息技术有限公司 Method, device, equipment and medium for checking in blockchain network
CN112511337B (en) * 2020-11-09 2023-03-14 迅鳐成都科技有限公司 Block chain consensus network self-recovery method, electronic device, system and storage medium
CN113141388B (en) * 2020-12-16 2022-08-02 国网河北省电力有限公司建设公司 Engineering detection management method based on block chain technology
CN112734586A (en) * 2021-01-27 2021-04-30 国网信息通信产业集团有限公司 Data processing method and system based on block chain
CN113316177B (en) * 2021-06-01 2022-03-25 山东大学 Decision communication system and decision communication method for intelligent group
CN113971597A (en) * 2021-09-30 2022-01-25 西安电子科技大学 Shared charging pile transaction system, method, equipment and terminal
CN116260707B (en) * 2023-05-15 2023-10-10 安徽中科晶格技术有限公司 Block chain node disaster recovery method, device and equipment based on consensus and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878071A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain common recognition mechanism based on Raft algorithms
CN107993359A (en) * 2017-11-23 2018-05-04 浙江大学 A kind of end-to-end bicycle shared system and method based on block chain
CN108200159A (en) * 2017-12-29 2018-06-22 深圳市轱辘车联数据技术有限公司 A kind of vehicle sharing method, server and readable storage medium storing program for executing
CN108197718A (en) * 2018-01-18 2018-06-22 北京晒呗科技有限公司 A kind of Internet of Things equipment operation system and method based on block chain
CN108230109A (en) * 2018-01-02 2018-06-29 罗梅琴 A kind of shared system and method based on block chain technology
CN108416650A (en) * 2018-02-09 2018-08-17 深圳市轱辘车联数据技术有限公司 Vehicle sharing method, device, server and computer readable storage medium
CN108550226A (en) * 2018-04-17 2018-09-18 暨南大学 Based on block chain technology automotive system and its building method are shared without key
CN108597128A (en) * 2018-05-04 2018-09-28 济南浪潮高新科技投资发展有限公司 Urban network joins Car sharing system and method
CN109039713A (en) * 2018-07-16 2018-12-18 夸克链科技(深圳)有限公司 A kind of block chain common recognition device and algorithm

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878071A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain common recognition mechanism based on Raft algorithms
CN107993359A (en) * 2017-11-23 2018-05-04 浙江大学 A kind of end-to-end bicycle shared system and method based on block chain
CN108200159A (en) * 2017-12-29 2018-06-22 深圳市轱辘车联数据技术有限公司 A kind of vehicle sharing method, server and readable storage medium storing program for executing
CN108230109A (en) * 2018-01-02 2018-06-29 罗梅琴 A kind of shared system and method based on block chain technology
CN108197718A (en) * 2018-01-18 2018-06-22 北京晒呗科技有限公司 A kind of Internet of Things equipment operation system and method based on block chain
CN108416650A (en) * 2018-02-09 2018-08-17 深圳市轱辘车联数据技术有限公司 Vehicle sharing method, device, server and computer readable storage medium
CN108550226A (en) * 2018-04-17 2018-09-18 暨南大学 Based on block chain technology automotive system and its building method are shared without key
CN108597128A (en) * 2018-05-04 2018-09-28 济南浪潮高新科技投资发展有限公司 Urban network joins Car sharing system and method
CN109039713A (en) * 2018-07-16 2018-12-18 夸克链科技(深圳)有限公司 A kind of block chain common recognition device and algorithm

Also Published As

Publication number Publication date
CN109685504A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN109685504B (en) Block chain-based shared economy accounting method
CN109685486B (en) Block chain technology-based aggregation chain architecture
Kang et al. Enabling localized peer-to-peer electricity trading among plug-in hybrid electric vehicles using consortium blockchains
CN109472605A (en) A kind of mathematic for business capitalization management method and system based on block chain
CN108197969A (en) A kind of D2D based on block chain shares the system and its implementation of reward
CN111178682A (en) Control method of demand response management platform based on block chain technology
CN108053244A (en) Integration processing method and device based on block chain technology
CN108230011A (en) Integration processing method and device based on block chain technology
Trotter et al. Populism, post-truth politics and the failure to deceive the public in Uganda’s energy debate
Xiao et al. Blockchain for secure-GaS: Blockchain-powered secure natural gas IoT system with AI-enabled gas prediction and transaction in smart city
CN108320173A (en) Integration processing method and device based on block chain technology
CN109101831A (en) Science and technology conversion service platform based on block chain technology
CN108628903A (en) Method and device based on the paid knowledge sharing of the more people of internet specific content
Alam Blockchain-based big data analytics approach for smart cities
Yan et al. Blockchain‐based framework of power demand response in China
Jiang et al. Economics of peer-to-peer mobile crowdsensing
Guo et al. Incentive-based optimal nodes selection mechanism for threshold key management in MANETs with selfish nodes
Tan et al. A novel trust model based on SLA and behavior evaluation for clouds
Fragkos et al. Socio-aware public safety framework design: A contract theory based approach
CN116189346A (en) Intelligent queuing and calling system for digital science and technology deep integration hall management and marketing scene
Li et al. Incentive and knowledge distillation based federated learning for cross-silo applications
CN109741187A (en) A kind of account book based on block chain intelligence contract node is shared and mutual trust system
Pandey et al. If you build it, will they come? Exploring narratives that shape the internet in Nepal
Pouryazdan et al. On coalitional and non-coalitional games in the design of user incentives for dependable mobile crowdsensing services
Samadi et al. Secure and Robust Demand Response Using Stackelberg Game Model and Energy Blockchain

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
TA01 Transfer of patent application right

Effective date of registration: 20200106

Address after: 100080 Beijing Haidian District 19 Zhongguancun Road, Chinese Academy of Sciences Talent Exchange Center

Applicant after: Wang Chunfeng

Address before: 100094 Beijing Haidian District Yongjia North Road, No. 6, Building 5, 2-storey East 162

Applicant before: Beijing Bixin Technology Co., Ltd.

TA01 Transfer of patent application right
CB03 Change of inventor or designer information

Inventor after: Peng Bin

Inventor after: Li Jun

Inventor after: Wang Chunfeng

Inventor before: Peng Bin

Inventor before: Wang Chunfeng

CB03 Change of inventor or designer information
TA01 Transfer of patent application right

Effective date of registration: 20200804

Address after: 071703 No. 100, Aowei Road, Rongcheng County, xiong'an New District, Baoding City, Hebei Province

Applicant after: Xiong'an New District Smart City Innovation Association

Address before: 100080 Beijing Haidian District 19 Zhongguancun Road, Chinese Academy of Sciences Talent Exchange Center

Applicant before: Wang Chunfeng

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