CN114615335A - Resource scheduling method and system based on block chain - Google Patents

Resource scheduling method and system based on block chain Download PDF

Info

Publication number
CN114615335A
CN114615335A CN202210224539.XA CN202210224539A CN114615335A CN 114615335 A CN114615335 A CN 114615335A CN 202210224539 A CN202210224539 A CN 202210224539A CN 114615335 A CN114615335 A CN 114615335A
Authority
CN
China
Prior art keywords
resource
chain
target
scheduling
information
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
Application number
CN202210224539.XA
Other languages
Chinese (zh)
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.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Alipay Labs Singapore Pte 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 Alipay Labs Singapore Pte Ltd filed Critical Alipay Labs Singapore Pte Ltd
Priority to CN202210224539.XA priority Critical patent/CN114615335A/en
Publication of CN114615335A publication Critical patent/CN114615335A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Abstract

The embodiment of the specification provides a resource scheduling method and a resource scheduling system based on a block chain, wherein the resource scheduling method based on the block chain is applied to node equipment in a block chain network, and an intelligent contract for resource scheduling management is deployed in the block chain network; the method comprises the following steps: receiving a resource scheduling request, wherein the resource scheduling request carries information of a downlink destination terminal and information of a target resource; responding to the resource scheduling request, calling an intelligent contract, and scheduling the target resource corresponding to the target resource information to the target node equipment according to the information of the target end under the link so that the target node equipment schedules the target resource to the target end under the link corresponding to the information of the target end under the link; the target node device is deployed in a blockchain network and an out-of-chain resource network, wherein the out-of-chain resource network is a network for deploying a down-chain destination and scheduling resources. The scheme can expand the application range of the resource scheduling method based on the block chain.

Description

