CN110689331A - Block chain-based digital currency transaction method and system - Google Patents

Block chain-based digital currency transaction method and system Download PDF

Info

Publication number
CN110689331A
CN110689331A CN201910909474.0A CN201910909474A CN110689331A CN 110689331 A CN110689331 A CN 110689331A CN 201910909474 A CN201910909474 A CN 201910909474A CN 110689331 A CN110689331 A CN 110689331A
Authority
CN
China
Prior art keywords
terminal
digital currency
terminals
voter
accounting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910909474.0A
Other languages
Chinese (zh)
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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN201910909474.0A priority Critical patent/CN110689331A/en
Publication of CN110689331A publication Critical patent/CN110689331A/en
Pending legal-status Critical Current

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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3823Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention belongs to the field of block chain and digital currency payment, and relates to a block chain DPoS consensus algorithm, in particular to a digital currency transaction method and a system based on a block chain; registering each digital currency terminal in a block chain network, initiating election by a long-term accounting node, determining a corresponding group coefficient by each terminal according to an affiliated interest group, calculating the rights and interests of the digital currency terminals, determining the number of voted terminals, and electing a short-term accounting node; the digital currency terminal generates transaction information; in a short-term accounting period, accounting nodes monitor transaction information in a blockchain network in turn, exercise accounting rights in turn after verifying the transaction information, pack digital currency transaction information into blocks and broadcast the blocks to the blockchain network, and continue to elect new short-term accounting nodes; the invention is more suitable for the fields of applied finance, bank and the like; digital currency based on blockchains will give currency payment systems higher security and efficiency, contributing to user privacy protection.

Description

Block chain-based digital currency transaction method and system
Technical Field
The invention belongs to the field of block chain and digital currency payment, relates to a block chain DPoS consensus algorithm, and particularly relates to a digital currency transaction method and system based on a block chain.
Background
Based on the measurement of McKensin, the application of the blockchain technology in the B2B cross-border payment and settlement service can help the cross-border payment and settlement service transaction participants to save about 40% of transaction cost on a global scale, wherein about 30% of the transaction cost is the payment network maintenance cost of a transit bank, and 10% of the transaction cost is the compliance, error investigation and foreign exchange cost. The point-to-point payment mode created by using digital currency and a block chain technology saves the intermediate link of a third-party financial institution, not only realizes 24-hour real-time payment, real-time account arrival and no hidden cost, but also is beneficial to reducing the fund risk of cross-border e-commerce and meeting the requirements of the cross-border e-commerce on timeliness and convenience of payment clearing service. Low cost funds transfer and micropayment. Electronic payments cause the specific gravity of currency in circulation to decrease. In the aspect of third-party payment, along with the popularization of smart phones, people can use bank digital currency payment service. The digital wallet is established through digital currency, so that lower-cost and safer micropayment and fund transfer are realized in areas with insufficient financial coverage and underdeveloped economy, and the income of intermediate business is increased.
In the digital currency system based on the block chain technology, the consensus algorithm plays a crucial role as the underlying technology, and determines the distribution of the issuing and accounting rights of the currency. Currently, although a block chain delegation equity certificate (DPOS) consensus algorithm gets rid of the mining process in PoW algorithm (Proof of office, abbreviated as workload certificate) and PoS algorithm (Proof of equity certificate), accounting nodes need to be determined by global voting. The DPoS algorithm adopts a mode of selecting n accounting nodes (also called representatives) in the whole network to complete consensus, and other nodes (also called voters) are only responsible for voting and supervision. If any accounting node has illegal behaviors such as bifurcation or missing blocks, the node is detected by other nodes in the network and is voted to replace the next station. Therefore, the reliability of election will determine the security and stability of DPoS algorithm.
However, the election of the billing nodes commonly known by the DPoS has some problems:
firstly, the currency system is the basis of the social financial system, all accounting nodes in each round of the tenure period in the DPoS consensus can be replaced again, and if the election participation degree is low, the whole currency and even the financial system can be dynamically shaken if the election cannot be normally carried out.
Secondly, the current digital currency system often independently issues coins and completely breaks away from supervision, which can cause unstable currency supply amount, and in addition, the authorities can not monitor the issuance and circulation of the digital currencies, which leads to the failure of accurate judgment of economic operation conditions, brings troubles to policy making, and simultaneously can weaken the effectiveness of policy transmission and execution.
Third, the current equity calculation method only maintains the equity of the stakeholders, but does not prevent the actual election power from falling into the exclusive winning alliance formed by a very small number of rich nodes. The block chain is used as a distributed accounting system, the more the participants are, the higher the decentralization degree is, the safer and more stable the network is, and the more important the benefit of protecting most nodes is than the benefit of protecting most wealth. The generation of the accounting nodes should not be controlled by the rich nodes, and the rich nodes are given higher power and are restrained at the same time, so that the network is prevented from generating financial governance. Because of the hidden interest relationship between the network node and the node, the voting behavior of the node is beneficial and inclined, the node can vote for the node which is supposed to maintain the interest demand of the node, actually, interest groups are formed among the nodes, and the financial valve governance is only one of the interest groups. Due to the diversification of node attributes in the actual network, a plurality of interest groups may appear in the network, different interest groups are distinguished, the voting right among the interest groups is balanced, and any one interest group is prevented from having unreasonable high rights and interests.
In summary, the following disadvantages are prevalent in existing digital currency systems:
the digital currency with DPoS consensus algorithm as the block chain basis forms interest groups among nodes due to the hidden interest relationship between the network node attributes and the nodes, and votes for specific candidate terminals meeting the interest requirements of the groups, thereby solving the problem of financial valve governing and group interest imbalance.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned disadvantages and to provide a method and system for digital currency transaction based on blockchain.
A blockchain-based digital currency transaction method, the method comprising:
s1, registering each digital currency terminal in the blockchain network, and selecting a part of digital currency terminals as initial long-term accounting nodes;
s2, the long-term accounting node initiates elections of other digital currency terminals, each terminal determines a corresponding group coefficient according to the affiliated interest group, calculates the rights and interests value of each digital currency terminal, and determines the number of voted terminals, so that part of digital currency terminals are selected as short-term accounting nodes;
s3, the digital currency terminal initiates the transaction process to other digital currency terminals and generates transaction information;
s4, in the short-term accounting period, each long-term accounting node and each short-term accounting node monitor the transaction information in the block chain network in turn, exercise the accounting right in turn after verifying the transaction information, pack the digital currency transaction information into blocks and broadcast the blocks to the block chain network, and return to the step S2 to continue to elect a new short-term accounting node;
wherein the short term billing period is allocated by the long term billing node or by the short term billing node of the previous round.
In addition, a block chain-based digital money transaction system of the present invention includes:
a blockchain network for providing a blockchain network environment;
the user registration module is used for registering the digital currency terminal into the block chain network;
a digital money terminal for performing a main body of digital money transaction;
and the digital currency accounting module is used for recording the transaction process of each digital currency terminal.
The invention has the beneficial effects that:
the invention is mainly suitable for applying finance, banking, cross-border transaction and E-commerce platforms. Firstly, the digital currency based on the block chain endows the currency payment system with higher safety and high efficiency, the traceable distributed account book ensures the truthfulness and reliability of the fund flow, and the anonymity is favorable for protecting the privacy of the user; secondly, the DPoS consensus algorithm is partially improved to be more suitable for a digital currency payment system: (1) the accounting nodes are divided into long-term accounting nodes and short-term accounting nodes, namely permanent accounting nodes and non-permanent accounting nodes, so that the control of relevant departments on the money policy is ensured while centralization is achieved, and the reliable accounting nodes are ensured to maintain the stable operation of the network even if election fails in the network; (2) the financial governance is effectively prevented, so that the rights and interests of any node cannot break through the limit of group rights and interests; (3) the voting power of each interest group is balanced, and the distribution of the voting power is more reasonable.
Drawings
FIG. 1 is a flow chart of a blockchain based digital currency transaction method of the present invention;
FIG. 2 is a schematic diagram of node attribute tagging in accordance with the present invention;
FIG. 3 is a flow chart of the voter node interest trend marking of the present invention;
FIG. 4 is a flow chart of node group tag tagging in accordance with the present invention;
FIG. 5 is a schematic view of an election process according to the present invention;
fig. 6 is a schematic diagram of the operation of the digital currency transaction system of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly and completely apparent, the technical solutions in the embodiments of the present invention are described below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
In one embodiment of the present invention,
a blockchain-based digital currency transaction method, as shown in fig. 1, the method comprising:
s1, registering each digital currency terminal in the blockchain network, and selecting a part of digital currency terminals as initial long-term accounting nodes;
s2, the long-term accounting node initiates elections of other digital currency terminals, each terminal determines a corresponding group coefficient according to the affiliated interest group, calculates the rights and interests value of each digital currency terminal, and determines the number of voted terminals, so that part of digital currency terminals are selected as short-term accounting nodes;
s3, the digital currency terminal initiates the transaction process to other digital currency terminals and generates transaction information;
s4, in the short-term accounting period, each long-term accounting node and each short-term accounting node monitor the transaction information in the block chain network in turn, exercise the accounting right in turn after verifying the transaction information, pack the digital currency transaction information into blocks and broadcast the blocks to the block chain network, and return to the step S2 to continue to elect a new short-term accounting node;
wherein the short term billing period is allocated by the long term billing node or by the short term billing node of the previous round.
Further, the step S1 includes:
s11: building a block chain network, making relevant rules of digital currency and first-round accounting node election rules, and registering each digital currency terminal in the block chain network; issuing a block chain creation block as a parent block of the whole chain;
s12: the first round of accounting election rules are formulated; and determining the initial long-term accounting digital currency terminal in the block chain.
Wherein, the issuance of digital currency and the like is required to be completed by related institutions or operation units; the related setting of the digital currency can also be completed by a related organization or an operation unit.
In addition, the long-term accounting node needs to be stable for a long time, and therefore can be responsible for the overall planning and operation of important transactions in all blockchain networks.
The step S2 of determining the number of terminals voting includes that the short-term accounting digital currency terminal records the number of votes voted by other digital currency terminals according to a counting rule, wherein the counting rule of the short-term accounting digital currency terminal in S2 is proposed by a digital currency seller or used as the counting rule by a node rights calculation method based on interest group rights balance, and specifically includes: the election and ticket counting rule of the first short-term accounting node is formulated by the money sender according to the requirement; after the second election or the stable and formal operation of the network, a node interest calculation method based on the balance of rights of interest groups is used as a ticket counting criterion.
It is understood that, in step S2, the interest value of each digital currency terminal is calculated for the purpose of counting votes, and the number of terminals for which votes are determined affects the interest tendency of each node and the voting interest calculation thereafter, and so on.
In one embodiment, before the network operates stably in a completely autonomous manner, whether to perform commissioning or not can be selected. During the period, the bank-note issuing party can adjust partial network basic parameters, such as the number of permanent accounting nodes, the permanent period and the like. After the trial operation is finished and the network formal operation is carried out, the money-issuing party of the digital money cannot change the network basic parameters arbitrarily unless the money-issuing party suffers from a serious network attack or the system upgrading needs to be forked and the like.
In a preferred embodiment of the present invention,
further, the selection process of the short term billing node in step S2 includes the following steps:
s21: determining the number of blocks linked on a block chain, and acquiring the state of each digital currency terminal in a corresponding block chain network;
s22: determining the attribute and the dimension needing to be marked according to the block chain network condition; and carrying out attribute marking on each digital currency terminal;
s23: dividing the digital currency terminal into a voter terminal and a candidate terminal, and marking the benefit tendency of the voter terminal;
s24: obtaining interest group marks according to the previous m interest trends of the voter terminal, and dividing the interest groups;
s25: determining a group coefficient according to the interest group to which each voter terminal belongs, calculating the rights and interests of the voter terminal, and recording the number of votes of corresponding candidate terminals selected by each voter terminal; the election is ended, and when the next election starts, the process returns to S21.
In the running process of the network, new attributes may affect voting, the influence of the attributes on the voting is weakened, the attribute dimensionality changes, and the adjustment can be carried out when necessary, otherwise, the setting of the previous round of election is used. In different network applications, the attributes which become the node benefit tendency factors may be different, and the attributes and dimensions to be marked should be determined according to the actual network conditions. And according to the attributes and the dimensionalities determined by the network, carrying out attribute marking on the nodes according to the self condition of each node.
In one embodiment, the node attribute flag in step S22 can refer to the division of the node into multiple dimensions, including the wealth level Wi, the retention time Tj, and other dimensions, as shown in fig. 2.
In one embodiment, step S23 may include:
s231: counting the ratio of certain attribute information in a digital currency terminal in a block chain network;
s232: counting attribute information of all voters voting for a certain candidate terminal;
s233: judging whether the number of the voter terminals supporting the candidate terminals reaches a threshold S or not, and if so, judging whether the number of the voter terminals supporting the candidate terminals reaches the threshold S;
s234: if the value reaches the threshold value, calculating a benefit relation value of the candidate terminal and the attribute based on a benefit relation index calculation formula:
Figure BDA0002214290660000061
wherein r is expressed as an excess ratio,
Figure BDA0002214290660000071
a1representing an excess probability number;
Figure BDA0002214290660000072
a0representing the actual voting number of voter terminals with certain attributes; a represents the number of voter terminals with certain attributes; c represents the number of candidate terminals in the current block chain network; a is2Represents a maximum number of exceedables;
Figure BDA0002214290660000073
wherein R (x) is greater than a first threshold value R1If so, judging that the voter terminal with the attribute has strong interest association with the candidate terminal;
if the value does not reach the threshold value S, calculating the occupation ratio with certain attribute from the voter terminals supporting the candidate terminals; if the occupation ratio is larger than the threshold value L, judging that the voter terminal with the attribute has strong interest association with the candidate terminal; if the total vote count ratio with the same attribute in the vote count obtained by the candidate terminal is greater than the threshold value M, judging that the voter terminal with the attribute is in strong interest association with the candidate terminal; if R (x) is greater than the second threshold value R2And if so, judging that the voter terminal with the attribute has strong interest association with the candidate terminal.
S235: assigning values to the benefit tendency of all the voter terminals according to the benefit correlation between the voter terminals and the candidate terminals; if the candidate terminal has strong interest association with a certain attribute, assigning the attribute to the interest tendency of all the candidate terminals supporting the voter terminal; if the candidate terminal does not have strong benefit correlation with any attribute voter terminal, the benefit tendency of the supporting voter terminal is assigned to be 0; the interest tendency of the voter terminal which has the voting right but does not participate in the voting is assigned to be null; if no election or voting is being attended because of lost election participation, the benefit propensity value is null.
In another embodiment, step S23 may also refer to the process shown in fig. 3, which includes performing a supporter component analysis by the candidate terminal, and performing two possible analyses on whether the number of supporters of the candidate node reaches the probability score; and judging the size of the supporter book and the probability number, if the number of the supporters is large, selecting a strong interest correlation attribute by using the interest correlation index based on the exceeding probability number, otherwise, selecting the strong interest correlation attribute based on the interest correlation index of the dominance attribute, and recording the voting tendency assignment of the supporters.
If the current network has c candidate terminals and the voting behaviors of the voter terminals are independent, the probability P of obtaining a vote by a candidate node is 1/c, and the probability vote number is nodeNum P, wherein nodeNum refers to the total number of the voter nodes in the whole network.
The benefit correlation index based on the excess probability number is obtained according to a logistic regression model, and the calculation formula of the benefit correlation index is as follows:
R(x)=1/(1+e(-10r+5))。
benefit-related indices based on dominance attributes:
in election, a part of candidate nodes may be supported by only a few nodes, in this case, the supporter needs to analyze voter attributes that the supporter has critical influence on the candidate nodes, and the critical influence is analyzed from both vote proportion and member proportion: the member proportion refers to the proportion of the number of the nodes with the same attribute to the total number of supporters, and if the number of voter nodes with certain attribute in the supporters is large, the attribute is judged to be in strong interest association with the candidate node; the vote proportion refers to the proportion of voter votes with the same attribute to total votes of supporters, and if the vote sum of the supporters with the same attribute accounts for a large proportion of votes obtained by the candidate node, the attribute is judged to be in strong interest association with the candidate node. And (3) using a benefit correlation index calculation function, wherein r in the formula 1 is a node ratio example of supporters in a certain group in the total supporters.
In one embodiment, step S24 includes:
s241: the attribute A is divided into N dimensions, and the marking method can comprise the following steps:
labelidimension 1, dimension 2, …, dimension N;
assuming that the attribute A is now divided into 5 dimensions, the labeling method is as follows:
as shown in fig. 4, if the interest trend of the voter terminal is dimension X, setting dimension X to 1 and setting other dimensions to 0; if the voter terminal does not vote or has no obvious interest tendency, setting the null dimension to be 1 and setting other dimensions to be 0; subtracting 1 from the subscript i of label in the ith marking, and emptying the label until the subscript i is lower than-m + 1;
s242: group label Group for calculating voter terminal nnThe calculation method is
Figure BDA0002214290660000082
The node group division rule is as follows:
a rule (1) that the digital currency terminal is declared as a candidate terminal in advance before participating in the election of the accounting node;
rule (2) that the digital currency terminals participating in the election for times less than m' and the nodes not participating in the election for a long time are divided into unrelated groups due to unclear interest relationship; nodes without obvious voting preference are classified as unrelated groups;
rule (3), the benefit tendency label of the candidate terminal is consistent with the benefit tendency label of the voter terminal, and the set candidate terminal benefit tendency label is used as a group division basis for participating in election once as the candidate terminal and then as a node for the voter terminal to participate in voting;
s243: for a voter terminal with a certain interest group label, if the group with the label exists, adding the voter terminal into the group; and if the group with the label does not exist, creating a new group, and adding the voter terminal into the group.
In one embodiment, step S25 includes:
s251: balancing the overall rights and interests of each group to ensure the voting rights of different interest groups; group interest factor GiThe calculation formula is as follows:
Gi=αWi/W+βNi/N
s252: wherein, WiRepresenting the total amount of i wealth of the group, W is the total amount of the network wealth, NiThe number of members with voting right in the group i, N is the number of all nodes with voting right in the network, and alpha is a wealth coefficient; beta is a range coefficient, and alpha + beta is 1, and alpha is less than beta; the voting right judgment formula is as follows:
Figure BDA0002214290660000091
wherein, VotePowerijIs a Boolean value which indicates whether the jth digital currency terminal in the group i has the voting right, WijThe number of the held digital currencies of the jth digital currency terminal in the group i is calculated;
s253: recording and calculating a vote result of the candidate terminal; and (5) publishing the counting result in the blockchain network, and finishing the election.
In addition, in step S3, the respective digital money terminals are equal, and any one of the digital money terminals may initiate a transaction process to the other digital money terminal and generate transaction information.
In one embodiment, the step S3 includes:
s31: the method comprises the steps that a digital currency terminal of a payer initiates a transaction to a digital currency terminal of the payer, wherein transaction information comprises information of both parties of the transaction, a digital signature, an amount and a timestamp, the information of both parties is encrypted by adopting a Hash algorithm, and the digital signature is used for verifying identity information;
s32: the accounting node checks the transaction information, including account verification, whether the balance of the account of the payer supports the delivery and the like; if the transaction is illegal, discarding the transaction information, and if the transaction is legal, packaging the information and other legal information into a block and broadcasting the block into a block chain network;
s33: other digital currency terminals in the block chain network receive the block and verify the block information, if the block is a legal block, the block is recorded to the local, and if the block is illegal, the block is discarded; after the block verification is successful, the balance of the payer and the payee is increased or decreased according to the transaction information;
s34: accounting performance according to each accounting node: if the block is missed, allocating the accounting reward according to the legal block proportion.
Step S4 short period billing period is allocated by the long-term billing node or by the short-term billing node of the previous round; generally, the first round of short period billing period is distributed by the long-term billing node, and the second and subsequent short period billing periods are distributed by the short-term billing node of the previous round. Of course, it may also be decided by both short-term and long-term billing nodes.
In addition, the number of the long-term accounting nodes is less than 50% of the number of all the accounting nodes so as to ensure the dispersion of the authority. The specific number should be determined by the actual circumstances of the application scenario.
In an embodiment, the election process of the short-term accounting node in the present invention may further include, as shown in fig. 5, acquiring voting rights by the new digital currency terminals, performing group division on the new digital currencies, starting election after the division is completed, and dividing the terminals into candidate terminals participating in election, unrelated terminals not participating in election, and voter terminals participating in voting; and after the voting of the terminals participating in the election is ended, completing the analysis of the supporter components, updating the tendency information, completing the analysis of the supporter of the voting object after the voting of the terminals participating in the voting is ended, updating the tendency information, performing rights and interests calculation, ending the election, and after the election is ended, returning to the group division process to continue the next round of election.
In one embodiment, the present invention is a blockchain-based digital currency transaction system, the system comprising:
a blockchain network for providing a blockchain network environment;
the user registration module is used for registering the digital currency terminal into the block chain network;
a digital money terminal for performing a main body of digital money transaction;
and the digital currency accounting module is used for recording the transaction process of each digital currency terminal.
Further, the digital currency accounting module comprises an election unit, an accounting unit and a broadcasting unit; the election unit is used for selecting a long-term accounting node and a short-term accounting node, and the accounting unit is used for appointing an accounting node to record the transaction process of the digital currency terminal; the broadcasting unit is used for broadcasting the transaction process of the digital currency terminal in the block chain network.
Further, as shown in fig. 6, the operation process includes, as shown in fig. 6, initializing the system, initially issuing digital currency, determining a block chain length period billing node by an election unit, determining a first election rule by a digital currency issuer, then electing a first short-term billing node by the election unit, after the election is completed, performing trial operation for judging the stability of the system, if the system is stable, directly performing subsequent short-term billing node election, determining the number of blocks in the block chain network, marking the node attribute, comparing the profit tendencies of the voter terminal, and deriving a profit group, calculating the profit value of the voter terminal, recording the bill of the digital currency transaction process by a bill element, broadcasting the bill by a broadcasting unit, allocating a short-term billing period by a last short-term billing node, completing the replacement of the billing node and deriving a block within the period, taking the block as a new parent block in the block chain, and continuing to generate the block chain; and after the block is finished, initiating new election of a short-term accounting node, starting a new round of new digital currency transaction process, and accounting through the accounting unit.
It is understood that some features of the method and system of the present invention may be mutually cited, and the present invention is not further specifically recited.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
The above-mentioned embodiments, which further illustrate the objects, technical solutions and advantages of the present invention, should be understood that the above-mentioned embodiments are only preferred embodiments of the present invention, and should not be construed as limiting the present invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A blockchain-based digital currency transaction method, the method comprising:
s1, registering each digital currency terminal in the blockchain network, and selecting a part of digital currency terminals as initial long-term accounting nodes;
s2, the long-term accounting node initiates elections of other digital currency terminals, each terminal determines a corresponding group coefficient according to the affiliated interest group, calculates the rights and interests value of each digital currency terminal, and determines the number of voted terminals, so that part of digital currency terminals are selected as short-term accounting nodes;
s3, the digital currency terminal initiates the transaction process to other digital currency terminals and generates transaction information;
s4, in the short-term accounting period, each long-term accounting node and each short-term accounting node monitor the transaction information in the block chain network in turn, exercise the accounting right in turn after verifying the transaction information, pack the digital currency transaction information into blocks and broadcast the blocks to the block chain network, and return to the step S2 to continue to elect a new short-term accounting node;
wherein the short term billing period is allocated by the long term billing node or by the short term billing node of the previous round.
2. The blockchain-based digital currency payment method according to claim 1, wherein the step S1 includes:
s11: building a block chain network, making relevant rules of digital currency and first-round accounting node election rules, and registering each digital currency terminal in the block chain network; issuing a block chain creation block as a parent block of the whole chain;
s12: the first round of accounting election rules are formulated; and determining an initial long-term accounting node in the block chain.
3. The blockchain-based digital currency transaction method according to claim 1, wherein the terminal number of votes determined in step S2 includes a terminal of short-term billing digital currency recording votes of other terminals of digital currency according to a billing criterion, wherein the billing criterion of the terminal of short-term billing digital currency is proposed by a digital currency seller or is used as a billing criterion through a node interest calculation method based on interest group power balance, and the method specifically includes: the election and ticket counting rule of the first short-term accounting node is formulated by the money sender according to the requirement; after the second election or the stable and formal operation of the network, a node interest calculation method based on the balance of rights of interest groups is used as a ticket counting criterion.
4. The blockchain-based digital currency transaction method according to claim 1, wherein the selection process of the short term billing node in step S2 comprises the steps of:
s21: determining the number of blocks linked on a block chain, and acquiring the state of each digital currency terminal in a corresponding block chain network;
s22: determining the attribute and the dimension needing to be marked according to the block chain network condition; and carrying out attribute marking on each digital currency terminal;
s23: dividing the digital currency terminal into a voter terminal and a candidate terminal, and marking the benefit tendency of the voter terminal;
s24: obtaining interest group marks according to the previous m interest trends of the voter terminal, and dividing the interest groups;
s25: determining a group coefficient according to the interest group to which each voter terminal belongs, calculating the rights and interests of the voter terminal, and recording the number of votes of corresponding candidate terminals selected by each voter terminal; the election is ended, and when the next election starts, the process returns to S21.
5. The blockchain-based digital currency transaction method according to claim 4, wherein the step S23 includes:
s231: counting the ratio of certain attribute information in a digital currency terminal in a block chain network;
s232: counting attribute information of all voters voting for a certain candidate terminal;
s233: judging whether the number of the voter terminals supporting the candidate terminals reaches a threshold S or not, and if so, judging whether the number of the voter terminals supporting the candidate terminals reaches the threshold S;
s234: if the value reaches the threshold value, calculating a benefit relation value of the candidate terminal and the attribute based on a benefit relation index calculation formula:
Figure FDA0002214290650000021
wherein r is expressed as an excess ratio,
Figure FDA0002214290650000022
a1representing an excess probability number;
Figure FDA0002214290650000023
a0representing the actual voting number of voter terminals with certain attributes; a represents the number of voter terminals with certain attributes; c represents the number of candidate terminals in the current block chain network; a is2Represents a maximum number of exceedables;
wherein R (x) is greater than a first threshold value R1If so, judging that the voter terminal with the attribute has strong interest association with the candidate terminal;
if the value does not reach the threshold value S, calculating the occupation ratio with certain attribute from the voter terminals supporting the candidate terminals; if the occupation ratio is larger than the threshold value L, judging that the voter terminal with the attribute has strong interest association with the candidate terminal; if the total vote count ratio with the same attribute in the vote counts obtained by the candidate terminal is greater than the threshold value M, the voter with the attribute is judgedThe terminal has strong interest association with the candidate terminal; if R (x) is greater than the second threshold value R2If so, judging that the voter terminal with the attribute has strong interest association with the candidate terminal;
s235: assigning values to the benefit tendency of all the voter terminals according to the benefit correlation between the voter terminals and the candidate terminals; if the candidate terminal has strong interest association with a certain attribute, assigning the attribute to the interest tendency of all the candidate terminals supporting the voter terminal; if the candidate terminal does not have strong benefit correlation with any attribute voter terminal, the benefit tendency of the supporting voter terminal is assigned to be 0; the interest tendency of the voter terminal which has the voting right but does not participate in the voting is assigned to be null; if no election or voting is being attended because of lost election participation, the benefit propensity value is null.
6. The blockchain-based digital currency transaction method according to claim 4, wherein the step S24 includes:
s241: the attribute A is divided into N dimensions, and then the marking method is as follows:
labelidimension 1, dimension 2, as, dimension N;
if the interest tendency of the voter terminal is dimension X, setting the dimension X to be 1 and setting other dimensions to be 0; if the voter terminal does not vote or has no obvious interest tendency, setting the null dimension to be 1 and setting other dimensions to be 0; subtracting 1 from the subscript i of label in the ith marking, and emptying the label until the subscript i is lower than-m + 1;
s242: group label Group for calculating voter terminal nnThe calculation method is
Figure FDA0002214290650000032
Figure FDA0002214290650000033
The node group division rule is as follows:
rule (1): the digital currency terminal is declared as a candidate terminal in advance before participating in the election of the accounting node;
rule (2): digital currency terminals participating in election times less than m' and nodes not participating in election for a long time are divided into unrelated groups due to the fact that interest relations of the digital currency terminals and the nodes are not clear; nodes without obvious voting preference are classified as unrelated groups;
rule (3): the benefit tendency labels of the candidate terminals are consistent with the benefit tendency labels of the voter terminals, and the set benefit tendency labels of the candidate terminals are used as the group division basis for the nodes which are used as the candidate terminals to participate in the election and then used as the voter terminals to participate in the voting;
s243: for a voter terminal with a certain interest group label, if the group with the label exists, adding the voter terminal into the group; and if the group with the label does not exist, creating a new group, and adding the voter terminal into the group.
7. The blockchain-based digital currency transaction method according to claim 4, wherein the step S25 includes:
s251: balancing the overall rights and interests of each group to ensure the voting rights of different interest groups; group interest factor GiThe calculation formula is as follows:
Gi=αWi/W+βNi/N
s252: wherein, WiRepresenting the total amount of i wealth of the group, W is the total amount of the network wealth, NiThe number of members with voting right in the group i, N is the number of all nodes with voting right in the network, and alpha is a wealth coefficient; beta is a range coefficient, and alpha + beta is 1, and alpha is less than beta; the voting right judgment formula is as follows:
wherein, VotePowerijIs a Boolean value which indicates whether the jth digital currency terminal in the group i has the voting right, WijThe number of the held digital currencies of the jth digital currency terminal in the group i is calculated;
s253: recording and calculating a vote result of the candidate terminal; and (5) publishing the counting result in the blockchain network, and finishing the election.
8. The blockchain-based digital currency transaction method according to claim 1, wherein the step S3 includes:
s31: the method comprises the steps that a digital currency terminal of a payer initiates a transaction to a digital currency terminal of the payer, wherein transaction information comprises information of both parties of the transaction, a digital signature, an amount and a timestamp, the information of both parties is encrypted by adopting a Hash algorithm, and the digital signature is used for verifying identity information;
s32: the accounting node checks the transaction information, including account verification and whether the balance of the account of the payer supports the delivery; if the transaction is illegal, discarding the transaction information, and if the transaction is legal, packaging the information and other legal information into a block and broadcasting the block into a block chain network;
s33: other digital currency terminals in the block chain network receive the block and verify the block information, if the block is a legal block, the block is recorded to the local, and if the block is illegal, the block is discarded; after the block verification is successful, the balance of the payer and the payee is increased or decreased according to the transaction information;
s34: accounting performance according to each accounting node: if the block is missed, allocating the accounting reward according to the legal block proportion.
9. A blockchain-based digital currency transaction system, the system comprising:
a blockchain network for providing a blockchain network environment;
the user registration module is used for registering the digital currency terminal into the block chain network;
a digital money terminal for performing a main body of digital money transaction;
and the digital currency accounting module is used for recording the transaction process of each digital currency terminal.
10. The blockchain-based digital currency transaction system according to claim 9, wherein the digital currency accounting module includes an election unit, an accounting unit, and a broadcasting unit; the election unit is used for selecting a long-term accounting node and a short-term accounting node, and the accounting unit is used for appointing an accounting node to record the transaction process of the digital currency terminal; the broadcasting unit is used for broadcasting the transaction process of the digital currency terminal in the block chain network.
CN201910909474.0A 2019-09-25 2019-09-25 Block chain-based digital currency transaction method and system Pending CN110689331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910909474.0A CN110689331A (en) 2019-09-25 2019-09-25 Block chain-based digital currency transaction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910909474.0A CN110689331A (en) 2019-09-25 2019-09-25 Block chain-based digital currency transaction method and system

