CN108446976B - A kind of common reserve fund transfer method, computer readable storage medium and terminal device - Google Patents
A kind of common reserve fund transfer method, computer readable storage medium and terminal device Download PDFInfo
- Publication number
- CN108446976B CN108446976B CN201810121435.XA CN201810121435A CN108446976B CN 108446976 B CN108446976 B CN 108446976B CN 201810121435 A CN201810121435 A CN 201810121435A CN 108446976 B CN108446976 B CN 108446976B
- Authority
- CN
- China
- Prior art keywords
- node
- block
- reserve fund
- common reserve
- account
- 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
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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- 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/02—Banking, e.g. interest calculation or account maintenance
-
- 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/02—Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
-
- 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/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- 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/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3297—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
-
- 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
- G06Q2220/00—Business processing using cryptography
Abstract
The invention belongs to block chain technical field more particularly to a kind of common reserve fund transfer methods, computer readable storage medium and terminal device.The method receives the common reserve fund that the first node that execution common reserve fund produces is sent and produces request;Request, which is produced, according to the common reserve fund generates first object block;The first object block is broadcasted in the public relation education block chain;Common reserve fund, which is sent, to the second node is transferred to request;Receive the feedback message that the second node is transferred to request to the common reserve fund;If the feedback message is confirmation message, controls the first node and the second node carries out common reserve fund transfer, and generate the second target block and third target block;Second target block and the third target block are broadcasted in the public relation education block chain.Through the invention, request, response, the execution in entire common reserve fund transfer process are realized to the processing of automation, reliability is higher, and substantially increases overall security.
Description
Technical field
The invention belongs to block chain technical field more particularly to a kind of common reserve fund transfer methods, computer-readable storage medium
Matter and terminal device.
Background technique
Common reserve fund, refer to government offices, state-owned enterprise, cities and towns collective-owned enterprise, foreign-investment enterprise, the cities and towns private enterprise and
The long-term house savings that other cities and towns enterprises, public institution, non-governmental non-enterprise unit, public organization and its on-job worker pay.
With the continuous social and economic development, the mobility of worker becomes increasing, another ground can be usually moved to from an area
Area, at the same time, it is also desirable to common reserve fund is transferred to new area from original area, during transfer, typically by working
Personnel's manual record transfer process, easily generation mistake, and lack safety guarantee.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of common reserve fund transfer method, computer readable storage medium and ends
End equipment to solve by staff's manual record common reserve fund transfer process, easily generation mistake, and lacks asking for safety guarantee
Topic.
The first aspect of the embodiment of the present invention provides a kind of common reserve fund transfer method, may include:
It receives the common reserve fund that the first node that execution common reserve fund produces is sent and produces request, the common reserve fund produces in request
The node identification for executing the second node that common reserve fund is transferred to is carried, the first node is preset public relation education block chain
In any one node, the second node be the public relation education block chain in it is any in addition to the first node
One node;
Request, which is produced, according to the common reserve fund generates first object block;
The first object block is broadcasted in the public relation education block chain, so that the public relation education block chain
In each node the public relation education that is locally stored updated according to the first object block record;
Common reserve fund, which is sent, to the second node is transferred to request;
Receive the feedback message that the second node is transferred to request to the common reserve fund;
If the feedback message is confirmation message, controls the first node and the second node carries out common reserve fund and turns
It moves, and generates the second target block and third target block, second target block is the common reserve fund to the first node
The block that the process of producing is recorded, the third target block are to be transferred to process to the common reserve fund of the second node to remember
The block of record;
Second target block and the third target block are broadcasted in the public relation education block chain, so that institute
The each node stated in public relation education block chain updates locally according to second target block and the third target block
The public relation education record of storage.
The second aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer-readable instruction, and the computer-readable instruction realizes following steps when being executed by processor:
It receives the common reserve fund that the first node that execution common reserve fund produces is sent and produces request, the common reserve fund produces in request
The node identification for executing the second node that common reserve fund is transferred to is carried, the first node is preset public relation education block chain
In any one node, the second node be the public relation education block chain in it is any in addition to the first node
One node;
Request, which is produced, according to the common reserve fund generates first object block;
The first object block is broadcasted in the public relation education block chain, so that the public relation education block chain
In each node the public relation education that is locally stored updated according to the first object block record;
Common reserve fund, which is sent, to the second node is transferred to request;
Receive the feedback message that the second node is transferred to request to the common reserve fund;
If the feedback message is confirmation message, controls the first node and the second node carries out common reserve fund and turns
It moves, and generates the second target block and third target block, second target block is the common reserve fund to the first node
The block that the process of producing is recorded, the third target block are to be transferred to process to the common reserve fund of the second node to remember
The block of record;
Second target block and the third target block are broadcasted in the public relation education block chain, so that institute
The each node stated in public relation education block chain updates locally according to second target block and the third target block
The public relation education record of storage.
The third aspect of the embodiment of the present invention provides a kind of common reserve fund transfer terminal device, including memory, processor
And the computer-readable instruction that can be run in the memory and on the processor is stored, the processor executes institute
Following steps are realized when stating computer-readable instruction:
It receives the common reserve fund that the first node that execution common reserve fund produces is sent and produces request, the common reserve fund produces in request
The node identification for executing the second node that common reserve fund is transferred to is carried, the first node is preset public relation education block chain
In any one node, the second node be the public relation education block chain in it is any in addition to the first node
One node;
Request, which is produced, according to the common reserve fund generates first object block;
The first object block is broadcasted in the public relation education block chain, so that the public relation education block chain
In each node the public relation education that is locally stored updated according to the first object block record;
Common reserve fund, which is sent, to the second node is transferred to request;
Receive the feedback message that the second node is transferred to request to the common reserve fund;
If the feedback message is confirmation message, controls the first node and the second node carries out common reserve fund and turns
It moves, and generates the second target block and third target block, second target block is the common reserve fund to the first node
The block that the process of producing is recorded, the third target block are to be transferred to process to the common reserve fund of the second node to remember
The block of record;
Second target block and the third target block are broadcasted in the public relation education block chain, so that institute
The each node stated in public relation education block chain updates locally according to second target block and the third target block
The public relation education record of storage.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention, which receives, executes common reserve fund
The common reserve fund that the first node produced is sent produces request;Request, which is produced, according to the common reserve fund generates first object block;?
The first object block is broadcasted in the public relation education block chain, so that each section in the public relation education block chain
Point updates the public relation education being locally stored according to the first object block and records;Common reserve fund is sent to the second node to turn
Enter request;Receive the feedback message that the second node is transferred to request to the common reserve fund;If the feedback message is that confirmation disappears
Breath, then control the first node and the second node carries out common reserve fund transfer, and generates the second target block and third mesh
Mark block;Second target block and the third target block are broadcasted in the public relation education block chain, so that institute
The each node stated in public relation education block chain updates locally according to second target block and the third target block
The public relation education record of storage.Through the invention, by request, the response, execution in entire common reserve fund transfer process
Realize the processing of automation, reliability is higher, and the record of entire common reserve fund transfer process is all updated into public relation education area
In each node in block chain, can not carry out it is one-side distort, substantially increase overall security.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of common reserve fund transfer method in the embodiment of the present invention;
Fig. 2 is the schematic diagram being added into new block in block chain;
Fig. 3 is a kind of one embodiment structure chart of common reserve fund transfer device in the embodiment of the present invention;
Fig. 4 is a kind of schematic block diagram of common reserve fund transfer terminal device in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
The implementation environment of the embodiment of the present invention is preset public relation education block chain, the preset public relation education block
Chain may include a public relation education center and multiple nodes, for example, if the public relation education block chain is applied to four altogether
Area, respectively A area, the area B, the area C and the area D, then can regard the public relation education server in each area as one
A node, respectively node 1, node 2, node 3 and node 4.Identical block chain number is being locally stored respectively in each node
According to the block chain data are made of multiple blocks, and each block is stored with different information, for example, each block can be deposited
Chu Yici common reserve fund shifts the information being related to, and the block on a block chain is stored sequentially in time.The common reserve fund pipe
Reason center is the executing subject of the embodiment of the present invention, for managing the transfer process of common reserve fund, and in the transfer of common reserve fund
Transinformation is stored into the public relation education block chain in journey.
Each node is used for the common reserve fund information based on block chain technical management this area, stores in common reserve fund transfer process
Transinformation, and other nodes in implementation environment is allowed to share common reserve fund transinformation, so that each node
Compliance check can be provided for common reserve fund transinformation, improve the safety of common reserve fund transinformation, for example, when primary public
When product gold transfer process is completed, public relation education center can be long-pending by public affairs according to the node identification (such as network address) of each node
Golden transinformation is shared on the block chain being locally stored to each node.
Each node can store all common reserve fund accounts in this area with memory node credit in the node credit
The account information at family, such as account status, account balance etc., the process that account table can be shifted according to common reserve fund is corresponding to be updated,
It is thus achieved that dynamically being updated in common reserve fund transfer process.
Referring to Fig. 1, a kind of one embodiment of common reserve fund transfer method may include: in the embodiment of the present invention
Step S101, it receives the common reserve fund that the first node that execution common reserve fund produces is sent and produces request.
The common reserve fund, which produces to carry in request, executes the node identification of second node that common reserve fund is transferred to, and described first
Node is any one node in preset public relation education block chain, and the second node is the public relation education block
Any one node in chain in addition to the first node.
Generally, when user needs for common reserve fund to be transferred to other areas, need to arrive first the current position where common reserve fund
The relevant departments in area file an application, alternatively, being taken by its terminal device to the node (namely described first node) of current locale
Business device is filed a request, and first node sends common reserve fund to public relation education center and produce request after verifying request.
It should be noted that in order to facilitate subsequent evidence obtaining common reserve fund transinformation, preventing malicious user denial or network from attacking
It hits and distorts common reserve fund transinformation, the message interacted in common reserve fund transfer process can also be carried to be offseted by message sending node
Cease the signing messages signed.Sending node used private key in signature is provided by public relation education center,
Each node corresponds to unique a pair of secret keys, this to the public key in key by public relation education central store, thus for public affairs product
Golden administrative center verifies the node.
Step S102, request is produced according to the common reserve fund and generates first object block;
Specifically, the last-of-chain block for the public relation education block chain being locally stored is obtained, the last-of-chain block is newest adds
Be added the block in the public relation education block chain, each block of the public relation education block chain include block head and
Block main body;Characteristic operation is carried out to the block head of the last-of-chain block, obtains the First Eigenvalue;The common reserve fund is produced and is asked
Carry out characteristic operation is sought, Second Eigenvalue is obtained;Described first is generated according to the First Eigenvalue and the Second Eigenvalue
The block head of target block, and the block main body that request generates the first object block is produced according to the common reserve fund, thus
Generate the first object block.
As shown in Fig. 2, the public relation education block being locally stored in the public relation education center and each node
Chain is linked in sequence by block one by one and is formed, and common reserve fund transinformation is recorded in each block, when producing
New common reserve fund transinformation is then needed to generate a new block for it, be opened up first in local server for new block
Corresponding memory space out, each occupied space of block are divided into two parts, and a part is block head, store in block head
Content is fixed (including block head characteristic value, block body feature value, version number, difficulty value and timestamp etc.), then it is accounted for
According to space be also it is fixed, another part is block main body, and the content stored in block main body is the common reserve fund that need to be recorded
Transinformation, length are variable.Therefore the length for the common reserve fund transinformation that need to be recorded is obtained first, then plus fixation
Block head length, then can determine that the memory space occupied needed for new block.In the server, storage sky is hewed out for it
Between store the new block, it should be noted that the storage location of new block is not necessarily to close to a upper block, but any one piece not
The memory space used, after opening new space, with being directed toward the memory space of new block by the pointer of a upper block
Location.
Public relation education center can obtain the block head of previous block from the public relation education block chain being locally stored
In all information, characteristic operation (such as Hash operation) is carried out to it, obtains the block head characteristic value of new block, i.e., described first
Characteristic value, and request is produced to the common reserve fund in the block main body that will be stored in new block and carries out characteristic value calculating, obtain new district
The block body feature value of block, i.e., the described Second Eigenvalue, in turn, by the area of the block head characteristic value of previous block, new block
Block main body characteristic value (can also include version number, difficulty value and timestamp) is stored to the block head of new block;Common reserve fund is turned
The event information and corresponding surplus account information requested out are stored to the block main body of new block, so that new block is generated,
So that new block is related by the block head characteristic value of previous block to previous block, it is thus achieved that by the block in block chain
The purpose being together in series, so that information any in block is distorted, it can be upper by being stored in the block head of block
The retrospect of the block head characteristic value of one block and detect so that ensure that the safety of information.
Step S103, the first object block is broadcasted in the public relation education block chain, so that the common reserve fund
Each node in management block chain updates the public relation education being locally stored according to the first object block and records.
The first object block is added by each node in the public relation education block chain to be respectively locally stored
Public relation education record, namely in local public relation education block chain, to ensure that the public relation education block chain
In the information of each node be all consistent.
Step S104, Xiang Suoshu second node sends common reserve fund and is transferred to request.
Step S105, the feedback message that the second node is transferred to request to the common reserve fund is received.
The second node needs to check the content that common reserve fund is transferred in request message, if meeting item needed for common reserve fund shifts
Part then sends common reserve fund to public relation education center and is transferred to confirmation message, if condition needed for common reserve fund shifts is not met, to public affairs
Ji Jin administrative center sends common reserve fund and is transferred to refuse information.
Specifically, the second node is transferred to the identity information that applicant is read in request message from common reserve fund first, with
And the personal public accumalation fund for housing construction account that applicant being transferred to sets up, it is public that individual's house is then searched in local database
Product gold account illustrates that applicant does not set up personal house being transferred to if searching less than individual's public accumalation fund for housing construction account
Surplus account does not meet common reserve fund jump condition;If finding the account, further by the identity information of applicant with
Identity information in the account is compared, if comparison result is consistent, illustrates that applicant being transferred to sets up personal house
Surplus account meets common reserve fund jump condition, if comparison result is inconsistent, the information for illustrating that applicant provides is wrong, no
Meet common reserve fund jump condition.
Common reserve fund is transferred to confirmation message and common reserve fund is transferred to refuse information and can carry the signing messages of the second node,
The signing messages can be stored when this common reserve fund shifts successfully by public relation education center to block chain, to take for subsequent
It is verified when demonstrate,proving Transaction Information.
Step S106, judge whether the feedback message is confirmation message.
If the feedback message is confirmation message, S107 and step S108 are thened follow the steps, if the feedback message is to refuse
Exhausted message thens follow the steps S109 and step S110.
Step S107, it controls the first node and the second node carries out common reserve fund transfer, and generate the second target
Block and third target block.
Second target block is to produce the block that process is recorded to the common reserve fund of the first node, described the
Three target blocks are to be transferred to the block that process is recorded to the common reserve fund of the second node.Wherein, second target area
The specific generating process of block and the third target block is similar with the block generating process in step S102, specifically can refer to step
Explanation in rapid S102, details are not described herein.
Step S108, second target block and the third target area are broadcasted in the public relation education block chain
Block, so that each node in the public relation education block chain is according to second target block and the third target block
Update the public relation education record being locally stored.
Step S109, Xiang Suoshu first node forwards the refuse information, and generates the 4th mesh according to the refuse information
Mark block.
Wherein, the specific generating process of the 4th target block is similar with the block generating process in step S102, tool
Body can refer to the explanation in step S102, and details are not described herein.
Step S110, the 4th target block is broadcasted in the public relation education block chain, so that the common reserve fund
Each node in management block chain updates the public relation education being locally stored according to the 4th target block and records.
Further, after controlling the first node and second node progress common reserve fund transfer, the public product
Golden administrative center can also be updated the central account table that it is locally stored, and the central account table includes multiple account
Table, the corresponding node of each sublist, for storing the account information of the node.
Specifically, the common reserve fund is obtained first and produces the target account in requesting, then in preset central account table
It is middle to search the first account sublist corresponding with the first node, and the target account is deleted from the first account sublist
It removes, finally searches corresponding with the second node the second account sublist in the central account table, and by the target account
Family is added into the second account sublist.
Further, after controlling the first node and second node progress common reserve fund transfer, the public product
Golden administrative center can also be updated the node credit being locally stored in node involved in the common reserve fund transfer process,
The node credit is used to store the account information of this node.
Specifically, it obtains the common reserve fund and produces the target account in requesting, then send first to the first node
Account more new command, so that the node credit that the target account is locally stored the first node from the first node
Middle deletion, finally, the second account more new command is sent to the second node, so that the second node is by the target account
It is added into the node credit that the second node is locally stored.
In conclusion the common reserve fund that the embodiment of the present invention receives the first node transmission that execution common reserve fund produces is produced and is asked
It asks;Request, which is produced, according to the common reserve fund generates first object block;Described is broadcasted in the public relation education block chain
One target block, so that each node in the public relation education block chain updates local deposit according to the first object block
The public relation education of storage records;Common reserve fund, which is sent, to the second node is transferred to request;The second node is received to the public affairs
Product gold is transferred to the feedback message of request;If the feedback message is confirmation message, the first node and described second are controlled
Node carries out common reserve fund transfer, and generates the second target block and third target block;In the public relation education block chain
Second target block and the third target block are broadcasted, so that each node root in the public relation education block chain
The public relation education record being locally stored is updated according to second target block and the third target block.By this hair
It is bright, request, response, the execution in entire common reserve fund transfer process are realized to the processing of automation, reliability is higher, and whole
The record of a common reserve fund transfer process all updates in each node in public relation education block chain, can not carry out one-side
It distorts, substantially increases overall security.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Show provided in an embodiment of the present invention corresponding to a kind of common reserve fund transfer method, Fig. 3 described in foregoing embodiments
A kind of one embodiment structure chart of common reserve fund transfer device.
In the present embodiment, a kind of common reserve fund transfer device may include:
Common reserve fund produces request receiving module 301, for receiving the public affairs product for executing the first node that common reserve fund produces and sending
Gold produces request, and the common reserve fund produces the node identification for carrying in request and executing the second node that common reserve fund is transferred to, described
First node is any one node in preset public relation education block chain, and the second node is the public relation education
Any one node in block chain in addition to the first node;
First object block generation module 302 generates first object block for producing request according to the common reserve fund;
First object block broadcast module 303, for broadcasting the first object in the public relation education block chain
Block, so that each node in the public relation education block chain updates the public affairs being locally stored according to the first object block
Product gold management record;
Common reserve fund is transferred to request sending module 304, is transferred to request for sending common reserve fund to the second node;
Feedback message receiving module 305 disappears for receiving the feedback that the second node is transferred to request to the common reserve fund
Breath;
Common reserve fund shifts control module 306, if being confirmation message for the feedback message, controls the first node
Common reserve fund transfer is carried out with the second node, and generates the second target block and third target block, second target area
Block is that the block that process is recorded is produced to the common reserve fund of the first node, and the third target block is to described second
The common reserve fund of node is transferred to the block that process is recorded;
Second target block broadcast module 307, for broadcasting second target in the public relation education block chain
Block and the third target block, so that each node in the public relation education block chain is according to second target area
Block and the third target block update the public relation education record being locally stored.
Further, the first object block generation module may include:
Last-of-chain block acquiring unit, for obtaining the last-of-chain block for the public relation education block chain being locally stored, the chain
Tail region block is the newest block being added into the public relation education block chain, each block of the public relation education block chain
It include block head and block main body;
Fisrt feature arithmetic element carries out characteristic operation for the block head to the last-of-chain block, obtains fisrt feature
Value;
Second feature arithmetic element carries out characteristic operation for producing request to the common reserve fund, obtains Second Eigenvalue;
Block generation unit, for generating the first object area according to the First Eigenvalue and the Second Eigenvalue
The block head of block, and the block main body that request generates the first object block is produced according to the common reserve fund.
Further, the common reserve fund transfer device can also include:
Target account obtains module, produces the target account in requesting for obtaining the common reserve fund;
First account sublist operation module, it is corresponding with the first node for being searched in preset central account table
First account sublist, and the target account is deleted from the first account sublist;
Second account sublist operation module, for searching corresponding with the second node the in the central account table
Two account sublists, and the target account is added into the second account sublist.
Further, the common reserve fund transfer device can also include:
First account updates instruction sending module, for sending the first account more new command to the first node, so that
The first node deletes the target account from the node credit that the first node is locally stored;
Second account updates instruction sending module, for sending the second account more new command to the second node, so that
The target account is added into the node credit that the second node is locally stored by the second node.
Further, the common reserve fund transfer device can also include:
4th target block generation module turns if being refuse information for the feedback message to the first node
It sends out refuse information described, and the 4th target block is generated according to the refuse information;
4th target block broadcast module, for broadcasting the 4th target area in the public relation education block chain
Block, so that described in each node in the public relation education block chain is locally stored according to the 4th target block update
Public relation education record.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description,
The specific work process of module and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Fig. 4 shows a kind of schematic block diagram of common reserve fund transfer terminal device provided in an embodiment of the present invention, for the ease of
Illustrate, only parts related to embodiments of the present invention are shown.
In the present embodiment, the common reserve fund transfer terminal device 4 is the public relation education center, can be table
Laptop computer, notebook, palm PC, local server and cloud server etc. calculate equipment.The common reserve fund shifts terminal
Equipment 4 can include: processor 40, memory 41 and be stored in the memory 41 and can be run on the processor 40
Computer-readable instruction 42, such as execute the computer-readable instruction of above-mentioned common reserve fund transfer method.The processor 40
The step in above-mentioned each common reserve fund transfer method embodiment, such as Fig. 1 institute are realized when executing the computer-readable instruction 42
The step S101 to S110 shown.Alternatively, the processor 40 realizes above-mentioned each device when executing the computer-readable instruction 42
The function of each module/unit in embodiment, such as the function of module 301 to 307 shown in Fig. 3.
Illustratively, the computer-readable instruction 42 can be divided into one or more module/units, one
Or multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Institute
Stating one or more module/units can be the series of computation machine readable instruction section that can complete specific function, the instruction segment
For describing implementation procedure of the computer-readable instruction 42 in common reserve fund transfer terminal device 4.
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the common reserve fund transfer terminal device 4, such as common reserve fund turns
Move the hard disk or memory of terminal device 4.The memory 41 is also possible to the external storage of the common reserve fund transfer terminal device 4
The plug-in type hard disk being equipped in equipment, such as common reserve fund transfer terminal device 4, intelligent memory card (Smart Media
Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, described to deposit
Reservoir 41 can also both include that the common reserve fund shifts the internal storage unit of terminal device 4 or including External memory equipment.Institute
Memory 41 is stated for other instructions needed for storing the computer-readable instruction and common reserve fund transfer terminal device 4
And data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
The functional units in various embodiments of the present invention may be integrated into one processing unit, is also possible to each
Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used
To use formal implementation of hardware, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
Embody, which is stored in a storage medium, including several computer-readable instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of computer-readable instruction.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (8)
1. a kind of common reserve fund transfer method characterized by comprising
It receives the common reserve fund that the first node that execution common reserve fund produces is sent and produces request, the common reserve fund produces to be carried in request
There is the node identification for executing the second node that common reserve fund is transferred to, the first node is in preset public relation education block chain
Any one node, the second node are any one in addition to the first node in the public relation education block chain
Node, the public relation education block chain include a public relation education center and more than two nodes, the common reserve fund pipe
Reason center is the executing subject of the common reserve fund transfer method, and the public relation education block chain is applied to more than twoly
Area regard the public relation education server in each area as a node, each node respectively be locally stored it is identical
Block chain data, the public relation education central store have central account table, and the central account table includes multiple account sublists,
The corresponding node of each sublist, for storing the account information of the node;
Request, which is produced, according to the common reserve fund generates first object block;
The first object block is broadcasted in the public relation education block chain, so that in the public relation education block chain
Each node updates the public relation education being locally stored according to the first object block and records;
Common reserve fund, which is sent, to the second node is transferred to request;
Receive the feedback message that the second node is transferred to request to the common reserve fund;
If the feedback message is confirmation message, controls the first node and the second node carries out common reserve fund transfer,
And the second target block and third target block are generated, second target block is to produce to the common reserve fund of the first node
The block that process is recorded, the third target block are to be transferred to what process was recorded to the common reserve fund of the second node
Block;
Second target block and the third target block are broadcasted in the public relation education block chain, so that the public affairs
Each node in product gold management block chain is locally stored according to second target block and third target block update
The public relation education record;
It obtains the common reserve fund and produces the target account in requesting;
Search corresponding with the first node the first account sublist in the central account table, and by the target account from
It is deleted in the first account sublist;
The second account sublist corresponding with the second node is searched in the central account table, and the target account is added
It is added in the second account sublist.
2. common reserve fund transfer method according to claim 1, which is characterized in that described to produce request according to the common reserve fund
Generating first object block includes:
The last-of-chain block for the public relation education block chain being locally stored is obtained, the last-of-chain block is added into the public product to be newest
Block in gold management block chain, each block of the public relation education block chain includes block head and block main body;
Characteristic operation is carried out to the block head of the last-of-chain block, obtains the First Eigenvalue;
Request is produced to the common reserve fund and carries out characteristic operation, obtains Second Eigenvalue;
The block head of the first object block is generated according to the First Eigenvalue and the Second Eigenvalue, and according to described
Common reserve fund produces the block main body that request generates the first object block.
3. common reserve fund transfer method according to claim 1, which is characterized in that controlling the first node and described the
Two nodes carry out after common reserve fund transfer, further includes:
It obtains the common reserve fund and produces the target account in requesting;
The first account more new command is sent to the first node, so that the first node is by the target account from described the
It is deleted in the node credit that one node is locally stored;
The second account more new command is sent to the second node, so that the target account is added into institute by the second node
It states in the node credit that second node is locally stored.
4. common reserve fund transfer method according to any one of claim 1 to 3, which is characterized in that further include:
If the feedback message is refuse information, the refuse information is forwarded to the first node, and according to the refusal
Message generates the 4th target block;
The 4th target block is broadcasted in the public relation education block chain, so that in the public relation education block chain
Each node updates the public relation education being locally stored according to the 4th target block and records.
5. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special
Sign is that the computer-readable instruction realizes common reserve fund according to any one of claims 1 to 4 when being executed by processor
The step of transfer method.
6. a kind of common reserve fund shifts terminal device, including memory, processor and storage are in the memory and can be in institute
State the computer-readable instruction run on processor, which is characterized in that when the processor executes the computer-readable instruction
Realize following steps:
It receives the common reserve fund that the first node that execution common reserve fund produces is sent and produces request, the common reserve fund produces to be carried in request
There is the node identification for executing the second node that common reserve fund is transferred to, the first node is in preset public relation education block chain
Any one node, the second node are any one in addition to the first node in the public relation education block chain
Node, the public relation education block chain include a public relation education center and more than two nodes, the common reserve fund pipe
Reason center is the executing subject of the common reserve fund transfer method, and the public relation education block chain is applied to more than twoly
Area regard the public relation education server in each area as a node, each node respectively be locally stored it is identical
Block chain data, the public relation education central store have central account table, and the central account table includes multiple account sublists,
The corresponding node of each sublist, for storing the account information of the node;
Request, which is produced, according to the common reserve fund generates first object block;
The first object block is broadcasted in the public relation education block chain, so that in the public relation education block chain
Each node updates the public relation education being locally stored according to the first object block and records;
Common reserve fund, which is sent, to the second node is transferred to request;
Receive the feedback message that the second node is transferred to request to the common reserve fund;
If the feedback message is confirmation message, controls the first node and the second node carries out common reserve fund transfer,
And the second target block and third target block are generated, second target block is to produce to the common reserve fund of the first node
The block that process is recorded, the third target block are to be transferred to what process was recorded to the common reserve fund of the second node
Block;
Second target block and the third target block are broadcasted in the public relation education block chain, so that the public affairs
Each node in product gold management block chain is locally stored according to second target block and third target block update
The public relation education record;
It obtains the common reserve fund and produces the target account in requesting;
Search corresponding with the first node the first account sublist in the central account table, and by the target account from
It is deleted in the first account sublist;
The second account sublist corresponding with the second node is searched in the central account table, and the target account is added
It is added in the second account sublist.
7. common reserve fund according to claim 6 shifts terminal device, which is characterized in that described to be produced according to the common reserve fund
Request generates first object block
The last-of-chain block for the public relation education block chain being locally stored is obtained, the last-of-chain block is added into the public product to be newest
Block in gold management block chain, each block of the public relation education block chain includes block head and block main body;
Characteristic operation is carried out to the block head of the last-of-chain block, obtains the First Eigenvalue;
Request is produced to the common reserve fund and carries out characteristic operation, obtains Second Eigenvalue;
The block head of the first object block is generated according to the First Eigenvalue and the Second Eigenvalue, and according to described
Common reserve fund produces the block main body that request generates the first object block.
8. common reserve fund according to claim 6 shifts terminal device, which is characterized in that controlling the first node and institute
State second node carry out common reserve fund transfer after, further includes:
It obtains the common reserve fund and produces the target account in requesting;
The first account more new command is sent to the first node, so that the first node is by the target account from described the
It is deleted in the node credit that one node is locally stored;
The second account more new command is sent to the second node, so that the target account is added into institute by the second node
It states in the node credit that second node is locally stored.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810121435.XA CN108446976B (en) | 2018-02-07 | 2018-02-07 | A kind of common reserve fund transfer method, computer readable storage medium and terminal device |
PCT/CN2018/083293 WO2019153506A1 (en) | 2018-02-07 | 2018-04-17 | Provident fund transferring method, computer readable storage medium, terminal device and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810121435.XA CN108446976B (en) | 2018-02-07 | 2018-02-07 | A kind of common reserve fund transfer method, computer readable storage medium and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108446976A CN108446976A (en) | 2018-08-24 |
CN108446976B true CN108446976B (en) | 2019-05-24 |
Family
ID=63192020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810121435.XA Active CN108446976B (en) | 2018-02-07 | 2018-02-07 | A kind of common reserve fund transfer method, computer readable storage medium and terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108446976B (en) |
WO (1) | WO2019153506A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110928677B (en) * | 2019-09-30 | 2022-09-06 | 咪咕文化科技有限公司 | Virtual resource calculation method and device based on block chain, electronic equipment and storage medium |
CN110889771A (en) * | 2019-10-30 | 2020-03-17 | 泰康保险集团股份有限公司 | Account processing method and device, electronic equipment and computer readable medium |
CN110955523B (en) * | 2019-11-22 | 2022-03-08 | 中国银联股份有限公司 | Service processing method and device |
CN111179098B (en) * | 2019-11-28 | 2023-07-14 | 泰康保险集团股份有限公司 | Service transfer-out report processing method, system, equipment and medium |
CN111402069B (en) * | 2020-02-27 | 2023-04-07 | 数字广东网络建设有限公司 | Accumulation fund data acquisition method and device, computer equipment and storage medium |
CN111833014A (en) * | 2020-06-29 | 2020-10-27 | 中国建设银行股份有限公司 | Public accumulation fund transfer processing method and device based on block chain |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357405A (en) * | 2016-09-19 | 2017-01-25 | 弗洛格(武汉)信息科技有限公司 | Method and system for managing data on basis of block chain technology consistency algorithms |
CN107464106A (en) * | 2017-07-25 | 2017-12-12 | 北京果仁宝科技有限公司 | The method and system merchandised between block chain main chain and side chain |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11394773B2 (en) * | 2014-06-19 | 2022-07-19 | Jim Austin Joseph | Cryptographic currency block chain based voting system |
CN104580253B (en) * | 2015-01-30 | 2017-08-08 | 网易(杭州)网络有限公司 | A kind of method and device of processes user data |
US10454765B2 (en) * | 2016-07-15 | 2019-10-22 | Mastercard International Incorporated | Method and system for node discovery and self-healing of blockchain networks |
CN107220820B (en) * | 2017-05-16 | 2019-10-01 | 腾讯科技(深圳)有限公司 | Resource transfers method, apparatus and storage medium |
-
2018
- 2018-02-07 CN CN201810121435.XA patent/CN108446976B/en active Active
- 2018-04-17 WO PCT/CN2018/083293 patent/WO2019153506A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357405A (en) * | 2016-09-19 | 2017-01-25 | 弗洛格(武汉)信息科技有限公司 | Method and system for managing data on basis of block chain technology consistency algorithms |
CN107464106A (en) * | 2017-07-25 | 2017-12-12 | 北京果仁宝科技有限公司 | The method and system merchandised between block chain main chain and side chain |
Also Published As
Publication number | Publication date |
---|---|
CN108446976A (en) | 2018-08-24 |
WO2019153506A1 (en) | 2019-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108446976B (en) | A kind of common reserve fund transfer method, computer readable storage medium and terminal device | |
CN112214797B (en) | Data processing method, device, equipment, block chain system and storage medium | |
US11475437B2 (en) | Method and apparatus for managing subject data based on block chain | |
CN109791591B (en) | Method and system for identity and credential protection and verification via blockchain | |
EP3639466B1 (en) | Expendable cryptographic key access | |
WO2020211491A1 (en) | Block chain-based project auditing system and method, computing device and storage medium | |
US20200104296A1 (en) | System and method for a hybrid contract execution environment | |
US9703986B1 (en) | Decentralized reputation service for synthetic identities | |
US20200134745A1 (en) | METHOD AND SYSTEM FOR AUTOMATICALLY CREATING AND ASSIGNING ASSEMBLY LABOR ACTIVITIES (ALAs) TO A BILL OF MATERIALS (BOM) | |
CN109785136A (en) | A kind of transaction processing method of block chain, client and block chain network | |
CN110442652A (en) | A kind of across chain data processing method and device based on block chain | |
CN108898390A (en) | Intelligent contract call method and device, electronic equipment based on block chain | |
Celik et al. | Blockchain supported BIM data provenance for construction projects | |
CN109003078A (en) | Intelligent contract call method and device, electronic equipment based on block chain | |
JP2021510223A (en) | Methods, equipment, blockchain nodes, computer-readable media and systems for blockchain-based carbon recording and carbon trading | |
WO2018228973A1 (en) | Improved hardware security module management | |
CN108520307A (en) | Data processing method and relevant apparatus | |
CN110134930A (en) | Electronic contract management method, device, computer equipment and storage medium | |
CN110032598A (en) | Method for updating field and device, electronic equipment | |
CN111046237A (en) | User behavior data processing method and device, electronic equipment and readable medium | |
WO2020118859A1 (en) | Decentralized chip research and development transaction data storage method and system | |
Lu et al. | Why model-driven engineering fits the needs for blockchain application development | |
CA3125522A1 (en) | Blockchain payroll system | |
CN104699790A (en) | Bank data relationship building method and device | |
CN109886678A (en) | A kind of art work traceability system based on block chain |
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 |