CN110955905A - Block chain based asset transfer method, device, equipment and readable storage medium - Google Patents

Block chain based asset transfer method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110955905A
CN110955905A CN201911176929.9A CN201911176929A CN110955905A CN 110955905 A CN110955905 A CN 110955905A CN 201911176929 A CN201911176929 A CN 201911176929A CN 110955905 A CN110955905 A CN 110955905A
Authority
CN
China
Prior art keywords
information
asset
user
transfer
user terminal
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
CN201911176929.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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911176929.9A priority Critical patent/CN110955905A/en
Publication of CN110955905A publication Critical patent/CN110955905A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses an asset transfer method, device, equipment and readable storage medium based on a block chain, belonging to the technical field of computers, and the method comprises the following steps: acquiring asset transfer information sent by a first user terminal; triggering an intelligent contract according to the asset transfer information to acquire source assets of first user information corresponding to a first user terminal; sending the source asset to a second user terminal corresponding to second user information in the asset transfer information, and acquiring response information returned by the second user terminal; if the response information is that the source asset is successfully received, determining that the second user information has the use permission aiming at the source asset, determining a transfer route, transfer initiation time and the response information between the first user information and the second user information as first asset flow direction information, and linking the first asset flow direction information to a block chain. By the method and the device, data safety can be improved, and accurate tracking of asset flow direction is achieved.

Description

