CN109493048A - Financial accounting method, apparatus, equipment and storage medium based on block chain - Google Patents
Financial accounting method, apparatus, equipment and storage medium based on block chain Download PDFInfo
- Publication number
- CN109493048A CN109493048A CN201811379166.3A CN201811379166A CN109493048A CN 109493048 A CN109493048 A CN 109493048A CN 201811379166 A CN201811379166 A CN 201811379166A CN 109493048 A CN109493048 A CN 109493048A
- Authority
- CN
- China
- Prior art keywords
- financial
- cryptographic hash
- sffairs paper
- financial sffairs
- paper
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3827—Use of message hashing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
- G06Q40/125—Finance or payroll
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Storage Device Security (AREA)
Abstract
The present invention relates to a kind of financial accounting method, apparatus, equipment and storage mediums based on block chain.This method comprises: obtaining financial accounting data;Multiple financial sffairs papers are generated according to the financial accounting data;The corresponding key message of each financial sffairs paper is determined according to preset algorithm;The key message includes the cryptographic Hash of the financial sffairs paper;It, will be in each key message storage to block chain according to the incidence relation between each financial sffairs paper.Utilize this method, it is ensured that the key message of each financial sffairs paper generated during financial accounting is not lost, while being genuine and believable.
Description
Technical field
The present invention relates to financial software technical fields, more particularly to a kind of financial accounting method based on block chain, dress
It sets, equipment and storage medium.
Background technique
Currently, most of financial softwares are in user accounting, the generally first typing in a manner of bookkeeping voucher by business datum
Financial software eventually generates checkout voucher in bookkeeping voucher by audit and after transferring items, finally can be with using the checkout voucher
Generate financial statement.
When user needs to trace to the source to financial statement, user can part be real in a manner of " click jumps " in financial software
The trace-back process of existing financial accounting, such as from " subject balance table " backtracking " detail account ".Can thus user be made to see wealth
Some financial datas before business report generation.
But above-mentioned financial software is after accounting procedure, if user has distorted the financial data in financial software,
It is untrue so to will lead to the financial data that user's backtracking views.
Summary of the invention
Based on this, it is necessary to recall the financial data invalidity problem viewed for user, provide a kind of based on block
Financial accounting method, apparatus, equipment and the storage medium of chain.
A kind of financial accounting method based on block chain, comprising:
Obtain financial accounting data;
Multiple financial sffairs papers are generated according to the financial accounting data;
The corresponding key message of each financial sffairs paper is determined according to preset algorithm;The key message includes the wealth
The cryptographic Hash of business file;
It, will be in each key message storage to block chain according to the incidence relation between each financial sffairs paper.
In one of the embodiments, the method also includes:
Obtain book keeping operation retrospect request;The book keeping operation retrospect request includes the mark of financial sffairs paper to be traced;
It is traced and is requested according to the book keeping operation, the root cryptographic Hash of the financial sffairs paper to be traced is obtained from the block chain;
According to described cryptographic Hash, the association financial sffairs paper of the financial sffairs paper to be traced is traced.
It is described according to described cryptographic Hash in one of the embodiments, trace the association of the financial sffairs paper to be traced
Financial sffairs paper, comprising:
The determining and associated preposition cryptographic Hash of described cryptographic Hash;
According to the corresponding relationship between cryptographic Hash and financial sffairs paper, the preposition cryptographic Hash pair is traced from local data base
The association financial sffairs paper answered;The association financial sffairs paper be and the associated upper level financial sffairs paper of financial sffairs paper to be traced.
The corresponding relationship according between cryptographic Hash and financial sffairs paper in one of the embodiments, from local data
The corresponding association financial sffairs paper of the preposition cryptographic Hash is traced in library, comprising:
According to the corresponding relationship between the cryptographic Hash and financial sffairs paper, the preposition cryptographic Hash, the local number is inquired
According to library;
If there is financial sffairs paper corresponding with the preposition cryptographic Hash in the local data base, by the preposition Hash
It is worth corresponding financial sffairs paper and is determined as the association financial sffairs paper;
If there is no financial sffairs papers corresponding with the preposition cryptographic Hash in the local data base, it is determined that the association
Financial sffairs paper is tampered.
The book keeping operation retrospect request further includes user identifier in one of the embodiments,;It is described to be chased after according to the book keeping operation
It traces back request, the root cryptographic Hash of the financial sffairs paper to be traced is obtained from the block chain, comprising:
User right is determined according to the user identifier;
It is traced and is requested according to the book keeping operation, the financial sffairs paper to be traced under the user right is obtained from the block chain
Root cryptographic Hash.
The financial sffairs paper includes: in one of the embodiments,
Original certificate, bookkeeping voucher, audit voucher, voucher of transferring items, checkout voucher, detail account, general ledger, subject balance table and
At least one of financial statement.
The preset algorithm is hash algorithm in one of the embodiments,.
A kind of financial accounting device based on block chain, comprising:
Module is obtained, for obtaining financial accounting data;
Generation module, for generating multiple financial sffairs papers according to the financial accounting data;
Determining module, for determining the corresponding key message of each financial sffairs paper according to preset algorithm;The key
Information includes the cryptographic Hash of the financial sffairs paper;
Memory module, for according to the incidence relation between each financial sffairs paper, each key message storage to be arrived
On block chain.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Obtain financial accounting data;
Multiple financial sffairs papers are generated according to the financial accounting data;
The corresponding key message of each financial sffairs paper is determined according to preset algorithm;The key message includes the wealth
The cryptographic Hash of business file;
It, will be in each key message storage to block chain according to the incidence relation between each financial sffairs paper.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Obtain financial accounting data;
Multiple financial sffairs papers are generated according to the financial accounting data;
The corresponding key message of each financial sffairs paper is determined according to preset algorithm;The key message includes the wealth
The cryptographic Hash of business file;
It, will be in each key message storage to block chain according to the incidence relation between each financial sffairs paper.
The above-mentioned financial accounting method based on block chain, computer equipment obtain financial accounting data first, then basis
The financial accounting data generate multiple financial sffairs papers, determine the corresponding crucial letter of each financial sffairs paper then according to preset algorithm
Breath will be in the storage to block chain of each key message finally according to the incidence relation between each financial sffairs paper.The present embodiment
Method, since the key message of each financial sffairs paper being stored on block chain during financial accounting, and the letter on block chain
Breath can not be distorted again, therefore utilize the method for the present embodiment, it is ensured that each finance generated during financial accounting
The key message of file is not lost, while being genuine and believable.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the computer equipment that one embodiment provides;
Fig. 2 is the flow diagram for the financial accounting method based on block chain that one embodiment provides;
Fig. 3 is the schematic diagram of the incidence relation in one embodiment between multiple financial sffairs papers;
Fig. 4 is the flow diagram for the financial accounting method based on block chain that another embodiment provides;
Fig. 5 is the flow diagram for the financial accounting method based on block chain that another embodiment provides;
Fig. 6 is the flow diagram for the financial accounting method based on block chain that another embodiment provides;
Fig. 7 is the structural schematic diagram for the financial accounting device based on block chain that one embodiment provides;
Fig. 8 is the structural schematic diagram for the financial accounting device based on block chain that another embodiment provides.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Financial accounting method provided in an embodiment of the present invention based on block chain, can be adapted for computer shown in FIG. 1
Equipment.As shown in Figure 1, the computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external computer by network connection.When the computer program is executed by processor
To realize a kind of financial accounting method based on block chain.The display screen of the computer equipment can be liquid crystal display or electricity
Sub- ink display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer
Key, trace ball or the Trackpad being arranged on device housings can also be external keyboard, Trackpad or mouse etc..
It should be noted that structure shown in Fig. 1, the only block diagram of part-structure relevant to application scheme,
The restriction for the computer equipment being applied thereon to application scheme is not constituted, specific computer equipment may include ratio
More or fewer components as shown in the figure perhaps combine certain components or with different component layouts.
Before introducing specific embodiment, technical term involved in the embodiment of the present invention or concept are carried out here
It illustrates:
Block chain: it refers to that the distributed information system being made of multinode, its feature are cannot to be tampered, is suitble to trace back
Source requires.Block chain is that account book is shared using block chain type to verify algorithm of knowing together with storing data, using P2P distributed node
To generate the safety for guaranteeing data with more new data, in the way of cryptography and transmitting and accessing, utilize the foot by executing automatically
The intelligent contract of this code composition is notarized to program the distributed computing trustable network or calculating completely new with one kind of operation data
Network.
Financial accounting is traced to the source: being referred to by the process of financial statement backtracking and reverse tracking financial index.Financial accounting is traced to the source note
It has recorded each business datum to be entered into voucher circulation from voucher and generate the overall process of financial statement, user is all to cause voucher
The operation changed with report cryptographic Hash can all be written block chain and be reached common understanding in the form of transaction on block chain.The institute of user
There is operation to be all recorded on financial block chain, ensure that each financial data can be arrived by report and the reverse tracing of voucher
Original business datum.
In traditional technology, most of financial softwares are in user accounting, generally first by business datum with the side of bookkeeping voucher
Formula typing financial software eventually generates checkout voucher in bookkeeping voucher by audit and after transferring items, finally using the checkout with
Financial statement can be generated in card.When user needs to trace to the source to financial statement, user can be in financial software with " click jumps "
Mode part realize financial accounting trace-back process, thus can be used family see financial statement generate before some wealth
Business data.But above-mentioned financial software is after accounting procedure, if user has distorted the financial data in financial software, that
It is untrue to will lead to the financial data that user's backtracking views.Finance note provided in an embodiment of the present invention based on block chain
Account method, apparatus, computer equipment and storage medium, it is intended to solve the technical problem as above of traditional technology.
It should be noted that the executing subject of following methods embodiment can be the financial accounting device based on block chain,
The financial accounting device by block chain can be implemented as by way of software, hardware or software and hardware combining it is above-mentioned based on
Calculate some or all of of machine equipment.Following methods embodiment is illustrated so that executing subject is computer equipment as an example.
Fig. 2 is the flow diagram for the financial accounting method based on block chain that one embodiment provides.The present embodiment relates to
And be computer equipment how based on block chain carry out financial accounting detailed process.As shown in Fig. 2, this method may include
Following steps:
S201 obtains financial accounting data.
Specifically, computer equipment after obtaining the business datum of user, can choose newly-increased option, by the business number
It is added in computer equipment according to as financial accounting data.Optionally, above-mentioned newly-increased business datum can be one, can also
Be it is multiple, the present embodiment does not limit this.
S202 generates multiple financial sffairs papers according to the financial accounting data.
Specifically, computer equipment after obtaining financial accounting data, can save the finance in the local database
The all information of accounting data.Optionally, computer equipment can according to book keeping operation, the operation such as audit, transfer items, settle accounts, to the wealth
Business accounting data is handled, to obtain multiple financial sffairs papers, after computer equipment obtains multiple financial sffairs papers, can be incited somebody to action
The all information of multiple financial sffairs paper is saved in local data base.Wherein, all information of financial sffairs paper may include more
The respective mark of a financial sffairs paper, incidence relation between the respective financial data of multiple financial sffairs papers, multiple financial sffairs papers etc..
Wherein, the incidence relation between multiple financial sffairs papers may refer to Fig. 3.
Optionally, above-mentioned financial sffairs paper may include: original certificate, bookkeeping voucher, audit voucher, voucher of transferring items, checkout
At least one of voucher, detail account, general ledger, subject balance table and financial statement.Optionally, above-mentioned financial statement can be money
Produce debt ratio, profit flow table, cash flow statement etc..In addition, said one financial statement can correspond to a subject balance table, and one
A subject balance table can correspond to multiple general ledgers.
S203 determines the corresponding key message of each financial sffairs paper according to preset algorithm;The key message includes
The cryptographic Hash of the financial sffairs paper.
Optionally, above-mentioned preset algorithm can be hash algorithm.
Specifically, computer equipment can use hash algorithm respectively to multiple financial sffairs papers obtained above at
Reason, to can be obtained by the corresponding key message of multiple financial sffairs papers, wherein may include each in each key message
The cryptographic Hash of a financial sffairs paper can also include timestamp, mark of each financial sffairs paper etc..In addition, obtained above multiple
One-to-one relationship between financial sffairs paper and corresponding key message, i.e. a financial sffairs paper can only obtain one it is right
The key message answered.
S204 will be in each key message storage to block chain according to the incidence relation between each financial sffairs paper.
Specifically, there is incidence relation, for example, keeping accounts to original certificate between multiple financial sffairs papers obtained above
It can be obtained by bookkeeping voucher, carrying out audit to bookkeeping voucher can be obtained by audit voucher, the original certificate to bookkeeping voucher,
Arrive audit voucher again, between be one sequence execute process, i.e., by original certificate can only be associated with bookkeeping voucher without
Audit voucher can be directly linked to.Computer equipment can be according to the corresponding crucial letter of multiple financial sffairs papers obtained above
Incidence relation between breath and each financial sffairs paper, by the corresponding key message storage of multiple financial sffairs papers to block chain
On.Optionally, it also can have incidence relation between the corresponding key message of above-mentioned each financial sffairs paper.
The financial accounting method based on block chain in above-described embodiment utilizes area since this method is in accounting procedure
The key message of all financial sffairs papers generated in block chained record accounting procedure, and the information being recorded on block chain be can not
It distorts, therefore this method on the one hand can be the key message of each financial sffairs paper generated during financial accounting all truly
Record, on the other hand, exactly because the key message of the financial sffairs paper also recorded on block chain be it is genuine and believable, therefore
It can provide a reliable basis for the retrospect of subsequent financial sffairs paper.
Financial accounting method provided in this embodiment based on block chain, computer equipment obtain financial accounting number first
According to then generating multiple financial sffairs papers according to the financial accounting data, determine each financial sffairs paper pair then according to preset algorithm
The key message answered will be in the storage to block chain of each key message finally according to the incidence relation between each financial sffairs paper.
The method of the present embodiment, since the key message of each financial sffairs paper being stored on block chain during financial accounting, and area
Information on block chain can not distort again, therefore utilize the method for the present embodiment, it is ensured that raw during financial accounting
At the key message of each financial sffairs paper do not lose, while being genuine and believable.
Fig. 4 is the flow diagram for the financial accounting method based on block chain that another embodiment provides.The present embodiment
What is involved is computer equipments how based on above-mentioned financial accounting process, the detailed process traced to each financial sffairs paper.
On the basis of the above embodiments, as shown in figure 4, this method may also comprise the following steps::
S301 obtains book keeping operation retrospect request;The book keeping operation retrospect request includes the mark of financial sffairs paper to be traced.
Above-mentioned accounting procedure is carried out specifically, computer equipment after above-mentioned financial accounting process, can choose
Retrospect.The book keeping operation of computer equipment user available first traces request, and book keeping operation retrospect request may include text to be traced
The mark of part can also include the mark etc. of user.Optionally, above-mentioned file to be traced can be one, be also possible to it is multiple,
The present embodiment does not limit this.
S302 is traced according to the book keeping operation and is requested, and the root that the financial sffairs paper to be traced is obtained from the block chain is breathed out
Uncommon value.
Specifically, computer equipment is obtaining above-mentioned after the mark for tracing file, the file to be traced can use
Mark is matched with the key message stored in block chain, and the key message comprising the mark is that file to be traced is corresponding
Key message, the cryptographic Hash in the key message are the cryptographic Hash of above-mentioned file to be traced, which is denoted as root cryptographic Hash.
S303 traces the association financial sffairs paper of the financial sffairs paper to be traced according to described cryptographic Hash.
Specifically, computer equipment can find in the local database and be somebody's turn to do according to obtained above cryptographic Hash
The corresponding financial sffairs paper to be traced of root cryptographic Hash can inquire this and chase after according to the incidence relation between each financial sffairs paper later
Trace back the financial sffairs paper of file association, which is to be associated with financial sffairs paper.Optionally, which can
To be one, it can also be multiple, the present embodiment does not limit this.
Financial accounting method provided in this embodiment based on block chain, computer equipment is in above-mentioned financial accounting process knot
Shu Hou can choose and trace to each financial sffairs paper.In the present embodiment, computer equipment obtains book keeping operation retrospect first and asks
It asks, then according to book keeping operation retrospect request, the root cryptographic Hash of financial sffairs paper to be traced is obtained from block chain, is finally breathed out according to the root
Uncommon value, traces the association financial sffairs paper of financial sffairs paper to be traced.The method of the present embodiment, due to being to utilize the Hash on block chain
Value goes in local data base to carry out book keeping operation retrospect, and the information stored on block chain can not distort, and that is to say really,
Therefore the result of its book keeping operation retrospect is also genuine and believable.Therefore this method is utilized, financial accounting and finance retrospect can be improved
As a result confidence level.
Fig. 5 is the flow diagram for the financial accounting method based on block chain that another embodiment provides.The present embodiment
What is involved is computer equipments how according to root cryptographic Hash, traces the specific of the association financial sffairs paper of above-mentioned financial sffairs paper to be traced
Process.On the basis of the above embodiments, as shown in figure 5, above-mentioned S303 may comprise steps of:
S401, the determining and associated preposition cryptographic Hash of described cryptographic Hash.
Specifically, computer equipment can in block chain according to the incidence relation between each key message, using wait chase after
The first key message of file of tracing back finds the second key message associated with it, and the cryptographic Hash for including in second key message is i.e.
For preposition cryptographic Hash.Optionally, above-mentioned second key message can be one, can also be multiple, that is to say, that above-mentioned preposition
Cryptographic Hash can be one, can also be multiple.
S402 traces the preposition Kazakhstan according to the corresponding relationship between cryptographic Hash and financial sffairs paper from local data base
It is uncommon to be worth corresponding association financial sffairs paper;The association financial sffairs paper is and the associated upper level of financial sffairs paper to be traced is financial
File.
Optionally, computer equipment can be according to the corresponding relationship, above-mentioned preposition between the cryptographic Hash and financial sffairs paper
Cryptographic Hash inquires the local data base.That is, computer equipment, which can use preposition cryptographic Hash obtained above, goes this
It is inquired in ground database, determines that this is corresponding with the presence or absence of financial sffairs paper corresponding with the preposition cryptographic Hash in local data base
Financial sffairs paper is the corresponding association financial sffairs paper of above-mentioned preposition cryptographic Hash.In a kind of possible embodiment, if above-mentioned
There is financial sffairs paper corresponding with above-mentioned preposition cryptographic Hash in ground database, then by the corresponding financial sffairs paper of above-mentioned preposition cryptographic Hash
It is determined as above-mentioned association financial sffairs paper.In alternatively possible embodiment, if in above-mentioned local data base there is no with it is upper
State the corresponding financial sffairs paper of preposition cryptographic Hash, it is determined that above-mentioned association financial sffairs paper is tampered.
Financial accounting method provided in this embodiment based on block chain, computer equipment is in above-mentioned financial accounting process knot
Shu Hou can choose and trace to each financial sffairs paper.In the present embodiment, computer equipment first in block chain determine with
The associated preposition cryptographic Hash of above-mentioned cryptographic Hash, then according to the corresponding relationship between cryptographic Hash and financial sffairs paper, from local number
According to tracing the corresponding association financial sffairs paper of the preposition cryptographic Hash in library, wherein the association financial sffairs paper is and above-mentioned wealth to be traced
The upper level financial sffairs paper of business file association.Using the method for the present embodiment, when user has distorted some in local data base
When financial sffairs paper, computer equipment be tampered using the financial sffairs paper before cryptographic Hash, can not just look in the local database
To financial sffairs paper corresponding with the cryptographic Hash, therefore computer equipment is assured that out that the financial sffairs paper is tampered;In addition,
Due to the cryptographic Hash of the financial sffairs paper recorded on block chain using this method be it is not modifiable, that is to say it is true, therefore
It is searched whether in the local database using the cryptographic Hash on block chain there are the corresponding financial sffairs paper of the cryptographic Hash, obtained knot
Fruit is also true that.
Fig. 6 is the flow diagram for the financial accounting method based on block chain that another embodiment provides.The present embodiment
What is involved is above-mentioned book keeping operation retrospect request further include user identifier when, computer equipment how according to the book keeping operation trace request, from
The detailed process of the root cryptographic Hash of financial sffairs paper to be traced is obtained in block chain.On the basis of the above embodiments, such as Fig. 6 institute
Show, above-mentioned S302 may comprise steps of:
S501 determines user right according to the user identifier.
Specifically, above-mentioned user identifier can be title set by user, password etc., computer equipment can be according to the use
Family mark is matched with pre-set user identifier on block chain, if successful match, user can access the block
Chain, if matching is unsuccessful, user cannot access the block chain.
S502 traces according to the book keeping operation and requests, the wealth to be traced under the user right is obtained from the block chain
The root cryptographic Hash of business file.
Specifically, computer equipment is after determining user right, so that it may access the corresponding block chain of the user right
On information.Then, computer equipment can use the pass that stores in the mark and block chain of file to be traced obtained above
Key information is matched, the corresponding key message of the file as to be traced of the key message comprising the mark, in the key message
Cryptographic Hash be above-mentioned file to be traced cryptographic Hash, which is denoted as root cryptographic Hash.
Financial accounting method provided in this embodiment based on block chain, computer equipment is in above-mentioned financial accounting process knot
Shu Hou can choose and trace to each financial sffairs paper.In the present embodiment, computer equipment sets acquisition book keeping operation retrospect standby first
It requests, further includes user identifier in the Accounting Request, determine user right then according to the user identifier, it later can be according to upper
Book keeping operation retrospect request is stated, from the root cryptographic Hash of the financial sffairs paper to be traced obtained under the user right in block chain.Utilize this reality
On the one hand the method for applying example makes the key message that can store multiple and different users on block chain, on the other hand can make
Each user can only access the information in the block chain under own right, so as to protect different user privacy and can be with
Guarantee the safety that different user is operated on block chain.
It should be understood that although each step in the flow chart of Fig. 2,4-6 is successively shown according to the instruction of arrow,
It is these steps is not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
There is no stringent sequences to limit for rapid execution, these steps can execute in other order.Moreover, in Fig. 2,4-6 extremely
Few a part of step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps
Moment executes completion, but can execute at different times, and the execution sequence in these sub-steps or stage is also not necessarily
It successively carries out, but in turn or can be handed over at least part of the sub-step or stage of other steps or other steps
Alternately execute.
Fig. 7 is the structural schematic diagram for the financial accounting device based on block chain that one embodiment provides.As shown in fig. 7,
The apparatus may include: first obtains module 10, generation module 11, determining module 12, memory module 13.
Specifically, first obtains module 10, for obtaining financial accounting data;
Generation module 11, for generating multiple financial sffairs papers according to the financial accounting data;
Determining module 12, for determining the corresponding key message of each financial sffairs paper according to preset algorithm;The pass
Key information includes the cryptographic Hash of the financial sffairs paper;
Memory module 13, for according to the incidence relation between each financial sffairs paper, each key message to be stored
Onto block chain.
Financial accounting device provided in this embodiment based on block chain, can execute above method embodiment, realize
Principle is similar with technical effect, and details are not described herein.
Fig. 8 is the structural schematic diagram for the financial accounting device based on block chain that another embodiment provides.Such as Fig. 8 institute
Show, which can also include: the second acquisition module 14, third acquisition module 15, trace back block 16.
Specifically, second obtains module 14, for obtaining book keeping operation retrospect request;The book keeping operation retrospect request includes wait trace
The mark of financial sffairs paper;
Third obtains module 15, requests for being traced according to the book keeping operation, obtains from the block chain described wait trace
The root cryptographic Hash of financial sffairs paper;
Trace back block 16, for tracing the association financial sffairs paper of the financial sffairs paper to be traced according to described cryptographic Hash.
In one embodiment, continuing with referring to Fig. 8, as shown in figure 8, above-mentioned trace back block 16 may include: determine it is single
First 161, trace-back unit 162.
Specifically, determination unit 161, for the determining and associated preposition cryptographic Hash of described cryptographic Hash;
Trace-back unit 162, for being traced from local data base according to the corresponding relationship between cryptographic Hash and financial sffairs paper
The corresponding association financial sffairs paper of the preposition cryptographic Hash;The association financial sffairs paper is associated with the financial sffairs paper to be traced
Upper level financial sffairs paper.
In one embodiment, above-mentioned trace-back unit 162 is specifically used for according between the cryptographic Hash and financial sffairs paper
Corresponding relationship, the preposition cryptographic Hash, inquire the local data base;If existing and the preposition Kazakhstan in the local data base
The corresponding financial sffairs paper of the preposition cryptographic Hash is then determined as the association financial sffairs paper by the corresponding financial sffairs paper of uncommon value;If
There is no financial sffairs papers corresponding with the preposition cryptographic Hash in the local data base, it is determined that the association financial sffairs paper quilt
It distorts.
In one embodiment, above-mentioned third obtains module 15, is specifically used for above-mentioned second and obtains note described in module 14
When account retrospect request further includes user identifier, user right is determined according to the user identifier;It is asked further according to book keeping operation retrospect
It asks, the root cryptographic Hash of the financial sffairs paper to be traced under the user right is obtained from the block chain.
In one embodiment, the financial sffairs paper include: original certificate, bookkeeping voucher, audit voucher, voucher of transferring items,
At least one of checkout voucher, detail account, general ledger, subject balance table and financial statement.
In one embodiment, the preset algorithm is hash algorithm.
Financial accounting device provided in this embodiment based on block chain, can execute above method embodiment, realize
Principle is similar with technical effect, and details are not described herein.
In one embodiment, a kind of computer equipment is provided, comprising: memory and processor, the memory are deposited
Computer program is contained, the processor performs the steps of when executing the computer program
Obtain financial accounting data;
Multiple financial sffairs papers are generated according to the financial accounting data;
The corresponding key message of each financial sffairs paper is determined according to preset algorithm;The key message includes the wealth
The cryptographic Hash of business file;
It, will be in each key message storage to block chain according to the incidence relation between each financial sffairs paper.
In one embodiment, it is also performed the steps of when the processor executes the computer program
Obtain book keeping operation retrospect request;The book keeping operation retrospect request includes the mark of financial sffairs paper to be traced;
It is traced and is requested according to the book keeping operation, the root cryptographic Hash of the financial sffairs paper to be traced is obtained from the block chain;
According to described cryptographic Hash, the association financial sffairs paper of the financial sffairs paper to be traced is traced.
In one embodiment, it is also performed the steps of when the processor executes the computer program
The determining and associated preposition cryptographic Hash of described cryptographic Hash;
According to the corresponding relationship between cryptographic Hash and financial sffairs paper, the preposition cryptographic Hash pair is traced from local data base
The association financial sffairs paper answered;The association financial sffairs paper be and the associated upper level financial sffairs paper of financial sffairs paper to be traced.
In one embodiment, it is also performed the steps of when the processor executes the computer program
According to the corresponding relationship between the cryptographic Hash and financial sffairs paper, the preposition cryptographic Hash, the local number is inquired
According to library;
If there is financial sffairs paper corresponding with the preposition cryptographic Hash in the local data base, by the preposition Hash
It is worth corresponding financial sffairs paper and is determined as the association financial sffairs paper;
If there is no financial sffairs papers corresponding with the preposition cryptographic Hash in the local data base, it is determined that the association
Financial sffairs paper is tampered.
In one embodiment, it is also performed the steps of when the processor executes the computer program
User right is determined according to the user identifier;
It is traced and is requested according to the book keeping operation, the financial sffairs paper to be traced under the user right is obtained from the block chain
Root cryptographic Hash.
In one embodiment, the financial sffairs paper include: original certificate, bookkeeping voucher, audit voucher, voucher of transferring items,
At least one of checkout voucher, detail account, general ledger, subject balance table and financial statement.
In one embodiment, the preset algorithm is hash algorithm.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, it is described
It is performed the steps of when computer program is executed by processor
Obtain financial accounting data;
Multiple financial sffairs papers are generated according to the financial accounting data;
The corresponding key message of each financial sffairs paper is determined according to preset algorithm;The key message includes the wealth
The cryptographic Hash of business file;
It, will be in each key message storage to block chain according to the incidence relation between each financial sffairs paper.
In one embodiment, it is also performed the steps of when the computer program is executed by processor
Obtain book keeping operation retrospect request;The book keeping operation retrospect request includes the mark of financial sffairs paper to be traced;
It is traced and is requested according to the book keeping operation, the root cryptographic Hash of the financial sffairs paper to be traced is obtained from the block chain;
According to described cryptographic Hash, the association financial sffairs paper of the financial sffairs paper to be traced is traced.
In one embodiment, it is also performed the steps of when the computer program is executed by processor
The determining and associated preposition cryptographic Hash of described cryptographic Hash;
According to the corresponding relationship between cryptographic Hash and financial sffairs paper, the preposition cryptographic Hash pair is traced from local data base
The association financial sffairs paper answered;The association financial sffairs paper be and the associated upper level financial sffairs paper of financial sffairs paper to be traced.
In one embodiment, it is also performed the steps of when the computer program is executed by processor
According to the corresponding relationship between the cryptographic Hash and financial sffairs paper, the preposition cryptographic Hash, the local number is inquired
According to library;
If there is financial sffairs paper corresponding with the preposition cryptographic Hash in the local data base, by the preposition Hash
It is worth corresponding financial sffairs paper and is determined as the association financial sffairs paper;
If there is no financial sffairs papers corresponding with the preposition cryptographic Hash in the local data base, it is determined that the association
Financial sffairs paper is tampered.
In one embodiment, it is also performed the steps of when the computer program is executed by processor
User right is determined according to the user identifier;
It is traced and is requested according to the book keeping operation, the financial sffairs paper to be traced under the user right is obtained from the block chain
Root cryptographic Hash.
In one embodiment, the financial sffairs paper include: original certificate, bookkeeping voucher, audit voucher, voucher of transferring items,
At least one of checkout voucher, detail account, general ledger, subject balance table and financial statement.
In one embodiment, the preset algorithm is hash algorithm.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of financial accounting method based on block chain characterized by comprising
Obtain financial accounting data;
Multiple financial sffairs papers are generated according to the financial accounting data;
The corresponding key message of each financial sffairs paper is determined according to preset algorithm;The key message includes the finance text
The cryptographic Hash of part;
It, will be in each key message storage to block chain according to the incidence relation between each financial sffairs paper.
2. the method according to claim 1, which is characterized in that the method also includes:
Obtain book keeping operation retrospect request;The book keeping operation retrospect request includes the mark of financial sffairs paper to be traced;
It is traced and is requested according to the book keeping operation, the root cryptographic Hash of the financial sffairs paper to be traced is obtained from the block chain;
According to described cryptographic Hash, the association financial sffairs paper of the financial sffairs paper to be traced is traced.
3. according to the method described in claim 2, retrospect is described wait trace it is characterized in that, described according to described cryptographic Hash
The association financial sffairs paper of financial sffairs paper, comprising:
The determining and associated preposition cryptographic Hash of described cryptographic Hash;
According to the corresponding relationship between cryptographic Hash and financial sffairs paper, it is corresponding that the preposition cryptographic Hash is traced from local data base
It is associated with financial sffairs paper;The association financial sffairs paper be and the associated upper level financial sffairs paper of financial sffairs paper to be traced.
4. according to the method described in claim 3, it is characterized in that, the corresponding pass according between cryptographic Hash and financial sffairs paper
System, traces the corresponding association financial sffairs paper of the preposition cryptographic Hash from local data base, comprising:
According to the corresponding relationship between the cryptographic Hash and financial sffairs paper, the preposition cryptographic Hash, the local data base is inquired;
If there is financial sffairs paper corresponding with the preposition cryptographic Hash in the local data base, by the preposition cryptographic Hash pair
The financial sffairs paper answered is determined as the association financial sffairs paper;
If there is no financial sffairs papers corresponding with the preposition cryptographic Hash in the local data base, it is determined that the association is financial
File is tampered.
5. according to the described in any item methods of claim 2-4, which is characterized in that the book keeping operation retrospect request further includes user's mark
Know;Described traced according to the book keeping operation is requested, and the root cryptographic Hash of the financial sffairs paper to be traced, packet are obtained from the block chain
It includes:
User right is determined according to the user identifier;
It is traced and is requested according to the book keeping operation, the root of the financial sffairs paper to be traced under the user right is obtained from the block chain
Cryptographic Hash.
6. method according to claim 1-4, which is characterized in that the financial sffairs paper includes:
Original certificate, bookkeeping voucher, audit voucher, voucher of transferring items, checkout voucher, detail account, general ledger, subject balance table and finance
At least one of report.
7. method according to claim 1-4, which is characterized in that the preset algorithm is hash algorithm.
8. a kind of financial accounting device based on block chain characterized by comprising
Module is obtained, for obtaining financial accounting data;
Generation module, for generating multiple financial sffairs papers according to the financial accounting data;
Determining module, for determining the corresponding key message of each financial sffairs paper according to preset algorithm;The key message
Cryptographic Hash including the financial sffairs paper;
Memory module, for according to the incidence relation between each financial sffairs paper, each key message to be stored to block
On chain.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of any one of claims 1 to 7 the method is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811379166.3A CN109493048B (en) | 2018-11-19 | 2018-11-19 | Financial accounting method, device, equipment and storage medium based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811379166.3A CN109493048B (en) | 2018-11-19 | 2018-11-19 | Financial accounting method, device, equipment and storage medium based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109493048A true CN109493048A (en) | 2019-03-19 |
CN109493048B CN109493048B (en) | 2020-12-29 |
Family
ID=65696296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811379166.3A Active CN109493048B (en) | 2018-11-19 | 2018-11-19 | Financial accounting method, device, equipment and storage medium based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109493048B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109934590A (en) * | 2019-03-21 | 2019-06-25 | 深圳市网心科技有限公司 | A kind of data processing method based on block chain, device, electronic equipment and medium |
CN110555082A (en) * | 2019-07-23 | 2019-12-10 | 平安科技(深圳)有限公司 | data processing method, data processing device, computer equipment and storage medium |
CN111339102A (en) * | 2020-03-12 | 2020-06-26 | 南京审计大学 | Financial record information accurate and trusted storage method based on block chain |
CN111563130A (en) * | 2020-07-15 | 2020-08-21 | 成都无右区块链科技有限公司 | Data credible data management method and system based on block chain technology |
CN112445769A (en) * | 2020-11-24 | 2021-03-05 | 杭州趣链科技有限公司 | Block chain-based on-chain storage method and device, terminal equipment and medium |
WO2023138399A1 (en) * | 2022-01-21 | 2023-07-27 | 中国科学院软件研究所 | Blockchain-based equipment service value accounting method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105608146A (en) * | 2015-12-17 | 2016-05-25 | 布比(北京)网络技术有限公司 | Block chain tracing method |
CN106952124A (en) * | 2017-03-16 | 2017-07-14 | 北京牛链科技有限公司 | Electronic bill management system and method based on distribution book keeping operation |
CN106991165A (en) * | 2017-03-31 | 2017-07-28 | 北京京东金融科技控股有限公司 | Method, device and the electronic equipment of processing financial data based on block chain |
CN107103459A (en) * | 2017-04-27 | 2017-08-29 | 电子科技大学 | Accounting system and method based on block chain with sovereign right |
CN107316239A (en) * | 2017-07-14 | 2017-11-03 | 众安信息技术服务有限公司 | A kind of authentification of message and source tracing method and system based on block chain |
CN107851245A (en) * | 2015-05-21 | 2018-03-27 | 万事达卡国际股份有限公司 | For the method and system by the asset association based on block chain to legal tender account |
CN108111299A (en) * | 2017-12-28 | 2018-06-01 | 上海唯链信息科技有限公司 | A kind of real-time auditing traceability system based on block chain technology |
CN108182581A (en) * | 2017-12-29 | 2018-06-19 | 北京欧链科技有限公司 | A kind of bookkeeping methods and device of block chain |
CN108416577A (en) * | 2018-03-02 | 2018-08-17 | 上海汉得信息技术股份有限公司 | A kind of block chain service system |
CN108428122A (en) * | 2018-02-08 | 2018-08-21 | 布比(北京)网络技术有限公司 | It is a kind of distribution account book on trade financing method and system |
CN108711099A (en) * | 2018-06-07 | 2018-10-26 | 深圳鑫宏图工业设计有限公司 | A kind of financial system management method, electronic equipment and storage medium |
-
2018
- 2018-11-19 CN CN201811379166.3A patent/CN109493048B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107851245A (en) * | 2015-05-21 | 2018-03-27 | 万事达卡国际股份有限公司 | For the method and system by the asset association based on block chain to legal tender account |
CN105608146A (en) * | 2015-12-17 | 2016-05-25 | 布比(北京)网络技术有限公司 | Block chain tracing method |
CN106952124A (en) * | 2017-03-16 | 2017-07-14 | 北京牛链科技有限公司 | Electronic bill management system and method based on distribution book keeping operation |
CN106991165A (en) * | 2017-03-31 | 2017-07-28 | 北京京东金融科技控股有限公司 | Method, device and the electronic equipment of processing financial data based on block chain |
CN107103459A (en) * | 2017-04-27 | 2017-08-29 | 电子科技大学 | Accounting system and method based on block chain with sovereign right |
CN107316239A (en) * | 2017-07-14 | 2017-11-03 | 众安信息技术服务有限公司 | A kind of authentification of message and source tracing method and system based on block chain |
CN108111299A (en) * | 2017-12-28 | 2018-06-01 | 上海唯链信息科技有限公司 | A kind of real-time auditing traceability system based on block chain technology |
CN108182581A (en) * | 2017-12-29 | 2018-06-19 | 北京欧链科技有限公司 | A kind of bookkeeping methods and device of block chain |
CN108428122A (en) * | 2018-02-08 | 2018-08-21 | 布比(北京)网络技术有限公司 | It is a kind of distribution account book on trade financing method and system |
CN108416577A (en) * | 2018-03-02 | 2018-08-17 | 上海汉得信息技术股份有限公司 | A kind of block chain service system |
CN108711099A (en) * | 2018-06-07 | 2018-10-26 | 深圳鑫宏图工业设计有限公司 | A kind of financial system management method, electronic equipment and storage medium |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109934590A (en) * | 2019-03-21 | 2019-06-25 | 深圳市网心科技有限公司 | A kind of data processing method based on block chain, device, electronic equipment and medium |
CN110555082A (en) * | 2019-07-23 | 2019-12-10 | 平安科技(深圳)有限公司 | data processing method, data processing device, computer equipment and storage medium |
CN110555082B (en) * | 2019-07-23 | 2024-03-19 | 平安科技(深圳)有限公司 | Data processing method, device, computer equipment and storage medium |
CN111339102A (en) * | 2020-03-12 | 2020-06-26 | 南京审计大学 | Financial record information accurate and trusted storage method based on block chain |
CN111563130A (en) * | 2020-07-15 | 2020-08-21 | 成都无右区块链科技有限公司 | Data credible data management method and system based on block chain technology |
CN112445769A (en) * | 2020-11-24 | 2021-03-05 | 杭州趣链科技有限公司 | Block chain-based on-chain storage method and device, terminal equipment and medium |
WO2022110405A1 (en) * | 2020-11-24 | 2022-06-02 | 杭州趣链科技有限公司 | Blockchain-based on-chain storage method and apparatus, terminal device, and medium |
CN112445769B (en) * | 2020-11-24 | 2024-06-25 | 杭州趣链科技有限公司 | Block chain-based on-chain storage method, device, terminal equipment and medium |
WO2023138399A1 (en) * | 2022-01-21 | 2023-07-27 | 中国科学院软件研究所 | Blockchain-based equipment service value accounting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109493048B (en) | 2020-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109493048A (en) | Financial accounting method, apparatus, equipment and storage medium based on block chain | |
US11223477B2 (en) | Data sharing method, client, server, computing device, and storage medium | |
US10708252B2 (en) | Configuring credentials to faciltate sharing data in a secure manner | |
EP3777027B1 (en) | Method, apparatus and electronic device for blockchain transactions | |
US10572685B1 (en) | Protecting sensitive data | |
US20210326886A1 (en) | Blockchain-based resource transaction methods, apparatuses, and systems | |
US11025434B2 (en) | Ring signature-based anonymous transaction | |
CA3028628A1 (en) | Distributed electronic record and transaction history | |
US9213966B2 (en) | Regulation compliant data integration for financial institutions | |
US11314885B2 (en) | Cryptographic data entry blockchain data structure | |
KR102172514B1 (en) | Managing method for test data based on blockchain node apparatus of blockchain | |
EP3703306A1 (en) | Data registration method, data decoding method, data structure, computer, and program | |
CN106897053A (en) | A kind of code dissemination method and device | |
CN110046092A (en) | Test shunt method, device, electronic equipment and computer readable storage medium | |
CN110413922A (en) | Page info display methods, device, computer equipment and storage medium | |
US10354303B1 (en) | Verification of rental and mortgage payment history | |
CN110362630A (en) | Data managing method, device, equipment and computer readable storage medium | |
CN108229190A (en) | Control method, device, program, storage medium and the electronic equipment of transparent encryption and decryption | |
JP2023538497A (en) | editable blockchain | |
CN111881166A (en) | Operation data processing method, device and system based on block chain | |
CN109840250A (en) | Access authority management method, device, equipment and the storage medium of middle field | |
US20230403279A1 (en) | Internet protocol (ip) whitelisting for signed uniform resource locators (urls) | |
US20220399988A1 (en) | Linking blockchain operations | |
CN108241607A (en) | Automatically imported method, server and the storage medium of test of heuristics case | |
CN113094414A (en) | Circulation map generation method and device |
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 |