Resource transfer method, system, computer device and storage medium

Through the combination of blockchain technology and asymmetric keys, the anonymous flow and secure sharing of user data on e-commerce platforms are achieved, which solves the problem of difficulty in obtaining and sharing data on e-commerce platforms and improves the security and efficiency of data flow.

CN115758431BActive Publication Date: 2025-09-23HUNAN TIAN HE GUO YUN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211582037.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2025-09-23
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

E-commerce platforms are unable to efficiently obtain user data, and data sharing is difficult. There are data leakage and security issues. Intermediary verification can easily lead to low data flow efficiency and poor security.

Method used

A blockchain-based resource transfer method is adopted, user data is encrypted through information collection equipment and signed using the real-name public key off-chain and the anonymous private key on-chain, combined with the public key and private key verification of the e-commerce platform to achieve anonymous data transfer and secure sharing.

Benefits of technology

Ensure the security and credibility of data during anonymous circulation, enhance the freedom of data use on e-commerce platforms, avoid infringing on user privacy, reduce the risk of data leakage, and improve data circulation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115758431B_ABST
    Figure CN115758431B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of blockchain technology and provides a resource transfer method, system, computer device, and storage medium, including: sending an off-chain real-name public key to an information collection device to encrypt collected user data and a first signature to obtain ciphertext user data; the first signature is obtained by the information collection device signing the user data using an information encryption private key; obtaining the ciphertext user data and decrypting it using the off-chain real-name private key to obtain the user data and the first signature, and signing the first signature using an on-chain anonymous private key to obtain a second signature; encrypting the user data using an e-commerce platform public key, along with the first and second signatures, and sending them to the e-commerce platform via a blockchain; the e-commerce platform decrypts the user data, verifies the first signature using the information encryption public key, and verifies the second signature using the on-chain anonymous public key, then issues a points reward based on the value of the user data; and obtains the points reward issued by the e-commerce platform. This method can ensure data security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of blockchain technology, and in particular relates to a blockchain-based resource circulation method, system, computer device and storage medium. Background Art

[0002] With the development of internet technology, more and more online platforms have emerged, and e-commerce platforms have penetrated every aspect of users' lives. Currently, to grow their business, many e-commerce platforms often collect large amounts of user data to generate consumer analysis reports to support business expansion. However, due to data security management regulations, e-commerce platforms lack efficient means to obtain user data, and platforms cannot share their acquired data without user permission, further exacerbating the problem of data silos and data access difficulties. Furthermore, online data transfer can easily expose user plaintext information to third parties. Even if sufficient data is obtained, data leakage and authenticity verification are difficult to verify, increasing the risks of data exploitation.

[0003] To address this issue, one approach currently involves establishing an internet channel between two parties, introducing a middleman mechanism to verify the data being transferred, and employing blind signatures to achieve secure and anonymous transfer. However, because this method involves a middleman, trusted verification requires confirmation by the middleman. Consequently, if the middleman experiences downtime, data can be disrupted. Furthermore, data can be easily tampered with by third-party middlemen, reducing transfer efficiency while failing to ensure data security. Summary of the Invention

[0004] Based on this, it is necessary to provide a blockchain-based resource transfer method, system, computer equipment and storage medium that can ensure data security to address the above technical problems.

[0005] The present invention provides a resource transfer method based on blockchain, comprising:

[0006] The off-chain real-name public key is sent to the information collection device, and the information collection device uses the off-chain real-name public key to encrypt the collected user data and the first signature to obtain ciphertext user data; the first signature is obtained by the information collection device signing the user data using the information encryption private key;

[0007] Obtain the ciphertext user data and decrypt it using the off-chain real-name private key to obtain the user data and the first signature, and sign the first signature using the on-chain anonymous private key to obtain the second signature;

[0008] After encrypting the user data using the e-commerce platform's public key, the data is sent to the e-commerce platform along with the first and second signatures via the blockchain. The e-commerce platform decrypts the user data using the platform's private key and, after verifying the first signature using the information encryption public key and the second signature using the on-chain anonymous public key, issues points based on the value of the user data.

[0009] Obtain the points reward issued by the e-commerce platform.

[0010] In one embodiment, the method further comprises:

[0011] Use the anonymous public key on the chain and the points reward to purchase goods on the e-commerce platform;

[0012] Using the e-commerce platform's public key to encrypt the product and delivery address to obtain an encrypted shopping order;

