CN108960828B - Bill management method, device, server and storage medium based on block chain - Google Patents

Bill management method, device, server and storage medium based on block chain Download PDF

Info

Publication number
CN108960828B
CN108960828B CN201810709875.7A CN201810709875A CN108960828B CN 108960828 B CN108960828 B CN 108960828B CN 201810709875 A CN201810709875 A CN 201810709875A CN 108960828 B CN108960828 B CN 108960828B
Authority
CN
China
Prior art keywords
financial institution
block
transaction
transaction amount
calculating
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
CN201810709875.7A
Other languages
Chinese (zh)
Other versions
CN108960828A (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.)
Northking Information Technology Co ltd
Original Assignee
Northking Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Northking Information Technology Co ltd filed Critical Northking Information Technology Co ltd
Priority to CN201810709875.7A priority Critical patent/CN108960828B/en
Publication of CN108960828A publication Critical patent/CN108960828A/en
Application granted granted Critical
Publication of CN108960828B publication Critical patent/CN108960828B/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
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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/12Accounting

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a bill management method, a bill management device, a bill management server and a storage medium based on a block chain. The method comprises the steps of sending transaction information of each financial institution to a current block; calculating the accumulated transaction amount value of each financial institution; determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution; and acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and transmitting the transaction fee to the financial institution which obtains the accounting right. The technical scheme provided by the invention applies the block chain technology to the field of financial instruments, firstly, the accumulated transaction amount value of each financial institution is calculated, and then the financial institution acquiring the accounting right in the block in the current region is determined according to the accumulated transaction amount value; the financial institution which does not obtain the accounting right pays the transaction fee to the financial institution which obtains the accounting right so as to prevent fraud in the transaction of the financial instruments and reduce the cost of the management of the financial instruments.

Description

