CN112541791B - Resource exchange method and server - Google Patents

Resource exchange method and server Download PDF

Info

Publication number
CN112541791B
CN112541791B CN202011498917.0A CN202011498917A CN112541791B CN 112541791 B CN112541791 B CN 112541791B CN 202011498917 A CN202011498917 A CN 202011498917A CN 112541791 B CN112541791 B CN 112541791B
Authority
CN
China
Prior art keywords
alternative
exchange
resource
strategy
approval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011498917.0A
Other languages
Chinese (zh)
Other versions
CN112541791A (en
Inventor
肖征荣
田新雪
邢建兵
马书惠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011498917.0A priority Critical patent/CN112541791B/en
Publication of CN112541791A publication Critical patent/CN112541791A/en
Application granted granted Critical
Publication of CN112541791B publication Critical patent/CN112541791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0211Determining the effectiveness of discounts or incentives
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives

Landscapes

  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (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)
  • Computer And Data Communications (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a resource exchange method and a server. Relates to the technical field of block chains. The method comprises the following steps: acquiring approval identifications of each alliance node to a first alternative exchange strategy from a blockchain network, wherein the first alternative exchange strategy is used for exchanging different types of resources; counting the strategy approval quantity corresponding to the first alternative exchange strategy according to the approval mark; determining whether the first alternative exchange strategy is effective or not according to the strategy approval quantity and a preset quantity threshold; and under the condition that the first alternative exchange strategy is confirmed to be effective, generating and sending a resource exchange consensus mechanism into the blockchain network according to the first alternative exchange strategy so that each alliance node performs resource exchange according to the resource exchange consensus mechanism. The method ensures that resources of different types can be fully used according to a resource exchange consensus mechanism, improves the management efficiency of the resources, ensures the rights and interests of users and reduces the cost of a resource operation platform.

Description

Resource exchange method and server
Technical Field
The application relates to the technical field of blockchains, in particular to a resource exchange method and a server.
Background
Currently, a point system is proposed in many service fields (such as aviation, banking, hotel, telecom operators, etc.), and points are used as a virtual resource and can be used for exchanging different real objects to reward the consumption behavior of users.
However, in the process of using and exchanging the virtual resources, the user experience is poor due to the complicated exchanging process of various different types of virtual resources. For example, some users have too scattered points and a small number, but merchants have a high demand for the number of points required to redeem merchandise, making it difficult for users to redeem points on their own accounts for physical objects of their own heart rate meters. Because the experience degree is poor, the value of the virtual resource is not perceived by the user, so that the virtual resources of many users are in a stagnation or zero clearing state, and the virtual resources of the users cannot be fully utilized.
Disclosure of Invention
Therefore, the application provides a resource exchange method and a server, which are used for solving the problem of how to improve the utilization rate of resources of different categories.
In order to achieve the above object, a first aspect of the present application provides a resource exchange method, including: acquiring approval identifications of each alliance node to a first alternative exchange strategy from a blockchain network, wherein the first alternative exchange strategy is used for exchanging different types of resources; counting the strategy approval quantity corresponding to the first alternative exchange strategy according to the approval mark; determining whether the first alternative exchange strategy is effective or not according to the strategy approval quantity and a preset quantity threshold; and under the condition that the first alternative exchange strategy is confirmed to be effective, generating and sending a resource exchange consensus mechanism into the blockchain network according to the first alternative exchange strategy so that each alliance node performs resource exchange according to the resource exchange consensus mechanism.
In some implementations, after obtaining the approval identifications of the first alternative redemption policies by the respective coalition nodes from the blockchain network, further includes: saving the approval identifications sent by the alliance nodes into a redemption policy approval table, wherein the redemption policy approval table comprises: any one or more of blockchain identification, approval identification and approval time information of each federation node.
In some implementations, determining that the first alternative redemption policy is in effect based on the policy approval quantity and a preset quantity threshold includes: under the condition that the policy approval quantity meets the requirement of a preset quantity threshold value, acquiring time stamp information generated by a time stamp server; generating and sending broadcasting information to be validated to the blockchain network according to the timestamp information, the redemption policy approval table, the policy approval quantity and the first alternative redemption policies, so that each alliance node verifies the broadcasting information to be validated, and determining that the first alternative redemption policies are validated under the condition that the broadcasting information to be validated is verified by each alliance node.
In some embodiments, generating and transmitting a resource redemption consensus mechanism into the blockchain network according to the first alternative redemption policy, so that each coalition node performs resource redemption according to the resource redemption consensus mechanism, and then further includes: and determining the effective starting time of the resource exchange consensus mechanism according to the time stamp information.
In some implementations, before obtaining the approval identifications of the first alternative redemption policies by the respective coalition nodes from the blockchain network, further includes: generating a first alternative exchange strategy according to first type resources and preset type resources, wherein the first type resources are determined according to the service field corresponding to the alliance node; the first alternative redemption policy is transmitted to the blockchain network such that each coalition node analyzes the first alternative redemption policy to determine whether to approve the first alternative redemption policy.
In some implementations, before obtaining the approval identifications of the first alternative redemption policies by the respective coalition nodes from the blockchain network, further includes: counting the node number of alliance nodes in the blockchain network; and determining a preset quantity threshold according to the quantity of the nodes.
In some implementations, before obtaining the approval identifications of the first alternative redemption policies by the respective coalition nodes from the blockchain network, further includes: acquiring a second alternative exchange strategy sent by the alliance node from the blockchain network; verifying the private key signature of the second alternative exchange strategy, and generating an approval identifier corresponding to the second alternative exchange strategy under the condition that the private key signature is confirmed to pass verification; generating and sending a second broadcast message to the blockchain network according to the approval identifier of the second alternative exchange strategy and the second alternative exchange strategy so that the alliance node obtains the approval identifier of the second alternative exchange strategy and determines whether the second alternative exchange strategy is effective.
In some implementations, after generating and transmitting the resource redemption consensus mechanism into the blockchain network in accordance with the first alternative redemption policy, further comprising: and according to the resource exchange consensus mechanism, exchanging the first type of resources held by the current node into the resources of the preset type.
In some implementations, the federation nodes include any one or more of resource holding nodes, resource redemption nodes, and resource generating nodes.
To achieve the above object, a second aspect of the present application provides a server, comprising: the system comprises an acquisition module, a first conversion module and a second conversion module, wherein the acquisition module is used for acquiring the approval identification of each alliance node to a first alternative conversion strategy from a blockchain network, wherein the first alternative conversion strategy is used for converting different types of resources; the statistics module is used for counting the strategy approval quantity corresponding to the first alternative exchange strategy according to the approval mark; the validation module is used for determining whether the first alternative exchange strategy is validated or not according to the strategy approval quantity and a preset quantity threshold value; and the exchange module is used for generating and sending a resource exchange consensus mechanism to the blockchain network according to the first alternative exchange strategy under the condition that the first alternative exchange strategy is confirmed to be effective, so that each alliance node carries out resource exchange according to the resource exchange consensus mechanism.
According to the resource exchange method and the server, the approval degree of each alliance node on the first alternative exchange strategy is determined by counting the strategy approval quantity corresponding to the first alternative exchange strategy according to the obtained approval identifications of each alliance node on the first alternative exchange strategy; determining whether the first alternative exchange strategy is effective according to the strategy approval quantity and a preset quantity threshold value, ensuring that the first alternative exchange strategy is effective when most alliance nodes in the blockchain network approve the first alternative exchange strategy, and replacing the old resource exchange strategy by using the first alternative exchange strategy; generating and sending a resource exchange consensus mechanism into the blockchain network according to the first alternative exchange strategy, so that each alliance node exchanges resources according to the resource exchange consensus mechanism, on the premise of ensuring the safety of resources, the resources of different types can be ensured to be fully used according to the resource exchange consensus mechanism, the management efficiency of the resources is improved, the rights and interests of users are ensured, and the cost of a resource operation platform is reduced.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the present application and are incorporated in and constitute a part of this specification, illustrate embodiments of the present application and together with the description serve to explain the present application, not to limit the present application. The above and other features and advantages will become more readily apparent to those skilled in the art by describing in detail exemplary embodiments with reference to the attached drawings, in which:
fig. 1 shows a flowchart of a resource redemption method in an embodiment of the present application.
Fig. 2 shows a flow chart of a resource redemption method in a further embodiment of the present application.
Fig. 3 shows a block diagram of the components of a server in an embodiment of the present application.
Fig. 4 shows a block diagram of the components of the resource redemption system in an embodiment of the present application.
Fig. 5 shows a flow chart of a working method of the resource exchange system in the embodiment of the application.
In the drawings:
301: the acquisition module 302: statistics module
303: validation module 304: exchange module
401: resource holding node server 402: resource exchange node server
403: resource generating node server
Detailed Description
The following detailed description of specific embodiments of the present application refers to the accompanying drawings. It should be understood that the detailed description is presented herein for purposes of illustration and explanation only and is not intended to limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by showing examples of the present application.
Existing redemption strategies for virtual resources (e.g., points) suffer from the following drawbacks: 1) The variety and the quantity of the virtual resources cannot be uniformly managed by merchants due to the wide variety, strong dispersibility and complicated exchange process of the virtual resources; 2) The value interpretation of the virtual resource is ambiguous and the exchange activity of the virtual resource is not timely reminded, so that a user cannot know the use condition of the virtual resource in real time, the virtual resource is idle, and the use rate of the virtual resource is reduced; 3) In the traditional management of virtual resources, a centralized service mode is mostly adopted, and the public confidence is lost, so that the ecological system of the virtual resources is slowly constructed; 4) The clearing of the virtual resource is complex, a great deal of labor cost and time cost are required to be consumed when the virtual resource is checked, the safety is low, and the operation cost of the virtual resource is increased.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a resource redemption method in an embodiment of the present application. The method is applicable to a server. As shown in fig. 1, the resource exchange method includes the following steps:
step S101, acquiring approval identifications of each alliance node to the first alternative exchange strategy from the blockchain network.
Wherein the first alternative redemption policy is a policy for redeeming different types of resources. For example, a first alternative redemption policy specifies redemption rules for two different types of resources (e.g., the redemption ratio of the first type of resource to the second type of resource is 1:2, etc.). Wherein the first type of resource and the second type of resource may be resources determined by categories of different industries (e.g., aviation resources and restaurant resources, etc.). The first alternative exchange strategy can improve the exchange efficiency of different types of resources and improve the utilization rate of the different types of resources.
In some specific implementations, the approval identifier may be an identifier that, when the different federation nodes confirm approval of the first alternative redemption policy, uses the private key of the federation nodes to sign the first alternative redemption policy twice, so as to ensure the security of the first alternative redemption policy.
In some implementations, the federation nodes include any one or more of resource holding nodes, resource redemption nodes, and resource generating nodes.
The resource holding node is a node with a certain type of resource, the resource exchange node is a node for exchanging different types of resources, and the resource generating node is a node for generating different types of resources.
Step S102, counting the strategy approval quantity corresponding to the first alternative exchange strategy according to the approval mark.
Step S103, determining whether the first alternative exchange strategy is effective or not according to the strategy approval quantity and a preset quantity threshold value.
The preset number threshold is a preset threshold, for example, when K coalition nodes are included in the blockchain network, the preset number threshold may be set to K/2. When the policy approval number is greater than or equal to a preset number threshold (i.e., indicating that more than half of the nodes in the blockchain network approve the first alternative redemption policy), the first alternative redemption policy is determined to be in effect. Otherwise, the first alternative redemption policy is determined to be invalid.
Step S104, under the condition that the first alternative exchange strategy is confirmed to be effective, generating and sending a resource exchange consensus mechanism into the blockchain network according to the first alternative exchange strategy.
After each alliance node in the block chain network obtains the resource exchange consensus mechanism, the resource exchange is carried out according to the resource exchange consensus mechanism.
In this embodiment, according to the obtained approval identifications of the alliance nodes to the first alternative exchange policy, the approval quantity of the policy corresponding to the first alternative exchange policy is counted, and the approval degree of the alliance nodes to the first alternative exchange policy is determined; determining whether the first alternative exchange strategy is effective according to the strategy approval quantity and a preset quantity threshold value, ensuring that the first alternative exchange strategy is effective when most alliance nodes in the blockchain network approve the first alternative exchange strategy, and replacing the old resource exchange strategy by using the first alternative exchange strategy; generating and sending a resource exchange consensus mechanism into the blockchain network according to the first alternative exchange strategy, so that each alliance node exchanges resources according to the resource exchange consensus mechanism, on the premise of ensuring the safety of resources, the resources of different types can be ensured to be fully used according to the resource exchange consensus mechanism, the management efficiency of the resources is improved, the rights and interests of users are ensured, and the cost of a resource operation platform is reduced.
In some implementations, before obtaining the approval identifications of the first alternative redemption policies by the respective coalition nodes from the blockchain network, further includes: generating a first alternative exchange strategy according to first type resources and preset type resources, wherein the first type resources are determined according to the service field corresponding to the alliance node; the first alternative redemption policy is transmitted to the blockchain network such that each coalition node analyzes the first alternative redemption policy to determine whether to approve the first alternative redemption policy.
And generating a first alternative exchange strategy through exchange modes (such as exchange conditions or exchange proportions) of the first type of resources and the resources of the preset type, so that the resources corresponding to different types of service fields can be exchanged, and the utilization rate of the resources is improved. Sending a first alternative exchange strategy to the blockchain network, analyzing the first alternative exchange strategy when each alliance node receives the first alternative exchange strategy, determining whether to approve the first alternative exchange strategy, and generating an approval mark when each alliance node approves the first alternative exchange strategy to characterize approval of using the first alternative exchange strategy to exchange resources; otherwise, when each coalition node does not approve the first alternative redemption policy, the first alternative redemption policy may be discarded, i.e., no approval identification is fed back to the resource redemption server.
In some implementations, before obtaining the approval identifications of the first alternative redemption policies by the respective coalition nodes from the blockchain network, further includes: counting the node number of alliance nodes in the blockchain network; and determining a preset quantity threshold according to the quantity of the nodes.
For example, by looking up a blockchain ledger, obtaining the number of nodes of the federation nodes in the blockchain network (e.g., including K nodes, K being an integer greater than or equal to 1), a preset number threshold may be set to K/2, or 2K/3, etc., which characterizes that most of the federation nodes in the blockchain network approve alternative redemption policies to be validated (e.g., first alternative redemption policies, etc.).
In some implementations, before obtaining the approval identifications of the first alternative redemption policies by the respective coalition nodes from the blockchain network, further includes: acquiring a second alternative exchange strategy sent by the alliance node from the blockchain network; verifying the private key signature of the second alternative exchange strategy, and generating an approval identifier corresponding to the second alternative exchange strategy under the condition that the private key signature is confirmed to pass verification; generating and sending a second broadcast message to the blockchain network according to the approval identifier of the second alternative exchange strategy and the second alternative exchange strategy so that the alliance node obtains the approval identifier of the second alternative exchange strategy and determines whether the second alternative exchange strategy is effective.
It should be noted that the second alternative exchange policy is an exchange policy generated by a certain alliance node according to a second class resource and a resource of a preset type, where the second class resource may be any one or several of a resource in a communication field, a resource in a service field and a resource in a traffic field.
The approval mark can be the mark that a certain alliance node carries out secondary signature on the second alternative exchange strategy by using a private key of the alliance node under the condition that approval of the second alternative exchange strategy is confirmed, so that the security of the second alternative exchange strategy is ensured.
In a specific implementation, the first alternative exchange policy and the second alternative exchange policy may be the same exchange policy, so that the exchange policies among the plurality of alliance nodes are consistent, and the update speed of the exchange policies is improved.
In some implementations, after generating and transmitting the resource redemption consensus mechanism into the blockchain network in accordance with the first alternative redemption policy, further comprising: and according to the resource exchange consensus mechanism, exchanging the first type of resources held by the current node into the resources of the preset type.
For example, the resource redemption consensus mechanism includes that the redemption ratio of the first type of resource and the preset type of resource is 1:2, the current node (e.g., the resource redemption server) has 4 parts of the preset type of resource and 1 part of the first type of resource, but only 6 parts of the preset type of resource can redeem the item required by the resource redemption server. At this time, the resource exchange server can exchange 2 parts of resources of a preset type by using 1 part of first type resources according to the resource exchange consensus mechanism, and after the resource exchange server performs resource exchange, the resource exchange server has (2+4) parts of resources of the preset type, so that the objects required by the resource exchange server can be exchanged, the utilization rate of the resources is improved, and the idle of the resources is avoided.
Fig. 2 shows a flow chart of a resource redemption method in a further embodiment of the present application. The method is applicable to a server. As shown in fig. 2, the resource exchange method includes the following steps:
step S201, obtaining the approval identification of each alliance node to the first alternative exchange strategy from the blockchain network.
It should be noted that, step S201 in the present embodiment is the same as step S101 in the previous embodiment, and will not be described herein.
Step S202, the approval identifications sent by the alliance nodes are saved in a redemption policy approval table.
Wherein the redemption policy acceptance table includes: any one or more of blockchain identification, approval identification and approval time information of each federation node.
It should be noted that, the redemption policy acceptance table is used to store the acceptance identifier of each coalition node for the first alternative redemption policy, so as to facilitate statistics on the acceptance identifier.
Step S203, counting the strategy approval quantity corresponding to the first alternative exchange strategy according to the approval mark.
It should be noted that, step S203 in the present embodiment is the same as step S102 in the previous embodiment, and will not be described herein.
Step S204, determining whether the first alternative exchange strategy is effective according to the strategy approval quantity and the preset quantity threshold value.
In some implementations, determining that the first alternative redemption policy is in effect based on the policy approval quantity and a preset quantity threshold includes: under the condition that the policy approval quantity meets the requirement of a preset quantity threshold value, acquiring time stamp information generated by a time stamp server; generating and sending broadcasting information to be validated to the blockchain network according to the timestamp information, the redemption policy approval table, the policy approval quantity and the first alternative redemption policies, so that each alliance node verifies the broadcasting information to be validated, and determining that the first alternative redemption policies are validated under the condition that the broadcasting information to be validated is verified by each alliance node.
It should be noted that, each federation node may confirm whether the first alternative redemption policy is approved by each federation node in the blockchain network by querying the redemption policy approval table, thereby ensuring fairness and fairness of the redemption policy update.
Step S205, under the condition that the first alternative exchange strategy is confirmed to be effective, generating and sending a resource exchange consensus mechanism into the blockchain network according to the first alternative exchange strategy.
It should be noted that, step S205 in the present embodiment is the same as step S104 in the previous embodiment, and will not be described herein.
In some implementations, after generating and transmitting the resource redemption consensus mechanism into the blockchain network in accordance with the first alternative redemption policy, further comprising: and determining the effective starting time of the resource exchange consensus mechanism according to the time stamp information.
The time stamp information can represent that the effectiveness of the first alternative exchange strategy is time information, so that each alliance node can synchronously use the first alternative exchange strategy to exchange resources, the consistency of resource exchange is ensured, and the utilization rate of the resources is improved.
In this embodiment, by storing the approval identifications sent by each federation node in the redemption policy approval table, statistics on the approval identifications are facilitated, and the approval speed for the first alternative redemption policy is increased. Under the condition that the policy approval quantity meets the requirement of a preset quantity threshold value, acquiring time stamp information generated by a time stamp server; generating and sending a broadcast message to be validated to a blockchain network according to the timestamp information, the redemption policy approval table, the policy approval quantity and the first alternative redemption policy, wherein the timestamp information can ensure that the validation time of each alliance node to the first alternative redemption policy is the same, and the consistency of resource redemption is ensured; and information such as approval identification is stored through the redemption policy approval table, so that fairness and fairness of redemption policy updating are guaranteed.
Fig. 3 shows a block diagram of the components of a server in an embodiment of the present application. As shown in fig. 3, the server includes: the acquiring module 301 is configured to acquire, from the blockchain network, an approval identifier of each coalition node for a first alternative redemption policy, where the first alternative redemption policy is a policy for redeeming different types of resources; the statistics module 302 is configured to count, according to the approval identifier, a policy approval number corresponding to the first alternative redemption policy; the validation module 303 is configured to determine whether the first alternative redemption policy is validated according to the policy approval number and a preset number threshold; and the exchange module 304 is configured to, when determining that the first alternative exchange policy is effective, generate and send a resource exchange consensus mechanism to the blockchain network according to the first alternative exchange policy, so that each coalition node performs resource exchange according to the resource exchange consensus mechanism.
In the embodiment, according to the acquired approval identifications of the alliance nodes to the first alternative exchange strategy, the statistical module is used for counting the strategy approval quantity corresponding to the first alternative exchange strategy, and the approval degree of the alliance nodes to the first alternative exchange strategy is determined; determining whether the first alternative exchange strategy is effective or not through an effective module according to the strategy approval quantity and a preset quantity threshold value, ensuring that the first alternative exchange strategy is effective only when most alliance nodes in the blockchain network approve the first alternative exchange strategy, and replacing the old resource exchange strategy by using the first alternative exchange strategy; the exchange module is used for generating and sending a resource exchange consensus mechanism into the blockchain network according to the first alternative exchange strategy, so that each alliance node carries out resource exchange according to the resource exchange consensus mechanism, on the premise of ensuring the safety of resources, the resources of different types can be ensured to be fully used according to the resource exchange consensus mechanism, the management efficiency of the resources is improved, the rights and interests of users are ensured, and the cost of a resource operation platform is reduced.
It should be noted that each module in this embodiment is a logic module, and in practical application, one logic unit may be one physical unit, or may be a part of one physical unit, or may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, elements that are not so close to solving the technical problem presented in the present application are not introduced in the present embodiment, but it does not indicate that other elements are not present in the present embodiment.
Fig. 4 shows a block diagram of the components of the resource redemption system in an embodiment of the present application. As shown in fig. 4, the resource redemption system includes the following devices: a resource holding node server 401, a resource exchange node server 402, and a resource generating node server 403.
Wherein a resource holding node server 401, a resource exchange node server 402, and a resource generating node server 403, which are alliance nodes, are connected to each other through a blockchain network. In the blockchain network, a resource exchange consensus mechanism is achieved among all node servers, and the decentralized resource exchange account book is shared. The resources may be virtual resources such as points.
Fig. 5 shows a flow chart of a working method of the resource exchange system in the embodiment of the application. As shown in fig. 5, the working method comprises the following steps:
in step S501, the resource generating node server 403 generates and sends a first alternative exchange policy to the blockchain network according to the first type of resource and the preset type of resource, so that the resource holding node server 401 and the resource exchange node server 402 in the blockchain network obtain the first alternative exchange policy, and analyze the first alternative exchange policy to determine whether to approve the first alternative exchange policy.
The first type of resource is a resource determined according to the service domain corresponding to the resource generating node server 403. For example, the first type of resource may be any one or several of a resource in the aviation field, a resource in a banking system, a resource in the dining industry, and a resource in the communication field.
Before sending the first alternative exchange policy, the resource generating node server 403 needs to sign the first alternative exchange policy by using its own private key, and generate the signed first alternative exchange policy, so as to ensure the security of the first alternative exchange policy when transmitting in the blockchain network.
In step S502, the resource exchange node server 402 obtains the first alternative exchange policy sent by the resource generation node server 403 from the blockchain network, verifies the private key signature of the first alternative exchange policy, and when the verification is passed, if the resource exchange node server 402 approves the first alternative exchange policy, generates an approval identifier, and generates a first broadcast message according to the approval identifier.
The approval identifier may be an identifier that the resource exchange node server 402 uses its own private key to sign the first alternative exchange policy twice, and is used to characterize that the resource exchange node server 402 approves the first alternative exchange policy, and approves the exchange of the resource using the first alternative exchange policy.
In step S503, the resource exchange node server 402 sends a first broadcast message to the blockchain network, so that the resource generating node server 403 obtains the approval identifier of the resource exchange node server 402 for the first alternative exchange policy.
Meanwhile, the resource exchange node server 402 executes steps S502 to S503, and the resource holding node server 401 also synchronously executes steps S504 to S505, so as to determine whether the resource holding node server 401 accepts the first alternative exchange policy.
In step S504, the resource holding node server 401 obtains the first alternative exchange policy sent by the resource generating node server 403 from the blockchain network, verifies the private key signature of the first alternative exchange policy, and generates a approval mark if the resource holding node server 401 approves the first alternative exchange policy when the verification is passed, and generates a second broadcast message according to the approval mark.
The approval identifier may be an identifier that the resource holding node server 401 uses its own private key to sign the first alternative redemption policy twice, and is used to characterize that the resource holding node server 401 approves the first alternative redemption policy, and approves the redemption of the resource using the first alternative redemption policy.
In step S505, the resource-holding node server 401 sends a second broadcast message to the blockchain network, so that the resource-generating node server 403 obtains the approval identifier of the resource-holding node server 401 for the first alternative redemption policy.
In step S506, the resource generating node server 403 obtains, from the blockchain network, approval identifications of the resource holding node server 401 and the resource redemption node server 402 for the first alternative redemption policy, respectively.
In the blockchain network, there are N resource holding node servers 401 and M resource exchange node servers 402, where M and N are integers greater than or equal to 1. After the resource generating node server 403 obtains the approval identifications fed back by each node server, the resource generating node server 403 counts the number of received approval identifications for the first alternative redemption policy, and if the number of approval identifications is determined to be greater than or equal to a preset number threshold (for example, the preset number threshold is (m+n)/2), the first alternative redemption policy is determined to be accepted by most nodes in the blockchain network, where the resource generating node server 403 generates a resource redemption consensus mechanism according to the first alternative redemption policy.
In one implementation, the resource generating node server 403 may further send the resource redemption consensus mechanism to a timestamp server, so that the timestamp server can mark the effective time information of the resource redemption consensus mechanism according to the timestamp information when the resource redemption consensus mechanism is received.
In step S507, the resource generating node server 403 sends the resource exchange consensus mechanism to the blockchain network, so that each node server performs resource exchange according to the resource exchange consensus mechanism.
The resource redemption consensus mechanism may further include timestamp information, where the timestamp information is used to represent time of effectiveness information of the resource redemption consensus mechanism.
It should be noted that, in the blockchain network, each node server may update the resource exchange consensus mechanism, for example, the resource holding node server 401 and the resource exchange node server 402 may update and send the updated resource exchange consensus mechanism (for example, the resource holding node server 401 generates a second alternative exchange policy, the resource exchange node server 402 generates a third alternative exchange policy, etc.) to the blockchain network according to the exchange policy of different types of resources, so long as other nodes in the blockchain network can accept the second alternative exchange policy, that is, the approval identifier of the second alternative exchange policy acquired by the resource holding node server 401 is greater than or equal to the preset number threshold (or the approval identifier of the third alternative exchange policy acquired by the resource holding node server 402 is greater than or equal to the preset number threshold), and the resource exchange consensus mechanism in the blockchain network may be updated by using the second alternative exchange policy (or the third alternative exchange policy).
In some implementations, the different types of resources may be different types of points, such as any one or more of aviation points, banking points, dining points, and operator points.
In the embodiment, the approval degree of each node server to the first alternative exchange strategy is determined by acquiring approval identifications of each node server to the first alternative exchange strategy and counting the number of the approval identifications of each node server to the first alternative exchange strategy; when the number of the approval identifications of the first alternative exchange strategy is determined to be larger than or equal to a preset number threshold, the first alternative exchange strategy is determined to be effective, and when most alliance nodes in the blockchain network approve the first alternative exchange strategy, the first alternative exchange strategy is determined to be effective, and the old resource exchange consensus mechanism is replaced by the first alternative exchange strategy; the resource exchange consensus mechanism is sent to the blockchain network, so that each node server carries out resource exchange according to the resource exchange consensus mechanism, on the premise of guaranteeing the safety of resources, the resources of different types can be guaranteed to be fully used according to the resource exchange consensus mechanism, the management efficiency of the resources is improved, the rights and interests of users are guaranteed, and the cost of a resource operation platform is reduced.
It is to be understood that the above embodiments are merely illustrative of the exemplary embodiments employed to illustrate the principles of the present application, however, the present application is not limited thereto. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the application, and are also considered to be within the scope of the application.