[0013] The encrypted shopping order is sent to the e-commerce platform via blockchain. The e-commerce platform decrypts the encrypted shopping order using the e-commerce platform private key to obtain the product and delivery address. The e-commerce platform then encrypts the product and delivery address using the logistics platform public key and sends them to the logistics platform. After decrypting the product and delivery address using the logistics platform private key, the logistics platform packages and ships the product to the delivery address and provides a notification of arrival to the e-commerce platform.

[0014] Receive the arrival notification forwarded by the e-commerce platform.

[0015] In one embodiment, the encrypted shopping order obtained by encrypting the product and delivery address using the e-commerce platform public key includes:

[0016] Generate random numbers;

[0017] Encrypting the product, the delivery address, and the random number using the e-commerce platform public key, and encrypting the random number alone using the e-commerce platform public key to obtain an encrypted shopping order;

[0018] Send the encrypted shopping order to the e-commerce platform.

[0019] A resource circulation system based on blockchain, comprising: user terminals, information collection equipment and e-commerce platforms;

[0020] The user terminal is configured to send the off-chain real-name public key to the information collection device; decrypt the ciphertext user data sent by the information collection device using the off-chain real-name private key to obtain the user data and a first signature; and sign the first signature using the on-chain anonymous private key to obtain a second signature; and, after encrypting the user data using the e-commerce platform public key, send the encrypted data together with the first signature and the second signature to the e-commerce platform via the blockchain.

[0021] The information collection device is configured to sign the collected user data using the information encryption private key to obtain a first signature, and to encrypt the user data and the first signature using the off-chain real-name public key to obtain ciphertext user data and send the ciphertext user data to the user terminal;

[0022] The e-commerce platform is used to decrypt the user data using the e-commerce platform private key, and after verifying that the first signature is correct using the information encryption public key and the second signature is correct using the on-chain anonymous public key, it issues a points reward to the user terminal based on the value of the user data.

[0023] In one embodiment, the system further comprises a logistics platform;

[0024] The user terminal is further configured to use the anonymous public key on the chain and the points reward to purchase goods on the e-commerce platform, and to send an encrypted shopping order obtained by encrypting the goods and delivery address using the e-commerce platform public key to the e-commerce platform via the blockchain;

[0025] The e-commerce platform is also used to use the e-commerce platform private key to decrypt the encrypted shopping order to obtain the product and the delivery address; use the logistics platform public key to encrypt the product and the delivery address and send them to the logistics platform; and forward the arrival notification feedback from the logistics platform to the user terminal.

[0026] The logistics platform is used to use the logistics platform private key to decrypt the goods and the delivery address, then pack the goods and ship them to the delivery address and feedback the arrival notification to the e-commerce platform.

[0027] In one embodiment, the user terminal is further used to generate a random number; encrypt the product, the delivery address and the random number using the e-commerce platform public key, and encrypt the random number alone using the e-commerce platform public key to obtain an encrypted shopping order; and send the encrypted shopping order to the e-commerce platform.

[0028] In one embodiment, the e-commerce platform is further configured to determine the value of the user data based on the value of the information collection device and the on-chain historical resource transfer records of the user terminal.

[0029] In one embodiment, the e-commerce platform is further configured to encrypt the product and the delivery address in sequence using the public key of the logistics platform according to the serial number of the product and then send the encrypted data to the logistics platform.

[0030] The present invention also provides a computer device, comprising a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the above-mentioned blockchain-based resource transfer methods are implemented.

[0031] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-mentioned blockchain-based resource transfer methods.

[0032] The aforementioned blockchain-based resource transfer method, system, computer device, and storage medium differ from traditional one-on-one data collection and middleman verification methods between e-commerce users. By introducing the endorsement of information collection devices, the cost of data falsification is reduced, ensuring the security and reliability of data during anonymous transfer. Simultaneously, the credible anonymization of data increases the freedom of e-commerce platforms to use data. Because data is circulated through blockchain authentication and endorsed by the signature of the information collection device, the credibility of the information is enhanced. Furthermore, the information collection process remains anonymous to the shared e-commerce platform, allowing the platform to avoid the risk of violating user privacy and ensuring data security when utilizing this data. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 The figure is a flowchart of a resource transfer method based on blockchain in one embodiment.