Bill management method, device, server and storage medium based on block chain
Technical Field
The embodiment of the invention relates to a financial information processing technology, in particular to a bill management method, a bill management device, a bill management server and a storage medium based on a block chain.
Background
In recent years, financial bill business is rapidly developed, and the development of financial industry and related entity economy are promoted. However, due to the rapid development of current network technologies and electronic transaction services, fake ticket fraud is one of the potential risks mainly faced by financial instrument transactions.
In order to reduce the risk of financial bill transaction business and promote the benign development of financial bill business, the current main method of financial bill transaction is to rely on the means of image interception of bills or electronic verification of bill seal and the like to prevent the bill transaction.
The image interception of the bill means that the image of the bank bill is input into a computer system by utilizing an image digitization technology device, so that the long-term storage, intelligent query, seal authenticity identification and scientific management of bank files are really realized, but a fraudster can implement frauds only by acquiring the bill content and the bill format.
The electronic verification of bill seal is to use color camera as input means to input standard impression, use special hardware compression card to compress seal image, and use special transparent certificate and reserved transparent seal to make overlap comparison and diagonal cutting to identify whether bill is legal or not. Although financial fraud can be prevented in most cases by means of electronic verification, the required cost is high, and in the case of internal and external serial communication crimes, the electronic verification method is difficult to avoid fraud cases.
Disclosure of Invention
The invention provides a bill management method, a bill management device, a server and a storage medium based on a block chain, which are used for preventing fraud aiming at financial bill transaction and reducing the cost of financial bill management.
In a first aspect, an embodiment of the present invention provides a method for bill management based on a block chain, where the method includes:
transmitting transaction information of each financial institution to the current block;
calculating the accumulated transaction amount value of each financial institution;
determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution;
and acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and sending the transaction fee to the financial institution which obtains the accounting right.
In a second aspect, an embodiment of the present invention further provides a device for bill management based on a block chain, where the device includes: the device comprises a sending module, a calculating module, a determining module and an acquiring module; wherein,
the sending module is used for sending the transaction information of each financial institution to the current block;
the calculation module is used for calculating the accumulated transaction amount value of each financial institution;
the determining module is used for determining the financial institution acquiring the accounting right in the block body in the current region according to the accumulated transaction amount value of each financial institution;
the acquisition module is used for acquiring the transaction fee paid by the financial institution which does not obtain the accounting right in the current block;
the sending module is further configured to send the transaction fee to a financial institution that obtains the accounting right.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a blockchain based ticket management method as in any one of the first aspects above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for block chain based ticket management according to any one of the above first aspects.
The invention transmits the transaction information of each financial institution to the current block; calculating the accumulated transaction amount value of each financial institution; determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution; and acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and transmitting the transaction fee to the financial institution which obtains the accounting right. The technical scheme provided by the invention applies the block chain technology to the field of financial instruments, firstly, the accumulated transaction amount value of each financial institution is calculated, and then the financial institution acquiring the accounting right in the block in the current region is determined according to the accumulated transaction amount value; the financial institution which does not obtain the accounting right pays the transaction fee to the financial institution which obtains the accounting right so as to prevent fraud in the transaction of the financial instruments and reduce the cost of the management of the financial instruments.
Drawings
FIG. 1 is a flowchart of a block chain-based ticket management method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a block chain-based ticket management method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a block chain-based bill management device in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a block chain-based bill management method in a first embodiment of the present invention, which is applicable to a case of financial institution bill transaction management, and the method can be executed by a block chain-based bill management device, as shown in fig. 1, the method mainly includes the following steps:
and S110, transmitting the transaction information of each financial institution to the current block.
In this embodiment, the financial institution that will need to conduct the financial instrument transaction sends the transaction information into the tile currently being generated by the tile chain.
In this embodiment, a block body for accommodating transaction information is created in the block chain, where the size of the storage space of each block body is d (mb), and the size of the storage space occupied by each transaction information is F1(KB), the total number of transaction messages that can be accommodated by a block is S1024 × D/F1
In this embodiment, whether to generate a new block is determined according to the interval time and the transaction amount. When the interval time reaches the preset time T1, a new tile is generated. Or when the interval time does not reach the preset time T1, but the total number of the transaction information in the current block reaches S-1024D/F1Then a new block is generated. After the new block body is generated, the new block body is used as the currently generated block body to receive the transaction information of each financial institution.
In this embodiment, it should be noted that after each transaction message is finished, a HASH value is generated according to the current transaction data, and the HASH values of all transaction messages form a MERKLE tree for verifying the authenticity of each transaction. After the HASH value is generated, no rights are modified by any financial institution.
And S120, calculating the accumulated transaction amount value of each financial institution.
In the embodiment, the calculating the accumulated transaction amount value of each financial institution comprises the following steps: judging whether the current zone block is the first zone block of the block chain; when the current block is the first block of the block chain, calculating the accumulated trading amount value of each financial institution in the current block; and when the current block is not the first block of the block chain, calculating the accumulated transaction amount value of each financial institution in the preset number of blocks.
And S130, determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution.
In this embodiment, the accumulated transaction amount values of the financial institutions in the current block are sorted from large to small according to the accumulated transaction amount values of the financial institutions, and the financial institution with the accumulated transaction amount value ranked first is determined as the financial institution with the accounting right in the current block.
And S140, acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and sending the transaction fee to the financial institution which obtains the accounting right.
In this embodiment, in the current block, the financial institution that does not obtain the accounting right needs to pay the transaction fee to the financial institution that obtains the accounting right.
In this embodiment, the transaction fee of the financial institution that does not obtain the accounting right in the current block is calculated, wherein the transaction fee calculation formula is:
Figure BDA0001716400940000051
wherein C is the transaction of financial institution which does not obtain the accounting right in the current blockThe cost is easy; x denotes the number of financial institutions from which no accounting right is obtained, HxRepresenting a transaction fee to be paid by the financial institution x for the first participation in the transaction within consecutive M blocks or K blocks; exIndicating the number of transactions of financial institution x within consecutive M blocks or K blocks.
The embodiment of the invention provides a bill management method based on a block chain, which is characterized in that transaction information of each financial institution is sent to a current block; calculating the accumulated transaction amount value of each financial institution; determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution; and acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and transmitting the transaction fee to the financial institution which obtains the accounting right. The technical scheme provided by the invention applies the block chain technology to the field of financial instruments, firstly, the accumulated transaction amount value of each financial institution is calculated, and then the financial institution acquiring the accounting right in the block in the current region is determined according to the accumulated transaction amount value; the financial institution which does not obtain the accounting right pays the transaction fee to the financial institution which obtains the accounting right so as to prevent fraud in the transaction of the financial instruments and reduce the cost of the management of the financial instruments.
Example two
Fig. 2 is a flowchart of a block chain-based ticket management method in the second embodiment of the present invention, and this embodiment further optimizes the block chain-based ticket management method, as shown in fig. 2, the method mainly includes the following steps:
and S210, transmitting the transaction information of each financial institution to the current block.
In this embodiment, whether to generate a new block is determined according to the interval time and the transaction amount. When the interval time reaches the preset time T1, a new tile is generated. Or when the interval time does not reach the preset time T1, but the total number of the transaction information in the current block reaches S-1024D/F1Then a new block is generated. After the new block body is generated, the new block body is used as the currently generated block body to receive the transaction information of each financial institution.
S220, judging whether the current zone block is the first zone block of the block chain.
And judging whether the current block is the first block of the block chain or not according to the position of the current block in the block chain.
And S230, when the current zone block is the first zone block of the zone chain, calculating the accumulated trading amount value of each financial institution in the current zone block.
In this embodiment, the accumulated transaction amount value of each financial institution in the current block is the accumulated transaction amount value of each financial institution.
And S240, when the current block is not the first block of the block chain, calculating the accumulated transaction amount value of each financial institution in the preset number of blocks.
Further, when the current block is not the first block of the block chain, calculating the number of generated blocks in the block chain; when the number of the generated block bodies is less than or equal to the preset number, calculating the accumulated trading volume value of each financial institution in the generated block bodies, wherein the calculation formula is as follows:
Figure BDA0001716400940000071
wherein i denotes a financial institution i, j denotes a financial institution j, M denotes a reference number of block bodies, M denotes the number of generated block bodies, Q denotes the total number of financial institutions, Q denotes the total number of financial institutionsijmRepresenting the transaction amount of the financial institution i and the financial institution j in the block body with the reference number m; alpha is alphaijRepresenting the influence factor between financial institution i and financial institution j, AiRefers to the cumulative transaction amount value of the financial institution i in the current block.
In this embodiment, the number of generated blocks in the block chain is M, and the number of generated blocks is less than the preset number K. The first block of the block chain is numbered 1, and the blocks are numbered according to the time sequence of generating the blocks, so that the current block is numbered M. The total number of financial institutions participating in the transaction is Q, the financial machineThe transaction amount of the organization i and the financial organization j in the block M (M is less than or equal to M) is recorded as qijm(ii) a Counting the number N of transactions between financial institution i and financial institution j in M blocksij(i is not less than 1, j is not more than Q, i is not equal to j), and all N are calculatedijAverage value N ofm(ii) a Calculating the influence factor of the transaction between the financial institution i and the financial institution j according to the following formula Nij≥NmWhen the temperature of the water is higher than the set temperature,
Figure BDA0001716400940000081
otherwise alphaij1. Influence factor alphaijIs arranged to avoid cheating of transactions by two or more financial institutions for obtaining the right to book, according to the influence factor alphaijAnd calculating the time generated by the block body where the transaction is located, wherein the earlier the time is, the smaller the weight of the transaction amount of the block is.
Cumulative transaction amount value A of transaction of financial institution i in current blockiThe calculation formula of (2) is as follows:
Figure BDA0001716400940000082
calculating the accumulated transaction amount A of the financial institution i in the current block for transaction according to the aboveiThe calculation method of (2) calculates the accumulated transaction amount values of all financial institutions participating in the transaction in sequence.
Further, when the number of the generated block bodies is larger than or equal to the preset number, calculating the accumulated transaction amount value of each financial institution in the block bodies with the preset number; wherein, the calculation formula is:
Figure BDA0001716400940000083
wherein i represents a financial institution i, j represents a financial institution j, K represents the reference number of the block body, K represents the number of the block bodies with the preset number, Q represents the total number of the financial institutionijkRepresenting the transaction amount of the financial institution i and the financial institution j in the block body with the reference number k; alpha is alphaijRepresenting the influence factor between financial institution i and financial institution j, Ai' refers to the cumulative transaction amount value of the financial institution i in the K block.
In this embodiment, when the number M of the generated block bodies is greater than or equal to the preset number K. The number of the block in the current area is K, and the number of the continuous K-1 blocks before the block in the current area is 1 to K-1 according to the time sequence of generation. The total number of the financial institutions participating in the transaction is Q, and the transaction amount of the financial institution i and the financial institution j in the block k is recorded as Qijk(ii) a Counting the transaction times N of the financial institution i and the financial institution j in the K blocksij(i is not less than 1, j is not more than Q, i is not equal to j), and all N are calculatedijAverage value N ofk(ii) a Calculating the influence factor of the transaction between the financial institution i and the financial institution j according to the following formula: n is a radical ofij≥NkWhen the temperature of the water is higher than the set temperature,
Figure BDA0001716400940000084
otherwise alphaij' -1. Accumulated transaction amount value A of transaction of financial institution i in current blockiThe formula for calculation of' is:
Figure BDA0001716400940000091
calculating the accumulated transaction amount A of the financial institution i in the current block according to the aboveiThe' calculating method, which calculates the accumulated transaction amount of all financial institutions participating in the transaction in turn.
In this embodiment, the number of blocks of the accumulated transaction amount value of the financial institution is K consecutive blocks from the current block to the previous block, and the transaction amount value in the block before the K blocks is not calculated within the accumulated transaction amount value; the purpose of this is that even if a financial institution has a large amount of transactions, its effect on the cumulative transaction amount is only within K consecutive blocks.
In this embodiment, in M or K blocks, when the transaction between the financial frameworks is too frequent, the influence factor is smaller, and the weight value of the transaction amount in the block with the earlier generation time is relatively smaller. In addition, for the blocks with the number of the blocks spaced from the current block larger than K, the weight of the accumulated transaction amount value of the current block becomes 0, that is, the influence on the accumulated transaction amount value of the current block becomes 0. The calculation method can ensure that even if transaction cheating is carried out among the financial institutions, the probability of acquiring the accounting right is not greatly improved but is possibly reduced, and the maximum value of the transaction amount is not always controlled by one financial institution or a plurality of financial institutions.
And S250, determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution.
In this embodiment, the accumulated transaction amount values of the financial institutions in the current block are sorted from large to small according to the accumulated transaction amount values of the financial institutions, and the financial institution with the accumulated transaction amount value ranked first is determined as the financial institution with the accounting right in the current block.
And S260, acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and sending the transaction fee to the financial institution which obtains the accounting right.
The embodiment of the invention provides a bill management method based on a block chain, which is characterized in that transaction information of each financial institution is sent to a current block; calculating the accumulated transaction amount value of each financial institution; determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution; and acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and transmitting the transaction fee to the financial institution which obtains the accounting right. The technical scheme provided by the invention applies the block chain technology to the field of financial instruments, firstly, the accumulated transaction amount value of each financial institution is calculated, and then the financial institution acquiring the accounting right in the block in the current region is determined according to the accumulated transaction amount value; the financial institution which does not obtain the accounting right pays the transaction fee to the financial institution which obtains the accounting right so as to prevent fraud in the transaction of the financial instruments and reduce the cost of the management of the financial instruments.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a bill management device based on a block chain in a third embodiment of the present invention, which is applicable to bill management based on a block chain in this embodiment. As shown in fig. 3, the apparatus includes: a sending module 310, a calculating module 320, a determining module 330 and an obtaining module 340; wherein,
a sending module 310, configured to send transaction information of each financial institution to the current block;
a calculation module 320 for calculating the accumulated transaction amount value of each financial institution;
the determining module 330 is configured to determine, according to the accumulated transaction amount of each financial institution, a financial institution obtaining the accounting right in the current block;
an obtaining module 340, configured to obtain a transaction fee paid by a financial institution that does not obtain the billing right in the current block;
the sending module 310 is further configured to send the transaction fee to the financial institution obtaining the accounting right.
Further, the calculation module 320 includes: a judging unit and a calculating unit; wherein,
the judging unit is used for judging whether the current block is the first block of the block chain; the calculation unit is used for calculating the accumulated transaction amount value of each financial institution in the current block when the current block is the first block of the block chain; and the calculating unit is also used for calculating the accumulated transaction amount value of each financial institution in the preset number of blocks when the current block is not the first block of the block chain.
Specifically, the calculating unit is specifically configured to calculate the number of block bodies generated in the block chain; when the number of the generated block bodies is less than or equal to the preset number, calculating the accumulated transaction amount value of the financial institution in the generated block bodies, wherein the calculation formula is as follows:
Figure BDA0001716400940000111
wherein i represents a financial institution i, j represents a financial institution j, mReference numeral denoting block bodies, M denoting the number of generated block bodies, Q denoting the total number of financial institutions, QijmRepresenting the transaction amount in the zone block numbered m again for financial institution i and financial institution j; alpha is alphaijRepresenting the influence factor between financial institution i and financial institution j, AiRefers to the cumulative transaction amount value of the financial institution i in the current block.
Specifically, the calculating unit is further configured to calculate an accumulated transaction amount value of each financial institution in the block bodies with the preset number when the number of the generated block bodies is greater than or equal to the preset number; wherein, the calculation formula is:
Figure BDA0001716400940000112
wherein i represents a financial institution i, j represents a financial institution j, K represents the reference number of the block body, K represents the number of the block bodies with the preset number, Q represents the total number of the financial institutionijkRepresenting the transaction amount of the financial institution i and the financial institution j in the block body with the reference number k; alpha's'ijRepresenting the influence factor between financial institution i and financial institution j, Ai' refers to the cumulative transaction amount value of the financial institution i in the K block.
Specifically, the calculating module is further configured to calculate a transaction fee of a financial institution that does not obtain the accounting right in the current block, where the transaction fee calculation formula is:
Figure BDA0001716400940000121
wherein, C is the transaction fee of the financial institution which does not obtain the accounting right in the current block; x represents the number of financial institutions that have not acquired a billing right, HxRepresenting a transaction fee to be paid by the financial institution x for the first participation in the transaction within consecutive M blocks or K blocks; exIndicating the number of transactions of financial institution x within consecutive M blocks or K blocks.
The embodiment of the invention provides a bill management device based on a block chain, which transmits the transaction information of each financial institution to the current block; calculating the accumulated transaction amount value of each financial institution; determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution; and acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and transmitting the transaction fee to the financial institution which obtains the accounting right. The technical scheme provided by the invention applies the block chain technology to the field of financial instruments, firstly, the accumulated transaction amount value of each financial institution is calculated, and then the financial institution acquiring the accounting right in the block in the current region is determined according to the accumulated transaction amount value; the financial institution which does not obtain the accounting right pays the transaction fee to the financial institution which obtains the accounting right so as to prevent fraud in the transaction of the financial instruments and reduce the cost of the management of the financial instruments.
The block chain-based bill management device provided by the embodiment of the invention can execute the block chain-based bill management method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a server in the fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary server 412 suitable for use in implementing embodiments of the present invention. The server 412 shown in fig. 4 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 4, the server 412 is in the form of a general purpose computing device. Components of server 412 may include, but are not limited to: one or more processors or processing units 416, a system memory 428, and a bus 418 that couples the various system components including the system memory 428 and the processing unit 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Server 412 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The server 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The server 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the server 412, and/or with any devices (e.g., network card, modem, etc.) that enable the server 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, server 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) through network adapter 420. As shown in FIG. 4, network adapter 420 communicates with the other modules of server 412 via bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 416 executes various functional applications and data processing by running programs stored in the system memory 428, for example, implementing a block chain based ticket management method provided by an embodiment of the present invention, the method includes:
transmitting transaction information of each financial institution to the current block;
calculating the accumulated transaction amount value of each financial institution;
determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution;
and acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and transmitting the transaction fee to the financial institution which obtains the accounting right.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement a block chain-based ticket management method provided in an embodiment of the present invention, where the method includes:
transmitting transaction information of each financial institution to the current block;
calculating the accumulated transaction amount value of each financial institution;
determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution;
and acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block, and transmitting the transaction fee to the financial institution which obtains the accounting right.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A bill management method based on a block chain is characterized by comprising the following steps:
transmitting transaction information of each financial institution to the current block;
calculating the accumulated transaction amount value of each financial institution;
determining the financial institution acquiring the accounting right in the block in the current region according to the accumulated transaction amount value of each financial institution;
acquiring the transaction fee of a financial institution which does not obtain the accounting right in the current block, and sending the transaction fee to the financial institution which obtains the accounting right;
calculating a cumulative transaction amount value for each financial institution, comprising:
judging whether the current zone block is the first zone block of the block chain;
calculating a cumulative transaction amount value for each financial institution in the current zone block when the current zone block is the first zone block of the chain of blocks;
when the current block is not the first block of the block chain, calculating the accumulated transaction amount value of each financial institution in a preset number of blocks;
wherein, calculate the accumulative transaction amount value of each financial institution in the block body of the preset quantity, including:
calculating the number of the block bodies generated in the block chain;
when the number of the generated block bodies is less than or equal to the preset number, calculating the accumulated trading volume value of each financial institution in the generated block bodies, wherein the calculation formula is as follows:
Figure FDA0003243609920000011
wherein i denotes a financial institution i, j denotes a financial institution j, M denotes a reference number of block bodies, M denotes the number of generated block bodies, Q denotes the total number of financial institutions, Q denotes the total number of financial institutionsijmRepresenting the transaction amount of the financial institution i and the financial institution j in the block body with the reference number m; alpha is alphaijRepresenting the influence factor between financial institution i and financial institution j, AiRefers to the accumulated transaction amount value of the financial institution i in the generated block.
2. The blockchain-based bill management method according to claim 1, wherein calculating a cumulative transaction amount value of each financial institution in a preset number of blocks further comprises:
when the number of the generated block bodies is larger than or equal to the preset number, calculating the accumulated transaction amount value of each financial institution in the block bodies with the preset number; wherein, the calculation formula is:
Figure FDA0003243609920000021
wherein i represents a financial institution i, j represents a financial institution j, K represents the reference number of the block body, K represents the number of the block bodies with the preset number, Q represents the total number of the financial institutionijkRepresenting the transaction amount of the financial institution i and the financial institution j in the block body with the reference number k; alpha's'ijRepresenting the influence factor between financial institution i and financial institution j, Ai' refers to the cumulative transaction amount value of the financial institution i in the K block.
3. The block chain based ticket management method of claim 1, wherein before acquiring the transaction fee of the financial institution which does not obtain the accounting right in the current block and sending the transaction fee to the financial institution which obtains the accounting right, further comprising:
calculating the transaction fee of the financial institution which does not obtain the accounting right in the current block, wherein the transaction fee calculation formula is as follows:
Figure FDA0003243609920000022
wherein, C is the transaction fee of the financial institution which does not obtain the accounting right in the current block; x denotes the number of financial institutions from which no accounting right is obtained, HxRepresenting a transaction fee to be paid by the financial institution x for the first participation in the transaction within consecutive M blocks or K blocks; exIndicating the number of transactions of financial institution x within consecutive M blocks or K blocks.
4. A block chain-based ticket management apparatus, comprising: the device comprises a sending module, a calculating module, a determining module and an acquiring module; wherein,
the sending module is used for sending the transaction information of each financial institution to the current block;
the calculation module is used for calculating the accumulated transaction amount value of each financial institution;
the determining module is used for determining the financial institution acquiring the accounting right in the block body in the current region according to the accumulated transaction amount value of each financial institution;
the acquisition module is used for acquiring the transaction fee paid by the financial institution which does not obtain the accounting right in the current block;
the sending module is further used for sending the transaction fee to the financial institution acquiring the accounting right;
the calculation module comprises: a judging unit and a calculating unit; wherein,
the judging unit is used for judging whether the current block is the first block of the block chain;
the calculating unit is used for calculating the accumulated trading amount value of each financial institution in the current zone block when the current zone block is the first zone block of the zone chain;
the calculating unit is further used for calculating the accumulated transaction amount value of each financial institution in the preset number of blocks when the current block is not the first block of the block chain;
the calculating unit is specifically used for calculating the number of the generated block bodies in the block chain; when the number of the generated block bodies is less than or equal to the preset number, calculating the accumulated transaction amount value of the financial institution in the generated block bodies, wherein the calculation formula is as follows:
Figure FDA0003243609920000031
wherein i denotes a financial institution i, j denotes a financial institution j, M denotes a reference number of block bodies, M denotes the number of generated block bodies, Q denotes the total number of financial institutions, Q denotes the total number of financial institutionsijmIndicating financial institution i and financial institution j atThe transaction amount in the zone block numbered m; alpha is alphaijRepresenting the influence factor between financial institution i and financial institution j, AiRefers to the accumulated transaction amount value of the financial institution i in the generated block.
5. The block chain-based bill management device according to claim 4, wherein the calculating unit is further configured to calculate the accumulated transaction amount value of each financial institution in the block of the preset number when the number of generated block is greater than or equal to the preset number; wherein, the calculation formula is:
Figure FDA0003243609920000041
wherein i represents a financial institution i, j represents a financial institution j, K represents the reference number of the block body, K represents the number of the block bodies with the preset number, Q represents the total number of the financial institutionijkRepresenting the transaction amount of the financial institution i and the financial institution j in the block body with the reference number k; alpha's'ijRepresenting the influence factor between financial institution i and financial institution j, Ai' refers to the cumulative transaction amount value of the financial institution i in the K block.
6. The blockchain-based ticket management apparatus of claim 4, comprising:
the calculation module is further used for calculating the transaction fee of the financial institution which does not obtain the accounting right in the current block, wherein the transaction fee calculation formula is as follows:
Figure FDA0003243609920000042
wherein, C is the transaction fee of the financial institution which does not obtain the accounting right in the current block; x represents the number of financial institutions that have not acquired a billing right, HxIndicates that the financial institution x participates in the transaction for the first time in M blocks or K blocksEase of transaction fees to be paid; exIndicating the number of transactions of financial institution x within consecutive M blocks or K blocks.
7. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the blockchain based ticket management method of any of claims 1-3.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a blockchain-based ticket management method according to any one of claims 1 to 3.
CN201810709875.7A 2018-07-02 2018-07-02 Bill management method, device, server and storage medium based on block chain Active CN108960828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810709875.7A CN108960828B (en) 2018-07-02 2018-07-02 Bill management method, device, server and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810709875.7A CN108960828B (en) 2018-07-02 2018-07-02 Bill management method, device, server and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN108960828A CN108960828A (en) 2018-12-07
CN108960828B true CN108960828B (en) 2021-12-17

