CN112365260A - Resource transfer method, device, electronic equipment and storage medium - Google Patents

Resource transfer method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112365260A
CN112365260A CN202011166420.9A CN202011166420A CN112365260A CN 112365260 A CN112365260 A CN 112365260A CN 202011166420 A CN202011166420 A CN 202011166420A CN 112365260 A CN112365260 A CN 112365260A
Authority
CN
China
Prior art keywords
resource
account
preset
state
block chain
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
CN202011166420.9A
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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202011166420.9A priority Critical patent/CN112365260A/en
Publication of CN112365260A publication Critical patent/CN112365260A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a resource transfer method, a resource transfer device, electronic equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining a resource transfer request sent by a first terminal currently logged in by a first block chain account, wherein the resource transfer request is used for requesting to transfer a first resource of a preset account to a first account corresponding to the first block chain account; detecting whether a first resource of the preset account is in an unlocked state; and transferring the first resource of the preset account number to the first account under the condition that the first resource of the preset account number is in an unlocked state. The resource transfer method of the invention realizes the whole resource transfer process based on the block chain, and ensures the safety in the resource transfer process by utilizing the safety of the block chain.

Description

Resource transfer method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of block chains, and in particular, to a resource transfer method, apparatus, electronic device, and storage medium.
Background
The blockchain technique is a recording technique with decentralization formed by a combination of a plurality of existing techniques (P2P network, cryptography, etc.). Currently, there is no uniform definition of the blockchain, and the definition of the blockchain in wikipedia is as follows: the blockchain (bolckchain) is a peer-to-peer network for discriminating, transmitting and recording information by using a distributed database, in short, the blockchain is essentially a distributed database with decentralized characteristics, the blockchain technology is essentially a distributed database technology, and nodes in the network maintain the consistency and integrity of the data of the whole network together by using technologies such as cryptography, consensus algorithm, point-to-point communication and the like.
In recent years, the demand for the distribution of resources has become stronger, and particularly, how to guarantee the safety of resources such as cash in the distribution process is a problem which needs to be solved urgently.
Disclosure of Invention
In view of the foregoing problems, the present invention provides a resource transfer method, device, electronic device and storage medium, which aims to solve the security problem of resource transfer in the related art.
In order to solve the technical problem, the invention adopts the following scheme:
in a first aspect, an embodiment of the present invention provides a resource transfer method, where the method is applied to a block link node in a block link network, where the block link node stores a block link composed of multiple blocks, and each block is used to store information, and the method includes:
the method comprises the steps of obtaining a resource transfer request sent by a first terminal currently logged in by a first block chain account, wherein the resource transfer request is used for requesting to transfer a first resource of a preset account to a first account corresponding to the first block chain account;
detecting whether a first resource of the preset account is in an unlocked state;
and transferring the first resource of the preset account number to the first account under the condition that the first resource of the preset account number is in an unlocked state.
Optionally, before obtaining the resource transfer request sent by the first terminal currently logged in by the first blockchain account, the method further includes:
acquiring a resource storage request sent by a second terminal currently logged in by a second block chain account;
responding to the resource storage request, extracting first resources and second resources from resources of a second account corresponding to the second block chain account and storing the first resources and the second resources into the preset account;
and setting the states of the first resource and the second resource stored in the preset account number as locking states.
Optionally, after setting the states of the first resource and the second resource stored in the preset account to the locked states, the method further includes:
detecting the time length of the first resource and the second resource stored in the preset account number in a locking state from the moment of storage;
and when the time length for keeping the first resource and the second resource stored in the preset account in the locking state reaches the preset time length, transferring the first resource and the second resource stored in the preset account to the second account.
Optionally, after the states of the first resource and the second resource stored in the preset account are set to be locked states, the method further includes:
obtaining an unlocking request sent by a second terminal currently logged in by the second block chain account, wherein the unlocking request represents that entity resources corresponding to the first account pass verification;
and responding to the unlocking request, and changing the state of the first resource stored in the preset account from a locked state to an unlocked state.
Optionally, transferring the first resource of the preset account to the first account under the condition that the resource of the preset account is in an unlocked state, where the transferring includes:
under the condition that the first resource of the preset account is in an unlocked state, judging whether the quantity of the resources requested to be transferred by the resource transfer request exceeds a preset quantity or not;
and under the condition that the quantity of the resources requested to be transferred by the resource transfer request does not exceed the preset quantity, transferring the first resources with the corresponding quantity of the preset account number to the first account according to the quantity of the resources requested to be transferred by the resource transfer request.
Optionally, after the state of the first resource stored in the preset account is changed from the locked state to the unlocked state, the method further includes:
obtaining a locking request sent by a second terminal currently logged in by the second block chain account, wherein the locking request represents that entity resources corresponding to the first account have faults;
and responding to the locking request, and changing the state of the first resource stored in the preset account from an unlocked state to a locked state.
Optionally, after setting the states of the first resource and the second resource stored in the preset account to the locked states, the method further includes:
obtaining an unlocking request sent by a first terminal currently logged in by the first block chain account, wherein the unlocking request represents that entity resources corresponding to the first account do not have faults;
and responding to the unlocking request, and changing the state of the second resource stored in the preset account from a locked state to an unlocked state.
Optionally, after the state of the second resource stored in the preset account is changed from the locked state to the unlocked state, the method further includes:
acquiring a resource transfer request sent by a second terminal currently logged in by the second block chain account, wherein the resource transfer request is used for requesting to transfer a second resource of a preset account to a second account corresponding to the second block chain account;
detecting whether a second resource of the preset account is in an unlocked state;
and transferring the second resource of the preset account number to the second account under the condition that the second resource of the preset account number is in an unlocked state.
In a second aspect of the embodiments of the present invention, there is provided a resource transfer apparatus, where the apparatus is applied to a block link node in a block link network, and the block link node stores a block link composed of a plurality of blocks, and each block is used for storing information, the apparatus includes:
the resource management method comprises the steps of obtaining a first resource module, wherein the first resource module is used for obtaining a resource transfer request sent by a first terminal currently logged in by a first block chain account, and the resource transfer request is used for requesting to transfer a first resource of a preset account to a first account corresponding to the first block chain account;
the unlocking detection module is used for detecting whether the first resource of the preset account is in an unlocking state;
and the first resource transfer module is used for transferring the first resource of the preset account number to the first account under the condition that the first resource of the preset account number is in an unlocked state.
Optionally, the apparatus further comprises:
the resource storing module is used for obtaining a resource storing request sent by a second terminal currently logged in by a second block chain account;
the resource extraction module is used for responding to the resource storage request, extracting a first resource and a second resource from the resource of a second account corresponding to the second block chain account and storing the first resource and the second resource into the preset account;
and the resource locking module is used for setting the states of the first resource and the second resource stored in the preset account number as locking states.
Optionally, the apparatus further comprises:
the detection duration module is used for detecting the duration of the first resource and the second resource which are stored in the preset account and keep a locking state from the moment of storage;
and the duration resource transfer module is used for transferring the first resource and the second resource stored in the preset account to the second account when the duration of the first resource and the second resource stored in the preset account, which are kept in the locking state, reaches the preset duration.
Optionally, the apparatus further comprises:
the entity resource verification module is used for obtaining an unlocking request sent by a second terminal currently logged in by the second block chain account, wherein the unlocking request represents that the entity resource corresponding to the first account passes verification;
and the first resource unlocking state module is used for responding to the unlocking request and changing the state of the first resource stored in the preset account from a locking state to an unlocking state.
Optionally, the first resource transfer module includes:
a resource quantity judging unit, configured to judge whether the quantity of the resource requested to be transferred by the resource transfer request exceeds a preset quantity when the first resource of the preset account is in an unlocked state;
and the corresponding quantity resource transfer unit is used for transferring the first resources with the corresponding quantity of the preset account number to the first account according to the quantity of the resources requested to be transferred by the resource transfer request under the condition that the quantity of the resources requested to be transferred by the resource transfer request does not exceed the preset quantity.
Optionally, the apparatus further comprises:
the fault locking module is used for obtaining a locking request sent by a second terminal currently logged in by the second block chain account, wherein the locking request represents that entity resources corresponding to the first account have faults;
and the second resource locking state module is used for responding to the locking request and changing the state of the first resource stored in the preset account from an unlocked state to a locked state.
Optionally, the apparatus further comprises:
the fault unlocking module is used for obtaining an unlocking request sent by a first terminal currently logged in by the first block chain account, and the unlocking request represents that the entity resource corresponding to the first account does not have a fault;
and the second resource unlocking state module is used for responding to the unlocking request and changing the state of the second resource stored in the preset account from a locking state to an unlocking state.
Optionally, the apparatus further comprises:
a second resource obtaining module, configured to obtain a resource transfer request sent by a second terminal currently logged in by a second blockchain account, where the resource transfer request is used to request to transfer a second resource of a preset account to a second account corresponding to the second blockchain account;
a second resource state detection module, configured to detect whether a second resource of the preset account is in an unlocked state;
and the second resource transfer module is used for transferring the second resource of the preset account number to the second account under the condition that the second resource of the preset account number is in an unlocked state.
In a third aspect, an embodiment of the present invention provides an electronic device, including: memory, a processor and a computer program stored on the memory and executable on the processor, the computer program realizing the resource transfer method steps as described in the first aspect when executed by the processor.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the resource transfer method according to the first aspect.
Compared with the prior art, the embodiment of the invention at least has the following advantages:
in the embodiment of the invention, based on the block chain technology, a user can register a first block chain account number through a first terminal, send a resource transfer request through the account number, and transfer a first resource of a preset account number in a block chain to a first account corresponding to the first block chain account number. Of course, whether the first resource can be transferred depends on whether the first resource of the preset account is in a locked state, and the first resource transfer of the preset account can be transferred to the first account only when the first resource of the preset account is in an unlocked state. The resource transfer method of the invention realizes the whole resource transfer process based on the block chain, and ensures the safety in the resource transfer process by utilizing the safety of the block chain.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of the steps of a resource transfer method in an embodiment of the present invention;
FIG. 2 is a flowchart of the steps of a resource transfer method in accordance with a further embodiment of the present invention;
FIG. 3 is a flowchart of another step of a resource transfer method in another embodiment of the present invention;
FIG. 4 is a schematic diagram of the transfer process of the landlord rent of the present invention;
fig. 5 is a schematic view of the transfer process of the present invention for a tenant to withdraw a deposit;
fig. 6 is a block diagram of a resource transfer apparatus in an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention, but do not limit the invention to only some, but not all embodiments.
In the related art, how to ensure the resource security in the resource transfer process, each field has a respective method. Aiming at cash resources, how to ensure that the benefits of both cash sending and cash receiving are not damaged in the cash transferring process is a problem which needs to be solved urgently.
At present, no matter a bank institution or a third-party payment institution similar to an X treasure, the third-party payment institution essentially uses a high credibility third party, realizes the safe transfer of cash resources, and ensures that the benefits of both the cash sending party and the cash receiving party are not damaged, for example: the user A transfers cash to the user B through the APP of the X bank; and the user A transfers cash to the user B through the X treasure, and the like. The X bank or the X bank is essentially a third party trusted and approved by both the user A and the user B, and both the user A and the user B can safely transfer the cash resources of the user A and the user B to the third party and then transfer the cash resources to the third party.
In the above process, the third party needs to collect a certain commission fee and the like, which is used as the cost for transferring the cash resources by the third party, so that the benefits of the user a and the user B may be damaged and the experience feeling is poor.
Based on the technical problems to be solved, the inventor proposes the core concept of the application: by utilizing the characteristics of the block chain, such as safety, decentralization, distributed database technology and the like, the safety of the user in the cash resource transfer process is ensured, and the benefits of both parties receiving and sending the cash resources are also ensured.
Based on the technical concept, the resource transfer scheme of the invention is provided, and the resource transfer method of the invention is clearly and completely described below.
The resource transfer method in the embodiment of the invention can be applied to the block chain link point in the block chain network, wherein the block chain consisting of a plurality of blocks is stored in the block chain link point, and each block is used for storing information. Referring to fig. 1, a flowchart illustrating steps of a resource transfer method according to an embodiment of the present invention is shown. As shown in fig. 1, the resource transfer method may specifically include the following steps:
step S11: the method comprises the steps of obtaining a resource transfer request sent by a first terminal currently logged in by a first block chain account, wherein the resource transfer request is used for requesting to transfer a first resource of a preset account to a first account corresponding to the first block chain account.
In this embodiment, when the user a needs to use the block chain, first, an account registration must be performed in the block chain through the first terminal to obtain a first block chain account. It is understood that the first terminal may be any intelligent device, including but not limited to: a PC, a server, an intelligent mobile device, etc. User a may install the APP of the blockchain on the first terminal, for example: the ether house, etc. registers its own unique blockchain account, which naturally corresponds to a first account for storing the cash resource of user a. Similarly, the user B also needs to register to obtain a second blockchain account of the user B and a second account corresponding to the second blockchain account in the same manner as described above.
In addition, the resource transfer method of the embodiment of the invention can be combined with an intelligent contract to more conveniently and safely ensure the safety in the cash resource transfer process and ensure that the benefit of a user is not damaged. Smart contracts (Smart contracts) are a computer protocol aimed at propagating, verifying or executing contracts in an informative manner, which allow trusted transactions without third parties, which are traceable and irreversible, the concept of Smart contracts was first proposed in 1995 by Nick Szabo, which is a good product of the integration of block chains and Smart contracts, which has a wide application prospect and a wide range of applications.
As an example: assuming that the cash resource flow is based on a house renting scenario, two parties circulating the cash resource are respectively a landlord and a tenant, the landlord provides a house and an ancillary facility, the tenant provides a rent to rent the house of the landlord and uses the ancillary facility of the house, and generally, the tenant needs to provide a deposit to ensure the benefit of the landlord. The landlord and the tenant register in the block chain respectively to obtain respective block chain account numbers, and assume that the block chain account number registered by the landlord is a first block chain account number, and the block chain account number registered by the tenant is a second block chain account number which respectively corresponds to the first account and the second account.
And if the two parties reach the house leasing intention, the tenant inputs the house leasing into a preset account in the block chain through a second block chain account of the tenant, the house leasing is the first resource, the landlord can send a resource transfer request to the block chain through the first block chain account of the tenant, and the request is used for transferring the first resource of the preset account to the first account of the landlord.
Of course, the resource transfer method of the embodiment of the present invention may also be applied to aspects related to resource transfer, such as article renting, resource sharing, and the like, and not only to the aspect of house renting.
Step S12: and detecting whether the first resource of the preset account is in an unlocked state.
In this embodiment, in general, the first resource is in a locked state when just entering the preset account, and is changed to the unlocked state after a certain time. Therefore, after the blockchain receives the resource transfer request sent by the first blockchain account, it is required to detect whether the first resource of the preset account is in an unlocked state.
Step S13: and transferring the first resource of the preset account number to the first account under the condition that the first resource of the preset account number is in an unlocked state.
In this embodiment, only when the blockchain detects that the first resource of the preset account is in an unlocked state, the first resource of the preset account is transferred to the first account. Naturally, it can be understood that if the blockchain detects that the first resource of the preset account is in the locked state, the blockchain does not transfer the first resource of the preset account to the first account.
Following the above example: the renting method comprises the steps that a tenant squeezes a house rent into a preset account in a block chain through a second block chain account of the tenant, the tenant can send a resource transfer request to the block chain through a first block chain account of the tenant, the block chain detects whether the house rent in the preset account is in an unlocked state (the state is determined by the tenant, and the corresponding position is described in the specific scheme), and if the house rent in the preset account is in the unlocked state, the block chain transfers the house rent in the preset account to an account corresponding to the tenant; and if the blockchain detects that the tenants in the preset account are in the locked state, the blockchain does not execute the resource transfer request, and simultaneously sends information that the tenants are in the locked state to the landlord to prompt the landlord.
By the mode, based on the characteristics of the block chain, the safety of the landlord and the tenant in the cash resource transfer process is guaranteed, meanwhile, the benefits of the landlord and the tenant are not damaged, in the whole resource transfer process, the existence of a third party in the related technology is not needed, and the problem caused by the existence of the third party is avoided.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a resource transfer method in another embodiment of the present invention, and referring to fig. 2, the method may specifically include the following steps:
step S21: and acquiring a resource storage request sent by a second terminal currently logged in by a second block chain account.
In this embodiment, before obtaining the resource transfer request sent by the first terminal currently logged in by the first blockchain account, the blockchain first has to obtain a resource storage request sent by the second terminal currently logged in by the second blockchain account. That is, the blockchain must first receive the first resource before subsequent steps can be taken.
Following the above example: before the landlord sends the resource transfer request, the blockchain must first receive a resource deposit request sent by the tenant.
Step S22: and responding to the resource storage request, extracting a first resource and a second resource from the resource of a second account corresponding to the second block chain account and storing the first resource and the second resource into the preset account.
In this embodiment, after receiving a resource storage request sent by a second block chain account, a block chain responds to the request, extracts a first resource and a second resource from a resource of a second account corresponding to the second block chain account, and stores the first resource and the second resource into a preset account of the block chain. Naturally, it will be appreciated that the second blockchain account number must first be credited with the first resource and the second resource in its own second account.
Following the above example: after the tenant and the landlord initially reach the house renting intention, the tenant stores the rent and the deposit into the account corresponding to the block chain account of the tenant, then sends a resource storage request to the block chain, and then the block chain can transfer the rent and the deposit to the preset account and store the rent and the deposit in the preset account.
It should be noted that, assuming that the landlord and the tenant agree with each other, the tenant does not need to provide a deposit, and the tenant does not need to deposit the deposit into its own account. That is, the preset account may not have the second resource, but only the first resource.
Step S23: and setting the states of the first resource and the second resource stored in the preset account number as locking states.
In this embodiment, after the block chain stores the first resource and the second resource in the preset account, the states of the first resource and the second resource are set to be the locked states. The reason for this is to secure the benefit of the user using the second terminal, because the user using the first terminal cannot extract any resource when the states of the first resource and the second resource are in the locked state.
Following the above example: and after transferring the rent and the deposit to a preset account and storing the rent and the deposit by the block chain, setting the rent and the deposit in a locking state. This step is taken to secure the interest of the tenant.
The renter must integrate various factors to consider, and finally decide whether to rent or not rent the house of the house owner, or the renter is satisfied with the house as a whole and may be unsatisfied with some small places, such as: some subsidiary facilities in the house are old, damaged, etc., and require the landlord to reform the unsatisfactory places, and then the landlord is willing to rent the house, and the landlord reformation takes time. Therefore, during the period, in order to guarantee the interest of the tenant, prevent the landlord from maliciously drawing the rent (the landlord of the deposit cannot draw), and lock the rent and the deposit, thereby avoiding the loss of the interest of the tenant.
Step S24: and detecting the time length of the first resource and the second resource stored in the preset account in the locking state from the moment of storage.
Step S25: and when the time length for keeping the first resource and the second resource stored in the preset account in the locking state reaches the preset time length, transferring the first resource and the second resource stored in the preset account to the second account.
In this embodiment, the blockchain may set a fixed duration by itself, or a landlord and a tenant may negotiate to set a fixed duration by themselves, where the fixed duration has the following functions: if the first resource and the second resource are still in the locked state after the fixed duration, the blockchain automatically returns the first resource and the second resource to the user using the second terminal. These two steps are also intended to secure the benefit of the user using the second terminal.
Following the above example: the house and the affiliated facilities are modified by the landlord, but the house and the affiliated facilities are not modified in place, so that the house and the affiliated facilities cannot be satisfied by the renter, or the landlord answers the house orally, but the house and the landlord do not modify actually, the renter naturally does not want to rent the house, so that the renter cannot unlock the rent and the deposit, and the block chain returns the rent and the deposit to the renter as long as the set fixed time expires, so that the renter cannot have any loss.
In the above process, after step S23, the steps of the resource transfer method are as shown in fig. 3, which are specifically as follows:
step S26: and obtaining an unlocking request sent by a second terminal currently logged in by the second block chain account, wherein the unlocking request represents that entity resources corresponding to the first account pass verification.
Step S27: and responding to the unlocking request, and changing the state of the first resource stored in the preset account from a locked state to an unlocked state.
In this embodiment, the block chain obtains, within a fixed time period, an unlocking request sent by the second block chain account, where the unlocking request indicates that the entity resource corresponding to the first account has been verified. And then responding to the unlocking request, changing the state of the first resource stored in the preset account from a locked state to an unlocked state, but not unlocking the second resource. So that the subsequent steps can be carried out, and the subsequent steps are as follows:
step S28: the method comprises the steps of obtaining a resource transfer request sent by a first terminal currently logged in by a first block chain account, wherein the resource transfer request is used for requesting to transfer a first resource of a preset account to a first account corresponding to the first block chain account.
The specific process of step S28 is similar to step S11, and reference may be made to the description of step S11, which is not repeated herein.
Step S29: and detecting whether the first resource of the preset account is in an unlocked state.
The specific process of step S29 is similar to step S12, and reference may be made to the description of step S12, which is not repeated herein.
Step S30: and transferring the first resource of the preset account number to the first account under the condition that the first resource of the preset account number is in an unlocked state.
The specific process of step S30 is similar to step S13, and reference may be made to the description of step S13, which is not repeated herein.
It should be noted that, in order to ensure the common benefit of the user using the first terminal and the user using the second terminal, the second resource may be unlocked only by the user using the first terminal and may not be unlocked by the user using the second terminal after the first resource is in the unlocked state, but the user using the first terminal may not extract the second resource in the unlocked state, and the second resource in the unlocked state may only be extracted by the user using the second terminal. That is, when both the first resource and the second resource are in the locked state, the user using the second terminal can only actively unlock the first resource, if the fixed duration is exceeded, the user using the second terminal does not actively unlock the first resource, and the block chain automatically returns the first resource and the second resource to the user using the second terminal; if the user using the second terminal actively unlocks the first resource within the fixed time length, the second resource is changed to be actively unlocked only by the user using the first terminal.
Following the above example: and after the landlord finishes house renovation and affiliated facilities, the tenant is satisfied and decides to rent the house, so that the tenant needs to unlock the rent, and then the block chain can transfer the rent to the landlord according to the resource transfer request of the landlord. That is, after the tenant unlocks the rent, the landlord can pick up the rent. Meanwhile, in order to avoid the situation that a subsequent landlord maliciously withholds the deposit or a tenant maliciously extracts the deposit, the landlord can only unlock the deposit and change the deposit into an unlocking state when the deposit is in the unlocking state after the deposit is locked, but even if the landlord changes the deposit into the unlocking state, the landlord cannot extract the deposit, and the deposit can only be extracted by the tenant in the unlocking state; or after the deposit is locked, the tenant does not unlock the deposit all the time, and after the fixed time length is exceeded, the block chain automatically returns the deposit and the deposit to the account of the tenant.
In addition, further considering the benefit of the user using the second terminal, the user using the first terminal in the process of extracting the first resource, i.e. for step S30, includes the following specific steps:
step T301: and under the condition that the first resource of the preset account is in an unlocked state, judging whether the quantity of the resources requested to be transferred by the resource transfer request exceeds a preset quantity.
Step T302: and under the condition that the quantity of the resources requested to be transferred by the resource transfer request does not exceed the preset quantity, transferring the first resources with the corresponding quantity of the preset account number to the first account according to the quantity of the resources requested to be transferred by the resource transfer request.
In this embodiment, when the first resource of the preset account is in an unlocked state, the blockchain determines whether the quantity of the resource requested to be transferred in the resource transfer request sent by the first blockchain account exceeds a preset quantity, and when the quantity of the resource requested to be transferred does not exceed the preset quantity, the blockchain transfers the first resource of the corresponding quantity in the preset account to the first account according to the quantity of the resource requested to be transferred.
That is, the user using the first terminal may transfer the corresponding amount of the first resource to the own first account only according to a certain proportion of the total amount of the first resource each time.
Following the above example: after the tenant unlocks the rent, the landlord can withdraw the rent. To ensure the interest of the tenant, the landlord can only withdraw a portion of the rent on a proportional basis each day, for example: the ratio is 10%, so that the landlord can only withdraw rent according to 10% of the total rent per day, and the whole rent withdrawal needs 10 days, so that the setting is to guarantee the benefit of the tenant. Assuming that the house and the ancillary facilities of the landlord are normal at the beginning, or that the landlord has hidden something from the beginning, because the time for the tenant to visit the house is short, some problems are that the tenant can be exposed after going into the house, and if the landlord takes the rent all at once, the loss of the tenant may not be recovered after the problem occurs.
Therefore, the landlord is designed to extract rent in proportion every day, the time for the landlord to withdraw the rent is prolonged, and meanwhile, the following method steps are matched to guarantee the benefits of the tenant.
Step T303: and obtaining a locking request sent by a second terminal currently logged in by the second block chain account, wherein the locking request represents that entity resources corresponding to the first account have faults.
Step T304: and responding to the locking request, and changing the state of the first resource stored in the preset account from an unlocked state to a locked state.
In this embodiment, when the first resource is in the unlocked state, the blockchain may obtain, at any time, a locking request sent by the second terminal to which the second blockchain account currently logs in, where the locking request indicates that an entity resource corresponding to the first account has a fault, and the blockchain changes, in response to the locking request, the state of the first resource stored in the preset account from the unlocked state to the locked state, and at this time, a user using the first terminal cannot transfer the first resource any more.
Following the above example: during the process of the start of rent drawing by the landlord, the renter finds some problems which are not found when the landlord looks at the house in the early stage, which may result in the loss of the benefits of the landlord. The tenant may send a lock request to the blockchain that indicates that the house or affiliate provided by the landlord has failed, has a problem, and affects the tenant's benefit. And the block chain responds to the locking request, and changes the state of the rent stored in the preset account from an unlocked state to a locked state, so that the landlord cannot extract the rest rent any more, the landlord can only solve the problem of rent extraction, and the landlord can only continue to extract the rest rent after the landlord is unlocked again. Naturally, it can be understood that in the process of renting money by the landlord, the tenant can lock the rent at any time to guarantee the interest of the tenant.
It should be noted that the tenant and the landlord may negotiate the rate of the landlord to withdraw the rent by themselves, and in the case that the two parties agree, the landlord may withdraw the whole rent at one time, or withdraw a part of the rent every day until the whole house lease period expires. Or, in the process of proportionally extracting a part of money by the landlord every day, a situation of urgent money use may occur, and then, in the case of agreement between the landlord and the landlord, the landlord may directly extract all residual rent, which is not specifically limited in the embodiment of the present invention.
Through the steps of the method, the benefits of both the landlord and the tenant in the house renting process are guaranteed until the house renting period expires, and the following steps of the method specifically comprise:
step S31: and obtaining an unlocking request sent by a first terminal currently logged in by the first block chain account, wherein the unlocking request represents that the entity resource corresponding to the first account has no fault.
Step S32: and responding to the unlocking request, and changing the state of the second resource stored in the preset account from a locked state to an unlocked state.
In this embodiment, after the state of the first resource and the second resource stored in the preset account is set to the locked state, the blockchain may obtain, at any time, an unlocking request sent by the first terminal where the first blockchain account is currently logged in, where the unlocking request indicates that the entity resource corresponding to the first account is not in fault. And the block chain responds to the unlocking request, changes the state of the second resource stored in the preset account from a locked state to an unlocked state, and the user using the second terminal can transfer the second resource to the second account of the user.
Following the above example: after the house lease period expires, the tenant needs to extract the deposit, and the premise is that the house and the affiliated facilities of the house owner for checking are not normally broken down, and then an unlocking request is sent to the block chain, so that the locking state of the deposit is changed into the unlocking state, and then the tenant can transfer the deposit to the account of the tenant.
The method for transferring the second resource comprises the following steps:
step S33: and obtaining a resource transfer request sent by a second terminal currently logged in by the second block chain account, wherein the resource transfer request is used for requesting to transfer a second resource of a preset account to a second account corresponding to the second block chain account.
Step S34: and detecting whether a second resource of the preset account is in an unlocked state.
Step S35: and transferring the second resource of the preset account number to the second account under the condition that the second resource of the preset account number is in an unlocked state.
In this embodiment, after the first resource and the second resource are locked by the blockchain, a resource transfer request sent by the second blockchain account may be obtained at any time, where the resource transfer request is used to request that the second resource of the preset account is transferred to a second account corresponding to the second blockchain account, and then, the blockchain needs to detect whether the second resource of the preset account is in an unlocked state, and under the condition that the second resource of the preset account is in the unlocked state, the blockchain may transfer the second resource of the preset account to the second account.
Following the above example: after the house lease period expires, or during the period, the tenant may need to extract the deposit, the landlord checks that the house and the accessory facilities of the landlord are not in fault normally, or the landlord agrees to extract the deposit, then the landlord unlocks the deposit to enable the deposit to be in an unlocked state, and then the tenant sends a resource transfer request to the block chain, and the block chain transfers the deposit to the account of the tenant.
Of course, the tenant may also maliciously withdraw the deposit, or the tenant may damage the house and ancillary facilities of the landlord, so that the tenant cannot withdraw the deposit as long as the landlord does not unlock the deposit. This safeguards the landlord's interest. Meanwhile, the deposit is unlocked by the landlord and can only be taken by the tenant, and the benefit of the tenant is also guaranteed not to be damaged.
In summary, with reference to the schematic diagram of the transfer process of a house owner withdrawing a rent shown in fig. 4 and the schematic diagram of the transfer process of a tenant withdrawing a deposit shown in fig. 5, the resource transfer method according to the embodiment of the present invention is specifically applied to a house lease process, and the specific method is as follows:
and (3) respectively creating block chain account numbers by the tenant and the landlord, initially reaching the leasing intention by the tenant and the landlord, storing the rent and the deposit into preset account numbers of the block chain by the tenant, and locking the rent and the deposit in the preset account numbers by the block chain.
And if the house is not satisfied by the tenant, the rent is not unlocked, namely the unlocking condition is not satisfied, and after the unlocking fixed time limit is exceeded, the block chain automatically returns the rent and the deposit to the account of the tenant.
When the house is satisfied by the tenant, unlocking the rent, and simultaneously changing the deposit to be unlocked only by the landlord, namely under the condition that the unlocking condition is satisfied, the landlord sends a resource transfer request to the block chain every day, wherein the request comprises the number of the rent to be extracted, the block chain judges whether the number of the rent to be extracted exceeds a specified fixed proportion every day, and if the number of the rent to be extracted does not exceed the specified fixed proportion, the account corresponding to the landlord is extracted according to the number of the rent to be extracted; and if so, sending a prompt that the number of the rent to be extracted exceeds the limit to the landlord.
The landlord draws the rent according to a fixed proportion every day, and during the period, under the condition that the tenant thinks that the interest of the landlord is damaged, the drawing of the rent can be locked at any time so as to guarantee the interest of the landlord. After the landlord solves the problem, the tenant may unlock the rent so that the landlord continues to withdraw the rent.
After the house lease period expires, the landlord checks that the house, namely the affiliated facilities, is normal, unlocks the deposit, and the tenant can take the deposit.
In the whole process, if the landlord and the tenant agree, the two parties reach an agreement, the landlord can extract all the rent at one time, and the tenant can extract the deposit at any time.
Through the embodiment, the resource transfer method provided by the invention does not need a third party, ensures the safety of the first resource and the second resource in the transfer process, and also ensures the benefits of both parties carrying out the resource transfer, and particularly provides a better house leasing mode aiming at the safety transfer of cash resources and the respective benefits of a house owner and a tenant in the house leasing field. The whole transfer process of cash resources is open, transparent, traceable and not falsifiable, and a third party is not required to participate, so that the experience of landlords and tenants is greatly improved.
Referring to fig. 6, a block diagram of a resource transfer apparatus according to an embodiment of the present invention is shown, and as shown in fig. 6, the apparatus may be applied to a block link point in a block link network, where the block link node stores a block link composed of a plurality of blocks, and each block is used to store information, and specifically may include the following modules:
a resource request module 601, configured to obtain a resource transfer request sent by a first terminal currently logged in by a first blockchain account, where the resource transfer request is used to request to transfer a first resource of a preset account to a first account corresponding to the first blockchain account;
a detection state module 602, configured to detect whether a first resource of the preset account is in an unlocked state;
the transferring module 603 is configured to transfer the first resource of the preset account to the first account when the first resource of the preset account is in an unlocked state.
Optionally, the apparatus further comprises:
the resource storing module is used for obtaining a resource storing request sent by a second terminal currently logged in by a second block chain account;
the resource extraction module is used for responding to the resource storage request, extracting a first resource and a second resource from the resource of a second account corresponding to the second block chain account and storing the first resource and the second resource into the preset account;
and the resource locking module is used for setting the states of the first resource and the second resource stored in the preset account number as locking states.
Optionally, the apparatus further comprises:
the detection duration module is used for detecting the duration of the first resource and the second resource which are stored in the preset account and keep a locking state from the moment of storage;
and the duration resource transfer module is used for transferring the first resource and the second resource stored in the preset account to the second account when the duration of the first resource and the second resource stored in the preset account, which are kept in the locking state, reaches the preset duration.
Optionally, the apparatus further comprises:
the entity resource verification module is used for obtaining an unlocking request sent by a second terminal currently logged in by the second block chain account, wherein the unlocking request represents that the entity resource corresponding to the first account passes verification;
and the first resource unlocking state module is used for responding to the unlocking request and changing the state of the first resource stored in the preset account from a locking state to an unlocking state.
Optionally, the transfer module 603 includes:
a resource quantity judging unit, configured to judge whether the quantity of the resource requested to be transferred by the resource transfer request exceeds a preset quantity when the first resource of the preset account is in an unlocked state;
and the corresponding quantity resource transfer unit is used for transferring the first resources with the corresponding quantity of the preset account number to the first account according to the quantity of the resources requested to be transferred by the resource transfer request under the condition that the quantity of the resources requested to be transferred by the resource transfer request does not exceed the preset quantity.
Optionally, the apparatus further comprises:
the fault locking module is used for obtaining a locking request sent by a second terminal currently logged in by the second block chain account, wherein the locking request represents that entity resources corresponding to the first account have faults;
and the second resource locking state module is used for responding to the locking request and changing the state of the first resource stored in the preset account from an unlocked state to a locked state.
Optionally, the apparatus further comprises:
the fault unlocking module is used for obtaining an unlocking request sent by a first terminal currently logged in by the first block chain account, and the unlocking request represents that the entity resource corresponding to the first account does not have a fault;
and the second resource unlocking state module is used for responding to the unlocking request and changing the state of the second resource stored in the preset account from a locking state to an unlocking state.
Optionally, the apparatus further comprises:
a second resource obtaining module, configured to obtain a resource transfer request sent by a second terminal currently logged in by a second blockchain account, where the resource transfer request is used to request to transfer a second resource of a preset account to a second account corresponding to the second blockchain account;
a second resource state detection module, configured to detect whether a second resource of the preset account is in an unlocked state;
and the second resource transfer module is used for transferring the second resource of the preset account number to the second account under the condition that the second resource of the preset account number is in an unlocked state.
An embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement each process of the above-mentioned resource transfer method embodiment, and can achieve the same technical effect, and for avoiding repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the resource transfer method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (18)