Block chain based asset transfer method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an asset transfer method, apparatus, device, and readable storage medium based on a block chain.
Background
Charitable donations are increasingly popularized in modern society, people pay more attention to the charitable industry, people can collect and donate through a donation platform, and the network donation platform also helps more and more people.
However, the existing network donation platform has problems in data storage, firstly, the donation threshold of the platform is too low, the platform is not strict in auditing donated people, a lot of false donated people information exists, secondly, data information of users and assets is easily tampered, so that the flow direction of the assets is fuzzy, and for users who donate money, the authenticity and the credibility of data cannot be guaranteed, so that the donators cannot definitely know where the donated assets are finally used. .
Content of application
The embodiment of the application provides an asset transfer method, an asset transfer device and a readable storage medium based on a block chain, which can improve the safety of data and realize accurate tracking of asset flow direction.
An aspect of the present application provides an asset transfer method based on a block chain, including:
acquiring asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal;
triggering an intelligent contract according to the asset transfer information to acquire source assets belonging to the first user information; the source assets are assets corresponding to the asset transfer amount;
sending the source asset to a second user terminal corresponding to the second user information, and acquiring response information returned by the second user terminal based on the source asset;
if the response message indicates that the source asset is successfully received, determining that the second user message has the right of use for the source asset, determining a transfer route between the first user message and the second user message, the transfer initiation time, and the response message as first asset flow direction messages, and linking the first asset flow direction messages to a block chain.
The above acquiring asset transfer information sent by the first user terminal includes:
when an access request of the first user terminal is detected, determining user attribute information of the first user information based on the access request;
checking the authority of the first user information based on the user attribute information;
when the asset transfer information passes the checking, sending an operation page for inputting the asset transfer information to the first user terminal;
and receiving the asset transfer information input by the first user terminal in the operation page.
The digital signature corresponding to the asset transfer information is obtained by signing the asset transfer information based on a private key of the first user terminal;
further comprising:
acquiring a public key of the first user terminal, the asset transfer information and the digital signature;
verifying and signing the digital signature of the asset transfer information based on the public key;
and if the digital signature is a legal signature, executing the step of triggering the intelligent contract according to the asset transfer information.
Wherein, still include:
if the asset transfer amount is greater than or equal to an asset transfer amount threshold value, generating an announcement message based on the first user information and the asset transfer amount, and sending the announcement message to a management background so that the management background broadcasts the announcement message to a user terminal cluster; the user terminal cluster includes the first user terminal and the second user terminal.
Wherein the determining the transfer route, the transfer initiation time, and the response information between the first user information and the second user information as first asset flow direction information, and the linking the first asset flow direction information to the block chain includes:
determining an asset circulation direction between the first user information and the second user information, the first user information and the second user information as a circulation route;
and determining the transfer route, the transfer initiation time and the response information as the first asset flow direction information, sending the first asset flow direction information to a consensus node in the block chain, and linking the first asset flow direction information to the block chain after the consensus node passes consensus verification.
Wherein, the asset transfer information also comprises an anonymous prompt message; the determining, as a circulation route, an asset circulation direction between the first user information and the second user information, the first user information, and the second user information includes:
acquiring a public key of the first user terminal according to the anonymous prompt message, and encrypting the first user information by adopting the public key of the first user terminal to obtain a first user information ciphertext;
and determining the asset circulation direction between the first user information and the second user information, the first user information ciphertext and the second user information as circulation routes.
Wherein, still include:
acquiring second asset flow direction information of the second user information aiming at the source asset, and linking the second asset flow direction information to the block chain; the second asset flow direction information is used for representing transfer information of the second user terminal and the flow direction account;
when receiving an asset flow direction query request sent by the first user terminal, acquiring second asset flow direction information from the block chain based on the asset flow direction query request;
and sending the second asset flow direction information to the first user terminal so that the first user terminal determines the use record of the second user terminal to the source asset according to the second asset flow direction information.
An aspect of an embodiment of the present application provides an asset transfer device based on a block chain, including:
the first acquisition module is used for acquiring asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal;
the triggering module is used for triggering an intelligent contract according to the asset transfer information to acquire source assets belonging to the first user information; the source assets are assets corresponding to the asset transfer amount;
a first sending module, configured to send the source asset to a second user terminal corresponding to the second user information, and obtain response information returned by the second user terminal based on the source asset;
a first uplink module, configured to determine that the second user information has the right to use the source asset if the response information indicates that the source asset is successfully received, determine a transfer route between the first user information and the second user information, the transfer initiation time, and the response information as first asset flow direction information, and uplink the first asset flow direction information to a block chain.
Wherein, the first obtaining module includes:
a first determining unit configured to determine user attribute information of the first user information based on an access request when the access request of the first user terminal is detected;
a checking unit, configured to check a right of the first user information based on the user attribute information;
a sending unit, configured to send an operation page for inputting the asset transfer information to the first user terminal when the verification is passed;
a receiving unit, configured to receive the asset transfer information input by the first user terminal in the operation page.
The digital signature corresponding to the asset transfer information is obtained by signing the asset transfer information based on a private key of the first user terminal;
further comprising:
a second obtaining module, configured to obtain a public key of the first user terminal, the asset transfer information, and the digital signature;
the signature verification module is used for verifying the digital signature of the asset transfer information based on the public key;
and the execution module is used for executing the step of triggering the intelligent contract according to the asset transfer information if the digital signature is a legal signature.
Wherein, still include:
a generating module, configured to generate an announcement message based on the first user information and the asset transfer amount and send the announcement message to a management background if the asset transfer amount is greater than or equal to an asset transfer amount threshold, so that the management background broadcasts the announcement message to a user terminal cluster; the user terminal cluster includes the first user terminal and the second user terminal.
Wherein, the first cochain module includes:
a second determining unit configured to determine an asset circulation direction between the first user information and the second user information, the first user information, and the second user information as a circulation route;
and an uplink unit configured to determine the transfer route, the transfer initiation time, and the response information as the first asset flow direction information, send the first asset flow direction information to a common node in the block chain, and uplink the first asset flow direction information to the block chain after the common node passes common verification.
Wherein, the asset transfer information also comprises an anonymous prompt message;
the second determining unit includes:
an encryption subunit, configured to obtain a public key of the first user terminal according to the anonymous prompt message, and encrypt the first user information by using the public key of the first user terminal to obtain a first user information ciphertext;
and a determining subunit, configured to determine an asset circulation direction between the first user information and the second user information, the first user information ciphertext, and the second user information as a circulation route.
Wherein, still include:
a second uplink module, configured to acquire second asset flow direction information of the second user information for the source asset, and uplink the second asset flow direction information to the block chain; the second asset flow direction information is used for representing transfer information of the second user terminal and the flow direction account;
a third obtaining module, configured to, when receiving an asset flow direction query request sent by the first user terminal, obtain second asset flow direction information from the block chain based on the asset flow direction query request;
and the second sending module is used for sending the second asset flow direction information to the first user terminal so that the first user terminal can determine the use record of the second user terminal to the source asset according to the second asset flow direction information.
An aspect of an embodiment of the present application provides a computer device, including: a processor and a memory;
the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as in the embodiments of the present application.
An aspect of the embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, perform a method as in the embodiments of the present application.
The method comprises the steps of acquiring asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal; triggering an intelligent contract according to the asset transfer information to acquire source assets belonging to the first user information; the source assets are assets corresponding to the asset transfer amount; sending the source asset to a second user terminal corresponding to the second user information, and acquiring response information returned by the second user terminal based on the source asset; if the response message indicates that the source asset is successfully received, determining that the second user message has the right of use for the source asset, determining a transfer route between the first user message and the second user message, the transfer initiation time, and the response message as first asset flow direction messages, and linking the first asset flow direction messages to a block chain. The above description shows that, the asset transfer information of the first user terminal is obtained, the intelligent contract is triggered to send the source asset from the first user information to the second user terminal, and after the second user terminal successfully receives the source asset, the first user information can be linked to the asset flow direction information of the second user information.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a diagram of a network architecture provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of a scenario of an asset transfer method based on a block chain according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating a block chain based asset transfer method according to an embodiment of the present application;
fig. 4a and 4b are schematic diagrams of a scenario of another block chain-based asset transfer method provided by an embodiment of the present application;
FIG. 5 is a schematic flow chart illustrating a process for determining a usage record of a source asset by a second user terminal according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an asset transfer device based on a block chain according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a diagram of a network architecture according to an embodiment of the present application. As shown in fig. 1, the network architecture may include a block chain node and a user terminal cluster, where the user terminal cluster may include a plurality of user terminals, as shown in fig. 1, and specifically may include a user terminal 100a, a user terminal 100b, user terminals 100c and …, and a user terminal 100 n.
As shown in fig. 1, the user terminal 100a, the user terminal 100b, the user terminals 100c, …, and the user terminal 100n may respectively have a network connection with the above-mentioned blockchain node, so that each user terminal may perform data interaction with the blockchain node through the network connection.
As shown in fig. 1, each ue in the ue cluster may be integrally installed with a target application, and when the target application runs in each ue, the target application may respectively interact with the block link points shown in fig. 1. The target application may include an application having a function of displaying data information such as text, images, audio, and video.
In the embodiment of the present application, one user terminal may be selected from the multiple user terminals shown in fig. 1 as a target user terminal, where the target user terminal may include: and intelligent terminals with data information display and playing functions are carried by smart phones, tablet computers, desktop computers and the like. For example, in the embodiment of the present application, the user terminal 100a shown in fig. 1 may be used as the target user terminal, and the target user terminal may be integrated with the target application, and at this time, the target user terminal may implement data interaction between a service data platform corresponding to the target application and a block link point.
Please refer to fig. 2, which is a schematic view of a scenario of an asset transfer method based on a block chain according to an embodiment of the present application. As shown in fig. 2, terminal a may be a first user terminal, user a may be a first user, user a may access a target application (e.g., an asset donation platform) in terminal a, asset donation may be requested in the target application, and when detecting the request, the blockchain node may obtain the user attribute information of the user a, the user attribute information is used to represent identity information of the user a, for example, the user attribute information may include information such as a user ID, a user name, a user gender, and the like, the block link point may check the authority of the user a based on the user attribute information, and if the check is passed, it may be determined that user a is a qualified donor and the block link point may transmit an operation page for inputting asset transfer information to the terminal a, in which user a may input asset transfer information. As shown in fig. 2, the asset transfer information input by the user a includes a donor user a, a donor user B, an asset transfer amount (i.e., a donation amount) of 5000 yuan, a transfer initiation time of 2019, 11 months and 10 days, the terminal a may sign the asset transfer information based on a private key of the terminal a to obtain a digital signature, the terminal a may send the asset transfer information carrying the digital signature to a blockchain node, the blockchain node may check the digital signature based on a public key of the terminal a after receiving the asset transfer information, when the check passes, the digital signature is determined to be a legal signature, after the check passes, the blockchain node may trigger an intelligent contract according to the asset transfer amount of 5000 yuan in the asset transfer information, obtain 5000 yuan from an account of the user a as a source asset, and send the 5000 yuan to a terminal B (i.e., a second user) corresponding to the terminal B (i.e., a second user B) Terminal), if the terminal B successfully receives the 5000 units, it may return a response message to the blockchain node to notify the blockchain node that the donation amount has been successfully received, and then the blockchain node may determine that the user B has the usage right of the 5000 units, and then the blockchain node may determine a transfer route between the user a and the user B for the 5000 units, determine the transfer initiation time of the transfer route and the response message as the first asset flow direction message, and the blockchain node may generate a block 1001 according to the first asset flow direction message, add the block 1001 to the blockchain 100, and complete the uplink process for the first asset flow direction message.
Please refer to fig. 3, which is a flowchart illustrating an asset transfer method based on a blockchain according to an embodiment of the present application. As shown in fig. 3, the method may include:
step S101, asset transfer information sent by a first user terminal is obtained; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal.
In this application, the first user may be a donor who wants to perform asset donation, and the asset transfer information may be donation information input in the asset donation platform when the first user accesses the asset donation platform through the first user terminal. The first user terminal sends the access request of the first user to the block chain node, the block chain node can determine the user attribute information of the first user after detecting the access request, the user attribute information may include information such as a user ID, a user name, a user gender and a user address, according to the user attribute information of the user, the block link point can check the authority of the first user, such as passing the check, the block link point may determine that the first user is a qualified donor, the block link point may transmit an operation page for inputting asset transfer information to the first user terminal, the first user may input asset transfer information in the operation page, i.e., donation information, which includes donor information (i.e., first user information), the amount of donation (i.e., the asset transfer amount), the donated person (i.e., second user information), and the time of donation (i.e., the transfer initiation time), etc.
Step S102, according to the asset transfer information, triggering an intelligent contract to acquire a source asset belonging to the first user information; the source assets are the assets corresponding to the asset transfer amount.
In the method, a first user terminal can sign asset transfer information input by a first user based on a private key to obtain a digital signature, the first user terminal can send the asset transfer information carrying the digital signature to a block chain node, the block chain node can obtain a public key of the first user terminal, the public key is adopted to check and sign the asset transfer information, when the check and sign pass, the block chain node can determine the digital signature as a legal signature, and then the block chain node can trigger an intelligent contract according to the asset transfer information to obtain source assets belonging to the first user. The source asset corresponds to the asset transfer amount (donation amount), and if the asset transfer amount input by the first user is 1000 yuan, the block link point may obtain 1000 yuan from the account of the first user, and the 1000 yuan obtained from the first user is the source asset.
Step S103, sending the source asset to a second user terminal corresponding to the second user information, and acquiring response information returned by the second user terminal based on the source asset.
In this application, the block link point may send the source asset to a second user terminal corresponding to the second user information, so as to transfer the source asset, and the second user terminal may return response information to the block link point when receiving the source asset. If the second user terminal successfully receives the source asset and can use the source asset, the response message is that the source asset is successfully received; if the second user terminal receives the source asset but an abnormal condition occurs (for example, the second user information is abnormal, the source asset cannot be normally used, etc.), the response information is reception failure information to prompt the blockchain node that the source asset is failed to transfer.
Step S104, if the response message indicates that the source asset is successfully received, determining that the second user message has the right to use the source asset, determining a transfer route between the first user message and the second user message, the transfer initiation time, and the response message as first asset flow direction messages, and linking the first asset flow direction messages to a block chain.
In this application, when the response message is that the source asset is successfully received, the block link point may determine that the second user information has the usage right of the source asset, that is, the second user may normally use the source asset, and determine a transfer route between the first user information and the second user information, where the transfer route may be an asset transfer direction between the first user information and the second user information, the first user information, and the second user information, for example, the transfer route may be as shown in { user a, user B, an account address of user a points to an account address of user B } in the first asset transfer information in the embodiment corresponding to fig. 2, and the block link point may determine the transfer route, the transfer initiation time, and the response message as the first asset flow direction information, the blockchain node may send the first asset flow direction information to all consensus nodes in the blockchain, and after all consensus nodes pass consensus verification, the blockchain node may link the first asset flow direction information into the blockchain.
Optionally, if the first user selects anonymity after inputting the asset transfer information, the first user terminal generates an anonymity prompt message and sends the anonymity prompt message and the asset transfer information to a block link node, the block link node may obtain a public key of the first user terminal according to the anonymity prompt message, encrypt the first user information by using the public key to obtain a first user information ciphertext, and the block link node may determine the first user information ciphertext, the second user information, and an asset transfer direction between the first user information and the second user information as a transfer route.
The above description shows that, the asset transfer information of the first user terminal is obtained, the intelligent contract is triggered to send the source asset from the first user information to the second user terminal, and after the second user terminal successfully receives the source asset, the first user information can be linked to the asset flow direction information of the second user information.
Please refer to fig. 4a and fig. 4b, which are schematic scene diagrams of another block chain-based asset transfer method according to an embodiment of the present application. As shown in fig. 4a, terminal a may be a first user terminal, terminal a may send asset transfer information to a blockchain node, where the asset transfer information may be the asset transfer information in the embodiment corresponding to fig. 2, an asset transfer amount in the asset transfer information is 5000, and a blockchain node may obtain 5000 yuan of a source asset belonging to user a according to the asset transfer amount, and then send 5000 yuan to terminal B (i.e., a second user terminal), and after receiving response information that is successfully received and returned by terminal B, the blockchain node may compare the asset transfer amount with an asset transfer amount threshold, where the asset transfer amount threshold may be an artificially set value, and if the artificially set asset transfer amount threshold is 3000, the blockchain node may determine that the asset transfer amount 5000 is greater than the asset transfer amount threshold 3000, the blockchain node may generate an advertisement message based on the asset transfer amount, as shown in fig. 4a, the announcement message may be "thank you user a compelling for generous contribution of 5000 yuan", and the block link point may send the announcement message to the management background, so that the management background broadcasts the announcement message to the user terminal cluster "user terminal 100a, user terminals 100b, …, and user terminal 100 c", thereby achieving the advertising effect.
As shown in fig. 4a, a block chain node may obtain the usage of the source asset by the user B, so as to generate second asset flow information, as shown in fig. 4a, the second asset flow information transfers the source asset to the user C for the user B, that is, the asset flow of the source asset flows to the user C for the user B, and the block chain node may generate a block 1002 according to the second asset flow information, and chain the block 1002 to the block chain 100. When the block link point receives the request for querying the asset flow direction sent by the terminal a, the block link point may obtain the block 1002 from the block chain 100, so as to obtain the second asset flow direction information, and the block link point may send the second asset flow direction information to the terminal a, so that the terminal a determines the usage record of the terminal B for the source asset according to the second asset flow direction information.
Further, please refer to fig. 5, which is a flowchart illustrating a process of determining a usage record of a source asset by a second user terminal according to an embodiment of the present application. As shown in fig. 5, the process may include:
step S201, obtaining second asset flow direction information of the second user information for the source asset, and linking the second asset flow direction information to the block chain; the second asset flow information is used to characterize the second user terminal and the transfer information to the account.
In this application, the second asset flow direction information may be used to represent transfer information of the second user information corresponding to the second terminal and other circulation accounts, as shown in the second asset flow direction information shown in fig. 4a, the user B is the second user information, the user C is the circulation account, and the second asset flow direction information is that the user B transfers the source asset to the user C. The block chain node may acquire a transfer record from the second user terminal to another user terminal, and generate second asset flow direction information, and the block chain node may generate a block according to the second asset flow direction information and chain the block into the block chain.
Step S202, when receiving the request for inquiring the asset flow direction sent by the first user terminal, acquiring second asset flow direction information from the block chain based on the request for inquiring the asset flow direction.
In the application, if a first user wants to query a use record of a source asset of a second user, the first user terminal may request for querying, the first user terminal may send the query request to a block chain node, the block chain node may obtain a block containing the flow direction information of the second asset from the block chain, and the flow direction information of the second asset is obtained based on the block.
Step S203, sending the second asset flow direction information to the first user terminal, so that the first user terminal determines the usage record of the source asset by the second user terminal according to the second asset flow direction information.
The above description shows that, the asset transfer information of the first user terminal is obtained, the intelligent contract is triggered to send the source asset from the first user information to the second user terminal, and after the second user terminal successfully receives the source asset, the first user information can be linked to the asset flow direction information of the second user information.
Further, please refer to fig. 6, which is a schematic structural diagram of an asset transfer device based on a block chain according to an embodiment of the present application. As shown in fig. 6, the asset transfer device 1 may include: the apparatus comprises a first obtaining module 11, a triggering module 12, a sending module 13 and a first uplink module 14.
A first obtaining module 11, configured to obtain asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal;
a triggering module 12, configured to trigger an intelligent contract according to the asset transfer information, and obtain a source asset belonging to the first user information; the source assets are assets corresponding to the asset transfer amount;
a sending module 13, configured to send the source asset to a second user terminal corresponding to the second user information, and obtain response information returned by the second user terminal based on the source asset;
a first uplink module 14, configured to determine that the second user information has the right to use the source asset if the response information indicates that the source asset is successfully received, determine a transfer route between the first user information and the second user information, the transfer initiation time, and the response information as first asset flow information, and uplink the first asset flow information to a block chain.
The specific implementation manners of the first obtaining module 11, the triggering module 12, the sending module 13, and the first uplink module 14 may refer to steps S101 to S104 in the embodiment corresponding to fig. 3, which are not described herein again.
Referring to fig. 6, the first obtaining module 11 may include: a first determination unit 111, a verification unit 112, a transmission unit 113, and a reception unit 114.
A first determining unit 111 configured to determine, when an access request of the first user terminal is detected, user attribute information of the first user information based on the access request;
a checking unit 112, configured to check the authority of the first user information based on the user attribute information;
a sending unit 113, configured to send an operation page for inputting the asset transfer information to the first user terminal when the verification is passed;
a receiving unit 114, configured to receive the asset transfer information input by the first user terminal in the operation page.
The specific implementation manner of the first determining unit 111, the checking unit 112, the sending unit 113, and the receiving unit 114 may refer to step S101 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 6, the asset transfer device 1 may include a first acquiring module 11, a triggering module 12, a sending module 13, and a first uplink module 14, and may further include: a second acquisition module 15, a signature verification module 16 and an execution module 17.
A second obtaining module 15, configured to obtain a public key of the first user terminal, the asset transfer information, and the digital signature;
the signature verification module 16 is used for verifying the digital signature of the asset transfer information based on the public key;
and the execution module 17 is configured to execute the step of triggering the intelligent contract according to the asset transfer information if the digital signature is a legal signature.
The specific implementation manner of the second obtaining module 15, the signature verification module 16, and the execution module 17 may refer to step S102 in the embodiment corresponding to fig. 3, which is not described herein again.
Referring to fig. 6, the asset transfer device 1 may include a first obtaining module 11, a triggering module 12, a sending module 13, a first uplink module 14, a second obtaining module 15, a signature verifying module 16, and an executing module 17, and may further include a generating module 18.
A generating module 18, configured to generate an announcement message based on the first user information and the asset transfer amount if the asset transfer amount is greater than or equal to an asset transfer amount threshold, and send the announcement message to a management background, so that the management background broadcasts the announcement message to a user terminal cluster; the user terminal cluster includes the first user terminal and the second user terminal.
The specific implementation manner of the generating module 18 may refer to the process of generating and broadcasting the announcement packet in the embodiment corresponding to fig. 4a, which is not described herein again.
Referring to fig. 6, the first uplink module 14 may include: a second determining unit 141 and a winding unit 142.
A second determining unit 141, configured to determine an asset circulation direction between the first user information and the second user information, the first user information, and the second user information as a circulation route;
an uplink unit 142, configured to determine the transfer route, the transfer initiation time, and the response information as the first asset flow direction information, send the first asset flow direction information to a common node in the block chain, and uplink the first asset flow direction information to the block chain after the common node passes common verification.
The specific implementation of the second determining unit 141 and the uplink unit 142 can refer to step S104 in the embodiment corresponding to fig. 3, and is not described herein again.
Referring to fig. 6, the second determining unit 141 may include: an encryption sub-unit 1411 and a determination sub-unit 1412.
An encrypting subunit 1411, configured to obtain a public key of the first user terminal according to the anonymous prompt message, and encrypt the first user information by using the public key of the first user terminal to obtain a first user information ciphertext;
a determining subunit 1412, configured to determine an asset circulation direction between the first user information and the second user information, the first user information ciphertext, and the second user information as a circulation route.
The specific implementation manner of the encrypting subunit 1411 and the determining subunit 1412 may refer to step S104 in the embodiment corresponding to fig. 3, and is not described herein again.
Referring to fig. 6, the asset transfer device 1 may include a first obtaining module 11, a triggering module 12, a sending module 13, a first uplink module 14, a second obtaining module 15, a signature verifying module 16, an executing module 17, and a generating module 18, and may further include: a second uplink module 19, a third acquisition module 20 and a sending module 21.
A second uplink module 19, configured to acquire second asset flow information of the second user information for the source asset, and uplink the second asset flow information to the block chain; the second asset flow direction information is used for representing transfer information of the second user terminal and the flow direction account;
a third obtaining module 20, configured to, when receiving an asset flow direction query request sent by the first user terminal, obtain second asset flow direction information from the blockchain based on the asset flow direction query request;
a sending module 21, configured to send the second asset flow direction information to the first user terminal, so that the first user terminal determines, according to the second asset flow direction information, a usage record of the source asset by the second user terminal.
The specific implementation manners of the second uplink module 19, the third obtaining module 20 and the sending module 21 can refer to steps S201 to S203 in the embodiment corresponding to fig. 5, which is not described herein again.
The method comprises the steps of acquiring asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal; triggering an intelligent contract according to the asset transfer information to acquire source assets belonging to the first user information; the source assets are assets corresponding to the asset transfer amount; sending the source asset to a second user terminal corresponding to the second user information, and acquiring response information returned by the second user terminal based on the source asset; if the response message indicates that the source asset is successfully received, determining that the second user message has the right of use for the source asset, determining a transfer route between the first user message and the second user message, the transfer initiation time, and the response message as first asset flow direction messages, and linking the first asset flow direction messages to a block chain. The above description shows that, the asset transfer information of the first user terminal is obtained, the intelligent contract is triggered to send the source asset from the first user information to the second user terminal, and after the second user terminal successfully receives the source asset, the first user information can be linked to the asset flow direction information of the second user information.
Further, please refer to fig. 7, which is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 7, the apparatus 1 in the embodiment corresponding to fig. 6 may be applied to the computer device 1000, and the computer device 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, and the computer apparatus 1000 further includes: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 7, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the computer device 1000 shown in fig. 7, the network interface 1004 may provide a network communication function; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
acquiring asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal;
triggering an intelligent contract according to the asset transfer information to acquire source assets belonging to the first user information; the source assets are assets corresponding to the asset transfer amount;
sending the source asset to a second user terminal corresponding to the second user information, and acquiring response information returned by the second user terminal based on the source asset;
if the response message indicates that the source asset is successfully received, determining that the second user message has the right of use for the source asset, determining a transfer route between the first user message and the second user message, the transfer initiation time, and the response message as first asset flow direction messages, and linking the first asset flow direction messages to a block chain.
In an embodiment, when the processor 1001 acquires the asset transfer information sent by the first user terminal, it specifically performs the following steps:
when an access request of the first user terminal is detected, determining user attribute information of the first user information based on the access request;
checking the authority of the first user information based on the user attribute information;
when the asset transfer information passes the checking, sending an operation page for inputting the asset transfer information to the first user terminal;
and receiving the asset transfer information input by the first user terminal in the operation page.
In one embodiment, the digital signature corresponding to the asset transfer information is obtained by signing the asset transfer information based on a private key of the first user terminal;
the processor 1001 further performs the following steps:
acquiring a public key of the first user terminal, the asset transfer information and the digital signature;
verifying and signing the digital signature of the asset transfer information based on the public key;
and if the digital signature is a legal signature, executing the step of triggering the intelligent contract according to the asset transfer information.
In one embodiment, the processor 1001 further performs the following steps:
if the asset transfer amount is greater than or equal to an asset transfer amount threshold value, generating an announcement message based on the first user information and the asset transfer amount, and sending the announcement message to a management background so that the management background broadcasts the announcement message to a user terminal cluster; the user terminal cluster includes the first user terminal and the second user terminal.
In an embodiment, when the processor 1001 determines the circulation route between the first user information and the second user information, the transfer initiation time, and the response information as first asset flow direction information and links the first asset flow direction information to a block chain, the processor specifically performs the following steps:
determining an asset circulation direction between the first user information and the second user information, the first user information and the second user information as a circulation route;
and determining the transfer route, the transfer initiation time and the response information as the first asset flow direction information, sending the first asset flow direction information to a consensus node in the block chain, and linking the first asset flow direction information to the block chain after the consensus node passes consensus verification.
In one embodiment, the processor 1001 further includes an anonymous prompting message in executing the asset transfer information; when the asset transfer direction between the first user information and the second user information, the first user information, and the second user information are determined as a transfer route, the following steps are specifically performed:
acquiring a public key of the first user terminal according to the anonymous prompt message, and encrypting the first user information by adopting the public key of the first user terminal to obtain a first user information ciphertext;
and determining the asset circulation direction between the first user information and the second user information, the first user information ciphertext and the second user information as circulation routes.
In one embodiment, the processor 1001 further performs the following steps:
acquiring second asset flow direction information of the second user information aiming at the source asset, and linking the second asset flow direction information to the block chain; the second asset flow direction information is used for representing transfer information of the second user terminal and the flow direction account;
when receiving an asset flow direction query request sent by the first user terminal, acquiring second asset flow direction information from the block chain based on the asset flow direction query request;
and sending the second asset flow direction information to the first user terminal so that the first user terminal determines the use record of the second user terminal to the source asset according to the second asset flow direction information.
The method comprises the steps of acquiring asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal; triggering an intelligent contract according to the asset transfer information to acquire source assets belonging to the first user information; the source assets are assets corresponding to the asset transfer amount; sending the source asset to a second user terminal corresponding to the second user information, and acquiring response information returned by the second user terminal based on the source asset; if the response message indicates that the source asset is successfully received, determining that the second user message has the right of use for the source asset, determining a transfer route between the first user message and the second user message, the transfer initiation time, and the response message as first asset flow direction messages, and linking the first asset flow direction messages to a block chain. The above description shows that, the asset transfer information of the first user terminal is obtained, the intelligent contract is triggered to send the source asset from the first user information to the second user terminal, and after the second user terminal successfully receives the source asset, the first user information can be linked to the asset flow direction information of the second user information.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where a computer program executed by the aforementioned data processing computer device 1000 is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data processing method in the embodiment corresponding to fig. 3 to fig. 5 can be executed, so that details are not repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A block chain based asset transfer method, comprising:
acquiring asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal;
triggering an intelligent contract according to the asset transfer information to acquire source assets belonging to the first user information; the source assets are assets corresponding to the asset transfer amount;
sending the source asset to a second user terminal corresponding to the second user information, and acquiring response information returned by the second user terminal based on the source asset;
if the response information is that the source asset is successfully received, determining that the second user information has the use permission aiming at the source asset, determining a transfer route between the first user information and the second user information, the transfer initiating time and the response information as first asset flow direction information, and chaining the first asset flow direction information into a block chain.
2. The method of claim 1, wherein the obtaining asset transfer information sent by the first user terminal comprises:
when an access request of the first user terminal is detected, determining user attribute information of the first user information based on the access request;
verifying the authority of the first user information based on the user attribute information;
when the asset transfer information passes the checking, sending an operation page for inputting the asset transfer information to the first user terminal;
receiving the asset transfer information input by the first user terminal in the operation page.
3. The method according to claim 1, wherein the digital signature corresponding to the asset transfer information is obtained by signing the asset transfer information based on a private key of the first user terminal;
further comprising:
acquiring a public key of the first user terminal, the asset transfer information and the digital signature;
verifying and signing the digital signature of the asset transfer information based on the public key;
and if the digital signature is a legal signature, executing the step of triggering the intelligent contract according to the asset transfer information.
4. The method of claim 1, further comprising:
if the asset transfer amount is larger than or equal to an asset transfer amount threshold value, generating an announcement message based on the first user information and the asset transfer amount, and sending the announcement message to a management background so that the management background broadcasts the announcement message to a user terminal cluster; the user terminal cluster comprises the first user terminal and the second user terminal.
5. The method of claim 1, wherein the determining the transfer route between the first user information and the second user information, the transfer initiation time, and the response information as first asset flow direction information, and the uplink of the first asset flow direction information into a block chain comprises:
determining an asset circulation direction between the first user information and the second user information, the first user information and the second user information as a circulation route;
determining the transfer route, the transfer initiation time and the response information as the first asset flow direction information, sending the first asset flow direction information to a consensus node in the block chain, and linking the first asset flow direction information to the block chain after the consensus node passes consensus verification.
6. The method of claim 5, wherein the asset transfer information further comprises an anonymous alert message; the determining an asset circulation direction between the first user information and the second user information, the first user information, and the second user information as a circulation route includes:
acquiring a public key of the first user terminal according to the anonymous prompt message, and encrypting the first user information by adopting the public key of the first user terminal to obtain a first user information ciphertext;
and determining the asset circulation direction between the first user information and the second user information, the first user information ciphertext and the second user information as circulation routes.
7. The method of claim 1, further comprising;
acquiring second asset flow direction information of the second user information aiming at the source asset, and uplink the second asset flow direction information to the block chain; the second asset flow direction information is used for representing transfer information of the second user terminal and the flow direction account;
when receiving an asset flow direction query request sent by the first user terminal, acquiring second asset flow direction information from the block chain based on the asset flow direction query request;
and sending the second asset flow direction information to the first user terminal so that the first user terminal determines the use record of the second user terminal to the source asset according to the second asset flow direction information.
8. A blockchain-based asset transfer device, comprising:
the first acquisition module is used for acquiring asset transfer information sent by a first user terminal; the asset transfer information comprises first user information, asset transfer amount, second user information and transfer initiation time corresponding to the first user terminal;
the triggering module is used for triggering the intelligent contract according to the asset transfer information to acquire the source asset belonging to the first user information; the source assets are assets corresponding to the asset transfer amount;
the sending module is used for sending the source asset to a second user terminal corresponding to the second user information and acquiring response information returned by the second user terminal based on the source asset;
a first uplink module, configured to determine that the second user information has a usage right for the source asset if the response information indicates that the source asset is successfully received, determine a transfer route between the first user information and the second user information, the transfer initiation time, and the response information as first asset flow direction information, and uplink the first asset flow direction information to a block chain.
9. A computer device, comprising: a processor and a memory;
the memory stores a computer program which, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method of any of claims 1 to 7.
CN201911176929.9A 2019-11-26 2019-11-26 Block chain based asset transfer method, device, equipment and readable storage medium Pending CN110955905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911176929.9A CN110955905A (en) 2019-11-26 2019-11-26 Block chain based asset transfer method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911176929.9A CN110955905A (en) 2019-11-26 2019-11-26 Block chain based asset transfer method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN110955905A true CN110955905A (en) 2020-04-03

Family

ID=69978517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911176929.9A Pending CN110955905A (en) 2019-11-26 2019-11-26 Block chain based asset transfer method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110955905A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581293A (en) * 2020-06-23 2020-08-25 腾讯科技(深圳)有限公司 Block chain-based user content processing method, device, system and equipment
CN112187788A (en) * 2020-09-27 2021-01-05 上海万向区块链股份公司 Block chain-based multi-level asset transfer method, system and traceability method
CN112751709A (en) * 2020-12-29 2021-05-04 北京浪潮数据技术有限公司 Management method, device and system of storage cluster

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618101A (en) * 2013-12-27 2015-05-13 腾讯科技(深圳)有限公司 Data processing method, intermediate server and data processing system
KR20170123861A (en) * 2016-04-29 2017-11-09 삼성에스디에스 주식회사 System and method for managing donation using block chain
WO2018164401A1 (en) * 2017-03-07 2018-09-13 유한회사 엘민벤처스 Donation system and method using assets including blockchain-based digital virtual currency
CN109214807A (en) * 2018-09-17 2019-01-15 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of management contribution information
CN109389513A (en) * 2018-12-11 2019-02-26 北京京东尚科信息技术有限公司 Medical insurance Claims Resolution method, apparatus, equipment and computer readable storage medium
CN109472599A (en) * 2018-11-16 2019-03-15 中链科技有限公司 A kind of user's assets information circulation method and device based on block chain
CN109544128A (en) * 2018-10-18 2019-03-29 平安科技(深圳)有限公司 Contribute money the method and server of information management
CN109583862A (en) * 2018-11-29 2019-04-05 广州大学 A kind of point-to-point internet public good management method and device based on block chain technology
CN110009495A (en) * 2019-03-19 2019-07-12 阿里巴巴集团控股有限公司 Based on the welfare donations method and device of block chain, electronic equipment, storage medium
CN110020979A (en) * 2019-03-19 2019-07-16 阿里巴巴集团控股有限公司 Public good based on block chain offers method and device, electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618101A (en) * 2013-12-27 2015-05-13 腾讯科技(深圳)有限公司 Data processing method, intermediate server and data processing system
KR20170123861A (en) * 2016-04-29 2017-11-09 삼성에스디에스 주식회사 System and method for managing donation using block chain
WO2018164401A1 (en) * 2017-03-07 2018-09-13 유한회사 엘민벤처스 Donation system and method using assets including blockchain-based digital virtual currency
CN109214807A (en) * 2018-09-17 2019-01-15 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of management contribution information
CN109544128A (en) * 2018-10-18 2019-03-29 平安科技(深圳)有限公司 Contribute money the method and server of information management
CN109472599A (en) * 2018-11-16 2019-03-15 中链科技有限公司 A kind of user's assets information circulation method and device based on block chain
CN109583862A (en) * 2018-11-29 2019-04-05 广州大学 A kind of point-to-point internet public good management method and device based on block chain technology
CN109389513A (en) * 2018-12-11 2019-02-26 北京京东尚科信息技术有限公司 Medical insurance Claims Resolution method, apparatus, equipment and computer readable storage medium
CN110009495A (en) * 2019-03-19 2019-07-12 阿里巴巴集团控股有限公司 Based on the welfare donations method and device of block chain, electronic equipment, storage medium
CN110020979A (en) * 2019-03-19 2019-07-16 阿里巴巴集团控股有限公司 Public good based on block chain offers method and device, electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581293A (en) * 2020-06-23 2020-08-25 腾讯科技(深圳)有限公司 Block chain-based user content processing method, device, system and equipment
CN112187788A (en) * 2020-09-27 2021-01-05 上海万向区块链股份公司 Block chain-based multi-level asset transfer method, system and traceability method
CN112187788B (en) * 2020-09-27 2022-09-16 上海万向区块链股份公司 Block chain-based multi-level asset transfer method, system and traceability method
CN112751709A (en) * 2020-12-29 2021-05-04 北京浪潮数据技术有限公司 Management method, device and system of storage cluster
CN112751709B (en) * 2020-12-29 2023-01-10 北京浪潮数据技术有限公司 Management method, device and system of storage cluster