Resource scheduling method and system based on block chain
Technical Field
The embodiment of the present disclosure relates to the field of block chain technology, and in particular, to a resource scheduling method based on a block chain.
Background
The block chain has the characteristic of being not tampered, so that the block chain is widely applied to resource scheduling.
In the related art, a participant of resource scheduling can schedule a target resource corresponding to a resource in a chain through scheduling of the resource in the block chain.
However, the resource scheduling requires that the scheduling participant have a blockchain account, and there is a high possibility that some participants do not have blockchain accounts in the specific application. Therefore, there is a need to provide a more highly available solution.
Disclosure of Invention
In view of this, the present specification provides a resource scheduling method based on a block chain. One or more embodiments of the present disclosure also relate to a resource scheduling apparatus based on a block chain, a resource scheduling system based on a block chain, a node device in a block chain network, a computer-readable storage medium, and a computer program, so as to solve technical defects in the prior art.
According to a first aspect of embodiments of the present specification, a resource scheduling method based on a blockchain is provided, which is applied to a node device in a blockchain network, where an intelligent contract for resource scheduling management is deployed in the blockchain network; the method comprises the following steps:
receiving a resource scheduling request, wherein the resource scheduling request carries information of a downlink destination terminal and information of target resources;
responding to the resource scheduling request, calling the intelligent contract, and scheduling the target resource corresponding to the target resource information to target node equipment according to the information of the target end under the link so that the target node equipment schedules the target resource to the target end under the link corresponding to the information of the target end under the link;
the target node device is deployed in the blockchain network and an out-of-chain resource network, where the out-of-chain resource network is a network that deploys the down-chain destination and is used for resource scheduling.
According to a second aspect of the embodiments of the present specification, there is provided a resource scheduling apparatus based on a blockchain, which is applied to a node device in a blockchain network, where an intelligent contract for resource scheduling management is deployed in the blockchain network; the device comprises:
the scheduling request receiving module is used for receiving a resource scheduling request, wherein the resource scheduling request carries information of a downlink destination terminal and target resource information;
the on-chain resource scheduling module is used for responding to the resource scheduling request, calling the intelligent contract and scheduling the target resource corresponding to the target resource information to target node equipment according to the down-chain target end information so that the target node equipment schedules the target resource to a down-chain target end corresponding to the down-chain target end information;
the target node device is deployed in the blockchain network and an out-of-chain resource network, where the out-of-chain resource network is a network that deploys the down-chain destination and is used for resource scheduling.
According to a third aspect of the embodiments of the present specification, there is provided a resource scheduling system based on a block chain, including: the node equipment in the block chain network is deployed in the block chain network and target node equipment in an out-of-chain resource network, wherein an intelligent contract used for resource scheduling management is deployed in the block chain, and the out-of-chain resource network is a network which is deployed at a down-chain destination and used for resource scheduling;
the node equipment in the block chain network receives a resource scheduling request, wherein the resource scheduling request carries information of a target end under a chain and information of target resources, responds to the resource scheduling request, calls the intelligent contract, and schedules the target resources corresponding to the information of the target resources to the target node equipment according to the information of the target end under the chain;
and the target node equipment schedules the target resource to a downlink target end corresponding to the downlink target end information.
According to a fourth aspect of embodiments herein, there is provided a node apparatus in a blockchain network, including:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions, which when executed by the processor implement the steps of the above-described blockchain-based resource scheduling method.
According to a fifth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the above block chain-based resource scheduling method.
According to a sixth aspect of embodiments herein, there is provided a computer program, wherein the computer program, when executed in a computer, causes the computer to perform the steps of the above-mentioned resource scheduling method based on a block chain.
In an embodiment of the present specification, a resource scheduling method based on a blockchain is applied to a node device in a blockchain network, where an intelligent contract for resource scheduling management is deployed in the blockchain network; the method comprises the following steps: receiving a resource scheduling request, wherein the resource scheduling request carries information of a downlink destination terminal and information of a target resource; responding to the resource scheduling request, calling an intelligent contract, and scheduling target resources corresponding to the target resource information to target node equipment according to the information of the target end under the link so that the target node equipment schedules the target resources to the target end under the link corresponding to the information of the target end under the link; the target node device is deployed in a blockchain network and an out-of-chain resource network, wherein the out-of-chain resource network is a network for deploying a down-chain destination and scheduling resources. The target node device is deployed in a blockchain network and an out-of-chain resource network, wherein the out-of-chain resource network is a network for deploying a down-chain destination and scheduling resources. Therefore, for the case that the destination end of resource scheduling does not have a blockchain account, that is, the destination end is deployed in an out-of-chain resource network, the present embodiment may schedule, by using the target node device, a target resource in resource scheduling performed for the down-chain destination end to the down-chain destination end. Therefore, the resource scheduling between the target end and the downlink end can be realized, and the target end of the resource scheduling does not need to be limited in the block chain network. Therefore, the scheme does not need to limit the destination end of the resource scheduling to be in the block chain network, thereby widening the application scene range of the resource scheduling method based on the block chain.
Drawings
Fig. 1 is a flowchart of a resource scheduling method based on a block chain according to an embodiment of the present specification;
fig. 2 is a flowchart of another resource scheduling method based on a block chain according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a resource scheduling system based on a block chain according to an embodiment of the present specification;
fig. 4 is a schematic structural diagram of another resource scheduling system based on a block chain according to an embodiment of the present specification;
fig. 5 is a flowchart of an uplink resource scheduling process in a resource scheduling method based on a block chain according to an embodiment of the present specification;
fig. 6 is a flowchart of an uploading process of a downlink resource scheduling result in a resource scheduling method based on a block chain according to an embodiment of the present specification;
fig. 7 is a schematic application scenario diagram of a resource scheduling method based on a block chain according to another embodiment of the present specification;
fig. 8 is an exemplary diagram of information utilized by an intelligent contract in a resource scheduling method based on a blockchain according to an embodiment of the present specification;
fig. 9 is a schematic structural diagram of a resource scheduling apparatus based on a block chain according to an embodiment of the present specification;
fig. 10 is a block diagram of a node device in a blockchain network according to an embodiment of the present specification.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present specification relate are explained.
Blockchain (Blockchain): from a technological level, the blockchain involves many scientific and technical problems such as mathematics, cryptography, internet and computer programming. From the application perspective, the blockchain is simply a distributed shared account book and database, and has the characteristics of decentralization, no tampering, trace remaining in the whole process, traceability, collective maintenance, public transparency and the like.
Intelligent contract: a computer protocol intended to propagate, verify or execute contracts in an informational manner. Smart contracts allow trusted resource scheduling, which can be tracked and not reversed, without third parties.
World Wide Bank Financial telecommunication Association network (Swift network, Society for world Wide Interbank Financial Telecommunications network): and a network for performing communication according to the communication standard between financial institutions specified by Swift.
Bridging (Bridging), which is a process of forwarding network packets according to the addresses of the link layer of the OSI network model, operates at the second layer of the OSI. In a general switch, bridges have a bridging function.
And (3) block output information: a node in the blockchain generates a transaction and broadcasts the transaction. Each node in the chain collects the transaction information on the network, puts the transaction information into a local memory pool for some basic verification, and if the verification is successful, puts the transaction information into an unconfirmed transaction information pool to wait for being packaged. After the node of the block chain obtains the accounting right according to the consensus algorithm, about a certain amount of 'unconfirmed transaction information' is extracted from the 'unconfirmed transaction information pool' to be packaged, the transaction information is dispatched and packaged into a block, the unconfirmed transaction information packaged by the node is written into a new block to obtain block information, and the block information is spread in the block chain,
hypertext Transfer Protocol Secure (HTTPS): is a transport protocol for secure communications over a computer network. HTTPS communicates via HTTP, but encrypts the packets using SSL/TLS. The main purpose of HTTPS development is to provide authentication to web servers, protecting the privacy and integrity of the exchanged data. SSL (Secure Sockets Layer Security socket) and TLS (Transport Layer Security) are Security protocols for providing Security and data integrity for network communication.
In this specification, a resource scheduling method based on a block chain is provided, and the specification also relates to a resource scheduling apparatus based on a block chain, a resource scheduling system based on a block chain, a node device in a block chain network, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Referring to fig. 1, fig. 1 shows a flowchart of a resource scheduling method based on a blockchain according to an embodiment of the present specification, where the method is applied to a node device in a blockchain network, where an intelligent contract for resource scheduling management is deployed in the blockchain network, and the method specifically includes the following steps:
s102, receiving a resource scheduling request, wherein the resource scheduling request carries information of a downlink destination terminal and information of a target resource.
In a specific application, the resource scheduling request may be sent by a client that logs in a blockchain account of the blockchain network. And, the end information of the link lower destination is used to indicate the attribute information of the destination of the resource scheduling, for example, the account, the identifier, the location information and other attribute information of the destination to which the resource is called. The target resource information is used to indicate attribute information of the scheduled resource, for example, attribute information of the type, number, identification, name, source location, etc. of the scheduled resource. The scheduled resource may be various, for example, the scheduled resource may be funds, computing resources, storage space, and the like. Illustratively, the resource scheduling request may include: transferring funds from an account of a node device C1 in the blockchain network to an account of a client C3 under the chain; migrate the virtual machine on service node S1 to service node S2, and so on.
S104, responding to the resource scheduling request, calling an intelligent contract, and scheduling the target resource corresponding to the target resource information to the target node equipment according to the information of the target end under the link so that the target node equipment schedules the target resource to the target end under the link corresponding to the information of the target end under the link; the target node device is deployed in a blockchain network and an out-of-chain resource network, wherein the out-of-chain resource network is a network for deploying a down-chain destination and scheduling resources.
In a specific application, the target node device is deployed in the blockchain network and the out-of-link resource network, that is, the target node device may include a node device in the blockchain network, and can implement the same function as the node device in the blockchain network. The distinction between the target node device and the node devices in the blockchain network includes: the node device in the blockchain network can transmit, verify and store data in the blockchain, and the target node device can transmit, verify and store the data in the blockchain and send the target resource scheduled to the out-of-chain resource network to a down-chain destination end. The end of the link destination is deployed in the resource network outside the link, and the end of the link destination may specifically be a client that logs in an account of the resource network outside the link, or a node device in the resource network outside the link. Accordingly, the down-link destination is not deployed in the blockchain network, nor registered to an account of the blockchain network. Therefore, the target node device deployed in the out-of-chain resource network can communicate with the down-chain destination end through the out-of-chain resource network, and therefore resource scheduling between the node device in the blockchain network and the down-chain destination end deployed in the out-of-chain resource network is achieved. And, for example, the out-of-chain resource network may be a Swift network, a designated local area network, or the like, which may perform message forwarding and resource scheduling. In addition, the number of the target node devices may be one or more, and a specific manner of scheduling the target resource corresponding to the target resource information to the target node device according to the destination-side information under the link is described below in an exemplary manner.
For example, when the number of the target node devices is one, scheduling the target resource corresponding to the target resource information to the target node devices according to the destination-side information under the link may include: and if the intelligent contract determines that the destination terminal information is the down-link destination terminal information and indicates that the target resource is to be scheduled to the out-link resource network, scheduling the target resource corresponding to the target resource information to the target node equipment. Or, for example, when the number of the target node devices is multiple, scheduling the target resource corresponding to the target resource information to the target node device according to the destination end information under the link may include: if the intelligent contract determines that the destination information is the downlink destination information and indicates that the target resource is to be scheduled to the out-of-link resource network, the intelligent contract may search for the target node device corresponding to the downlink destination information in the resource scheduling request from the pre-stored correspondence between the node device in the blockchain network and the downlink destination information, and schedule the target resource corresponding to the target resource information to the target node device. In this way, the target node device achieves the functions of bridging the blockchain network and the out-of-chain resource network. Moreover, the scheduling, by the intelligent contract, the target resource to the target node device may specifically include: filling a resource scheduling path, and scheduling the target resource according to the resource scheduling path; the resource scheduling path represents a scheduling link of the resource, and can reflect participants of resource scheduling and a circulation path of the resource among the participants. For example, the scheduling path for funds is: from the funds transfer-out party, i.e. the payer: the account of the node device C1 in the blockchain network is transferred to the account of the target node device C2, and the account of the target node device C2 is transferred to the fund transfer party, that is, the receiving party: the account of destination C3 in the out-of-chain resource network. In one case, if the number of the target node devices as the bridge end is multiple, if there is a bridge end unavailable, the resource scheduling may be continued by using the available bridge end.
And the target node equipment schedules the target resource to a downlink destination end corresponding to the downlink destination end information, and specifically follows the resource scheduling rule of the out-of-link resource network. For example, the target node device schedules the target resource to the downlink destination end corresponding to the downlink destination end information according to a fund scheduling manner specified by the Swift network. In one case, if the target node device and the downlink destination are connected through a centralized network, the target node device may send a call request for a target resource to a central node of the centralized network, and the central node forwards the call request to the downlink destination.
In addition, for convenience of understanding and reasonable layout, specific ways in which the node device in the blockchain network schedules the target resource to the target node device and the target node device obtains feedback from the destination end under the chain to make resource scheduling performed on the blockchain more reliable are specifically described in the form of an optional embodiment.
In an embodiment of the present specification, the target node device is deployed in a blockchain network and an out-of-chain resource network, where the out-of-chain resource network is a network that deploys a down-chain destination and is used for resource scheduling. Therefore, for the case that the destination end of resource scheduling does not have a blockchain account, that is, the destination end is deployed in an out-of-chain resource network, the present embodiment may schedule, by using the target node device, a target resource in resource scheduling performed for the down-chain destination end to the down-chain destination end. Therefore, the resource scheduling between the target end and the downlink end can be realized, and the target end of the resource scheduling does not need to be limited in the block chain network. Therefore, the scheme does not need to limit the destination end of the resource scheduling to be in the block chain network, thereby widening the application scene range of the resource scheduling method based on the block chain.
For ease of understanding, the resource scheduling method based on the block chain provided in the embodiment of the present specification is further described below with reference to fig. 2 as an example from the perspective of interactions between devices. Referring to fig. 2, fig. 2 is a flowchart illustrating another resource scheduling method based on a block chain according to an embodiment of the present specification, where the method includes the following steps:
s202, the node equipment in the block chain network receives the resource scheduling request carrying the information of the destination terminal and the target resource information under the chain.
And S204, responding to the resource scheduling request by the node equipment in the block chain network, calling an intelligent contract, and scheduling the target resource corresponding to the target resource information to the target node equipment according to the target end information under the chain.
The intelligent contract is deployed in the block chain network and used for resource scheduling management.
And S206, the target node equipment schedules the target resource to a downlink target end corresponding to the downlink target end information.
The target node device is deployed in a blockchain network and an out-of-chain resource network, wherein the out-of-chain resource network is a network for deploying a down-chain destination and scheduling resources.
The steps of this embodiment are the same as the steps of the embodiment of fig. 1, except that this embodiment is described from an interactive perspective for ease of understanding. The same parts will not be described again, and refer to the description of the embodiment of fig. 1.
In an embodiment of the present specification, the target node device is deployed in a blockchain network and an out-of-chain resource network, where the out-of-chain resource network is a network that deploys a down-chain destination and is used for resource scheduling. Therefore, for the case that the destination end of resource scheduling does not have a blockchain account, that is, is deployed in an out-of-chain resource network, this embodiment may schedule, by the target node device, a target resource in the resource scheduling performed for the down-chain destination end to the down-chain destination end. Therefore, the resource scheduling between the target end and the downlink end can be realized, and the target end of the resource scheduling does not need to be limited in the block chain network. Therefore, the scheme does not need to limit the destination end of the resource scheduling to be in the block chain network, thereby widening the application scene range of the resource scheduling method based on the block chain.
In an optional implementation manner, a distributed ledger is also deployed in the blockchain network;
after the target resource corresponding to the target resource information is scheduled to the target node device, the resource scheduling method based on the block chain provided in the embodiment of the present specification may further include the following steps:
obtaining a chain scheduling result, and storing the chain scheduling result in a distributed account book;
and receiving a down-link scheduling result sent by the target node equipment, updating an up-link scheduling result based on the down-link scheduling result, and obtaining a target scheduling result corresponding to the resource scheduling request, wherein the down-link scheduling result is fed back to the target node equipment by a down-link destination terminal under the condition that the target resource is received.
In a specific application, the node device in the block chain network may invoke an intelligent contract to schedule a target resource corresponding to the target resource information to the target node device, thereby obtaining an on-chain scheduling result and storing the on-chain scheduling result in the distributed ledger. Thus, the specific details of the chain scheduling result and the chain scheduling result are obtained, that is, the process of transmitting and storing the data in the block chain is realized by adopting the intelligent contract. Therefore, each node in the blockchain, for example, the node device and the target node device in the blockchain network, may participate in the data transmission and storage process, which is specifically described in the form of an alternative embodiment for the convenience of understanding. The uplink scheduling result is used to indicate a state change condition of a target resource to which the resource scheduling is directed on the blockchain, that is, the uplink scheduling result may include state information recorded from the target resource to the target node device, where the state information is used to record scheduling information of the resource, and specifically may record information of each participant in resource scheduling, a change condition of the resource, a schedule of the resource scheduling, and the like. For example, the information of the target node device to which the target resource belongs before being scheduled, the information of the target node device to which the target resource is called, the information of the target resource itself, such as a resource identifier, whether the scheduling of the target resource is completed, and the like. Resource type, resource name, etc. The information of any node device may include information such as a block chain account and a target node device identifier of a login target node device during resource scheduling. For the convenience of understanding and reasonable layout, the status information is specifically described in the embodiment of fig. 8 in the present specification.
And, the link down destination can obtain the link down scheduling result under the condition of receiving the target resource, and send, that is, feed back, the link down scheduling result to the target node device. In this way, the target node device uploads, i.e., sends, the received in-chain scheduling result to the node device in the blockchain network. The scheduling result under the link is similar to the scheduling result on the link, and may include state information recorded by the target node device for scheduling the target resource to the target end under the link for resource scheduling, where the difference is that the specific information is different from the information such as the change condition of the node device and the resource, and the specific information may be adaptively adjusted according to a specific application scenario. In addition, the target node device, as a node in the blockchain, may store the on-chain scheduling result and the resource scheduling path, that is, implement the same function as the node device in the blockchain network. Therefore, the target node device may be a node device in the blockchain network, and then the target node device reads the on-chain scheduling result and the resource scheduling path stored in the node device in the blockchain network when the on-chain resource scheduling is completed, and may refer to the target node device reads the on-chain scheduling result and the resource scheduling path stored in the target node device itself when the on-chain resource scheduling is completed.
In one case, if the target node device and the downlink destination end are connected through the centralized network, the downlink destination end may send the downlink scheduling result to the central node of the centralized network, and the central node forwards the downlink scheduling result to the downlink destination end.
Referring to fig. 3, fig. 3 is a schematic structural diagram illustrating a resource scheduling system based on a block chain according to an embodiment of the present specification. The resource scheduling system 300 based on the block chain specifically includes: the node device 302 in the blockchain network, and the target node device 304 deployed in the blockchain network and the out-of-chain resource network, wherein the blockchain is deployed with an intelligent contract for resource scheduling management, and the out-of-chain resource network is a network deployed with a down-chain destination 306 and used for resource scheduling;
the node device 302 in the block chain network receives a resource scheduling request, wherein the resource scheduling request carries information of a target end under a chain and information of target resources, responds to the resource scheduling request, calls an intelligent contract, and schedules the target resources corresponding to the information of the target resources to the target node device 304 according to the information of the target end under the chain;
the target node device 304 schedules the target resource to the downlink destination end 306 corresponding to the downlink destination end information.
In an embodiment of the present specification, the target node device is deployed in a blockchain network and an out-of-chain resource network, where the out-of-chain resource network is a network that deploys a down-chain destination and is used for resource scheduling. Therefore, for the case that the destination end of resource scheduling does not have a blockchain account, that is, the destination end is deployed in an out-of-chain resource network, the present embodiment may schedule, by using the target node device, a target resource in resource scheduling performed for the down-chain destination end to the down-chain destination end. Therefore, the resource scheduling between the target end and the downlink end can be realized, and the target end of the resource scheduling does not need to be limited in the block chain network. Therefore, the scheme does not need to limit the destination end of the resource scheduling to be in the block chain network, thereby widening the application scene range of the resource scheduling method based on the block chain.
For example, as shown in fig. 4, a schematic structural diagram of another resource scheduling system based on a block chain according to an embodiment of this specification, the system may include: the node device CUK in the blockchain network represents the bank a, performs resource scheduling through the blockchain network, is deployed in the blockchain network and an out-of-chain resource network, such as a Swift network, and represents the target node device CHK of the bank B. On this basis, the end CBK representing the downlink destination of the bank C is deployed in an out-of-chain resource network, such as a Swift network, that is, connected to the target node device CHK through the Swift network. Assuming that resource scheduling is that resource allocation aiming at funds is carried out on an account A of a node device CUK in a blockchain network to an account B of a destination end CBK, the resource scheduling is divided into 2 segments because of the bank capacity problem, namely because the destination end CBK is not deployed in the blockchain network: the node device CUK in the block chain network firstly remits money to the target node device CHK, and after the target node device CHK receives the money, the money is remitted to the chain destination end CBK. Node equipment CUK in the block chain network, target node equipment CHK are all on-chain participants, and a target end CBK under the chain is not on the chain.
The technical solution of the resource scheduling system provided in this embodiment belongs to the same concept as the technical solution of the resource scheduling method in fig. 1, and details of the technical solution of the resource scheduling system, which are not described in detail, can be referred to the description of the technical solution of the resource scheduling method based on the block chain.
In an optional implementation manner, the scheduling, according to the information of the destination end under the link, the target resource corresponding to the target resource information to the target node device may specifically include the following steps:
and scheduling the target resource corresponding to the target resource information to the target node equipment to obtain the state change information of the target resource, and obtaining the on-chain scheduling result based on the state change information.
The status change information is similar to the status information in the above-mentioned optional embodiment of fig. 1, and the difference is that the status change information is obtained by recording for scheduling the target resource corresponding to the target resource information to the target node device in this embodiment. That is, before scheduling the target resource corresponding to the target resource information to the target node device, the state information in this embodiment is null or an initial value, and the state information is updated for the scheduling, so as to obtain the state change information of the target resource.
In this embodiment, the on-chain scheduling result is obtained based on the state change information of the target resource, so that backtraceable records of the on-chain resource scheduling can be ensured, and the reliability and accuracy can be ensured. A specific manner of obtaining the on-chain scheduling result based on the state change information is described below in an alternative embodiment.
In an optional implementation manner, the obtaining a chain scheduling result based on the state change information may specifically include the following steps:
storing the state change information as block output information of the block chain network, so that when each node device in the block chain network monitors the block output information, whether the block output information meets a preset consistency condition is verified, and if yes, sending feedback information passing verification to the node device in the block chain network;
and when the feedback information is received, determining the block information as a chain scheduling result.
By consistency verification in this embodiment: whether the block information meets the preset consistency condition is verified, the utilization of the non-tampering characteristic of the block chain in resource scheduling is realized, and the accuracy and credibility of resource scheduling on the chain can be ensured. The steps in this embodiment may specifically be the process shown in fig. 5. Illustratively, as shown in fig. 5, in a resource scheduling method based on a block chain according to an embodiment of this specification, a flowchart of an uplink resource scheduling process may include the following steps:
s502, node equipment in a block chain network initiates chain resource scheduling and fills in target node equipment information;
s504, node equipment in the block chain network performs route selection;
s506, the node equipment in the block chain network calls an intelligent contract to promote resource scheduling, block information is obtained, and confirmation of each node equipment in the block chain network is waited;
s508, each node device in the block chain network calls an intelligent contract to confirm current resource scheduling;
s510, determining whether all the participants confirm the transaction; if yes, go to S512; if not, returning to execute S508;
s512, the state information of the node equipment in the block chain network for promoting resource scheduling is changed to be successful.
The routing is performed by scheduling the target resource to the target node device. The preset consistency condition is a condition which is specified by an intelligent contract and guarantees the consistency of resources in the node equipment in the block chain network. The following takes the resource scheduling as the remittance scenario as an example, and the present embodiment will be specifically described. For example, when a user (user) needs to initiate a money transfer on a node device in the blockchain network, a money transfer request is sent to the node device through a client, so that the node device invokes a contract for the money transfer to specify account information for receiving and paying money, that is, target node device information. The mechanism on the chain, that is, the target node device, monitors the state change of the node device contract in the block chain network, and if the payment resource scheduling initiated by the account of the client is found, the process is started: and calling a contract interface and filling the sink information. Wherein, the payment bank: the bank where the payment account is located, e.g. the node device CUK in the blockchain network. The routing information refers to the mobile link of the fund, for example, the node device CUK in the block chain network in this embodiment pays to the destination node device CHK, and the rest is handed over to the destination end CBK of the link for operation. After the paylines fill the information of the remittance, the state information recorded by the intelligent contracts is used for promoting resource scheduling. All participants on the chain can then scan for the change. The target node device CHK and the node device CUK in the block chain network know that a resource scheduling needs to be confirmed, namely verification, through monitoring the block information of the node device in the block chain network. If all the participants on the chain of the resource scheduling confirm that the resource scheduling has no problem, namely passes the consistency verification, the intelligent contract is called to advance the state information of the resource scheduling on the chain, namely to update the state information to a completion state. In addition, in this embodiment, the resource scheduling on the chain is completed, and the resource scheduling state on the chain is completed, that is, the node device CUK and the target node device CHK in the block chain network complete the resource scheduling. Because the chain destination end CBK is not in the blockchain network, it cannot be confirmed whether the chain destination end CBK receives the fund. Therefore, in order to ensure the accuracy of resource scheduling, the step of uploading the result of downlink resource scheduling to the node device in the blockchain network provided in this alternative embodiment of the present specification may be adopted.
Moreover, in order to ensure the security of uploading the downlink resource scheduling result to the node device in the block chain network, so as to further improve the reliability and security of resource scheduling, the downlink resource scheduling result may be verified. Therefore, the following further explains, in the form of an optional embodiment, that the target node device is used to send the down-link scheduling result to the node device in the blockchain network, and the up-link scheduling result is updated based on the down-link scheduling result to obtain the target scheduling result corresponding to the resource scheduling request.
In an alternative embodiment, the chain down scheduling result carries signature information of the chain down destination end;
correspondingly, the updating the on-chain scheduling result based on the off-chain scheduling result to obtain the target scheduling result corresponding to the resource scheduling request may specifically include the following steps:
calling an intelligent contract, and verifying signature information in a scheduling result under a link;
and if the verification result is that the resource scheduling request passes the verification, updating the scheduling result on the link by using the scheduling result under the link to obtain a target scheduling result corresponding to the resource scheduling request.
In a specific application, if the verification of the scheduling result under the link is performed to a certain end under the link, such as a bank, in the form of an interface query, the credibility of the verification result is completely dependent on the technical capability and the public credibility of the end under the link, such as the bank, and is not reliable enough. Therefore, the verification in the form of signature information is performed by the embodiment, so that the method is not influenced by the technical capability and the public trust of the link destination, and the reliability is further improved.
In one case, after the intelligent contract is invoked to verify the signature information in the scheduling result under the chain, the resource scheduling method based on the block chain provided in the embodiment of the present specification may further include the following steps:
and if the verification result is that the verification fails, sending prompt information of failure in verification. The prompt information may be sent to the target node device and/or the link destination end, or may be sent to a designated security center, etc. to prompt the security problem of resource scheduling. In addition, if the verification result is that the verification is not passed, the resource scheduling may be ended, thereby stopping the storage of the received under-link scheduling result.
Moreover, the specific manner of scheduling the signature information in the result under the verification chain may be various, and the following description is made in the form of an alternative embodiment.
In an optional implementation manner, before receiving the downlink scheduling result sent by the target node device, the method for scheduling resources based on a block chain provided in this embodiment of the present specification may further include the following steps:
storing a public key corresponding to the signature information;
invoking an intelligent contract, and verifying signature information in scheduling results under a chain, wherein the signature information comprises the following steps:
and calling an intelligent contract, and verifying the signature information in the scheduling result under the link by using the public key.
The embodiment adopts a mode that the signature of the participator under the chain is combined with the signature verification on the chain: the public keys, such as security certificates, of all the chained destinations that may be involved, for example, Swift participating banks, are stored in advance in the smart contracts. At this time, the destination end of the chain may include the target node device where the blockchain account exists. The intelligent contract can carry out signature verification operation on the under-chain scheduling result in the form of the HTTPS message, and if the verification is passed, the under-chain scheduling result is stored and analyzed.
In an optional implementation manner, before the intelligent contract is invoked to verify the signature information in the scheduling result under the chain, the resource scheduling method based on the block chain provided by the embodiment of the present specification may further include the following steps:
generating a verification secret key corresponding to the signature information through a transport layer security protocol between the target node equipment and a down-link destination end, and storing the verification secret key into a distributed account book;
correspondingly, the invoking of the intelligent contract to verify the signature information in the scheduling result under the link may specifically include the following steps:
and calling the intelligent contract, and verifying the signature information in the scheduling result under the link by using the verification secret key.
The embodiment realizes the verification of the TLSNotary mode: node equipment in the block chain network, namely nodes in the block chain, is used as an auditing party to control a secret key generation flow during HTTPS handshake, so that HTTPS messages can be verified on the chain. When the tlsnottary mode is applied to this embodiment, an audited party is [ target node device to which the Swift message is to be forwarded ], and the audit is [ HTTPS message forwarded by the target node device ]. It can be seen that the present embodiment does not need to store the public key of the destination end under the link in advance. Therefore, convenience can be improved.
In an optional implementation manner, the updating the uplink scheduling result by using the downlink scheduling result to obtain the target scheduling result corresponding to the resource scheduling request specifically includes the following steps:
analyzing the scheduling result under the chain to obtain appointed scheduling information;
and adding the appointed scheduling information to the on-chain scheduling result, obtaining the updated on-chain scheduling result, storing the updated on-chain scheduling result in a distributed account book, and obtaining a target scheduling result corresponding to the resource scheduling request.
The specified scheduling information may be information for proving that the target resource is scheduled to the downlink destination. For example, it may be specified that the scheduling information may be attribute information of the target resource received by the end of the link destination, a reception time of the target resource, a signature of the end of the link destination, and the like. The attribute information of the target resource may include a type of the target resource, such as currency, a quantity of the target resource, a name, an identification, and the like of the target resource. Illustratively, when the node device CUK or the target node device CHK in the blockchain network receives the amount update message sent by the destination CBK in the Swift network, the amount update message is updated to the node device in the blockchain network by calling the interface of the remittance management contract. Fig. 6 is a flowchart illustrating an uploading process of a downlink resource scheduling result in a resource scheduling method based on a block chain according to an embodiment of the present specification, where:
s602, acquiring a downlink resource scheduling result containing a signature of a downlink destination from an out-of-link resource network;
s604, calling an intelligent contract to verify the signature by using a pre-stored certificate;
s606, determining whether the verification is passed; if not, executing S608, if passing, executing S610 to S612;
s608, refusing to store the resource scheduling result;
s610, storing a resource scheduling result for node equipment in the block chain network to inquire and backtrack;
and S612, extracting the specified information in the resource scheduling result, and updating the resource scheduling result on the chain by using the specified information.
In a specific application, the execution subject of this embodiment is a node device in a blockchain network. Wherein the specific information is the specific scheduling information in the above optional embodiment. In this embodiment, the specified scheduling information in the down-link scheduling result and the up-link scheduling result are combined and stored to the node device in the block chain network, so that the target scheduling result on the node device in the block chain network can be ensured to be more comprehensive, and the resource scheduling is more accurate and reliable.
In an optional implementation manner, after the intelligent contract is invoked to verify the signature information in the scheduling result under the chain, the resource scheduling method based on the block chain provided by the embodiment of the present specification may further include the following steps:
and if the verification result is that the link is verified, determining excitation resources based on the link scheduling result, and scheduling the excitation resources to the target node equipment.
The embodiment improves the tracking timeliness of the downlink resource scheduling result on the node equipment in the blockchain network by introducing a forwarding mechanism of the out-of-chain message. Specifically, for forwarding a result of the downlink resource scheduling, that is, a message sent by an out-of-link resource network, for example, a Swift network, the forwarding end is activated: and the target node equipment firstly forwards the Swift message to the block chain network, and calls an intelligent contract for verification and storage, and then correspondingly stimulates the forwarding end. Wherein the stimuli include, but are not limited to: and allocating a part of resources on the node equipment in the block chain network to the forwarding terminal. For example, a resource schedule is remittance of 1 ten thousand yuan, 10 yuan is deducted by node devices in a general blockchain network to be used as a commission fee, a payee only receives 9990 yuan, and a certain amount, for example, 1 or 2 yuan, can be taken from the 10 yuan to be sent to a forwarding end: transfer a part of the commission fee of the resource scheduling to the user, namely, the chain account of the transfer terminal (the balance number of the chain account is increased by a little). The user sees that the account balance on the chain of the user is increased, and can take the account balance as a voucher to require money to be paid under a bank line. Therefore, by introducing a competitive forwarding mode, the operation efficiency is improved, and the condition change under the link can be timely received on the link, so that the data on the link is more accurate and comprehensive, and the credibility of resource scheduling is facilitated.
The following further explains an application of the resource scheduling method provided in this specification by taking an example of the resource scheduling method with reference to fig. 7. Fig. 7 is a schematic view illustrating an application scenario of a resource scheduling method based on a block chain according to another embodiment of the present specification, including:
node device C1, node device C2, node device C3. Node device C1 and node device C2 are target node devices that own the blockchain account, and node device C2 is the destination end of the chain. The node devices in the blockchain network may include nodes in the blockchain network to which the node device C1 and the node device C2 belong. Moreover, both the node device C1 and the node device C2 are connected to the node device C3 through the Swift network, so that the node device C1 or the node device C2 can be used as a bridge terminal to perform Swift message acquisition and Swift message delivery. Obtaining, by the Swift network, a link-down scheduling result of the link-down resource scheduling performed for the node device C3; the Swift message delivery refers to uploading the down-chain scheduling result to the blockchain network, that is, each node in the blockchain. The node device in the blockchain network corresponding to the blockchain network can process the on-chain resource scheduling between the node device C1 and the node device C2, which is initiated by a user through the node device C1, through an intelligent contract. When resource scheduling initiated by a user relates to the node device C3, the resource scheduling system provided in this embodiment may obtain a downlink resource scheduling result for the node device C3 through the bridge terminal, and merge the downlink resource scheduling result into the uplink resource scheduling result, thereby ensuring that the node device C3 can store the corresponding resource scheduling result into the blockchain without accessing the blockchain network, so as to improve security and take into account availability and security of the resource scheduling system. For convenience of understanding, the application scenario of the resource scheduling system provided in this embodiment is further described below by taking the resource as the fund stored in the bank account and taking the resource scheduling as the fund transaction as an example.
Illustratively, in this application scenario, the resource scheduling system includes: bank1 corresponding to node device C1, bank2 corresponding to node device C2, bank3 corresponding to node device C3, and user. Bank1 and bank2 are both in the Swift network and have a blockchain account. And the bank1, the bank2 and the user correspond to the participants on the block chain, and participate in the confirmation of resource scheduling and the progress process of the scheduling state on the chain. The bank1, the bank2 and the bank3 are participants in the Swift network and are connected through the Swift network. The bridge has Swift network checking capability and account numbers on the blockchain, and can forward and store Swift information to the blockchain. The bridge terminal can be bank1 or bank 2. The system has a traditional Swift network and also has a block chain network. The Swift network is used as a centralized message transmission system and is connected with different participants of resource scheduling. The blockchain network realizes the functions of resource scheduling state promotion, information credible storage and tracking under the chain and the like of the participants.
Fig. 8 is an exemplary diagram of information utilized by an intelligent contract in a resource scheduling method based on a block chain according to an embodiment of the present specification. For example, an intelligent contract deployed in a node device in a blockchain network may utilize the information shown in fig. 8 for resource scheduling. Wherein, the information utilized by the intelligent contract may include: resource scheduling information, state information, downlink tracking information, and the like. Specifically, the method comprises the following steps: the resource scheduling information may include: node equipment information, resource attribute information, link down destination information, etc. in the block link network are used to initiate resource scheduling information. The state information may include: initialization → confirmation of dispatch path → auditing of participants → transaction completion. Here, "→" represents the generation order of the state information, that is: firstly, initializing to obtain resource scheduling information; under the condition of obtaining the resource scheduling information, the scheduling path is confirmed, namely the scheduling path in the resource scheduling request is obtained; and then, performing on-chain resource scheduling according to the scheduling path to obtain block information. On the basis, the participator, namely the target node equipment, audits out the block information and generates feedback information, so that information of transaction completion is generated, and the transaction completion, namely resource scheduling completion is realized. The down-link trace information may include: [ hypertext transfer security protocol packet and/or signature information ] plus information of the status under the link, that is: the under-chain state information may be added to the HTTPS message, or the under-chain state information may be added to signature information at the end of the under-chain destination, or the under-chain state information and the signature information may be added to the HTTPS message. Thus, aiming at resource scheduling, the intelligent contract is filled with the resource scheduling information when the intelligent contract is initialized, and then the intelligent contract maintains the state information after the scheduling path confirmation, the participant audit and the transaction completion. And the intelligent contract can receive the (tracking information under the chain) through the target node equipment connected with the target end under the chain, so as to obtain the state information under the chain, and verify and store the state information.
The method in this embodiment is the same as that in the embodiment of fig. 1 and the alternative embodiment of fig. 1, and therefore, specific steps executed by each execution main in this embodiment may refer to the description of the embodiment of fig. 1 and the alternative embodiment of fig. 1, and are not described again here.
Corresponding to the above method embodiment, this specification further provides an embodiment of a resource scheduling apparatus based on a block chain, and fig. 9 shows a schematic structural diagram of a resource scheduling apparatus to be based on a block chain, provided in an embodiment of this specification. As shown in fig. 9, the method is applied to a node device in a blockchain network, where an intelligent contract for resource scheduling management is deployed in the blockchain network; the device includes:
a scheduling request receiving module 902, configured to receive a resource scheduling request, where the resource scheduling request carries information of a downlink destination and target resource information;
the uplink resource scheduling module 904, in response to the resource scheduling request, invokes an intelligent contract, and schedules a target resource corresponding to the target resource information to the target node device according to the information of the downlink target end, so that the target node device schedules the target resource to the downlink target end corresponding to the information of the downlink target end;
the target node device is deployed in a blockchain network and an out-of-chain resource network, wherein the out-of-chain resource network is a network for deploying a down-chain destination and scheduling resources.
In an embodiment of the present specification, the target node device is deployed in a blockchain network and an out-of-chain resource network, where the out-of-chain resource network is a network that deploys a down-chain destination and is used for resource scheduling. Therefore, for the case that the destination end of resource scheduling does not have a blockchain account, that is, the destination end is deployed in an out-of-chain resource network, the present embodiment may schedule, by using the target node device, a target resource in resource scheduling performed for the down-chain destination end to the down-chain destination end. Therefore, the resource scheduling between the target end and the downlink end can be realized, and the target end of the resource scheduling does not need to be limited in the block chain network. Therefore, the scheme does not need to limit the destination end of the resource scheduling to be in the block chain network, thereby widening the application scene range of the resource scheduling method based on the block chain.
Optionally, a distributed ledger is also deployed in the blockchain network;
an on-chain resource scheduling module 904, further obtaining an on-chain scheduling result after the target resource corresponding to the target resource information is scheduled to a target node device, and storing the on-chain scheduling result in the distributed ledger;
and receiving a down-link scheduling result sent by the target node equipment, updating the up-link scheduling result based on the down-link scheduling result, and obtaining a target scheduling result corresponding to the resource scheduling request, wherein the down-link scheduling result is fed back to the target node equipment by the down-link destination terminal under the condition that the target resource is received.
Optionally, the under-link scheduling result carries signature information of the under-link destination;
the resource scheduling module 904 on the chain further calls the intelligent contract to verify the signature information in the scheduling result under the chain; and if the verification result is that the resource scheduling request passes the verification, updating the scheduling result on the chain by using the scheduling result under the chain to obtain a target scheduling result corresponding to the resource scheduling request.
Optionally, the apparatus further comprises: the public key storage module is used for storing a public key corresponding to the signature information;
the resource scheduling module 904 in the chain further calls the intelligent contract, and verifies the signature information in the scheduling result in the chain by using the public key.
Optionally, the apparatus further comprises: a key generation module, configured to generate a verification key corresponding to the signature information through a transport layer security protocol between the target node device and the downlink destination end, and store the verification key in the distributed account book;
the on-chain resource scheduling module 904 further invokes the intelligent contract, and verifies the signature information in the under-chain scheduling result by using the verification key.
Optionally, the apparatus further comprises: and the excitation module is used for determining excitation resources based on the chain scheduling result when the verification result is that the link is verified, and scheduling the excitation resources to the target node equipment.
Optionally, the uplink resource scheduling module 904 further analyzes the downlink scheduling result to obtain the designated scheduling information;
and adding the specified scheduling information to the on-chain scheduling result, obtaining an updated on-chain scheduling result, storing the updated on-chain scheduling result in the distributed account book, and obtaining a target scheduling result corresponding to the resource scheduling request.
Optionally, the uplink resource scheduling module 904 further schedules a target resource corresponding to the target resource information to a target node device, obtains state change information of the target resource, and obtains the uplink scheduling result based on the state change information.
Optionally, the on-chain resource scheduling module 904 further stores the state change information as block output information of the blockchain network, so that when each node device in the blockchain network monitors the block output information, it is verified whether the block output information meets a preset consistency condition, and if so, feedback information that the verification passes is sent to the node device in the blockchain network;
and when the feedback information is received, determining the block output information as the on-chain scheduling result.
The foregoing is a schematic scheme of a resource scheduling apparatus in this embodiment. It should be noted that the technical solution of the resource scheduling apparatus and the technical solution of the resource scheduling method applied to the block chain belong to the same concept, and details of the technical solution of the resource scheduling apparatus applied to the block chain, which are not described in detail, can be referred to the description of the technical solution of the resource scheduling method applied to the block chain.
Fig. 10 is a block diagram illustrating a structure of a node device in a blockchain network according to an embodiment of the present specification. The components of the node apparatus 1000 include, but are not limited to, a memory 1010 and a processor 1020. The processor 1020 is coupled to the memory 1010 via a bus 1030 and the database 1050 is used to store data.
The node device 1000 also includes an access device 1040, the access device 1040 enabling the node device 1000 to communicate via one or more networks 1060. Examples of such networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 1040 may include one or more of any type of Network Interface (e.g., a Network Interface Controller) whether wired or Wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) Wireless Interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) Interface, an ethernet Interface, a Universal Serial Bus (USB) Interface, a cellular Network Interface, a bluetooth Interface, a Near Field Communication (NFC) Interface, and so forth.
In one embodiment of the present description, the above-mentioned components of the node apparatus 1000 and other components not shown in fig. 10 may also be connected to each other, for example, through a bus. It should be understood that the node device structure block diagram shown in fig. 10 is for exemplary purposes only and is not limiting on the scope of the present description. Those skilled in the art may add or replace other components as desired.
The node device 1000 may be any type of stationary or mobile device, including a mobile computer or mobile device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary device such as a desktop computer or PC. Node device 1000 may also be a mobile or stationary server.
Wherein, the processor 1020 is configured to execute computer-executable instructions which, when executed by the processor, implement the steps of the above-mentioned resource scheduling method based on block chains.
The above is a schematic scheme of a node device in a blockchain network according to this embodiment. It should be noted that the technical solution of the node device and the technical solution of the resource scheduling method based on the block chain belong to the same concept, and details of the technical solution of the node device, which are not described in detail, can all refer to the description of the technical solution of the resource scheduling method based on the block chain.
An embodiment of the present specification further provides a computer-readable storage medium, which stores computer-executable instructions, and when executed by a processor, the computer-executable instructions implement the steps of the above method for resource scheduling based on block chains.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the resource scheduling method based on the block chain belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the resource scheduling method based on the block chain.
An embodiment of the present specification further provides a computer program, where the computer program is executed in a computer, and causes the computer to execute the steps of the above resource scheduling method based on a block chain.
The above is an illustrative scheme of a computer program of the present embodiment. It should be noted that the technical solution of the computer program and the technical solution of the resource scheduling method described above belong to the same concept, and details that are not described in detail in the technical solution of the computer program can be referred to the description of the technical solution of the resource scheduling method based on the block chain described above.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts, but those skilled in the art should understand that the present embodiment is not limited by the described acts, because some steps may be performed in other sequences or simultaneously according to the present embodiment. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that acts and modules referred to are not necessarily required for an embodiment of the specification.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the embodiments and the practical application, to thereby enable others skilled in the art to best understand and utilize the embodiments. The specification is limited only by the claims and their full scope and equivalents.

Claims (13)

1. A resource scheduling method based on a block chain is applied to node equipment in a block chain network, wherein an intelligent contract for resource scheduling management is deployed in the block chain network; the method comprises the following steps:
receiving a resource scheduling request, wherein the resource scheduling request carries information of a downlink destination terminal and information of target resources;
responding to the resource scheduling request, calling the intelligent contract, and scheduling the target resource corresponding to the target resource information to target node equipment according to the information of the target end under the link so that the target node equipment schedules the target resource to the target end under the link corresponding to the information of the target end under the link;
the target node device is deployed in the blockchain network and an out-of-chain resource network, where the out-of-chain resource network is a network that deploys the down-chain destination and is used for resource scheduling.
2. The method of claim 1, further deploying a distributed ledger in the blockchain network;
after the target resource corresponding to the target resource information is scheduled to the target node device, the method further includes:
obtaining an on-chain scheduling result, and storing the on-chain scheduling result in the distributed account book;
and receiving a down-link scheduling result sent by the target node equipment, updating the up-link scheduling result based on the down-link scheduling result, and obtaining a target scheduling result corresponding to the resource scheduling request, wherein the down-link scheduling result is fed back to the target node equipment by the down-link destination terminal under the condition that the target resource is received.
3. The method of claim 2, wherein the under-chain scheduling result carries signature information of the under-chain destination end;
the updating the on-chain scheduling result based on the off-chain scheduling result to obtain a target scheduling result corresponding to the resource scheduling request includes:
calling the intelligent contract and verifying signature information in the scheduling result under the chain;
and if the verification result is that the resource scheduling request passes the verification, updating the scheduling result on the chain by using the scheduling result under the chain to obtain a target scheduling result corresponding to the resource scheduling request.
4. The method of claim 3, prior to said receiving the chain down scheduling result sent by the target node device, the method further comprising:
storing a public key corresponding to the signature information;
the invoking the intelligent contract and verifying the signature information in the scheduling result under the chain comprises:
and calling the intelligent contract, and verifying the signature information in the scheduling result under the link by using the public key.
5. The method of claim 3, prior to said invoking the intelligent contract verifying signature information in the under-chain scheduling result, the method further comprising:
generating a verification secret key corresponding to the signature information through a transport layer security protocol between the target node device and the down-link destination end, and storing the verification secret key to the distributed account book;
the calling the intelligent contract and verifying the signature information in the scheduling result under the link comprises the following steps:
and calling the intelligent contract, and verifying the signature information in the scheduling result under the link by using the verification secret key.
6. The method of any of claims 3 to 5, after said invoking the smart contract to verify signature information in the chained scheduling result, the method further comprising:
and if the verification result is that the link is verified, determining excitation resources based on the on-link scheduling result, and scheduling the excitation resources to the target node equipment.
7. The method according to any one of claims 3 to 5, wherein the updating the on-chain scheduling result with the off-chain scheduling result to obtain a target scheduling result corresponding to the resource scheduling request includes:
analyzing the under-chain scheduling result to obtain appointed scheduling information;
and adding the specified scheduling information to the on-chain scheduling result, obtaining an updated on-chain scheduling result, storing the updated on-chain scheduling result to the distributed account book, and obtaining a target scheduling result corresponding to the resource scheduling request.
8. The method according to any one of claims 1 to 5, wherein the scheduling, according to the information of the linked destination, the target resource corresponding to the target resource information to the target node device includes:
and scheduling the target resource corresponding to the target resource information to target node equipment to obtain state change information of the target resource, and obtaining the on-chain scheduling result based on the state change information.
9. The method of claim 8, the obtaining the on-chain scheduling result based on the state change information, comprising:
storing the state change information as block output information of the block chain network, so that when each node device in the block chain network monitors the block output information, whether the block output information meets a preset consistency condition is verified, and if yes, feedback information passing verification is sent to the node device in the block chain network;
and when the feedback information is received, determining the block output information as the on-chain scheduling result.
10. A resource scheduling device based on a block chain is applied to node equipment in a block chain network, wherein an intelligent contract used for resource scheduling management is deployed in the block chain network; the device comprises:
the scheduling request receiving module is used for receiving a resource scheduling request, wherein the resource scheduling request carries information of a downlink destination terminal and target resource information;
the on-chain resource scheduling module is used for responding to the resource scheduling request, calling the intelligent contract and scheduling the target resource corresponding to the target resource information to target node equipment according to the down-chain target end information so that the target node equipment schedules the target resource to a down-chain target end corresponding to the down-chain target end information;
the target node device is deployed in the blockchain network and an out-of-chain resource network, where the out-of-chain resource network is a network that deploys the down-chain destination and is used for resource scheduling.
11. A system for block chain based resource scheduling, comprising: the node equipment in the block chain network is deployed in the block chain network and target node equipment in an out-of-chain resource network, wherein an intelligent contract used for resource scheduling management is deployed in the block chain, and the out-of-chain resource network is a network which is deployed at a down-chain destination and used for resource scheduling;
the node equipment in the block chain network receives a resource scheduling request, wherein the resource scheduling request carries information of a target end under a chain and information of target resources, responds to the resource scheduling request, calls the intelligent contract, and schedules the target resources corresponding to the information of the target resources to the target node equipment according to the information of the target end under the chain;
and the target node equipment schedules the target resource to a downlink destination end corresponding to the downlink destination end information.
12. A node device in a blockchain network, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions, which when executed by the processor, implement the steps of the method for block chain based resource scheduling according to any one of claims 1 to 9.
13. A computer readable storage medium storing computer executable instructions which, when executed by a processor, implement the steps of the method for block chain based resource scheduling according to any one of claims 1 to 9.
CN202210224539.XA 2022-03-07 2022-03-07 Resource scheduling method and system based on block chain Pending CN114615335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210224539.XA CN114615335A (en) 2022-03-07 2022-03-07 Resource scheduling method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210224539.XA CN114615335A (en) 2022-03-07 2022-03-07 Resource scheduling method and system based on block chain