[0034] Figure 2 This is a flowchart of a resource transfer method based on blockchain in another embodiment. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0036] In one embodiment, Figure 1 As shown, a resource transfer method based on blockchain is provided, which is applied to a user terminal and includes the following steps:

[0037] In step S101, the off-chain real-name public key is sent to the information collection device, which uses the off-chain real-name public key to encrypt the collected user data and the first signature to obtain ciphertext user data; the first signature is obtained by the information collection device using the information encryption private key to sign the user data.

[0038] The off-chain real-name public key is the public key in an asymmetric key pair that can verify a user's real-name identity, and its corresponding off-chain real-name private key is also present. Information collection devices, such as medical testing equipment, can collect user data. The information encryption private key is the private key in the asymmetric key pair of the information collection device, and its corresponding information encryption public key is also present.

[0039] Specifically, after the user's personal data is collected by the information collection device, if the user needs to obtain it for personal use or the user agrees to share the personal user data collected by the information collection device with other platforms, such as e-commerce platforms. Then, the user first sends his or her off-chain real-name public key to the information collection device. The information collection device has an embedded asymmetric encryption function. First, the collected user data data is signed with its own information encryption private key to obtain a first signature α. Then, the user data and the first signature α are encrypted with the user's off-chain real-name public key, and the ciphertext user data A (data, α) is exported and sent to the user. Since many information collection devices are operated by the device provider rather than the user, if the data is directly exported without encryption, it is often easy to expose the user data in plain text to the device provider. Encrypted export can protect user privacy. Although the device provider cannot know data and α, the exported ciphertext user data A (data, α) can be stored in the database as verification information. When a dispute arises between a user and a device provider regarding user data, the user bears the burden of proof and must decrypt the data using their off-chain real-name private key. This decryption yields both data and α. α then ensures the data's provenance, making it irrefutable for the device provider. The data is the original plaintext data, preventing user manipulation. For example, when the information collection device is a medical testing device, this method of encrypted export ensures that the device provider cannot deny the user's test results, and the user cannot manipulate them.

[0040] Step S102: Obtain the encrypted user data and decrypt it using the off-chain real-name private key to obtain the user data and the first signature, and sign the first signature using the on-chain anonymous private key to obtain the second signature.

[0041] The on-chain anonymous private key is the private key in an asymmetric key pair that cannot identify the user's real-name identity. The corresponding on-chain anonymous public key is also available. Simply put, the user's on-chain anonymous key pair is the anonymous identity information used by the user to transfer resources on the blockchain. The off-chain real-name key pair is the real-name identity information used by the user to obtain personal user data offline from information collection devices.

[0042] Specifically, after the user terminal receives the encrypted user data derived from the information collection device, it decrypts the encrypted user data A(data, α) using the off-chain real-name private key corresponding to the off-chain real-name public key to obtain the user data data and the first signature α. The user then re-signs the first signature α using the on-chain anonymous private key to obtain the second signature β.

[0043] In step S103, after encrypting the user data using the e-commerce platform public key, it is sent to the e-commerce platform through the blockchain together with the first signature and the second signature; the e-commerce platform decrypts the user data using the e-commerce platform private key, and after verifying the first signature using the information encryption public key and the second signature using the anonymous public key on the chain, it issues points based on the value of the user data.

[0044] Step S104: Obtain the points reward issued by the e-commerce platform.

[0045] The e-commerce platform public key is the public key in the e-commerce platform's asymmetric key pair, and the corresponding e-commerce platform private key is also available. Furthermore, to facilitate use by on-chain nodes, the user's on-chain anonymous public key, information encryption public key, and e-commerce platform public key are all recorded on the blockchain. In addition to the user's on-chain anonymous public key, these public keys, such as the information encryption public key and the e-commerce platform public key, are bound to real-world identities. Blockchain is a secure, shared, decentralized data ledger. Blockchain technology supports data sharing among a specific group of participants. With blockchain cloud services, transaction data from multiple sources can be easily collected, integrated, and shared. Data is segmented into multiple shared blocks and linked together with unique identifiers in the form of cryptographic hashes.

[0046] Specifically, if a user is willing to share their data with an e-commerce platform, then after the user terminal encrypts and obtains the second signature β, it obtains the public key of the e-commerce platform from the chain and uses the e-commerce platform's public key to encrypt the user data data to obtain the ciphertext D(data). The ciphertext D(data) is then sent to the e-commerce platform on the blockchain along with the first signature α and the second signature β. The user terminal encrypts using the user's other pair of on-chain anonymous keys. This prevents the device provider from tracking the user's on-chain identity based on the off-chain real-name key pair they know the user uses for their off-chain real-name authentication, thereby successfully decoupling the user's on-chain anonymous identity from their off-chain real-name identity.

[0047] When the e-commerce platform receives the ciphertext D(data), α, β, it decrypts it using the platform's private key corresponding to its public key to obtain data, α, β. Furthermore, the e-commerce platform obtains the information encryption public key and the user's on-chain anonymous public key from the blockchain. The first signature α is verified using the information encryption public key, while the second signature β is verified using the on-chain anonymous public key. Through verification, the e-commerce platform confirms the data source's information collection device and the anonymous on-chain identity of the data source user. Based on the value of the user data, a certain amount of points is awarded to the anonymous on-chain identity of the data source user, effectively rewarding the user with points on the blockchain. The value of user data can be determined based on the value of the information collection device and the user's historical on-chain resource transfer records. For example, if the authenticity of data collected by medical equipment is higher than that of data collected by other equipment, the value of the user data collected by the medical equipment is higher than that of data collected by other equipment. Alternatively, the more historical on-chain resource transfer records the user has with the e-commerce platform, the higher the value of the user data. Resource transfer records include not only records of users sharing user data with the e-commerce platform, but also records of commodity transactions with the e-commerce platform.

[0048] This embodiment differs from the traditional one-on-one data collection and middleman verification mechanisms between e-commerce companies and users. By introducing the endorsement of information collection devices, this embodiment reduces the cost of data falsification and increases the credibility of the information. Furthermore, the information collection process remains anonymous to the shared e-commerce platform, meaning that the platform can avoid the risk of violating user privacy when utilizing this data, ensuring data security.

[0049] In one embodiment, Figure 2 As shown, a flowchart of another resource transfer method based on blockchain is provided. After step S104, the following steps are also included:

[0050] Step S105: Use the anonymous public key on the chain and the points reward to purchase products on the e-commerce platform.

[0051] Specifically, e-commerce platforms can pre-enter product entries in blockchain smart contracts. When a user shows interest in a particular item, they can purchase it using an on-chain anonymous public key and points. Using an on-chain anonymous public key to purchase an item anonymously uses that on-chain anonymous public key as identification information, effectively acting as a registered user account on the e-commerce platform. Points are used in exchange for the purchased item, representing the monetary value the user pays, i.e., the points required to purchase the item. In addition to being awarded by the e-commerce platform based on the value of user data, these points can also be exchanged for real currency at a certain ratio. For example, a user can anonymously send a certain amount of currency to the e-commerce platform to redeem the points required for an on-chain purchase.

[0052] Step S106: Use the e-commerce platform public key to encrypt the product and delivery address to obtain an encrypted shopping order.

[0053] Specifically, after the user terminal initiates anonymous shopping, the user terminal encrypts the product K and the delivery address to be purchased using the e-commerce platform's public key and sends them to the e-commerce platform through the blockchain.

[0054] In one embodiment, step S106 includes: generating a random number; encrypting the product, delivery address and random number using the e-commerce platform public key, and encrypting the random number alone using the e-commerce platform public key to obtain an encrypted shopping order; and sending the encrypted shopping order to the e-commerce platform.

[0055] Specifically, when the user terminal initiates anonymous shopping, a random number u is randomly generated. The purchased product K, the delivery address address, and the random number u are then encrypted using the e-commerce platform's public key to obtain D(K, address, u). At the same time, the random number u is encrypted separately to obtain D(u). D(K, address, u) and D(u) are used as the encrypted shopping order. In this embodiment, the authenticity of the delivery address data provided by the user is destroyed by adding a random number. Even if it is accidentally intercepted by logistics platforms on the chain, the user's offline real-name identity information cannot be accurately obtained. In addition, in order to prevent others from knowing the content of the goods purchased by the user through the points paid by the user, the e-commerce platform can further combine various goods into several fixed price levels to prevent logistics platforms from inferring the goods purchased by the user through payment points.

[0056] In step S107, the encrypted shopping order is sent to the e-commerce platform via the blockchain. The e-commerce platform decrypts the encrypted shopping order using the e-commerce platform private key to obtain the product and delivery address, and encrypts the product and delivery address using the logistics platform public key and sends them to the logistics platform. After the logistics platform decrypts the product and delivery address using the logistics platform private key to obtain the product, the logistics platform packs the product and ships it to the delivery address and feeds back the arrival notification to the e-commerce platform.

[0057] Step S108: Receive the arrival notification forwarded by the e-commerce platform.

[0058] Among them, the logistics platform public key is the public key of the asymmetric key pair of the logistics platform, and the corresponding private key is the logistics platform. In order to facilitate other nodes to obtain and use it, the logistics platform public key is also recorded on the blockchain.

[0059] Specifically, after the user terminal encrypts the encrypted shopping order, it sends it to the corresponding e-commerce platform via blockchain. The e-commerce platform then communicates with the logistics platform for shipment. Specifically, upon receiving the encrypted shopping order, the e-commerce platform first decrypts it using the e-commerce platform's private key and removes the random number u to obtain the product K and the delivery address. Then, it encrypts K and the address using the logistics platform's public key to obtain E(K, address), which is then sent via blockchain to the logistics platform to notify the delivery. After receiving E(K, address), the logistics platform decrypts it using its private key to obtain K and the address. The logistics platform then packages and ships product K to the designated address and notifies the e-commerce platform of its arrival. The e-commerce platform then forwards the arrival notification to the user to pick up the order.

[0060] At this point, it can be found that in the resource flow process of the commodity transaction in this embodiment, the logistics link never appears with the on-chain anonymous public key, that is, the user's on-chain anonymous identity never appears, thus ensuring the anonymity of the user's on-chain anonymous identity with the logistics platform. The logistics department cannot know the on-chain anonymous identity of the user who purchased the commodity, only the delivery address. Even if the user is met offline to pick up the goods, the user's off-chain real-name identity cannot be combined with the on-chain anonymous identity. Although the user's delivery address and on-chain anonymous identity are exposed to the e-commerce platform, since the e-commerce platform does not provide logistics services and cannot meet the user in person offline, the user's off-chain real-name identity is unknown to the e-commerce platform. The e-commerce platform is also unable to combine the user's off-chain real-name identity with the on-chain anonymous identity, thereby also protecting the user's online and offline identity privacy.

[0061] Furthermore, to prevent logistics platforms from learning about user purchases through changes in product status, e-commerce platforms will ship items by serial number after accumulating orders for different items. Furthermore, at this stage, goods are circulated through a decentralized blockchain, making transactions more decentralized, traceable, anti-counterfeit, and secure than traditional client-server systems. Furthermore, when logistics platforms send arrival notifications to e-commerce platforms, they can do so by scanning the shipping information from the shipping e-commerce platform using a handheld logistics device. If the delivery address is a courier locker, the locker's corresponding server can also be linked to the blockchain, allowing the locker to scan the shipping information from the shipping e-commerce platform to send the arrival notification.

[0062] In one embodiment, a blockchain-based resource transfer system is provided. The system includes a user terminal, an information collection device, an e-commerce platform, and a logistics platform. The blockchain-based resource transfer method is described using this system, as follows:

[0063] Keys are pre-assigned to each device. User terminals have two asymmetric key pairs: an off-chain real-name key pair and an on-chain anonymous key pair. Information collection devices, e-commerce platforms, and logistics platforms each have one asymmetric key pair: an information encryption key pair, an e-commerce platform key pair, and a logistics platform key pair. The user terminal's on-chain anonymous public key, information encryption public key, e-commerce platform public key, and logistics platform public key are all recorded on the blockchain and bound to their real-world identities.

[0064] In step 1, the information collection device collects user data data and signs it with the information encryption private key to obtain a first signature α. Then, when the information collection device receives the user's off-chain real-name public key, it uses the off-chain real-name public key to encrypt the user data data and α to obtain the ciphertext A(data,α) and exports it to the user terminal.

[0065] This step can protect user privacy by exporting data through encryption. Although the device provider cannot know data and α, the exported ciphertext user data A(data, α) can be stored in the database as verification information. When a dispute arises between the user and the device provider regarding user data, the user has the burden of proof and must use the off-chain real-name private key to decrypt and obtain data and α. At this time, α can ensure the source of data, and the device provider cannot deny it. Data is restored to the original plaintext data, and the user cannot falsify it.