Similar Documents

Publication Publication Date Title
US9763100B2 (en) Instant messaging message processing method and device and storage medium
US20230132231A1 (en) System and method for interactive television with messaging based payments
US9628566B2 (en) Communication of data of a web real-time communication via a carrier-grade environment
KR20150004350A (en) Method and/or system for user authentication with targeted electronic advertising content through personal communication devices
CN109521956B (en) Cloud storage method, device, equipment and storage medium based on block chain
CN110955905A (en) Block chain based asset transfer method, device, equipment and readable storage medium
CN108712263B (en) Information verification method, device, system and computer readable storage medium
WO2016130483A1 (en) Service implementation method, payment method and apparatus
KR20220123695A (en) Cryptographically validating security requests
EP4049220B1 (en) Preventing data manipulation and protecting user privacy in determining accurate location event measurements
CN110750735A (en) False event identification method, device, equipment and storage medium based on block chain network
CN111932317A (en) Block chain based advertisement playing method, device, medium and electronic equipment
CN109525550B (en) Data message processing method, device and system
US20240095364A1 (en) Privacy-preserving and secure application install attribution
KR101241365B1 (en) Push service system and method
CN110781523B (en) Method and apparatus for processing information
CN114595465A (en) Data encryption processing method and device and electronic equipment
CN113994360A (en) Using crowdsourcing to combat spurious information
CN108174349B (en) Short message channel quality detection method and network server
CN110647757A (en) Data processing method based on intelligent contract and related device
KR102562178B1 (en) Prevention of data manipulation of communication network measurements and protection of user privacy
KR102667841B1 (en) Prevent data manipulation and protect user privacy when measuring accurate location events
CN114285815B (en) Application jump method and application jump device
CN114826616B (en) Data processing method, device, electronic equipment and medium
EP4198787B1 (en) Cross-domain frequency filters for fraud detection

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