Family

ID=64484642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810709875.7A Active CN108960828B (en) 2018-07-02 2018-07-02 Bill management method, device, server and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN108960828B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097006A (en) * 2016-06-09 2016-11-09 杭州复杂美科技有限公司 Block chain charge mode
CN107945020A (en) * 2017-11-28 2018-04-20 浙江师范大学 A kind of block chain is sustainable to dig ore deposit method and system
CN108053211A (en) * 2017-12-27 2018-05-18 北京欧链科技有限公司 Transaction processing method and device based on block chain
CN108182636A (en) * 2018-01-30 2018-06-19 杨显波 Block chain common recognition mechanism based on contribution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106097006A (en) * 2016-06-09 2016-11-09 杭州复杂美科技有限公司 Block chain charge mode
CN107945020A (en) * 2017-11-28 2018-04-20 浙江师范大学 A kind of block chain is sustainable to dig ore deposit method and system
CN108053211A (en) * 2017-12-27 2018-05-18 北京欧链科技有限公司 Transaction processing method and device based on block chain
CN108182636A (en) * 2018-01-30 2018-06-19 杨显波 Block chain common recognition mechanism based on contribution

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
区块链关键技术中的安全性研究;朱岩;《信息安全研究》;20161231;第2卷(第12期);全文 *

