CN107993083A - One kind integration exchange method, integration device for interchanging and distributed system - Google Patents
One kind integration exchange method, integration device for interchanging and distributed system Download PDFInfo
- Publication number
- CN107993083A CN107993083A CN201610949559.8A CN201610949559A CN107993083A CN 107993083 A CN107993083 A CN 107993083A CN 201610949559 A CN201610949559 A CN 201610949559A CN 107993083 A CN107993083 A CN 107993083A
- Authority
- CN
- China
- Prior art keywords
- exchange
- node
- data
- integration
- nodes
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
-
- 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
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0208—Trade or exchange of goods or services in exchange for incentives or rewards
-
- 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
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0215—Including financial accounts
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Storage Device Security (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses one kind integration exchange method, integration device for interchanging and distributed system, this method to include:Send the exchange rule of this node other nodes into distributed system;Receive the return information of the exchange rule of other nodes transmission;When the return information for confirming that other nodes are sent meets preset condition, rule is exchanged in storage;The integration that receiving terminal user sends, which exchanges, asks, and according to the generation exchange related data after exchanging the regular integration for exchanging peer node of storage, exchange related data is sent to other nodes;Receive the return information for the exchange related data that peer node is sent and feed back to terminal user.Since each node in a distributed system is provided with integration device for interchanging, by integrate device for interchanging can release quickly exchange rule, and unified store exchanges rule, exchanges related data and exchanges the return information of related data, therefore, solve the problems, such as accumulated point exchanging rule issue not in time, integration data renewal it is inconsistent.
Description
Technical field
The present invention relates to field of communication technology, more particularly to a kind of integration exchange method, integration device for interchanging and distribution
System.
Background technology
Integration consumption has become each big bank, electric business, Shang Chao, shopping center customer retaining, the common commercial for exciting client
Pattern, client can be circulated by integration, exchange realization integration consumption.Existing integration circulates, under the business model that exchanges, accumulates
The enterprise that circulates is divided to get in touch with many cooperation businessmans, each businessman formulates oneself exchange of integration and the platform integration token that circulates and advises respectively
Then, user is equivalent integration token or other partners by integrating the enterprise that circulates by each cooperation businessman accumulated point exchanging in hand
Family's integration, then consumed.
But circulate in above-mentioned integration, in the business model that exchanges, exchange rule need respectively integration circulate enterprise and
After being recorded in businessman both sides' system, accumulated point exchanging rule could be issued by integrating the enterprise that circulates, and can so cause to exchange regular inconvenience
It is slow in timely adjustment, issue flow;Stored respectively in addition, exchanging rule, it is inconsistent to easily cause integration data renewal.
Therefore, it is urgent to provide a kind of new integration to exchange method, solves because being circulated using the integration for integrating the enterprise that circulates
Centralization integration managing pattern centered on platform, cause accumulated point exchanging rule issue not in time, user integral data update not
The problem of consistent.
The content of the invention
An embodiment of the present invention provides one kind integration exchange method, integration device for interchanging and distributed system, to solve
The problem of accumulated point exchanging rule issue existing in the prior art is not in time, user integral data update is inconsistent.
An embodiment of the present invention provides one kind to integrate exchange method, including:
After the exchange rule between the integration of this node and integration token is determined, other sections are sent into distributed system
Point;Receive the return information for the exchange rule that other described nodes are sent;In the exchange rule for confirming to receive
When return information then meets preset condition, the exchange rule is stored;
When the integration for receiving terminal user's transmission exchanges request, peer node is exchanged according to the exchange rule of storage
Related data is exchanged in generation after integration, will be exchanged related data and is sent to other nodes;Receive the exchange phase that peer node is sent
Close the return information of data and feed back to the terminal user.
In a kind of possible implementation, in above-mentioned integration exchange method provided in an embodiment of the present invention, it is described
When the return information for the exchange rule for confirming to receive meets preset condition, the exchange rule is stored, is specifically included:
The default ratio for being more than whole nodes is replied in confirmation in the return information for the exchange rule for confirming to receive
During value, the exchange rule is stored.
It is described to incite somebody to action in above-mentioned integration exchange method provided in an embodiment of the present invention in a kind of possible implementation
Exchange related data to send to other nodes, specifically include:
Sent after exchanging related data encryption according to the encryption function made an appointment to other nodes, and to the opposite end
Node sends the key of this encryption data.
In a kind of possible implementation, in above-mentioned integration exchange method provided in an embodiment of the present invention, further include:
When the peer node receives encrypted exchange related data and key, according to the decryption made an appointment
Function pair exchanges related data decryption;
When determining to exchange related data and actually occur consistent, the exchange related data is sent to other described nodes
Confirmation message;
When determining to exchange related data and actually occur inconsistent, the exchange dependency number is sent to other described nodes
According to deny information.
In a kind of possible implementation, in above-mentioned integration exchange method provided in an embodiment of the present invention, further include:
When this definite node belongs to the data record node in this cycle, will receive described in other nodes send number
According to being forwarded to other described nodes after storage;
When receiving the data that each data record node is sent, the most data of the data consistency determined are replaced
Stored after falling the corresponding data that other the described nodes stored before are sent, the data include:Exchange rule, exchange dependency number
According to the return information with exchange related data.
In a kind of possible implementation, in above-mentioned integration exchange method provided in an embodiment of the present invention, further include:
When determining this node according to default agreement to perform the node of selection action, it is in distribution according to preset rules
Each data record node in next cycle is chosen in system, and each data record node in the next cycle selected is sent to it
His node.
In a kind of possible implementation, in above-mentioned integration exchange method provided in an embodiment of the present invention, it is described
When determining this node according to default agreement to perform the node of selection action, chosen down in a distributed system according to preset rules
Each data record node in a cycle, specifically includes:
Sort in definite each data record node of this node in this cycle last when, using random function point
The odd number data record node in next cycle is chosen in cloth system.
The embodiment of the present invention additionally provides a kind of integration device for interchanging, including:
Regular release module is exchanged, after the exchange rule between the integration of this definite node and integration token, hair
Other nodes are sent into distributed system;
Exchange rule and confirm module, for when receiving exchange rule, sending described exchange to other described nodes and advising
Return information then;Whether the return information for the exchange rule for confirming to receive meets preset condition;
Accumulated point exchanging module, when being asked for being exchanged in the integration for receiving terminal user's transmission, according to the exchange of storage
Rule generates exchange related data after exchanging the integration of peer node, will exchange related data and sends to other nodes;Reception pair
The return information for the exchange related data that end node is sent simultaneously feeds back to terminal user;Receiving the exchange of peer node transmission
During the return information of related data, the return information for exchanging related data is sent to other nodes;
Data recordin module, when the return information of the exchange rule for being received in confirmation meets preset condition,
Store the exchange rule;Store the exchange related data of other described nodes transmission received and converting for this node generation
Change related data;Store the return information for the exchange related data that other the described nodes received are sent.
It is described to convert in above-mentioned integration device for interchanging provided in an embodiment of the present invention in a kind of possible implementation
Change rule and confirm module, reply and whether meet specifically for the confirmation in the return information for the exchange rule for confirming to receive
The default ratio of whole nodes.
In a kind of possible implementation, in above-mentioned integration device for interchanging provided in an embodiment of the present invention, the product
Point module is exchanged, specifically for being sent after exchanging related data encryption according to the encryption function made an appointment to other nodes,
And send this key for being used for encryption data to the peer node;Encrypted exchange phase is received in the peer node
When closing data and key, after decrypting exchange related data according to the decryption function made an appointment, determining to exchange dependency number
During according to actually occurring consistent, the confirmation message for exchanging related data is sent to other described nodes, determining to exchange phase
When closing data and actually occurring inconsistent, deny information to other described nodes transmission exchange related data.
In a kind of possible implementation, in above-mentioned integration device for interchanging provided in an embodiment of the present invention, the number
According to logging modle, specifically for described in when this definite node belongs to the data record node in this cycle, receiving other
Other described nodes are forwarded to after the data storage that node is sent;Receiving the data of each data record node transmission
When, after the most data of the data consistency determined to be replaced to the corresponding data that other nodes described in storing before are sent
Storage, the data include:Rule is exchanged, exchange related data and exchanges the return information of related data.
In a kind of possible implementation, in above-mentioned integration device for interchanging provided in an embodiment of the present invention, further include:
Data record node selection module, for according to it is default agreement determine this node for perform selection action node when, according to
Preset rules choose each data record node in next cycle in a distributed system, and by each number in the next cycle selected
Sent according to record node to other nodes.
In a kind of possible implementation, in above-mentioned integration device for interchanging provided in an embodiment of the present invention, the number
According to record node selection module, specifically for sorting last in definite each data record node of this node in this cycle
When, choose the odd number data record node in next cycle in a distributed system using random function.
The embodiment of the present invention additionally provides a kind of distributed system, including:Multiple peer nodes, each peer node
On be provided with above-mentioned integration device for interchanging.
Brief description of the drawings
Fig. 1 is the flow diagram of integration exchange method provided in an embodiment of the present invention;
Fig. 2 is the structure diagram of integration device for interchanging provided in an embodiment of the present invention;
Fig. 3 is integration device for interchanging provided in an embodiment of the present invention and the interaction diagrams of user.
Embodiment
Below in conjunction with the accompanying drawings, to a kind of integration exchange method, integration device for interchanging and distribution provided in an embodiment of the present invention
The embodiment of formula system is described in detail.
As shown in Figure 1, an embodiment of the present invention provides one kind to integrate exchange method, comprise the following steps:
Exchange rule between S11, the integration for determining this node and integration token, and other are sent into distributed system
Node;
S12, receive the regular return information of the exchange of other nodes transmission;
Whether the return information for the exchange rule that S13, confirmation receive meets preset condition, if it is satisfied, then storage is converted
Rule is changed, and performs step S14, if conditions are not met, the then exchange rules ineffective;
S14, when the integration for receiving terminal user's transmission exchanges request, exchanged according to the exchange of storage rule to end segment
Related data is exchanged in generation after the integration of point, will be exchanged related data and is sent to other nodes;Store other nodes received
The exchange related data of transmission and the exchange related data of this node generation;
S15, the return information for receiving the exchange related data that peer node is sent simultaneously feed back to terminal user;Receiving
During the return information for the exchange related data that peer node is sent, the return information for exchanging related data is sent to other nodes;
Store the return information for the exchange related data that other nodes received are sent.
Specifically, in above-mentioned integration exchange method provided in an embodiment of the present invention, due to being converted by issuing adjustment in time
Rule other nodes into distributed system are changed, and the exchange rule that other nodes are sent in the distributed system for confirming to receive
Return information when meeting preset condition, you can unified storage meets the exchange rule of preset condition, also, also uniformly stores
The return information equivalance for exchanging related data and exchange related data divides related data, therefore, efficiently solves accumulated point exchanging rule
Then issue not in time, the problem of user integral data update is inconsistent.
It should be noted that the order of the step S13 and S14 in above-mentioned integration exchange method provided in an embodiment of the present invention
It can exchange, however it is not limited to the sequencing of foregoing description.
In the specific implementation, in order to ensure to exchange regular reasonability, in integration exchange side provided in an embodiment of the present invention
In step S13 in method confirm receive exchange rule return information whether meet preset condition, specifically can by with
Under type is realized:
When the default ratio for being more than whole nodes is replied in confirmation in the return information for the exchange rule for confirming to receive,
Rule is exchanged in storage.
Wherein, default ratio can be set according to actual needs, not limited herein.
Specifically, the return information for the exchange rule that other nodes are sent includes " confirmation " and " denying " in distributed system
Two kinds, also, some node break down in the case of, give tacit consent to the node to exchange rule return information for " put no
Reason ".For example, can in the distributed system that receives is confirmed the exchange rule that other nodes are sent " confirmation " return information
More than in distributed system whole node 2/3rds when, rule is exchanged in storage.
In the specific implementation, data are subject to unauthorized access in order to prevent, are exchanged in integration provided in an embodiment of the present invention
Related data will be exchanged in step S14 in method to send to other nodes, can be specifically accomplished by the following way:
Sent after exchanging related data encryption according to the encryption function made an appointment to other nodes, and to peer node
Send the key of this encryption data.In order to effectively prevent the leakage of data, key regenerates every time.
It is preferred that dividing in integration exchange provided in an embodiment of the present invention in method, it is encrypted to exchanging related data
Afterwards, following steps be can also carry out:
When peer node receives encrypted exchange related data and key, according to the decryption function made an appointment
To exchanging related data decryption;
When determining to exchange related data and actually occur consistent, the confirmation letter for exchanging related data is sent to other nodes
Breath;
When determining to exchange related data and actually occur inconsistent, sent to other nodes and exchange denying for related data
Information.
Specifically, by taking user mutually changes the integration of A nodes in distributed system the integration of B node into as an example, user passes through A
Node, is worth medium as centre to integrate token, exchanges the integration of peer node, that is, B node, related data is exchanged in generation.For
Prevent leaking data, A nodes can add the exchange related data of generation according to the encryption function encryptY () to make an appointment
Other nodes into distributed system are sent after close, and B node sends this for the close of encryption data into distributed system
Key;B node receiving the encrypted exchange related data of A nodes transmission and during key, can be according to making an appointment
Decryption function decryptY () to exchange related data decryption after, verification exchange related data with actually occur it is whether consistent.
When determining to exchange related data and actually occur consistent, into distributed system, other nodes send the confirmation for exchanging related data
Information, when determining to exchange related data and actually occur inconsistent, into distributed system, it is related to send exchange for other nodes
Data deny information.
In this way, not only avoid the risk for exchanging related data leakage, and exchange related data in a distributed system
The storage of each Node distribution, each node can read, verify the exchange dependency number of this node at any time by corresponding key
According to so as to find to exchange the quality problems of related data as early as possible.
In the specific implementation, in order to ensure the authenticity, integrality and accuracy of data, provided in an embodiment of the present invention
Integrate in exchange method, when performing step S13, S14 and S15, it is also necessary to perform following steps:
When this definite node belongs to the data record node in this cycle, the data that other nodes received are sent are deposited
Other nodes are forwarded to after storage;
When receiving the data that each data record node is sent, the most data of the data consistency determined are replaced
Stored after falling the corresponding data that other nodes stored before are sent, data include:Exchange rule, exchange related data and exchange
The return information of related data.
Specifically, Single Point of Faliure is produced in order to prevent, and there are fraud node, improves the fault-tolerance of system, real in the present invention
In the integration device for interchanging that example offer is provided, N number of node in compartment system can be chosen as data record node, wherein, N is
Odd number more than 3.
By taking C nodes are any one node in N number of data record node as an example, C nodes are receiving N number of data record
During the data that node is sent, the uniformity of data is checked, and other nodes in distributed system are being forwarded to after being locally stored.If
The data that each back end of the received N of C nodes is sent are all consistent, then are directly being forwarded to after being locally stored in distributed system
Other nodes in addition to C nodes;If there are inconsistent, wherein P parts of data for the data that each back end of the received N of C nodes is sent
Unanimously, remaining N-P parts of data are consistent, and P is more than N-P, then are subject to P parts of data, and distribution is forwarded to after being locally stored
Other nodes in system in addition to C nodes.Because N is odd number, thereby may be ensured that in the received N number of back end hair of C nodes
The data sent there are it is inconsistent when, it is unequal to record the quantity of the node of different pieces of information respectively, and then avoids and can not determine to count
The problem of according to accuracy.
Specifically, in order to allow each node in distributed system to participate in the record of integration data and authenticated
Cheng Zhong, in integration exchange method provided in an embodiment of the present invention, the selection of data record node can be real in the following manner
It is existing:
When determining this node according to default agreement to perform the node of selection action, it is in distribution according to preset rules
Each data record node in next cycle is chosen in system, and each data record node in the next cycle selected is sent to it
His node.
It is preferred that in integration exchange method provided in an embodiment of the present invention, determining that this node is according to default agreement
When performing the node of selection action, each data record node in next cycle is chosen in a distributed system according to preset rules,
It can specifically be accomplished by the following way:
Sort in definite each data record node of this node in this cycle last when, using random function point
The odd number data record node in next cycle is chosen in cloth system.
Specifically, in integration exchange method provided in an embodiment of the present invention, with this week interim odd number data record
Exemplified by node sequencing is ABCD ... EFG, it can be seen that G nodes be this cycle odd number data record node sequencing last
A, then G nodes, can use random function radomX () to choose the odd number data note in next cycle in a distributed system
Record node.This way it is ensured that each node in distributed system can participate in the record and verification process of integration data
In, so as to ensure the authenticity and integrity of data, the calling to account property of system is improved, reduces the trust wind of system
Danger.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of integration device for interchanging, since the device solves
The principle of problem is similar to above-mentioned method, and therefore, the implementation of the device may refer to the implementation of method, and it is no longer superfluous to repeat part
State.
Integration device for interchanging provided in an embodiment of the present invention, as shown in Fig. 2, including:
Regular release module 21 is exchanged, after determining the exchange rule between the integration of this node and integration token, hair
Other nodes are sent into distributed system;
Exchange rule and confirm module 22, for when receiving exchange rule, time for exchanging rule to be sent to other nodes
Complex information, that is, receive other nodes transmission exchange rule after, into distributed system in addition to this node all other
Node sends the return information of exchange rule;Whether the return information for the exchange rule for confirming to receive meets preset condition;
Accumulated point exchanging module 23, when being asked for being exchanged in the integration for receiving terminal user's transmission, according to converting for storage
Change after rule exchanges the integration of peer node and generate exchange related data, related data will be exchanged and sent to other nodes;Receive
The return information for the exchange related data that peer node is sent simultaneously feeds back to terminal user;Receiving converting for peer node transmission
When changing the return information of related data, the return information for exchanging related data is sent to other nodes;
Data recordin module 24, for when the return information for the exchange rule for confirming to receive meets preset condition, depositing
Rule is exchanged in storage;Store the exchange related data of other nodes transmission received and the exchange dependency number of this node generation
According to;Store the return information for the exchange related data that other nodes received are sent.
Specifically, in order to ensure to exchange regular reasonability, in integration device for interchanging provided in an embodiment of the present invention, convert
Rule confirmation module 22 is changed, replys and whether meets entirely specifically for the confirmation in the return information for the exchange rule for confirming to receive
The default ratio of portion's node.
In the specific implementation, related data is exchanged in order to prevent and is subject to unauthorized access, cause to exchange related data leakage,
In integration device for interchanging provided in an embodiment of the present invention, accumulated point exchanging module 23, specifically for according to the encryption made an appointment
Function will be sent to other nodes after exchanging related data encryption, and be sent this to peer node and be used for the close of encryption data
Key;When peer node receives encrypted exchange related data and key, according to the decryption function made an appointment to converting
After data deciphering is closed in commutation, when determining to exchange related data and actually occur consistent, sent to other nodes and exchange dependency number
According to confirmation message, determining to exchange related data and when actually occurring inconsistent, sent to other nodes and exchange related data
Deny information.
In the specific implementation, in order to ensure the authenticity, integrality and accuracy of data, provided in an embodiment of the present invention
Integrate in device for interchanging, data recordin module 24, specifically for when this definite node belongs to the data record node in this cycle,
Other nodes are forwarded to after the data storage that other nodes received are sent;Receiving what each data record node was sent
During data, after the most data of the data consistency determined to be replaced to the corresponding data that other nodes stored before are sent
Storage, data include:Rule is exchanged, exchange related data and exchanges the return information of related data.
Alternatively, in order to allow each node in distributed system to participate in the record of integration data and authenticated
Cheng Zhong, in integration device for interchanging provided in an embodiment of the present invention, can also include:Data record node selection module 25, is used
When this node is being determined according to default agreement to perform the node of selection action, selected in a distributed system according to preset rules
Each data record node in a cycle is removed, and each data record node in the next cycle selected is sent to other sections
Point.
It is preferred that in integration device for interchanging provided in an embodiment of the present invention, as shown in Fig. 2, data record node selection
Module 25, specifically for sort in definite each data record node of this node in this cycle last when, using random
Function chooses the odd number data record node in next cycle in a distributed system.
It should be noted that shown in Fig. 2 be the integration device for interchanging that one exemplary embodiments of the present invention provide structure
Schematic diagram, but integration device for interchanging provided in an embodiment of the present invention can be not limited to the structure diagram shown in Fig. 2, i.e., it is of the invention
The integration device for interchanging that embodiment provides can also be made up of the component in one or more Fig. 2, or each component in Fig. 2
Different combinations can be taken to form.
In order to preferably realize the function of above-mentioned integration device for interchanging provided in an embodiment of the present invention, the embodiment of the present invention is set
Precondition has been put, has been specifically included:A kind of integration token of setting, the integration token equivalence of agreement 1 is in 1 unit country franc;By M
The computer node of cooperation businessman forms a distributed system;A random function radomX () is selected, for from distribution
N number of businessman's node is selected in system at random as data record node, wherein, M>N>3, and N is odd number;First data record
Node is determined by being linked up under cooperation businessman's line;In N number of businessman's node by random function radomX () generations, this is about scheduled on
The node to sort in cycle most rearward is as the node for performing random function radomX () next time;Set a data
Record period, for example, the cycle can be 1 it is small when;Data encryption algorithm encryptY () and decipherment algorithm decryptY () is set,
For to data content encryption and decryption, to prevent data to be subject to unauthorized access.
Based on above-mentioned precondition, technical solution for a better understanding of the present invention, an embodiment of the present invention provides upper
Integration device for interchanging and the interaction diagrams of user are stated, as shown in figure 3, comprising the following steps:
Any one node in S31, distributed system, is determining the exchange rule between the integration of this node and integration token
Afterwards, using regular release module 21 is exchanged, into distributed system, whole nodes, which are sent, exchanges regular data;
After whole nodes receive the exchange rule in the S31 of certain node transmission in S32, distributed system, exchange is used
Rule confirms that module 22 gives corresponding reply, and return information is sent to whole nodes via distributed system;
Specifically, each node in step S32 in distributed system receive certain node transmission exchange rule after,
The return information of " confirmation " or " denying " can be made to the exchange rule, in the case where some node breaks down, acquiescence
The node is " ignoring " to the return information for exchanging rule;Wherein, the code of " confirmation " return information is 0, and " denying " returns
The code of complex information is 1, and the code of " ignoring " return information is 2;
Specifically, exchanged in step S32 rule confirm module 22 can in the distributed system that receives is confirmed other
" confirmation " return information that the code for the exchange rule that node is sent is 0 is more than 2/3rds of whole nodes in distributed system
When, then perform step S33, otherwise, the exchange rules ineffective;
S33, N number of data record node by being selected in the last cycle, usage data record module 24, each it is independent general
Exchange regular data to record, and all nodes are sent to via distributed system, wherein, N is the odd number more than 3;
After each node receives the exchange regular data that N number of data record node is sent in S34, distributed system, verification is converted
The uniformity of regular data, and usage data record module 24 are changed, is recorded in local;
Specifically, each node, may when the uniformity of regular data is exchanged in verification in the distributed system in step S34
There will be two kinds of situations, be respectively N parts exchange regular datas all unanimously and N parts exchange regular datas there are inconsistent;If N parts
It is all consistent to exchange regular data, then is directly recorded in local;If N parts are exchanged regular data, there are inconsistent, selection N numbers
Subject to the data sent according to the consistent P part data records node of content in record, be recorded in local, wherein, P be more than N/2 and
Integer no more than N;
S35, user pass through the integration of certain node in distributed system, that is, accumulated point exchanging node side according to accumulated point exchanging rule
Module 23 is exchanged, is worth medium as centre to integrate token, certain another node integrates in inquiry and exchange distributed system
The integration of peer node is exchanged, the related data for exchanging generation equally will be via the data record node usage data record of selection
Module 24 is recorded, and is sent to whole nodes of distributed system;Herein, leaking data in order to prevent, needs to lead to before transmission
Cross encryptY () function pair exchange generation related data be encrypted, and send when, to integration exchange peer node with
Message packet form sends the key for encryption data, and key regenerates every time;
S36, integration exchange peer node and receive the key of accumulated point exchanging node transmission and encrypted accumulated point exchanging phase
After closing data, decryption is performed using decryptY () function pair accumulated point exchanging data, and judges to exchange related data and actual hair
Whether life is consistent;If consistent, confirm that the notes are recorded, and will confirm that information is sent to whole nodes of distributed system;It is no
Then, deny exchanging the validity of related data, this denies that information is also distributed to whole nodes of distributed system;
Each node is received after integration exchanges the confirmation/deny information that peer node is replied in S37, distributed system, record
In local;
S38, accumulated point exchanging node are received after integration exchanges the confirmation/deny information that peer node is replied, and return to use
Family.
Integrated as can be seen that any one businessman's node in distributed system determines oneself with integrating in device for interchanging
After the integration token of agreement exchanges rule, rule will be exchanged by distributed system, while be sent to other in distributed system
Businessman's node.If more than 2/3rds businessman's node has been made " to confirm " to reply to exchanging rule, then provided by the present invention
Distributed system in random selected data record node get off regular record is exchanged, as a public information simultaneously
All businessman's nodes in distributed system are sent to, after all businessman's nodes receive exchange rule, rule will be exchanged and be stored in
It is local.
Then token can be integrated by the integration device for interchanging of businessman's node deployment for the terminal user of businessman's node
Medium is worth as centre, exchanges the integration for desired other businessman's nodes of controlling oneself.The exchange dependency number generated in redemption process
According to, from businessman's node deployment integration device for interchanging will exchange related data all business into distributed system in a manner of point-to-point
Family's node broadcasts.Selected data record node is recorded related data is exchanged at random, and is sent to as public account
Exchange related data is stored in local by whole businessman's nodes, whole businessman's nodes.
Opposite end businessman's node of accumulated point exchanging can judge to exchange related data and reality after exchange related data is received
Happens is that it is no consistent, if unanimously, confirming that the notes are recorded, if inconsistent, denying the validity of redemption data.The confirmation/
Deny return information from opposite end businessman's node all businessman's node broadcasts into distributed system in a point-to-point fashion.Random choosing
Fixed data record node will confirm that/deny that return information is recorded, and be sent to whole businessman's nodes as public account,
Whole businessman's nodes handles confirm/deny that return information is stored in local.Businessman's node of accumulated point exchanging, which receives, to be confirmed/denies back
After complex information, user is fed back to.
In such a case it is not necessary to circulated platform by the circulate integration of enterprise of integration, you can realize and exchange rule
Unified storage and release quickly, all businessman enterprises node all share same Integral Rule and redemption data, and user exchanges not
More diversified selection is there has also been with businessman's integration.
Correspondingly, the embodiment of the present invention additionally provides a kind of distributed system, including:Multiple peer nodes, each equity
Above-mentioned integration device for interchanging is provided with node.
Specifically, the type and quantity of the peer node included in distributed system provided in an embodiment of the present invention can be with
It is unrestricted, exchanged so as to effectively prevent current integration centered on integrating the enterprise that circulates, the city of enterprise because integration circulates
Field sales department only selects cooperation businessman in limited range, causes the convertible commodity of user integral or clothes according to its preference
The problem of selection face of business is narrow, so that user has more diversified selection when being integrated and being exchanged using businessman, greatly carries
The usage experience for the product that user provides businessman enterprise is risen.
Above-mentioned a kind of integration exchange method, integration device for interchanging and distributed system provided in an embodiment of the present invention, the party
Method includes:After the exchange rule between the integration of this node and integration token is determined, other sections are sent into distributed system
Point;Receive the return information of the exchange rule of other nodes transmission;Meet in the return information for the exchange rule for confirming to receive
During preset condition, rule is exchanged in storage;When the integration for receiving terminal user's transmission exchanges request, advised according to the exchange of storage
Related data is exchanged in generation after then exchanging the integration of peer node, will be exchanged related data and is sent to other nodes;Receive opposite end
The return information for the exchange related data that node is sent simultaneously feeds back to terminal user.Due to each node in a distributed system
Integration device for interchanging is provided with, the exchange rule release module by integrating device for interchanging can issue adjustment in time and exchange rule
Then other nodes into distributed system, other nodes in the distributed system that module confirmation reception is confirmed by exchanging rule
When the return information of the exchange rule of transmission meets preset condition, data recordin module can unify storage and meet preset condition
Rule is exchanged, also, data recordin module also uniformly stores return information exchanged related data and exchange related data etc.
Integrate related data, therefore, efficiently solve the issue of accumulated point exchanging rule not in time, user integral data update is inconsistent asks
Topic.
In addition, the integration function to be completed of device for interchanging provided in an embodiment of the present invention is fairly simple, much increase income
Algorithm and program, are easy to technology realization, have very strong popularizing value.Also, utilize distributed storage technology and equity
Network communication mode, realizes the mode of the exchange between different businessmans integration, not only eliminates integration and circulates platform, but also compares
The degree of opening of data has pole in the centralization integration managing pattern centered on integrating the enterprise that circulates, the embodiment of the present invention
Big to improve, to promoting businessman's accumulated point exchanging, business marketing, so that optimization businessman's operation flow, the competitiveness for improving businessman has
There is considerable meaning.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these modification and variations.
Claims (14)
1. one kind integration exchange method, it is characterised in that including:
After the exchange rule between the integration of this node and integration token is determined, other nodes are sent into distributed system;
Receive the return information for the exchange rule that other described nodes are sent;In the reply for the exchange rule for confirming to receive
When information meets preset condition, the exchange rule is stored;
When the integration for receiving terminal user's transmission exchanges request, the integration of peer node is exchanged according to the exchange rule of storage
Related data is exchanged in generation afterwards, will be exchanged related data and is sent to other nodes;Receive the exchange dependency number that peer node is sent
According to return information and feed back to the terminal user.
2. integration exchange method as claimed in claim 1, it is characterised in that described in the exchange for confirming to receive rule
Return information when meeting preset condition, store it is described exchange rule, specifically include:
When the default ratio for being more than whole nodes is replied in confirmation in the return information for the exchange rule for confirming to receive,
Store the exchange rule.
3. integration exchange method as claimed in claim 1, it is characterised in that the related data that will exchange is sent to other sections
Point, specifically includes:
Sent after exchanging related data encryption according to the encryption function made an appointment to other nodes, and to the peer node
Send the key of this encryption data.
4. integration exchange method as claimed in claim 3, it is characterised in that further include:
When the peer node receives encrypted exchange related data and key, according to the decryption function made an appointment
To exchanging related data decryption;
When determining to exchange related data and actually occur consistent, the exchange related data is sent really to other described nodes
Recognize information;
When determining to exchange related data and actually occur inconsistent, the exchange related data is sent to other described nodes
Deny information.
5. such as claim 1-4 any one of them integration exchange method, it is characterised in that further include:
When this definite node belongs to the data record node in this cycle, will receive described in other nodes send data deposit
Other described nodes are forwarded to after storage;
When receiving the data that each data record node is sent, the most data of the data consistency determined are replaced it
Stored after the corresponding data that other described nodes of preceding storage are sent, the data include:Exchange rule, exchange related data and
Exchange the return information of related data.
6. integration exchange method as claimed in claim 5, it is characterised in that further include:
When determining this node according to default agreement to perform the node of selection action, according to preset rules in a distributed system
Each data record node in next cycle is chosen, and each data record node in the next cycle selected is sent to other sections
Point.
7. integration exchange method as claimed in claim 6, it is characterised in that described to determine that this node is according to default agreement
When performing the node of selection action, each data record node in next cycle is chosen in a distributed system according to preset rules,
Specifically include:
Sort in definite each data record node of this node in this cycle last when, using random function in distribution
The odd number data record node in next cycle is chosen in system.
8. one kind integration device for interchanging, it is characterised in that including:
Regular release module is exchanged, for after the exchange rule between the integration of this node and integration token is determined, sending extremely
Other nodes in distributed system;
Exchange rule confirm module, for receive exchange rule when, to other described nodes send it is described exchange rule
Return information;Whether the return information for the exchange rule for confirming to receive meets preset condition;
Accumulated point exchanging module, when being asked for being exchanged in the integration for receiving terminal user's transmission, according to the exchange of storage rule
Related data is exchanged in generation after exchanging the integration of peer node, will be exchanged related data and is sent to other nodes;Receive to end segment
The return information for the exchange related data that point is sent simultaneously feeds back to terminal user;It is related in the exchange for receiving peer node transmission
During the return information of data, the return information for exchanging related data is sent to other nodes;
Data recordin module, for when the return information for the exchange rule for confirming to receive meets preset condition, storing
It is described to exchange rule;Store the exchange related data of other the described nodes transmission received and the exchange phase of this node generation
Close data;Store the return information for the exchange related data that other the described nodes received are sent.
9. integration device for interchanging as claimed in claim 8, it is characterised in that the rule of exchanging confirms module, is specifically used for
The default ratio for whether meeting whole nodes is replied in confirmation in the return information for the exchange rule for confirming to receive.
10. as claimed in claim 8 integration device for interchanging, it is characterised in that the accumulated point exchanging module, specifically for according to
Transmission sends this to other nodes, and to the peer node after the encryption function made an appointment will exchange related data encryption
Key for encryption data;When the peer node receives encrypted exchange related data and key, according to pre-
After the decryption function first arranged is to exchanging related data decryption, when determining to exchange related data and actually occur consistent, to institute
State other nodes and send the confirmation message for exchanging related data, determining that exchange related data is inconsistent with actually occurring
When, deny information to other described nodes transmission exchange related data.
11. such as claim 8-10 any one of them integration device for interchanging, it is characterised in that the data recordin module, tool
Body be used for when this definite node belongs to the data record node in this cycle, will receive described in other nodes transmission data
Other described nodes are forwarded to after storage;When receiving the data that each data record node is sent, the number that will determine
Stored after the corresponding data that other nodes described in storing before are sent is replaced according to the most data of uniformity, the data packet
Include:Rule is exchanged, exchange related data and exchanges the return information of related data.
12. integration device for interchanging as claimed in claim 11, it is characterised in that further include:Data record node selection module,
For according to it is default agreement determine this node for perform selection action node when, according to preset rules in a distributed system
Each data record node in next cycle is chosen, and each data record node in the next cycle selected is sent to other sections
Point.
13. integration device for interchanging as claimed in claim 12, it is characterised in that the data record node selection module, tool
Body be used for sort in definite each data record node of this node in this cycle last when, be distributed using random function
The odd number data record node in next cycle is chosen in formula system.
A kind of 14. distributed system, it is characterised in that including:Multiple peer nodes, set in each peer node just like
Claim 8-13 any one of them integrates device for interchanging.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610949559.8A CN107993083A (en) | 2016-10-26 | 2016-10-26 | One kind integration exchange method, integration device for interchanging and distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610949559.8A CN107993083A (en) | 2016-10-26 | 2016-10-26 | One kind integration exchange method, integration device for interchanging and distributed system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107993083A true CN107993083A (en) | 2018-05-04 |
Family
ID=62029373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610949559.8A Pending CN107993083A (en) | 2016-10-26 | 2016-10-26 | One kind integration exchange method, integration device for interchanging and distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107993083A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109067582A (en) * | 2018-08-03 | 2018-12-21 | 腾讯科技(深圳)有限公司 | A kind of data management system, method and device |
CN109727067A (en) * | 2018-12-27 | 2019-05-07 | 抚州中科院数据研究院 | Across businessman coupons circulation method and system based on block chain |
CN109919673A (en) * | 2019-03-01 | 2019-06-21 | 深圳市博源电子商务有限公司 | A kind of integral liquidation method and system |
CN110766453A (en) * | 2019-10-10 | 2020-02-07 | 深圳市云积分科技有限公司 | Point clearing method and device for e-commerce brand |
CN115311028A (en) * | 2022-10-12 | 2022-11-08 | 神州数码融信云技术服务有限公司 | Data processing method and device, computer equipment and computer readable storage medium |
CN116957666A (en) * | 2023-09-19 | 2023-10-27 | 南京大数据集团有限公司 | Integral data processing method and system based on circulation feature recognition |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006116228A2 (en) * | 2005-04-22 | 2006-11-02 | Six Continents Hotels, Inc. | Universal redemption vehicle |
CN104580253A (en) * | 2015-01-30 | 2015-04-29 | 网易(杭州)网络有限公司 | Method and device for processing user data |
CN105976246A (en) * | 2016-04-29 | 2016-09-28 | 北京太云科技有限公司 | Block chain-based digital asset superposition method and device |
CN105975868A (en) * | 2016-04-29 | 2016-09-28 | 杭州云象网络技术有限公司 | Block chain-based evidence preservation method and apparatus |
-
2016
- 2016-10-26 CN CN201610949559.8A patent/CN107993083A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006116228A2 (en) * | 2005-04-22 | 2006-11-02 | Six Continents Hotels, Inc. | Universal redemption vehicle |
CN104580253A (en) * | 2015-01-30 | 2015-04-29 | 网易(杭州)网络有限公司 | Method and device for processing user data |
CN105976246A (en) * | 2016-04-29 | 2016-09-28 | 北京太云科技有限公司 | Block chain-based digital asset superposition method and device |
CN105975868A (en) * | 2016-04-29 | 2016-09-28 | 杭州云象网络技术有限公司 | Block chain-based evidence preservation method and apparatus |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109067582A (en) * | 2018-08-03 | 2018-12-21 | 腾讯科技(深圳)有限公司 | A kind of data management system, method and device |
CN109727067A (en) * | 2018-12-27 | 2019-05-07 | 抚州中科院数据研究院 | Across businessman coupons circulation method and system based on block chain |
CN109919673A (en) * | 2019-03-01 | 2019-06-21 | 深圳市博源电子商务有限公司 | A kind of integral liquidation method and system |
CN110766453A (en) * | 2019-10-10 | 2020-02-07 | 深圳市云积分科技有限公司 | Point clearing method and device for e-commerce brand |
CN115311028A (en) * | 2022-10-12 | 2022-11-08 | 神州数码融信云技术服务有限公司 | Data processing method and device, computer equipment and computer readable storage medium |
CN116957666A (en) * | 2023-09-19 | 2023-10-27 | 南京大数据集团有限公司 | Integral data processing method and system based on circulation feature recognition |
CN116957666B (en) * | 2023-09-19 | 2024-04-02 | 南京大数据集团有限公司 | Integral data processing method and system based on circulation feature recognition |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107993083A (en) | One kind integration exchange method, integration device for interchanging and distributed system | |
US11397829B2 (en) | Method for handling privacy data | |
US20240013212A1 (en) | Transferring cryptocurrency from a remote limited access wallet | |
CN102474415B (en) | Configurable online public key infrastructure (PKI) management framework | |
US20190172021A1 (en) | Distributed Ledger Applications | |
CN108776929A (en) | Bill processing method, system based on block chain database and readable storage medium storing program for executing | |
CN116934328A (en) | System and method for controlling asset-related actions via blockchain | |
CN108171609A (en) | A kind of method and computer readable storage medium of digital asset intercommunication | |
CN109255084A (en) | Electronic bill querying method, device, storage medium and computer equipment | |
CN110290094A (en) | A kind of control method and device of data access authority | |
CN109961292A (en) | Block chain identifying code application method, equipment and storage medium | |
KR101949712B1 (en) | Block chain generation method having consensus algorithm by stratified stochastic delegated proof of node and their commission allocation algorithm | |
CN101120604A (en) | System for allocating a chip card to a network operator | |
CN110046999A (en) | Block chain method of commerce and device | |
CN109670801A (en) | A kind of digital encryption currency transfer method for block chain | |
CN109191272A (en) | About the data processing method of electronic bill, device, storage medium and equipment | |
CN108880784A (en) | User privacy information shared system under a kind of different trust domain of solution based on block chain | |
CN109522681A (en) | Digital content really weighs method, apparatus and storage medium | |
Dasu et al. | Unchain your blockchain | |
CN101482963A (en) | Service data processing platform, system and method | |
CA3184856A1 (en) | Method, participatant unit, transaction register, and payment system for managing transaction data sets | |
CN109461026A (en) | Card certificate distribution method, device, computer equipment and storage medium | |
CN108923928A (en) | Digital certificate revocation system and method based on block chain | |
CN106022159A (en) | ERP data processing method based on cloud computing | |
CN109819123B (en) | Method and device for realizing value-added service and industry application authentication center |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180504 |