Publications (1)

Publication Number Publication Date
CN114615335A true CN114615335A (en) 2022-06-10

Family

ID=81862006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210224539.XA Pending CN114615335A (en) 2022-03-07 2022-03-07 Resource scheduling method and system based on block chain

Country Status (1)

Country Link
CN (1) CN114615335A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180165611A1 (en) * 2016-12-09 2018-06-14 Cognitive Scale, Inc. Providing Commerce-Related, Blockchain-Associated Cognitive Insights Using Blockchains
CN110019101A (en) * 2018-07-23 2019-07-16 浪潮软件集团有限公司 External storage method and system for block chain object
CN113656499A (en) * 2021-08-16 2021-11-16 工银科技有限公司 Block chain-based value transfer method and device
WO2021230809A1 (en) * 2020-05-13 2021-11-18 The Hongkong And Shanghai Banking Corporation Limited Integration of blockchain transactions with off-chain processing
EP3945432A1 (en) * 2020-07-31 2022-02-02 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain-based method and apparatus for managing biological asset object

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180165611A1 (en) * 2016-12-09 2018-06-14 Cognitive Scale, Inc. Providing Commerce-Related, Blockchain-Associated Cognitive Insights Using Blockchains
CN110019101A (en) * 2018-07-23 2019-07-16 浪潮软件集团有限公司 External storage method and system for block chain object
WO2021230809A1 (en) * 2020-05-13 2021-11-18 The Hongkong And Shanghai Banking Corporation Limited Integration of blockchain transactions with off-chain processing
EP3945432A1 (en) * 2020-07-31 2022-02-02 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain-based method and apparatus for managing biological asset object
CN113656499A (en) * 2021-08-16 2021-11-16 工银科技有限公司 Block chain-based value transfer method and device

Similar Documents

Publication Publication Date Title
CN112330326B (en) Business processing method and device applied to bank transaction blockchain system
CN109658097B (en) Authentication management method, device, medium and electronic equipment of block chain system
CN112232823B (en) Transaction processing method, device, medium and electronic equipment of block chain system
Wright et al. SmartEdge: A smart contract for edge computing
US9946984B2 (en) System and method for transporting a document between a first service provider and a second service provider
CN107833040A (en) Method of payment, device, storage medium and terminal
WO2020173499A1 (en) Public chain-based sub-blockchain construction method and system
CN110855791A (en) Block link point deployment method and related equipment
CN112231741B (en) Data processing method, device, medium and electronic equipment based on block chain system
WO2014016622A1 (en) Data communications method and system
CN104301293A (en) Data processing method, device and system
CN108022090A (en) Virtual account management method, equipment, system and readable storage medium storing program for executing
CN110675159A (en) Financial market transaction advance risk control method and system and electronic equipment
CN103581143A (en) User authority authentication method, system, client side and server side
CN108933838A (en) Application data processing method and device
CN117501731A (en) Secure sensor data distribution
EP4131112A1 (en) Electronic wallet and method for atomic swapping of two different blockchain tokens by using electronic wallet
CN110335040A (en) Resource transfers method, apparatus, electronic equipment and storage medium
CN111901384A (en) System, method, electronic device and readable storage medium for processing message
WO2020004252A1 (en) Number management system, number management method, and number management device
CN114615335A (en) Resource scheduling method and system based on block chain
RU2321060C1 (en) Method for conduction of payments by users of mobile communications
CN109600355A (en) Split enterprise/supplier's workflow
JP2024514858A (en) blockchain key generation
CN109587241A (en) A kind of data sharing method and its equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240226

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Applicant after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: 51 Wurasbasha Road, Laizanda No.1 # 04-08189554

Applicant before: Alipay laboratories (Singapore) Ltd.

Country or region before: Singapore