Financial big data processing method based on block chain and system platform thereof
Technical Field
The invention belongs to the technical field of block chain finance, and particularly relates to a financial big data processing method based on a block chain and a system platform thereof.
Background
With the rapid development of information science and technology, particularly, blockchain, cloud computing and big data technologies are widely applied to internet finance, and especially, blockchain has potential huge application value in the financial fields of international exchange, credit certificates, stock right registration, stock exchanges and the like. The block chain technology is applied to the financial industry, a third-party intermediary link can be omitted, point-to-point direct butt joint is achieved, accordingly, cost is greatly reduced, transaction payment is rapidly completed, core competitiveness of the future financial industry depends on the speed and the capacity of information and knowledge extraction from big data to a great extent, and the speed and the capacity depend on data processing and application levels. With the continuous emergence of novel financial models such as internet finance and mobile payment, the requirements on a financial data platform are correspondingly improved.
Financial databases have high requirements on the accuracy and reliability of data, and they must have strong recheckability. Most financial products need long-time tracking processing, and data of the financial products also have diversity and complexity. However, in the current practical situation, the data processing process of financial products is complex, the error code rate of financial business core data is high and the safety frequency is threatened during interaction, the difference between the data experience and the speed experience of a common client is not large when VI P clients of bank financial, security and insurance companies perform business operation and access, and meanwhile, the problem that newly developed financial products are incompatible with the existing business system data sharing exists.
Disclosure of Invention
The invention aims to overcome the defects and provides a financial big data processing method based on a block chain and a system platform thereof.
A financial big data processing method based on a block chain comprises the following steps:
the information input unit receives input financial transaction data and sends the financial transaction data to the data optimization unit;
the data optimization unit receives and optimizes the financial transaction data and provides a financial transaction data storage path for the data management unit;
the data management unit receives the data storage path and the optimized financial transaction data, encodes the optimized financial transaction data, and sends the data storage path and the data encoding to the distributed block cache nodes;
the distributed block cache nodes receive the storage paths and the data codes, convert the data codes into data storage versions and send the data storage versions to the database for storage,
when a user needs to inquire related financial transaction data, the corresponding block cache node is found out through the inquiry unit, a data inquiry request is sent to the block cache node, the distributed block cache node searches a corresponding storage version according to the data inquiry request, and when the corresponding storage version is found, the distributed block cache node pushes the corresponding storage version to an inquiry port address appointed by the inquiry unit.
Before the information input unit receives the input financial transaction data: the client performs logging through the information logging unit, the information logging unit sends the key sequence and the public parameters to the client through the secure channel, and the client stores the key sequence; the financial institution staff logs in by using the job number and the password and sends an input request to the information input unit; the information entry unit randomly selects a random number from the public parameters, wherein the random number is only known to the information entry unit at present; the information input unit sends the random number to the client through a secure channel and stores the random number on the client; the financial institution staff logs out and inputs the work number and the password to the client side again, the client side randomly selects a random number from the public parameters as a private key of the client side, and calculates a public key of the client side; and the information input unit verifies the client public key through the key sequence and inputs information after the verification is passed.
The system platform of the block chain-based financial big data processing method comprises the following steps: the system comprises an information input unit, a data optimization unit, a data management unit, distributed block cache nodes and a query unit, wherein the information input unit, the data optimization unit, the data management unit, the distributed block cache nodes and the query unit are sequentially connected.
The invention has the following effects: the invention improves the efficiency of verification authentication algorithm and protocol, compares the security level of the algorithm and the protocol, avoids the possibility of attack in financial data transmission, abandons the traditional communication calculation mechanism, can reduce the error code rate to the minimum only by adjusting the transmission time allocated to the distributed block cache node according to the data management unit, and also improves the efficiency of secure communication.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention.
Detailed Description
The invention is further illustrated by the following specific examples:
a financial big data processing method based on a block chain comprises the following steps:
the information input unit receives input financial transaction data and sends the financial transaction data to the data optimization unit;
the data optimization unit receives and optimizes the financial transaction data and provides a financial transaction data storage path for the data management unit;
the data management unit receives the data storage path and the optimized financial transaction data, encodes the optimized financial transaction data, and sends the data storage path and the data encoding to the distributed block cache nodes;
the distributed block cache nodes receive the storage paths and the data codes, convert the data codes into data storage versions and send the data storage versions to the database for storage,
when a user needs to inquire related financial transaction data, the corresponding block cache node is found out through the inquiry unit, a data inquiry request is sent to the block cache node, the distributed block cache node searches a corresponding storage version according to the data inquiry request, and when the corresponding storage version is found, the distributed block cache node pushes the corresponding storage version to an inquiry port address appointed by the inquiry unit.
Before the information input unit receives the input financial transaction data: the client performs logging through the information logging unit, the information logging unit sends the key sequence and the public parameters to the client through the secure channel, and the client stores the key sequence; the financial institution staff logs in by using the job number and the password and sends an input request to the information input unit; the information entry unit randomly selects a random number from the public parameters, wherein the random number is only known to the information entry unit at present; the information input unit sends the random number to the client through a secure channel and stores the random number on the client; the financial institution staff logs out and inputs the work number and the password to the client side again, the client side randomly selects a random number from the public parameters as a private key of the client side, and calculates a public key of the client side; and the information input unit verifies the client public key through the key sequence and inputs information after the verification is passed.
When the data storage path and the data codes are sent to the distributed block cache nodes, if the total number of the distributed block cache nodes receiving the financial data storage path and the financial data codes is I, for the distributed block cache node I belonging to {1, 2.,. I }, the size of a financial data packet represented by each code needs to be transmitted is dx, and the data transmission rate vs of the financial data codes is calculatediComprises the following steps:
wherein, zy is
iRepresenting the channel gain; p
iIs the transmission power; sigma
2Is the variance of the sampled value after the noise is sampled; l
iThe maximum data length that the link layer can bear; w is a
iError rate for transmitting financial data codes; st
iThe strength of the channel; e represents a natural constant; q
-1(x) Is the inverse of the function Q, wherein
x is an argument, t is meaningless; then
Where B is the channel bandwidth, tiThe transmission time allocated to the distributed block cache node i is adjusted for the data management unit; when the distributed block cache node receives the storage path and the data code, the data management unit adjusts tiTo achieve minwiAnd (4) finishing.
When the distributed block cache node receives the storage path and the data codes, the data management unit sends a timestamp and randomly selected parameters to the distributed block cache node through a safety channel; the distributed block cache node checks that the data management unit receives a message if and only if it contains a timestamp that is close enough to the current time for the distributed block cache node; if not, the distributed block cache node may consider that the data management unit has replay attack, and the distributed block cache node stops receiving the financial data; if yes, the distributed block cache node checks whether the cipher equations of the two are equal by using the private key of the distributed block cache node and the public key of the data management unit; if not, the distributed block cache node stops receiving the financial data; if the random parameters are equal to the session keys, the data management unit randomly selects random parameters, calculates the session keys, and sends the timestamps and the randomly selected parameters to the data management unit through the distributed block cache nodes; the data management unit checks that the data management unit receives a message if and only if it contains a timestamp that is sufficiently close to the current time for the data management unit; if not, the data management unit may consider that the distributed block cache node has replay attack, and the data management unit stops the transmission of the financial data; if yes, the data management unit checks whether the cipher equations of the private key and the public key of the data management unit are equal; if not, the data management unit stops the transmission of the financial data; if the first negotiation key is equal to the second negotiation key, the data management unit calculates the first negotiation key and sends the first negotiation key to the distributed block cache node through the secure channel; the distributed block cache node calculates a second negotiation key and judges whether the second negotiation key is equal to the first negotiation key or not; if not, the secure key negotiation fails and the financial data transmission is stopped; if the first negotiation key and the second negotiation key are equal, the data management unit and the distributed block cache node both reach a trust threshold value, and the financial data transmission is continued by using the second negotiation key and judging the first negotiation key.
The system platform of the block chain-based financial big data processing method comprises the following steps: the system comprises an information input unit, a data optimization unit, a data management unit, distributed block cache nodes and a query unit, wherein the information input unit, the data optimization unit, the data management unit, the distributed block cache nodes and the query unit are sequentially connected.