Also Published As

Publication number Publication date
CN108960828A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US11899629B2 (en) Decentralized database associating public keys and communications addresses
US20210326979A1 (en) Systems and methods for obtaining a mortgage payoff report
US11699131B2 (en) Distributed ledger system for automated claim adjudication
US20200184555A1 (en) Cryptographic monetary system for providing digital currency
CN111008895B (en) Internet finance repayment method, device, equipment and storage medium
US11374962B2 (en) Method and system for prevention of spam attacks on a blockchain network
WO2020103573A1 (en) Block chain-based network transaction signature method and device, and terminal equipment
CN109658234A (en) Payment beforehand method for computing data, device, computer equipment and storage medium
CN111984734A (en) Data processing method, device and equipment based on block chain and storage medium
CN111325546A (en) Block chain transaction system and method based on hardware wallet
CN110245182B (en) Method, apparatus, device and medium for processing distributed data
CN115187378A (en) Loan automatic repayment method, system, computer equipment and storage medium
CN108694588B (en) Virtual resource request method and terminal equipment
CN108960828B (en) Bill management method, device, server and storage medium based on block chain
CN111369347A (en) Service processing method, device, equipment and storage medium
CN111242785A (en) Bill processing method and device, electronic equipment and storage medium
CN111091457A (en) Big data-based accounting management method, device, equipment and medium
CN111626726A (en) Life payment method, device, equipment and storage medium
CN115471305A (en) Block chain-based electric charge reconciliation method, system, medium and electronic device
CN115545719A (en) ETC extended transaction real-time clearing settlement method based on digital RMB
CN110084611B (en) Numerical value transfer method, device, computer equipment and storage medium
CN112712353A (en) Digital currency change payment method, system and terminal
CN111127006A (en) Transaction processing method and system based on block chain
EP4390820A1 (en) Funding central bank digital currency (cbdc) wallet accounts
CN109559115A (en) A kind of method for building up, method of commerce and the relevant apparatus of intelligence contract

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant