Compensation method, device, equipment and storage medium for virtual resources in transactions

By determining the trust path and adjusting virtual resources in the preset trust network of the trading platform, the loss problem faced by the service recipients in the transaction is solved, effective compensation for the service recipients is achieved, and the security and reliability of the transaction are improved. sex.

CN114298701BActive Publication Date: 2024-09-03INST OF ADVANCED TECH UNIV OF SCI & TECH OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111648213.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-09-03
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

In the trading platform, when the service recipients face transaction risks, they suffer large losses and cannot obtain effective compensation.

Method used

By determining the selected trust path in the preset trust network, using the first account and the second account to perform transaction operations, and adjusting virtual resources according to the feedback information of the transaction results, compensation for the service recipients is achieved.

Benefits of technology

It enables the service recipient to compensate through virtual resources when he or she is dissatisfied with the transaction, reducing losses and improving transaction security and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114298701B
    Figure CN114298701B
Patent Text Reader

Abstract

The present invention discloses a method for compensating virtual resources in a transaction, comprising: determining a selected trust path in a preset trust network according to a first account and a second account, wherein a plurality of first associated accounts in the selected trust path correspond to a first trusted virtual resource; performing a transaction operation on a target transaction according to the selected trusted path to obtain a transaction result; receiving first feedback information sent by the second account for the transaction result; if the first feedback information does not meet a preset condition, adjusting the first trusted virtual resource according to the first feedback information to compensate the second account for the virtual resource. The present invention also discloses a device, a terminal device, and a storage medium for compensating virtual resources in a transaction. By using the method of the present invention, when feedback information that does not meet the preset condition is obtained, the second account is compensated for virtual resources, thereby realizing compensation for the service recipient corresponding to the second account.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of transaction technology, and in particular to a method, device, equipment and storage medium for compensating virtual resources in a transaction. Background Art

[0002] With the rapid development of the sharing economy, online transactions have become a very common way of trading, providing users with an extremely convenient trading channel.

[0003] Currently, the service recipient finds the service provider on the trading platform and then trades with the service provider, thereby realizing online transactions, wherein the service recipient and the service provider realize the transaction through corresponding accounts.

[0004] However, with the existing transaction method, the service recipients suffer greater losses when faced with transaction risks. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for compensating virtual resources in transactions, aiming to solve the technical problem in the prior art that when the service recipient faces transaction risks, the loss is relatively large.

[0006] To achieve the above object, the present invention proposes a method for compensating virtual resources in a transaction, the method comprising the following steps:

[0007] According to the first account and the second account, a selected trust path is determined in a preset trust network, wherein a plurality of first associated accounts in the selected trust path correspond to a first trusted virtual resource, the plurality of first associated accounts include the first account and the second account, and the first account and the second account correspond to a target transaction;

[0008] According to the selected trust path, a transaction operation is performed on the target transaction to obtain a transaction result;

[0009] receiving first feedback information sent by the second account regarding the transaction result;

[0010] If the first feedback information does not meet a preset condition, the first trusted virtual resource is adjusted according to the first feedback information to compensate the second account with virtual resources.

[0011] Optionally, before the step of determining a trust path in a preset trust network according to the first account and the second account, the method further includes:

[0012] Receiving registration information and a preset virtual resource corresponding to the registration information;

[0013] Creating the second account according to the registration information and the preset virtual resources;

[0014] receiving a trusted account and a preset trust value corresponding to the trusted account sent for the second account, wherein the preset trusted network includes the trusted account;

[0015] According to the preset trust value, the preset virtual resource is allocated to the trusted account to connect the second account to the preset trusted network.

[0016] Optionally, for a terminal device, the terminal device has a preset security area; the step of creating the second account according to the registration information and the preset virtual resources includes:

[0017] Sending the registration information and the preset virtual resources to the preset security area, so that the preset security area creates the second account according to the registration information and the preset virtual resources;

[0018] The step of allocating the preset virtual resource to the trusted account according to the preset trust value to connect the second account to the preset trusted network includes:

[0019] The trusted account and the preset trust value are sent to the preset security zone, so that the preset security zone allocates the preset virtual resource to the trusted account according to the preset trust value, so as to connect the second account to the preset trusted network.

[0020] Optionally, the step of determining a selected trust path in a preset trust network according to the first account and the second account includes:

[0021] Determining an initial trust path in a preset trust network according to the first account and the second account, wherein a plurality of second associated accounts in the initial trust path correspond to a second trusted virtual resource, and the plurality of second associated accounts include the first account and the second account;

[0022] determining a first trust value according to the second trusted virtual resource;

[0023] Obtaining a transaction value of the target transaction;

[0024] If the transaction value does not match the first trust value, obtaining a new target transaction according to the target transaction, wherein the new target transaction includes a new first account number and a new transaction value;

[0025] The target transaction is updated using the new target transaction, and the step of determining an initial trust path in a preset trust network according to the first account and the second account is returned to be executed until the transaction value matches the corresponding second trust value, thereby obtaining a selected trust path.

[0026] Optionally, before the step of performing a transaction operation on the target transaction according to the selected trust path to obtain a transaction result, the method further includes:

[0027] Obtaining a transaction value of the target transaction;

[0028] Obtaining a second trust value according to the transaction value;

[0029] According to the second trust value, a locking operation is performed on the first trusted virtual resource to obtain a locked virtual resource.

[0030] Optionally, the first feedback information includes a first compensation trust value; before the step of adjusting the first trusted virtual resource according to the first feedback information to compensate the second account with virtual resources if the first feedback information does not meet a preset condition, the method further includes:

[0031] If the first feedback information does not meet the preset condition, unlocking the locked virtual resource according to the first feedback information to obtain the unlocked virtual resource;

[0032] The first trusted virtual resource is adjusted according to the unlocked virtual resource and the first compensation trust value to compensate the second account with the virtual resource.

[0033] Optionally, before the step of adjusting the first trusted virtual resource according to the unlocked virtual resource and the first compensation trust value to compensate the second account with virtual resources, the method further includes:

[0034] receiving second feedback information sent by a selected associated account regarding the transaction result, wherein the second feedback information includes a second compensation trust value, and the selected associated account is an account other than the first account and the second account among the plurality of first associated accounts;

[0035] The step of adjusting the first trusted virtual resource according to the unlocked virtual resource and the first compensation trust value to compensate the second account with virtual resources includes:

[0036] The first trusted virtual resource is adjusted according to the unlocked virtual resource, the first compensation trust value, and the second compensation trust value to compensate the second account with virtual resources.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a compensation device for virtual resources in a transaction, the device comprising:

[0038] a determination module, configured to determine a first trust value corresponding to a target transaction, wherein the first trust value is a value of a virtual resource that a first account is trusted by a second account, and the first account and the second account correspond to the target transaction;

[0039] A receiving module, configured to receive feedback information sent by the second account regarding the target transaction;

[0040] The compensation module is used to adjust the first trust value according to the feedback information if the feedback information does not meet the preset condition, so as to compensate the second account with virtual resources.

[0041] In addition, to achieve the above-mentioned purpose, the present invention also proposes a terminal device, which includes: a memory, a processor, and a compensation program for virtual resources in transactions stored in the memory and running on the processor, and when the compensation program for virtual resources in transactions is executed by the processor, the steps of the method for compensating virtual resources in transactions as described in any one of the above items are implemented.

[0042] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a compensation program for virtual resources in a transaction is stored. When the compensation program for virtual resources in a transaction is executed by a processor, the steps of the method for compensating virtual resources in a transaction as described in any of the above items are implemented.

[0043] The technical solution of the present invention proposes a method for compensating virtual resources in a transaction, wherein a selected trust path is determined in a preset trust network according to a first account and a second account, wherein a plurality of first associated accounts in the selected trust path correspond to a first trusted virtual resource, and the plurality of first associated accounts include the first account and the second account, and the first account and the second account correspond to a target transaction; according to the selected trust path, a transaction operation is performed on the target transaction to obtain a transaction result; first feedback information sent by the second account for the transaction result is received; if the first feedback information does not meet a preset condition, the first trusted virtual resource is adjusted according to the first feedback information to compensate the second account for the virtual resource.

[0044] Because, in the existing method, when the service recipient corresponding to the second account is not satisfied with the target transaction with the service provider corresponding to the first account, the service recipient cannot obtain compensation from the transaction. In the present invention, when the service recipient is not satisfied with the target transaction with the service provider, the service recipient sends feedback information of not meeting the preset conditions through the second account, and through the feedback information of not meeting the preset conditions, the second account obtains compensation of virtual resources, thereby realizing compensation for the service recipient. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0046] Figure 1 A schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention;

[0047] Figure 2 It is a flow chart of a first embodiment of a method for compensating virtual resources in a transaction of the present invention;

[0048] Figure 3 A partial schematic diagram of a preset trust network of the present invention;

[0049] Figure 4 It is a structural block diagram of the first embodiment of the compensation device for virtual resources in transactions of the present invention.

[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] Reference Figure 1 , Figure 1 A schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiment of the present invention.

[0053] The terminal device may be a user equipment (UE) such as a mobile phone, a smart phone, a laptop, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, a mobile station (MS), etc. The terminal device may be called a user terminal, a portable terminal, a desktop terminal, etc.

[0054] Typically, the terminal device includes: at least one processor 301, a memory 302, and a compensation program for virtual resources in transactions stored in the memory and executable on the processor, wherein the compensation program for virtual resources in transactions is configured to implement the steps of the method for compensating virtual resources in transactions as described above.

[0055] The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. The processor 301 may also include an AI (Artificial Intelligence) processor, which is used to process the compensation method operation of virtual resources in the transaction, so that the compensation method model of virtual resources in the transaction can be trained and learned autonomously to improve efficiency and accuracy.

[0056] The memory 302 may include one or more storage media, which may be non-transitory. The memory 302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory storage medium in the memory 302 is used to store at least one instruction, which is used to be executed by the processor 301 to implement the method for compensating virtual resources in transactions provided in the method embodiment of the present application.

[0057] In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected via a bus or a signal line. Each peripheral device may be connected to the communication interface 303 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 304, a display screen 305 and a power supply 306.

[0058] The communication interface 303 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 301 and the memory 302. In some embodiments, the processor 301, the memory 302, and the communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302, and the communication interface 303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0059] The radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 304 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 304 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 304 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0060] The display screen 305 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to collect touch signals on the surface or above the surface of the display screen 305. The touch signal can be input to the processor 301 as a control signal for processing. At this time, the display screen 305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 305 can be one, the front panel of the electronic device; in other embodiments, the display screen 305 can be at least two, respectively arranged on different surfaces of the electronic device or in a folding design; in some further embodiments, the display screen 305 can be a flexible display screen, arranged on a curved surface or a folding surface of the electronic device. Even, the display screen 305 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 305 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0061] The power supply 306 is used to power various components in the electronic device. The power supply 306 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 306 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0062] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0063] In addition, an embodiment of the present invention further proposes a storage medium, on which a compensation program for virtual resources in a transaction is stored, and when the compensation program for virtual resources in a transaction is executed by a processor, the steps of the method for compensating virtual resources in a transaction as described above are implemented. Therefore, no further description will be given here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the storage medium embodiment involved in the present application, please refer to the description of the method embodiment of the present application. As an example, the program instructions can be deployed to be executed on a terminal device, or on multiple terminal devices located at one location, or on multiple terminal devices distributed at multiple locations and interconnected by a communication network.

[0064] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the above-mentioned program can be stored in a storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0065] Based on the above hardware structure, an embodiment of the method for compensating virtual resources in transactions of the present invention is proposed.

[0066] Reference Figure 2 , Figure 2 This is a flow chart of a first embodiment of a method for compensating virtual resources in a transaction of the present invention, the method comprising the following steps:

[0067] Step S11: According to the first account and the second account, a selected trust path is determined in a preset trust network, wherein a plurality of first associated accounts in the selected trust path correspond to a first trusted virtual resource, the plurality of first associated accounts include the first account and the second account, and the first account and the second account correspond to a target transaction.

[0068] It should be noted that the execution subject of the present invention is a terminal device, and the terminal device is installed with a compensation program for virtual resources in a transaction. When the terminal device executes the compensation program for virtual resources in a transaction, the steps of the method for compensating virtual resources in a transaction of the present invention are implemented. The terminal device can be any of the above-mentioned electronic devices, such as a phone, a tablet computer or a personal terminal.

[0069] An account usually corresponds to an electronic device, the terminal device corresponds to the electronic device of the second account, and the first account is another electronic device. In the embodiment of the present invention, the first receiving end is used as a reference. Usually a transaction involves two parties, the buyer (the serviced party) is the user to which the second account belongs, and the seller (the service party) is the user to which the first account belongs. In the present invention, the target transaction can be any type of transaction, such as commodity purchase, house rental, car rental, etc.

[0070] The selected trust path is a trust path determined in a preset trust network, the trust path includes multiple first associated accounts, the multiple first associated accounts include the first account and the second account, the selected trust path usually starts from the second account and ends at the first account, any two adjacent first associated accounts will have a trust relationship, corresponding to a first trusted virtual resource, and all first trusted virtual resources corresponding to all first associated accounts are the first trusted virtual resources in step S11.

[0071] Usually, account A trusts account B and will trust a certain value of virtual resources in it. The certain value of virtual resources is a trust virtual resource that account A has for account B.

[0072] It should be noted that, in the present invention, virtual resources have a certain relationship with actual money, for example, one virtual resource corresponds to 100 RMB.

[0073] The selected trust path may include only the first account and the second account, or may include other first associated accounts.

[0074] For example, the first account is trusted by the second account through the third account (other first associated accounts in the selected trust path), and the selected trust path is the second account - the third account - the first account, and the trust order is the extended order of the selected trust path. The trust order in the selected trust path means that the previous account trusts the next account. When the selected trust path includes other first associated accounts other than the first account and the second account, it means that the first account and the second account indirectly trust each other. When the selected trust path does not include other first associated accounts other than the first account and the second account, it means that the first account and the second account directly trust each other.

[0075] Furthermore, before the step of determining a trust path in a preset trust network based on the first account and the second account, the method also includes: receiving registration information and preset virtual resources corresponding to the registration information; creating the second account based on the registration information and the preset virtual resources; receiving a trust account and a preset trust value corresponding to the trust account sent to the second account, the preset trust network including the trust account; and allocating the preset virtual resources to the trust account based on the preset trust value to connect the second account to the preset trust network.

[0076] Among them, the terminal device has a preset security area; the step of creating the second account according to the registration information and the preset virtual resources includes: sending the registration information and the preset virtual resources to the preset security area, so that the preset security area creates the second account according to the registration information and the preset virtual resources; the step of allocating the preset virtual resources to the trust account according to the preset trust value to connect the second account to the preset trust network includes: sending the trust account and the preset trust value to the preset security area, so that the preset security area allocates the preset virtual resources to the trust account according to the preset trust value to connect the second account to the preset trust network.

[0077] Among them, the registration information is the identity information of the user of the second account, etc., the preset virtual resources are the total amount of virtual resources corresponding to the second preset account; the trusted account is the account that the second account can trust, and the trusted account needs to be an account that is connected to the preset trusted network. Each second account can correspond to multiple trusted accounts, and each trusted account corresponds to a preset trust value. The preset trust value of a trusted account refers to the value of the virtual resources allocated by the second account to the trusted account (allocating virtual resources means trusting the account), and the trusted account allocated with the preset trust value is the account trusted by the second account. Therefore, the total amount of virtual resources of the second account is not less than the total amount of the target preset trust values ​​of all corresponding trusted accounts.

[0078] The terminal device instantiates a secure enclave according to the public secure enclave code. The secure enclave will create a virtual resource account controlled by the secure enclave, namely the second account. The second account includes sufficient virtual resources to ensure that the total amount of virtual resources therein is not less than the sum of the preset trust values ​​of the second account to the trusted accounts it trusts. For each trusted account trusted by the second account, the secure enclave of the terminal device generates a transaction information signed by the secure enclave (the transaction information includes the preset trust value of the virtual resources allocated by the second account to the trusted account, and the allocation record of the allocation behavior). The transaction information will transfer the virtual resources of the preset trust value quantity from the secure enclave of the second account to the trusted account. The transaction information is stored in the secure enclave of the terminal device (which may also be other preset security areas), and the preset security area (which may be a secure enclave or a trustzone).

[0079] A trust account trusted by a second account can use the corresponding secure enclave to communicate with the secure enclave of the second account at any time, and request the secure enclave corresponding to the second account to publish transaction information (including transaction information with the trust account, excluding transaction information with other trust accounts) to the blockchain network. If the trust account does this, it means that he has borrowed the trust of the second account. The trust account can transfer virtual resources equal to the amount he has taken away to the secure enclave corresponding to the second account in the future to return the trust he borrowed. The trust account may also not return the trust, in which case it means that the trust account has betrayed the second account and stolen the trust of the second account.

[0080] Each account in the preset trust network can publish its own products to realize transactions. Any account can be the buyer or the seller. For example, in renting a house, one account is the tenant and the other account is the landlord. The tenant corresponds to the second account of the present invention, and the landlord corresponds to the first account of the present invention.

[0081] Usually, the user of the second account finds the corresponding desired product based on his or her demand information. The account to which the desired product belongs is the first account. At this time, the target transaction is a transaction in which the user of the second account wants to purchase the desired product of the first account. The target transaction has not yet been carried out and is still in the process of being determined.

[0082] It is understandable that in the preset trust network, account indexing is performed through the trust value of each account. When an account is not assigned a trust account or is not a trusted account of other accounts, the account cannot index other accounts or be indexed, so the account cannot realize transactions. Therefore, users usually try their best to maintain the trust relationship between their accounts and other users' accounts - trusting other accounts or being trusted by other accounts.

[0083] At the same time, for each account in the preset trust network, it will be connected to the preset trust network in the above manner. At the same time, the trust account of each account in the preset trust network and the preset trust value of the trust account of each account can be stored in the form of a transaction information, and one account and a corresponding trust account generate a transaction information.

[0084] Each account in the preset trust network corresponds to an electronic device, and each electronic device has a preset security area (which can be a secure enclave or trustzone). The corresponding account, virtual resources and the above-mentioned transaction information (including the trusted account and the preset trust value) are stored in the preset security area of ​​each electronic device.

[0085] For the preset security area of ​​an electronic device, only the electronic device to which the account involved in the storage of transaction information belongs (that is, the electronic device corresponding to the account included in the transaction information and the trusted account respectively) can access the preset security area, and other electronic devices cannot. At the same time, the preset security area can also ensure that the holder of the electronic device cannot access it in an illegal manner, thereby ensuring that other unrelated users cannot view the corresponding transaction information, thereby ensuring the security of the transaction information.

[0086] Each account in the preset trust network accesses the preset security area of ​​other accounts through their own accounts to determine the preset trust value and trusted account.

[0087] For example, a trusted account B and a preset trust value b are stored in the preset security area corresponding to account A, and a trusted account C and a preset trust value c are stored in the preset security area corresponding to account B. At this time, by accessing the preset security area of ​​account A, the trusted account B is known, and then the preset security area corresponding to account B can be accessed based on the trusted account B, and then the trusted account C is known. At this time, it is determined that account C can be trusted by A, and the trust value of C trusted by A is the smaller of b and c. Indirect trust between accounts that are not directly trusted is achieved.

[0088] Reference Figure 3 , Figure 3 A partial schematic diagram of a preset trust network of the present invention is shown in FIG. Figure 3 In the default trust network, multiple accounts are included. Figure 3 Only a part is shown, involving a total of 5 accounts, account A to account E. The arrow direction indicates the trust direction between the accounts, and the value above the arrow is the preset trust value. For example, for account A and account B, the arrow pointing to account B indicates that account B is trusted by account A, and the corresponding preset trust value of account A to account B is 6. Generally, the first trusted virtual resource of the present invention refers to all virtual resources in the selected trust path, for example, Figure 3 The virtual resource set whose preset trust value corresponding to the selected trust path is 6 (account A trusts account B) and the preset trust value is 3 (account B trusts account C).

[0089] exist Figure 3 In FIG. 1 , the path formed by the solid arrows is a selected trust path, wherein account A is the second account, account C is the first account, and account B is the other first related account in the selected trust path.

[0090] Further, the step of determining a selected trust path in a preset trust network based on the first account and the second account includes: determining an initial trust path in the preset trust network based on the first account and the second account, wherein multiple second associated accounts in the initial trust path correspond to a second trusted virtual resource, and the multiple second associated accounts include the first account and the second account; determining a first trust value based on the second trusted virtual resource; obtaining a transaction value of the target transaction; if the transaction value does not match the first trust value, obtaining a new target transaction based on the target transaction, the new target transaction including a new first account and a new transaction value; updating the target transaction using the new target transaction, and returning to execute the step of determining an initial trust path in the preset trust network based on the first account and the second account, until the transaction value matches the corresponding second trust value to obtain the selected trust path.

[0091] In this embodiment, one or more trust paths, namely, initial trust paths, are determined in the preset trust network according to the first account and the second account. The structure of the initial trust path is similar to that of the selected trust path, and will not be described in detail. All virtual resources involved in the initial trust path are the second trusted virtual resources.

[0092] Determining the first trust value according to the second trusted virtual resources of the initial trust path means determining, according to the second trusted virtual resources in the initial trust path, that the value corresponding to the second trusted virtual resource with the least second trusted virtual resources is the first trust value, for example, Figure 3 When the solid line in is an initial trust path, the first trust value is 3.

[0093] The target transaction is an actual transaction value (usually the transaction amount, such as the rent of a house), and the transaction value is set by the user of the first account. When the transaction value is not less than the first trust value, the first trust value matches the transaction value. For example, the virtual resource value corresponding to the rent is 6. When the first trust value is not less than 6, the first trust value matches the transaction value, otherwise it does not match. If the transaction value does not match the first trust value, it means that the second account has low trust in the first account, the target transaction is unsafe, and the target transaction is not executed.

[0094] Then, it is necessary to re-determine a new demand product based on the demand information involved in the target transaction. The account to which the new demand product belongs is the new first account, and the transaction value set by the new first account for the new demand product is the new transaction value. Repeat the step of determining the initial trust path in the preset trust network based on the first account and the second account until the obtained first trust value matches the corresponding transaction value. At this time, the initial trust path corresponding to the cycle is determined as the selected trust path.

[0095] In a specific application, the SpeedyMurmurs algorithm is used to forward query messages between accounts in a preset trust network (forwarding query messages according to the above example) with the second account as the starting point, until one or more suitable accounts in the preset trust network lead to the first account - the initial trust path, and further determine the final selected trust path. The SpeedyMurmurs algorithm provides an anonymous mechanism to ensure that other accounts in the preset trust network cannot infer the specific information of the second account and the first account when forwarding query information, that is, other accounts cannot know the trust path corresponding to the first account and the second account, thereby ensuring that the target transaction information is not known by other accounts in the preset trust network, thereby improving security.

[0096] For the target transaction, at least one trust path is obtained. For example, in the example above, account A trusts account B, and account B trusts account C. This is a trust path. The path direction of the trust path is the direction of trust. For example, the path direction is ABC, which means that account A trusts account B, account B trusts account C, and thus account A indirectly trusts account B.

[0097] Step S12: performing a transaction operation on the target transaction according to the selected trust path to obtain a transaction result.

[0098] Step S13: receiving first feedback information sent by the second account regarding the transaction result.

[0099] Step S14: If the first feedback information does not meet a preset condition, the first trusted virtual resource is adjusted according to the first feedback information to compensate the second account with virtual resources.

[0100] The first account and the second account in the selected trust path can conduct transactions safely and directly execute transaction operations to obtain transaction results, that is, operations such as purchasing goods or paying rent to obtain transaction results, indicating that the target transaction has been achieved or completed.

[0101] The second account, as the service recipient, usually receives first feedback information sent by the second account regarding the transaction result after experiencing the product or renting a house - after the target transaction has been achieved or completed.

[0102] If the feedback information indicates that the second account is satisfied with the first account of the target transaction, then the first feedback information meets the preset condition; if the first feedback information indicates that the second account is dissatisfied with the first account of the target transaction, then the first feedback information does not meet the preset condition. When the first feedback information does not meet the preset condition and the second account is dissatisfied, it is necessary to compensate the virtual resources of the second account to reduce the loss of the service recipient of the second account.

[0103] Furthermore, before the step of performing a transaction operation on the target transaction according to the selected trust path to obtain a transaction result, the method also includes: obtaining a transaction value of the target transaction; obtaining a second trust value according to the transaction value; and locking the first trusted virtual resource according to the second trust value to obtain a locked virtual resource.

[0104] The second trust value is usually determined according to the transaction value of the target transaction. Usually, the virtual resources of the second trust value are equal to the transaction value. The locking operation refers to the locking operation of all first trust virtual resources. The value of the locked virtual resources is the second trust value. The locked virtual resources are locked virtual resources. The locked virtual resources are not allowed to be transferred. Usually, only a part of each first trust virtual resource is locked.

[0105] For example Figure 3 In the selected trust path corresponding to the solid line in , the second trust value determined is 2, then it is necessary to lock 2 of the 6 virtual resources that account A trusts account B, and lock 2 of the 3 virtual resources that account B trusts account C. This prevents them from taking away the virtual resources of the second account at any time, ensuring the security and effectiveness of the virtual resources.

[0106] Furthermore, the first feedback information includes a first compensation trust value; before the step of adjusting the first trusted virtual resource according to the first feedback information to compensate the second account with virtual resources if the first feedback information does not meet the preset conditions, the method also includes: if the first feedback information does not meet the preset conditions, unlocking the locked virtual resource according to the first feedback information to obtain the unlocked virtual resource; adjusting the first trusted virtual resource according to the unlocked virtual resource and the first compensation trust value to compensate the second account with virtual resources.

[0107] After obtaining the first feedback information, the locked virtual resources need to be unlocked first to obtain the unlocked virtual resources. At this time, all the first trusted virtual resources in the selected trust path can be traded, and then the first compensation trust value is used to adjust the first trusted virtual resources that can be traded to compensate the second account for the virtual resources. The first compensation trust value is the compensation value that the second account wants to obtain, which usually does not exceed the second trust value.

[0108] Furthermore, before the step of adjusting the first trusted virtual resources according to the unlocked virtual resources and the first compensation trust value to compensate the second account with virtual resources, the method also includes: receiving second feedback information sent by a selected associated account regarding the transaction result, the second feedback information including a second compensation trust value, and the selected associated account is an account other than the first account and the second account among the multiple first associated accounts; the step of adjusting the first trusted virtual resources according to the unlocked virtual resources and the first compensation trust value to compensate the second account with virtual resources includes: adjusting the first trusted virtual resources according to the unlocked virtual resources, the first compensation trust value and the second compensation trust value to compensate the second account with virtual resources.

[0109] In this embodiment, the selected associated account will also send a second feedback message to the transaction, including a second compensation trust value, which is the compensation value that the selected associated account wants to obtain, and is usually not more than the second trust value. At this time, the first compensation trust value and the second compensation trust value need to be used to adjust the first trusted virtual resource that can be traded.

[0110] After obtaining the first feedback information, if the first feedback information does not meet the preset condition, the virtual resource of the first compensation trust value is directly subtracted from the first trusted virtual resource corresponding to the first related account trusted by the second account in the selected trust path (the first related account directly trusted by the second account in the selected trust path), and the adjusted virtual resource (reflected by the value of the virtual resource) is obtained. For example, the trust value of account A to account B is subtracted from 6 by 2, and the value of the new virtual resource is 4, thereby achieving compensation for account A (the second account).

[0111] Typically, the first feedback information also needs to be sent to the receiving end corresponding to the selected relevant account, so that the receiving end outputs the first feedback information and receives the second feedback information sent by the selected relevant account of the receiving end. When the second compensation trust value also included in the second feedback information is not 0, the first trust virtual resource corresponding to the selected relevant account is subtracted from the virtual resource of the second compensation trust value to obtain the adjusted virtual resource (reflected by the value of the virtual resource).

[0112] For example, based on the above example, the trust value of account B in account C is 3 minus 2 (at this time, the second compensation trust value is the same as the first compensation trust value), and the value of the new virtual resource is 1. Then, these 2 virtual resources need to be returned to account A's trust in B, so that account A's trust in account B is restored to the initial 6.

[0113] When the second feedback information includes the second compensation trust value of 0, that is, the first account (eg Figure 3 For example, if the second feedback information of account B includes the second compensation trust value of 0, then the trust value of account B to account C remains unchanged at 3, and the trust value of account A to account B remains at 4.

[0114] If the user of the second account thinks that his transaction experience is not up to expectations - the feedback information does not meet the preset conditions, then he will take back a part of the trust guarantee from his trust in other accounts as compensation for his unsatisfactory experience - that is, the selected related account trusted by the second account among the selected related accounts (the account directly connected to the second account in the selected trust path). The second account transfers the virtual resources of the first compensation trust value from the secure enclave and unlocks the remaining trust guarantee. Afterwards, the second account sends a feedback message to each adjacent selected related account in the selected trust path that has withdrawn the trust guarantee, notifying the adjacent selected related account that a dispute has occurred between the second account and the first account, and the second account has withdrawn a part of the trust guarantee of the adjacent selected related account. The user of each adjacent selected related account that receives the feedback message is free to choose how to redistribute their locked trust guarantee - that is, send the corresponding second feedback information (which may include the second compensation trust value).

[0115] The selected related account can choose to trust the second account and transfer its locked trust guarantee for the next-hop selected related account to the security enclave of the previous-hop account to make up for the reduced trust in itself by the previous-hop selected related account, and notify the next-hop selected related account to make the same choice. The selected related account can also choose to trust the first account and directly unlock its trust guarantee for the next-hop selected related account and allow the previous-hop selected related account to reduce its trust in itself, and notify the subsequent selected related accounts on the trust path to unlock the trust guarantee. Therefore, after all the selected related accounts on all the selected trust paths have made decisions, the second account can definitely get compensation from the trust guarantee somewhere, and it is unpredictable how the trust relationship of other selected related accounts on the path will change for this.

[0116] It can be understood that, based on the above description, if an account in the preset trust network wants to use the preset trust network, the account must exist as a trusted account or be trusted. Every transaction that does not meet expectations will result in a corresponding change in the trust value. If the user does not take it seriously, it will cause the user's account to be unavailable in the preset trust network, thereby ensuring that the trust value of the account in the preset trust network has a high reliability.

[0117] Furthermore, after the step of receiving first feedback information sent by the second account regarding the transaction result, the method further includes: if the first feedback information satisfies the preset condition, unlocking the locked virtual resource to obtain the unlocked virtual resource.

[0118] If the second account believes that the experience of the target transaction meets expectations, the second account sends messages to the selected related accounts in the selected trust path one by one using the SpeedyMurmurs algorithm to notify the selected related accounts on the selected trust path to unlock the trust guarantee. The second account and each selected related account that receives the message except the first account need to unlock the trust guarantee. Similar to the locking of the trust guarantee, the second account lets its secure enclave generate a new virtual resource transaction signed by the secure enclave. This virtual resource transaction will transfer some virtual resources from the secure enclave of the second account to the selected related account of the next hop in the selected trust path trusted by the second account. At the same time, the secure enclave of the second account will delete the old transaction that transfers virtual resources to the selected related account. The new transaction in the secure enclave of the second account has a greater value of virtual resources transferred to the selected related account of the next hop than the old transaction. The increased value is the trust guarantee unlocked by the second account for the selected related account of the next hop.

[0119] At this point, the next hop selected related account can use the secure enclave to access the second account's secure enclave and publish the latest transaction, thereby transferring all trust guarantees to that account.

[0120] After the second account completes unlocking its trust guarantee, it sends a message to the next hop selected related account on the selected trust path. The next hop selected related account that receives the message uses the same method to unlock the trust guarantee for the next hop selected related account on the selected trust path. The second account uses this method to unlock the locked trust on the selected trust path, so that the preset trust network is restored to the state before the second account decides to start the target transaction.

[0121] The technical solution of the present invention proposes a method for compensating virtual resources in a transaction, wherein a selected trust path is determined in a preset trust network according to a first account and a second account, wherein a plurality of first associated accounts in the selected trust path correspond to a first trusted virtual resource, and the plurality of first associated accounts include the first account and the second account, and the first account and the second account correspond to a target transaction; according to the selected trust path, a transaction operation is performed on the target transaction to obtain a transaction result; first feedback information sent by the second account for the transaction result is received; if the first feedback information does not meet a preset condition, the first trusted virtual resource is adjusted according to the first feedback information to compensate the second account for the virtual resource.

[0122] Because, in the existing method, when the service recipient corresponding to the second account is not satisfied with the target transaction with the service provider corresponding to the first account, the service recipient cannot obtain compensation from the transaction. In the present invention, when the service recipient is not satisfied with the target transaction with the service provider, the service recipient sends feedback information of not meeting the preset conditions through the second account, and through the feedback information of not meeting the preset conditions, the second account obtains compensation of virtual resources, thereby realizing compensation for the service recipient.

[0123] Reference Figure 4 , Figure 4 This is a structural block diagram of a first embodiment of a device for compensating virtual resources in a transaction of the present invention. The device is used in a terminal device and is based on the same inventive concept as the above embodiment. The device includes:

[0124] A determination module 10, configured to determine a selected trust path in a preset trust network according to a first account and a second account, wherein a plurality of first associated accounts in the selected trust path correspond to a first trusted virtual resource, the plurality of first associated accounts include the first account and the second account, and the first account and the second account correspond to a target transaction;

[0125] A transaction module 20, configured to perform a transaction operation on the target transaction according to the selected trust path to obtain a transaction result;

[0126] A receiving module 30, configured to receive first feedback information sent by the second account regarding the transaction result;

[0127] The compensation module 40 is configured to adjust the first trusted virtual resource according to the first feedback information to compensate the second account with virtual resources if the first feedback information does not meet a preset condition.

[0128] It should be noted that, since the steps executed by the device of this embodiment are the same as the steps of the aforementioned method embodiment, its specific implementation method and the technical effects that can be achieved can refer to the aforementioned embodiment and will not be repeated here.

[0129] The above descriptions are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.

Claims

1. A method for compensating virtual resources in a transaction, characterized in that: The method comprises the following steps: According to the first account and the second account, a selected trust path is determined in a preset trust network, wherein a plurality of first associated accounts in the selected trust path correspond to a first trusted virtual resource, the plurality of first associated accounts include the first account and the second account, and the first account and the second account correspond to a target transaction; According to the selected trust path, a transaction operation is performed on the target transaction to obtain a transaction result; receiving first feedback information sent by the second account regarding the transaction result; If the first feedback information does not meet the preset condition, adjusting the first trusted virtual resource according to the first feedback information to compensate the second account with virtual resources; The step of determining a selected trust path in a preset trust network according to the first account and the second account includes: Determine an initial trust path in a preset trust network according to the first account and the second account, wherein a plurality of second associated accounts in the initial trust path correspond to a second trusted virtual resource, and the plurality of second associated accounts include the first account and the second account; determining a first trust value according to the second trusted virtual resource; Obtaining a transaction value of the target transaction; If the transaction value does not match the first trust value, obtaining a new target transaction according to the target transaction, wherein the new target transaction includes a new first account number and a new transaction value; The target transaction is updated using the new target transaction, and the step of determining an initial trust path in a preset trust network according to the first account and the second account is returned to be executed until the transaction value matches the corresponding first trust value, and the initial trust path is determined as the selected trust path.

2. The method according to claim 1, characterized in that Before the step of determining a trust path in a preset trust network according to the first account and the second account, the method further includes: Receiving registration information and a preset virtual resource corresponding to the registration information; Creating the second account according to the registration information and the preset virtual resources; receiving a trusted account and a preset trust value corresponding to the trusted account sent for the second account, wherein the preset trusted network includes the trusted account; According to the preset trust value, the preset virtual resource is allocated to the trusted account to connect the second account to the preset trusted network.

3. The method according to claim 2, characterized in that For a terminal device, the terminal device has a preset security area; the step of creating the second account according to the registration information and the preset virtual resources comprises: Sending the registration information and the preset virtual resources to the preset security area, so that the preset security area creates the second account according to the registration information and the preset virtual resources; The step of allocating the preset virtual resource to the trusted account according to the preset trust value to connect the second account to the preset trusted network includes: The trusted account and the preset trust value are sent to the preset security zone, so that the preset security zone allocates the preset virtual resource to the trusted account according to the preset trust value, so as to connect the second account to the preset trusted network.

4. The method according to claim 1, characterized in that Before the step of performing a transaction operation on the target transaction according to the selected trust path to obtain a transaction result, the method further includes: Obtaining a transaction value of the target transaction; Obtaining a second trust value according to the transaction value; According to the second trust value, a locking operation is performed on the first trusted virtual resource to obtain a locked virtual resource.

5. The method according to claim 4, characterized in that The first feedback information includes a first compensation trust value; before the step of adjusting the first trusted virtual resource according to the first feedback information to compensate the second account with virtual resources if the first feedback information does not meet a preset condition, the method further includes: If the first feedback information does not meet the preset condition, unlocking the locked virtual resource according to the first feedback information to obtain the unlocked virtual resource; The first trusted virtual resource is adjusted according to the unlocked virtual resource and the first compensation trust value to compensate the second account with the virtual resource.

6. The method according to claim 5, characterized in that Before the step of adjusting the first trusted virtual resource according to the unlocked virtual resource and the first compensation trust value to compensate the second account with virtual resources, the method further includes: receiving second feedback information sent by a selected associated account regarding the transaction result, wherein the second feedback information includes a second compensation trust value, and the selected associated account is an account other than the first account and the second account among the plurality of first associated accounts; The step of adjusting the first trusted virtual resource according to the unlocked virtual resource and the first compensation trust value to compensate the second account with virtual resources includes: The first trusted virtual resource is adjusted according to the unlocked virtual resource, the first compensation trust value, and the second compensation trust value to compensate the second account with virtual resources.

7. A device for compensating virtual resources in a transaction, characterized in that: The device comprises: a determination module, configured to determine a selected trust path in a preset trust network according to a first account and a second account, wherein a plurality of first associated accounts in the selected trust path correspond to a first trusted virtual resource, the plurality of first associated accounts include the first account and the second account, and the first account and the second account correspond to a target transaction; A transaction module, configured to perform a transaction operation on the target transaction according to the selected trust path to obtain a transaction result; A receiving module, configured to receive first feedback information sent by the second account regarding the transaction result; a compensation module, configured to adjust the first trusted virtual resource according to the first feedback information to compensate the second account with virtual resources if the first feedback information does not meet a preset condition; The determination module is further used to determine an initial trust path in a preset trust network based on the first account and the second account, wherein multiple second associated accounts in the initial trust path correspond to a second trusted virtual resource, and the multiple second associated accounts include the first account and the second account; determine a first trust value based on the second trusted virtual resource; obtain a transaction value of the target transaction; if the transaction value does not match the first trust value, obtain a new target transaction based on the target transaction, and the new target transaction includes a new first account and a new transaction value; update the target transaction using the new target transaction, and return to execute the step of determining an initial trust path in a preset trust network based on the first account and the second account, until the transaction value matches the corresponding first trust value, and the initial trust path is determined as the selected trust path.

8. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and a compensation program for virtual resources in a transaction stored in the memory and running on the processor. When the compensation program for virtual resources in a transaction is executed by the processor, the steps of the method for compensating virtual resources in a transaction as described in any one of claims 1 to 6 are implemented.

9. A storage medium, characterized in that: The storage medium stores a compensation program for virtual resources in a transaction, and when the compensation program for virtual resources in a transaction is executed by a processor, the steps of the method for compensating virtual resources in a transaction as described in any one of claims 1 to 6 are implemented.