Claims (10)

1. A method of redeeming resources, the method comprising:
acquiring approval identifications of each alliance node to a first alternative exchange strategy from a blockchain network, wherein the first alternative exchange strategy is a strategy for exchanging different types of resources; the approval mark is a mark of a second signature on the first alternative exchange strategy by using a private key of the user under the condition that the approval of the first alternative exchange strategy is confirmed by different alliance nodes;
counting the strategy approval quantity corresponding to the first alternative exchange strategy according to the approval mark;
determining whether the first alternative exchange strategy takes effect or not according to the strategy approval quantity and a preset quantity threshold;
and under the condition that the first alternative exchange strategy is confirmed to be effective, generating and sending a resource exchange consensus mechanism to the blockchain network according to the first alternative exchange strategy so that each alliance node performs resource exchange according to the resource exchange consensus mechanism.
2. The method of claim 1, wherein the acquiring, from the blockchain network, the approved identification of the first alternative redemption policy by each coalition node further comprises:
saving the approval identifications sent by the respective federation nodes to a redemption policy approval table comprising: any one or more of blockchain identification, approval identification and approval time information of each of the federation nodes.
3. The method of claim 2, wherein the determining that the first alternative redemption policy is in effect based on the policy acceptance number and a preset number threshold includes:
under the condition that the policy approval quantity meets the requirement of the preset quantity threshold value, acquiring time stamp information generated by a time stamp server;
generating and sending broadcasting information to be validated to the blockchain network according to the timestamp information, the redemption policy acceptance table, the policy acceptance quantity and the first alternative redemption policies, so that each alliance node verifies the broadcasting information to be validated, and determining that the first alternative redemption policies are validated when each alliance node verifies the broadcasting information to be validated.
4. The method of claim 3, wherein the generating and transmitting a resource redemption consensus mechanism into the blockchain network in accordance with the first alternative redemption policy such that each of the coalition nodes performs resource redemption in accordance with the resource redemption consensus mechanism further comprises:
and determining the effective starting time of the resource exchange consensus mechanism according to the timestamp information.
5. The method of claim 1, wherein prior to obtaining the approval identifications of the first alternative redemption policies for each coalition node from the blockchain network, further comprising:
generating the first alternative exchange strategy according to first type resources and preset type resources, wherein the first type resources are determined according to the service field corresponding to the alliance node;
and sending the first alternative exchange strategy to a blockchain network so that each alliance node analyzes the first alternative exchange strategy to determine whether to approve the first alternative exchange strategy.
6. The method of claim 1, wherein prior to obtaining the approval identifications of the first alternative redemption policies for each coalition node from the blockchain network, further comprising:
counting the node number of the alliance nodes in the blockchain network;
and determining the preset quantity threshold according to the quantity of the nodes.
7. The method of claim 1, wherein prior to obtaining the approval identifications of the first alternative redemption policies for each coalition node from the blockchain network, further comprising:
acquiring a second alternative exchange strategy sent by the alliance node from the blockchain network;
verifying the private key signature of the second alternative exchange strategy, and generating an approval identifier corresponding to the second alternative exchange strategy under the condition that the private key signature passes verification;
generating and sending a second broadcast message to the blockchain network according to the approval identifier of the second alternative exchange strategy and the second alternative exchange strategy, so that the alliance node obtains the approval identifier of the second alternative exchange strategy and determines whether the second alternative exchange strategy is effective.
8. The method of claim 1, wherein after generating and transmitting a resource redemption consensus mechanism into the blockchain network in accordance with the first alternative redemption policy, further comprising:
and according to the resource exchange consensus mechanism, exchanging the first type of resources held by the current node into the resources of the preset type.
9. The method of any one of claims 1 to 8, wherein the federation node comprises any one or more of a resource holding node, a resource redemption node, and a resource generation node.
10. A server, comprising:
the system comprises an acquisition module, a first conversion module and a second conversion module, wherein the acquisition module is used for acquiring the approval identification of each alliance node to a first alternative conversion strategy from a blockchain network, wherein the first alternative conversion strategy is used for converting different types of resources; the approval mark is a mark of a second signature on the first alternative exchange strategy by using a private key of the user under the condition that the approval of the first alternative exchange strategy is confirmed by different alliance nodes;
the statistics module is used for counting the strategy approval quantity corresponding to the first alternative exchange strategy according to the approval mark;
the validation module is used for determining whether the first alternative exchange strategy is validated or not according to the strategy approval quantity and a preset quantity threshold value;
and the exchange module is used for generating and transmitting a resource exchange consensus mechanism to the blockchain network according to the first alternative exchange strategy under the condition that the first alternative exchange strategy is confirmed to be effective, so that each alliance node carries out resource exchange according to the resource exchange consensus mechanism.
CN202011498917.0A 2020-12-16 2020-12-16 Resource exchange method and server Active CN112541791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011498917.0A CN112541791B (en) 2020-12-16 2020-12-16 Resource exchange method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011498917.0A CN112541791B (en) 2020-12-16 2020-12-16 Resource exchange method and server

Publications (2)

Publication Number Publication Date
CN112541791A CN112541791A (en) 2021-03-23
CN112541791B true CN112541791B (en) 2023-06-30

Family

ID=75018770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011498917.0A Active CN112541791B (en) 2020-12-16 2020-12-16 Resource exchange method and server

Country Status (1)

Country Link
CN (1) CN112541791B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108171609A (en) * 2017-12-29 2018-06-15 中链科技有限公司 A kind of method and computer readable storage medium of digital asset intercommunication
CN108428120A (en) * 2018-03-16 2018-08-21 中链科技有限公司 A kind of digital asset interoperability methods and computer readable storage medium
CN109886734A (en) * 2019-01-25 2019-06-14 东莞市盟大塑化科技有限公司 A kind of integral interoperability methods based on block chain technology
WO2020133326A1 (en) * 2018-12-29 2020-07-02 北京建极练科技有限公司 Blockchain generation method and system, and computer storage medium and electronic device
CN112036877A (en) * 2020-07-15 2020-12-04 滕德群 Block chain-based fund item processing method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120036015A1 (en) * 2010-07-06 2012-02-09 Sheikh Omar M Relevancy of advertising material through user-defined preference filters, location and permission information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108171609A (en) * 2017-12-29 2018-06-15 中链科技有限公司 A kind of method and computer readable storage medium of digital asset intercommunication
CN108428120A (en) * 2018-03-16 2018-08-21 中链科技有限公司 A kind of digital asset interoperability methods and computer readable storage medium
WO2020133326A1 (en) * 2018-12-29 2020-07-02 北京建极练科技有限公司 Blockchain generation method and system, and computer storage medium and electronic device
CN109886734A (en) * 2019-01-25 2019-06-14 东莞市盟大塑化科技有限公司 A kind of integral interoperability methods based on block chain technology
CN112036877A (en) * 2020-07-15 2020-12-04 滕德群 Block chain-based fund item processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112541791A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
Chatzopoulos et al. Privacy preserving and cost optimal mobile crowdsensing using smart contracts on blockchain
Jaramillo et al. A game theory based reputation mechanism to incentivize cooperation in wireless ad hoc networks
Zhou et al. ConSub: Incentive-based content subscribing in selfish opportunistic mobile networks
CN108667717B (en) Block chain processing method, medium, device and computing equipment based on instant messaging message record
Liu et al. Fast tracking the population of key tags in large-scale anonymous RFID systems
CN103369515B (en) Internet access method and Free Internet Access system for mobile terminal
CN109274498A (en) A kind of smart grid data aggregate and monitoring method based on alliance's chain
CN113347164B (en) Block chain-based distributed consensus system, method, device and storage medium
CN113489681A (en) Block link point data consistency consensus method, device, equipment and storage medium
Zhang et al. Blockchain-based secure equipment diagnosis mechanism of smart grid
CN110378753A (en) A kind of advertisement serving policy determines method and device
Wang et al. A cyber–physical–social perspective on future smart distribution systems
Xiao et al. Edgetoll: A blockchain-based toll collection system for public sharing of heterogeneous edges
CN112541791B (en) Resource exchange method and server
CN113988318A (en) Federal learning method, apparatus, electronic device, and medium
CN201985891U (en) System for preventing harassment of strangers in social network
CN101217569A (en) A webpage push method, system and device
Ge et al. Matchmaker: Signaling for dynamic publish/subscribe applications
CN112131267B (en) Count processing method, device, server and count processing system
Chen et al. Jump-start crowdsensing: A three-layer incentive framework for mobile crowdsensing
CN109729016A (en) A kind of file transmitting method, equipment and computer readable storage medium
CN109005122A (en) File transmitting method, device and the network equipment
Kumar et al. Securing Opportunistic Networks: An Encounter-based Trust-driven Barter Mechanism.
Shen et al. A Switch on Electronic Commerce Mobile Payment: From Traditional Queuing to Elastic Request as a Payment Service Based on the Edge Computing Model
Shen et al. Physical resource management based on complex network theory in 5G network slice trading

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