1. A resource transfer method applied to a block link node in a block link network, the block link node storing a block link composed of a plurality of blocks, each block being used for storing information, the method comprising:
the method comprises the steps of obtaining a resource transfer request sent by a first terminal currently logged in by a first block chain account, wherein the resource transfer request is used for requesting to transfer a first resource of a preset account to a first account corresponding to the first block chain account;
detecting whether a first resource of the preset account is in an unlocked state;
and transferring the first resource of the preset account number to the first account under the condition that the first resource of the preset account number is in an unlocked state.
2. The method according to claim 1, wherein before obtaining the resource transfer request sent by the first terminal currently registered by the first blockchain account, the method further comprises:
acquiring a resource storage request sent by a second terminal currently logged in by a second block chain account;
responding to the resource storage request, extracting first resources and second resources from resources of a second account corresponding to the second block chain account and storing the first resources and the second resources into the preset account;
and setting the states of the first resource and the second resource stored in the preset account number as locking states.
3. The method according to claim 2, wherein after setting the status of the first resource and the second resource stored in the preset account to the locked status, the method further comprises:
detecting the time length of the first resource and the second resource stored in the preset account number in a locking state from the moment of storage;
and when the time length for keeping the first resource and the second resource stored in the preset account in the locking state reaches the preset time length, transferring the first resource and the second resource stored in the preset account to the second account.
4. The method according to claim 2, wherein after setting the status of the first resource and the second resource stored in the preset account as the locked status, the method further comprises:
obtaining an unlocking request sent by a second terminal currently logged in by the second block chain account, wherein the unlocking request represents that entity resources corresponding to the first account pass verification;
and responding to the unlocking request, and changing the state of the first resource stored in the preset account from a locked state to an unlocked state.
5. The method according to any one of claims 1 to 4, wherein transferring the first resource of the preset account number to the first account in a case that the resource of the preset account number is in an unlocked state comprises:
under the condition that the first resource of the preset account is in an unlocked state, judging whether the quantity of the resources requested to be transferred by the resource transfer request exceeds a preset quantity or not;
and under the condition that the quantity of the resources requested to be transferred by the resource transfer request does not exceed the preset quantity, transferring the first resources with the corresponding quantity of the preset account number to the first account according to the quantity of the resources requested to be transferred by the resource transfer request.
6. The method according to any one of claims 1 to 4, wherein after the state of the first resource stored in the preset account is changed from the locked state to the unlocked state, the method further comprises:
obtaining a locking request sent by a second terminal currently logged in by the second block chain account, wherein the locking request represents that entity resources corresponding to the first account have faults;
and responding to the locking request, and changing the state of the first resource stored in the preset account from an unlocked state to a locked state.
7. The method according to claim 2, wherein after setting the status of the first resource and the second resource stored in the preset account to the locked status, the method further comprises:
obtaining an unlocking request sent by a first terminal currently logged in by the first block chain account, wherein the unlocking request represents that entity resources corresponding to the first account do not have faults;
and responding to the unlocking request, and changing the state of the second resource stored in the preset account from a locked state to an unlocked state.
8. The method according to claim 7, wherein after the state of the second resource stored in the preset account is changed from the locked state to the unlocked state, the method further comprises:
acquiring a resource transfer request sent by a second terminal currently logged in by the second block chain account, wherein the resource transfer request is used for requesting to transfer a second resource of a preset account to a second account corresponding to the second block chain account;
detecting whether a second resource of the preset account is in an unlocked state;
and transferring the second resource of the preset account number to the second account under the condition that the second resource of the preset account number is in an unlocked state.
9. A resource transfer apparatus, applied to a block link node in a block link network, the block link node storing a block link composed of a plurality of blocks, each block being used for storing information, the apparatus comprising:
the resource management method comprises the steps of obtaining a first resource module, wherein the first resource module is used for obtaining a resource transfer request sent by a first terminal currently logged in by a first block chain account, and the resource transfer request is used for requesting to transfer a first resource of a preset account to a first account corresponding to the first block chain account;
the unlocking detection module is used for detecting whether the first resource of the preset account is in an unlocking state;
and the first resource transfer module is used for transferring the first resource of the preset account number to the first account under the condition that the first resource of the preset account number is in an unlocked state.
10. The apparatus of claim 9, further comprising:
the resource storing module is used for obtaining a resource storing request sent by a second terminal currently logged in by a second block chain account;
the resource extraction module is used for responding to the resource storage request, extracting a first resource and a second resource from the resource of a second account corresponding to the second block chain account and storing the first resource and the second resource into the preset account;
and the resource locking module is used for setting the states of the first resource and the second resource stored in the preset account number as locking states.
11. The apparatus of claim 10, further comprising:
the detection duration module is used for detecting the duration of the first resource and the second resource which are stored in the preset account and keep a locking state from the moment of storage;
and the duration resource transfer module is used for transferring the first resource and the second resource stored in the preset account to the second account when the duration of the first resource and the second resource stored in the preset account, which are kept in the locking state, reaches the preset duration.
12. The apparatus of claim 10, further comprising:
the entity resource verification module is used for obtaining an unlocking request sent by a second terminal currently logged in by the second block chain account, wherein the unlocking request represents that the entity resource corresponding to the first account passes verification;
and the first resource unlocking state module is used for responding to the unlocking request and changing the state of the first resource stored in the preset account from a locking state to an unlocking state.
13. The apparatus according to any of claims 9-12, wherein the first resource transfer module comprises:
a resource quantity judging unit, configured to judge whether the quantity of the resource requested to be transferred by the resource transfer request exceeds a preset quantity when the first resource of the preset account is in an unlocked state;
and the corresponding quantity resource transfer unit is used for transferring the first resources with the corresponding quantity of the preset account number to the first account according to the quantity of the resources requested to be transferred by the resource transfer request under the condition that the quantity of the resources requested to be transferred by the resource transfer request does not exceed the preset quantity.
14. The apparatus of any of claims 9-12, further comprising:
the fault locking module is used for obtaining a locking request sent by a second terminal currently logged in by the second block chain account, wherein the locking request represents that entity resources corresponding to the first account have faults;
and the second resource locking state module is used for responding to the locking request and changing the state of the first resource stored in the preset account from an unlocked state to a locked state.
15. The apparatus of claim 10, further comprising:
the fault unlocking module is used for obtaining an unlocking request sent by a first terminal currently logged in by the first block chain account, and the unlocking request represents that the entity resource corresponding to the first account does not have a fault;
and the second resource unlocking state module is used for responding to the unlocking request and changing the state of the second resource stored in the preset account from a locking state to an unlocking state.
16. The apparatus of claim 15, further comprising:
a second resource obtaining module, configured to obtain a resource transfer request sent by a second terminal currently logged in by a second blockchain account, where the resource transfer request is used to request to transfer a second resource of a preset account to a second account corresponding to the second blockchain account;
a second resource state detection module, configured to detect whether a second resource of the preset account is in an unlocked state;
and the second resource transfer module is used for transferring the second resource of the preset account number to the second account under the condition that the second resource of the preset account number is in an unlocked state.
17. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the resource transfer method according to any of claims 1-8.
18. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the resource transfer method according to any one of claims 1 to 8.
CN202011166420.9A 2020-10-27 2020-10-27 Resource transfer method, device, electronic equipment and storage medium Pending CN112365260A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011166420.9A CN112365260A (en) 2020-10-27 2020-10-27 Resource transfer method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011166420.9A CN112365260A (en) 2020-10-27 2020-10-27 Resource transfer method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112365260A true CN112365260A (en) 2021-02-12

Family

ID=74510912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011166420.9A Pending CN112365260A (en) 2020-10-27 2020-10-27 Resource transfer method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112365260A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220820A (en) * 2017-05-16 2017-09-29 腾讯科技(深圳)有限公司 Resource transfers method, device and storage medium
CN109011583A (en) * 2018-05-28 2018-12-18 腾讯科技(深圳)有限公司 virtual resource transfer method and device, storage medium and electronic device
CN109993530A (en) * 2019-03-29 2019-07-09 北京柏链基石科技有限公司 A kind of virtual resource management method, device and electronic equipment
CN111028084A (en) * 2020-03-11 2020-04-17 支付宝(杭州)信息技术有限公司 Transaction processing method, device and equipment based on block chain
CN111768303A (en) * 2020-06-01 2020-10-13 支付宝实验室(新加坡)有限公司 Transaction processing method, device, equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220820A (en) * 2017-05-16 2017-09-29 腾讯科技(深圳)有限公司 Resource transfers method, device and storage medium
CN109011583A (en) * 2018-05-28 2018-12-18 腾讯科技(深圳)有限公司 virtual resource transfer method and device, storage medium and electronic device
CN109993530A (en) * 2019-03-29 2019-07-09 北京柏链基石科技有限公司 A kind of virtual resource management method, device and electronic equipment
CN111028084A (en) * 2020-03-11 2020-04-17 支付宝(杭州)信息技术有限公司 Transaction processing method, device and equipment based on block chain
CN111768303A (en) * 2020-06-01 2020-10-13 支付宝实验室(新加坡)有限公司 Transaction processing method, device, equipment and system