[0066] In step 2, the user terminal uses the off-chain real-name private key to decrypt the ciphertext A(data,α) to obtain data and α, and uses the on-chain anonymous private key to sign α to obtain the second signature β. At the same time, data is encrypted using the e-commerce platform public key to obtain D(data), and D(data), α, and β are sent to the e-commerce platform on the blockchain.

[0067] In this step, the user terminal is encrypted by another pair of on-chain anonymous keys of the user. In this way, the device provider cannot track the user's on-chain identity based on the off-chain real-name key pair used by the user for off-chain real-name authentication, thereby successfully decoupling the user's on-chain anonymous identity and off-chain real-name identity.

[0068] In step three, the e-commerce platform uses its private key to decrypt D(data) to obtain data, α, and β. It then verifies the signature α using the information encryption public key and β using the user's on-chain anonymous public key. This step confirms the data source's information collection device and its on-chain identity. This on-chain identity B is then awarded a certain amount of points. The points reward can be determined based on the value of the information collection device and the user's historical on-chain resource transfer records.

[0069] This step reduces the cost of data falsification and increases the credibility of the information by introducing the endorsement of the information collection device. Furthermore, because the information collection process is anonymous to the shared e-commerce platform, the e-commerce platform can avoid the risk of violating user privacy when utilizing this data, ensuring data security.

[0070] Step 4: The e-commerce platform adds a product entry to the blockchain smart contract. The user terminal uses the anonymous public key on the blockchain to initiate an anonymous online purchase, pays the required points, and encrypts the desired product K, delivery address, and a random number μ using the e-commerce platform's public key. D(K, address, u) and D(u) are then sent to the e-commerce platform via the blockchain. This inclusion of the random number prevents the leakage of private data such as the user's address. Furthermore, to prevent others from knowing the specific items purchased by users through the points paid, the e-commerce platform can further group various products into fixed price tiers to prevent logistics platforms and other platforms from inferring the user's purchase based on the points paid.

[0071] Step 5: The e-commerce platform uses its private key to decrypt D(K, address, u) and D(u), then removes the random number u to obtain K and address. When shipping, the e-commerce platform simultaneously marks item K as sold, encrypts K and address with the logistics platform's public key, and sends E(K, address) to the logistics platform via the blockchain. Furthermore, to prevent the logistics platform from learning user purchases through item status changes, the e-commerce platform accumulates orders for different items and then ships them by item serial number. Furthermore, in this step, the goods are circulated through a decentralized blockchain, making the transaction more decentralized, traceable, anti-counterfeit, and secure than traditional client-server transactions.

[0072] Step 6: After the logistics platform decrypts E(K, address) using the logistics platform private key, it packages the product K and ships it to the designated address. The express locker scans the e-commerce platform information of the shipment and notifies the e-commerce platform of the arrival of the goods. The e-commerce platform then notifies the user to pick up the goods.

[0073] This system ensures the security and reliability of data during anonymous transfer. It introduces asymmetric keys, enabling information collection devices to endorse the data they generate, reducing the cost of data falsification. This ensures that plaintext data can only be decrypted by the recipient of the ciphertext, preventing third parties from accessing it, thereby reducing the risk of data privacy breaches. Furthermore, by making data trustworthy and anonymous, it increases the freedom of e-commerce platforms to use data. Because data is authenticated and circulated through the blockchain and signed and endorsed by the information collection device, its credibility is further enhanced. Furthermore, user data is mined for secondary value. By anonymously sharing this data with e-commerce platforms, users can earn points as rewards. Points can be used to subsequently conduct anonymous product transactions on the blockchain, reducing user shopping costs while protecting privacy.

[0074] In one embodiment, a computer device is provided, which may be a server, comprising a processor, a memory and a network interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource flow method is implemented. Exemplarily, the computer program can be divided into one or more modules, one or more modules are stored in the memory, and are executed by the processor to complete the present invention. One or more modules can be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program in the computer device. The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor. The processor is the control center of the computer device and connects various parts of the entire computer device using various interfaces and lines.

[0075] The memory can be used to store the computer programs and / or modules, and the processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created based on the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0076] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0077] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A resource transfer method based on blockchain, characterized in that: include: The off-chain real-name public key is sent to the information collection device, and the information collection device uses the off-chain real-name public key to encrypt the collected user data and the first signature to obtain ciphertext user data; the first signature is obtained by the information collection device signing the user data using the information encryption private key; Obtain the ciphertext user data and decrypt it using the off-chain real-name private key to obtain the user data and the first signature, and sign the first signature using the on-chain anonymous private key to obtain the second signature; After encrypting the user data using the e-commerce platform's public key, the data is sent to the e-commerce platform along with the first and second signatures via the blockchain. The e-commerce platform decrypts the user data using the platform's private key and, after verifying the first signature using the information encryption public key and the second signature using the on-chain anonymous public key, issues points based on the value of the user data. Obtain the points reward issued by the e-commerce platform.

2. The method according to claim 1, characterized in that The method further comprises: Use the anonymous public key on the chain and the points reward to purchase goods on the e-commerce platform; Using the e-commerce platform's public key to encrypt the product and delivery address to obtain an encrypted shopping order; The encrypted shopping order is sent to the e-commerce platform via blockchain. The e-commerce platform decrypts the encrypted shopping order using the e-commerce platform private key to obtain the product and delivery address. The product and delivery address are encrypted using the logistics platform public key and then sent to the logistics platform. After the logistics platform decrypts the product and delivery address using the logistics platform private key, the product is packaged and shipped to the delivery address, and an arrival notification is fed back to the e-commerce platform. Receive the arrival notification forwarded by the e-commerce platform.

3. The method according to claim 2, characterized in that The method of using the e-commerce platform public key to encrypt the product and the delivery address to obtain an encrypted shopping order includes: Generate random numbers; Encrypting the product, the delivery address, and the random number using the e-commerce platform public key, and encrypting the random number alone using the e-commerce platform public key to obtain an encrypted shopping order; Send the encrypted shopping order to the e-commerce platform.

4. A resource transfer system based on blockchain, characterized in that: include: User terminals, information collection equipment and e-commerce platforms; The user terminal is used to send the off-chain real-name public key to the information collection device; Decrypting the ciphertext user data sent by the information collection device using the off-chain real-name private key to obtain the user data and a first signature, and signing the first signature using the on-chain anonymous private key to obtain a second signature; and encrypting the user data using the e-commerce platform public key, and sending the user data together with the first and second signatures to the e-commerce platform via the blockchain. The information collection device is configured to sign the collected user data using the information encryption private key to obtain a first signature, and to encrypt the user data and the first signature using the off-chain real-name public key to obtain ciphertext user data and send the ciphertext user data to the user terminal; The e-commerce platform is used to decrypt the user data using the e-commerce platform private key, and after verifying that the first signature is correct using the information encryption public key and the second signature is correct using the on-chain anonymous public key, it issues a points reward to the user terminal based on the value of the user data.

5. The system according to claim 4, characterized in that The system also includes a logistics platform; The user terminal is further configured to use the anonymous public key on the chain and the points reward to purchase goods on the e-commerce platform, and to send an encrypted shopping order obtained by encrypting the goods and delivery address using the e-commerce platform public key to the e-commerce platform via the blockchain; The e-commerce platform is further configured to decrypt the encrypted shopping order using the e-commerce platform private key to obtain the product and delivery address; encrypt the product and delivery address using the logistics platform public key and send the encrypted data to the logistics platform; and forward the arrival notification fed back by the logistics platform to the user terminal. The logistics platform is used to use the logistics platform private key to decrypt the goods and the delivery address, then pack the goods and ship them to the delivery address and feedback the arrival notification to the e-commerce platform.

6. The system according to claim 5, characterized in that The user terminal is also used to generate a random number; use the e-commerce platform public key to encrypt the product, the delivery address and the random number, and use the e-commerce platform public key to encrypt the random number alone to obtain an encrypted shopping order; and send the encrypted shopping order to the e-commerce platform.

7. The system according to claim 4, wherein: The e-commerce platform is also used to determine the value of the user data based on the value of the information collection device and the on-chain historical resource flow records of the user terminal.

8. The system according to claim 5, characterized in that The e-commerce platform is also used to encrypt the goods and the delivery address using the public key of the logistics platform in sequence according to the serial number of the goods and then send them to the logistics platform.

9. A computer device comprising a processor and a memory, wherein the memory stores a computer program, wherein: The processor is used to implement the blockchain-based resource transfer method described in any one of claims 1 to 3 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the blockchain-based resource transfer method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Method and system for anonymization of electronic transactions via blockchain

    CN108985927A

  • Business processing method and device, electronic equipment and readable storage medium

    CN114693438A