Publications (1)

Publication Number Publication Date
CN110689331A true CN110689331A (en) 2020-01-14

Family

ID=69110192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910909474.0A Pending CN110689331A (en) 2019-09-25 2019-09-25 Block chain-based digital currency transaction method and system

Country Status (1)

Country Link
CN (1) CN110689331A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111626718A (en) * 2020-05-19 2020-09-04 石家庄科林电气股份有限公司 Intelligent electric energy meter with block chain function support
CN111695886A (en) * 2020-06-12 2020-09-22 百度在线网络技术(北京)有限公司 Accounting method and device for virtual currency, electronic equipment and readable storage medium
CN111695903A (en) * 2020-06-24 2020-09-22 杨刘琴 Information flow analysis method based on block chain and mobile internet and cloud computing platform
CN111695128A (en) * 2020-06-15 2020-09-22 中国银行股份有限公司 Data processing method and device for block chain network for data asset allocation
CN112036849A (en) * 2020-08-27 2020-12-04 杭州云象网络技术有限公司 Cross-border payment system and method based on distributed account book technology
CN112529703A (en) * 2020-11-23 2021-03-19 中国联合网络通信集团有限公司 Accounting node selection method and device for block chain
CN113450093A (en) * 2021-07-06 2021-09-28 山西特信环宇信息技术有限公司 Real-time consensus authentication method and system for digital change wallet based on cone block chain
CN114745201A (en) * 2022-05-07 2022-07-12 北京航空航天大学 Data access privacy protection system and method based on block chain and attribute encryption
CN115529187A (en) * 2022-09-30 2022-12-27 中国农业银行股份有限公司 Information processing method, device, equipment and storage medium based on distributed network
CN116862513A (en) * 2023-08-30 2023-10-10 环球数科集团有限公司 High-safety public payment system based on PoS consensus
CN117436877A (en) * 2023-12-14 2024-01-23 山东维平信息安全测评技术有限公司 Transaction privacy protection method based on blockchain
CN117579633A (en) * 2024-01-17 2024-02-20 腾讯科技(深圳)有限公司 Block election method, device, equipment and storage medium

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111626718B (en) * 2020-05-19 2023-07-14 石家庄科林电气股份有限公司 Intelligent electric energy meter with block chain function support
CN111626718A (en) * 2020-05-19 2020-09-04 石家庄科林电气股份有限公司 Intelligent electric energy meter with block chain function support
CN111695886A (en) * 2020-06-12 2020-09-22 百度在线网络技术(北京)有限公司 Accounting method and device for virtual currency, electronic equipment and readable storage medium
CN111695886B (en) * 2020-06-12 2023-08-11 百度在线网络技术(北京)有限公司 Virtual currency accounting method and device, electronic equipment and readable storage medium
CN111695128B (en) * 2020-06-15 2023-11-21 中国银行股份有限公司 Data processing method and device for block chain network for data asset allocation
CN111695128A (en) * 2020-06-15 2020-09-22 中国银行股份有限公司 Data processing method and device for block chain network for data asset allocation
CN111695903A (en) * 2020-06-24 2020-09-22 杨刘琴 Information flow analysis method based on block chain and mobile internet and cloud computing platform
CN112036849A (en) * 2020-08-27 2020-12-04 杭州云象网络技术有限公司 Cross-border payment system and method based on distributed account book technology
CN112036849B (en) * 2020-08-27 2024-03-12 杭州云象网络技术有限公司 Cross-border payment system and method based on distributed account book technology
CN112529703B (en) * 2020-11-23 2023-09-01 中国联合网络通信集团有限公司 Method and device for selecting accounting node of blockchain
CN112529703A (en) * 2020-11-23 2021-03-19 中国联合网络通信集团有限公司 Accounting node selection method and device for block chain
CN113450093A (en) * 2021-07-06 2021-09-28 山西特信环宇信息技术有限公司 Real-time consensus authentication method and system for digital change wallet based on cone block chain
CN113450093B (en) * 2021-07-06 2023-02-24 山西特信环宇信息技术有限公司 Real-time consensus authentication method and system for digital change wallet based on cone block chain
CN114745201A (en) * 2022-05-07 2022-07-12 北京航空航天大学 Data access privacy protection system and method based on block chain and attribute encryption
CN115529187A (en) * 2022-09-30 2022-12-27 中国农业银行股份有限公司 Information processing method, device, equipment and storage medium based on distributed network
CN116862513A (en) * 2023-08-30 2023-10-10 环球数科集团有限公司 High-safety public payment system based on PoS consensus
CN116862513B (en) * 2023-08-30 2023-11-07 环球数科集团有限公司 High-safety public payment system based on PoS consensus
CN117436877A (en) * 2023-12-14 2024-01-23 山东维平信息安全测评技术有限公司 Transaction privacy protection method based on blockchain
CN117436877B (en) * 2023-12-14 2024-03-22 山东维平信息安全测评技术有限公司 Transaction privacy protection method based on blockchain
CN117579633A (en) * 2024-01-17 2024-02-20 腾讯科技(深圳)有限公司 Block election method, device, equipment and storage medium
CN117579633B (en) * 2024-01-17 2024-04-09 腾讯科技(深圳)有限公司 Block election method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110689331A (en) Block chain-based digital currency transaction method and system
US10346815B2 (en) System and method of distributed, self-regulating, asset-tracking cryptocurrencies
Klages-Mundt et al. Stablecoins 2.0: Economic foundations and risk-based models
CN112184199A (en) Intelligent supply chain block chain BaaS cross-border digital payment platform
US20170243025A1 (en) System for external validation of distributed resource status
CN110458693A (en) A kind of automatic measures and procedures for the examination and approval of business loan, device, storage medium and electronic equipment
CN109685486A (en) A kind of polymeric chain framework based on block chain technology
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN105431878A (en) System and method for automatically providing a/r-based lines of credit to businesses
CN112182091B (en) Multi-source data integration method, system, storage medium and electronic device
CN110493187A (en) A kind of the verifying node electoral machinery and system of block chain
CN110866822A (en) Wind control management method and device for securitization of assets, electronic equipment and storage medium
CN112241891A (en) Charging transaction management system based on alliance chain
CN111539724A (en) Electronic commercial acceptance bill financing method and device based on block chain architecture
CN112991054A (en) Electric power futures contract design method based on block chain
US20240048383A1 (en) Decentralized system and method for mitigation of climate change
Jepkorir Challenges of implementing financial innovations by commercial banks in Kenya
CN116523670A (en) Credential management method, device, equipment and storage medium
EP4012642A2 (en) Blockchain-based outlet site selection method and apparatus, device and storage medium
CN114708041A (en) Industry data sharing method and system based on integral excitation and storage medium
TWM611735U (en) Temporary credit limit application system
CN113064837A (en) Database benchmark test method and device based on transaction scene
Harwick Signals and incentives in blockchain applications
CN110796535A (en) Debt repayment platform
JP6706584B2 (en) Information processing apparatus and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114

RJ01 Rejection of invention patent application after publication