Similar Documents

Publication Publication Date Title
JP6914353B2 (en) Real estate property management system using blockchain network
CN109272606B (en) Intelligent lock supervision equipment and method based on block chain and storage medium
EP4064167A1 (en) Blockchain-implemented method and system
WO2020040937A2 (en) Blockchain-based service rental method, apparatus, and system, and electronic device
CN103441986B (en) Data resource security control method in thin client mode
CN106789875A (en) A kind of block chain service unit, block chain service system and its communication means
JP2020523839A (en) System and method for avoiding or reducing crypto stranded resources in blockchain networks
EP3557459B1 (en) Method, information processing device, management system, and program to control locking and unlocking of storage
CN111145023A (en) Cross-chain exchange method, system and medium based on trusted prediction machine
CN107886602A (en) A kind of method for unlocking and system
CN110879826A (en) Credit blacklist sharing method and device based on block chain
CN109409552A (en) Reserve access method, system, computer equipment and storage medium
CN104751566A (en) Method for monitoring fake card risk and transaction processing system for achieving the method
CN112513853A (en) Data management method, data management system, and program
CN112087497B (en) Data synchronization method and device, electronic equipment and readable storage medium
CN109801418A (en) User autonomous controllable fining authorization management method and device
CN101252436B (en) Smart card dynamic password creating and judging system
CN112365260A (en) Resource transfer method, device, electronic equipment and storage medium
CN105741444B (en) Application authentication method and device based on linux system financial self-service equipment
FR2951562A1 (en) SECURE METHOD FOR ACCESSING AN AIRCRAFT INFORMATION SYSTEM
CN114915454B (en) Data acquisition method and system
CN111177171A (en) Service data authentication and management method and system based on block chain
CN116415955A (en) Cross-chain transaction method and system based on combination of hash locking and notary
CN112184460B (en) House maintenance fund management method, apparatus and storage medium
CN109740320A (en) A kind of identity identifying method and terminal device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination