CN109872223B - Virtual article transaction method, device, equipment and storage medium - Google Patents

Virtual article transaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN109872223B
CN109872223B CN201910110897.6A CN201910110897A CN109872223B CN 109872223 B CN109872223 B CN 109872223B CN 201910110897 A CN201910110897 A CN 201910110897A CN 109872223 B CN109872223 B CN 109872223B
Authority
CN
China
Prior art keywords
identifier
information
virtual
virtual article
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910110897.6A
Other languages
Chinese (zh)
Other versions
CN109872223A (en
Inventor
朱自强
张腾元
周从军
陈歌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd, Shanghai Xiaodu Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910110897.6A priority Critical patent/CN109872223B/en
Publication of CN109872223A publication Critical patent/CN109872223A/en
Application granted granted Critical
Publication of CN109872223B publication Critical patent/CN109872223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a virtual article transaction method, a virtual article transaction device, virtual article transaction equipment and a storage medium, and a virtual article transaction method, a virtual article transaction device, virtual article transaction equipment and a storage medium. The virtual article transaction method comprises the following steps: receiving a virtual article transaction request from a virtual article seller, wherein the transaction request comprises information of a first identifier; sending a virtual item transaction request to a virtual item issuer; receiving information of a second identifier from the virtual article issuer, wherein the information of the second identifier is obtained by replacing the information of the first identifier by the virtual article issuer; the information of the second identification is provided to the virtual item purchaser. The embodiment of the invention can send the transaction request to the virtual article issuer through the intelligent contract of the block chain to replace the information of the first identifier, and can ensure that the information of the first identifier is only known by the purchaser, thereby solving the dispute problem of the true and false identifiers of both parties of the transaction to a certain extent and reducing the possibility of dispute.

Description

Virtual article transaction method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of information, in particular to a virtual article transaction method, a virtual article transaction device, virtual article transaction equipment and a virtual article transaction storage medium.
Background
A virtual item may be an item of value consisting of an irregular sequence of characters, as opposed to a physical item. Such as a stored value card redemption code, a rights and interests activation code, a telephone fee recharge code, an account number recharge code, game items, and the like. The virtual goods need to be converted into corresponding rights and interests after the activation and exchange of the appointed virtual goods issuer. Like physical goods, people also have trade needs for virtual goods. The transaction of the virtual article can be one-to-one, face-to-face, offline, or online, such as via an instant messaging tool or a transaction platform.
Unlike physical item transactions, virtual item transactions present some serious security concerns. For example, a porcelain hit by the purchaser may occur during the transaction. The buyer successfully redeems the virtual goods after receiving the virtual goods, then misreads the virtual goods sent by the seller, and seeks to resend the new virtual goods by the seller.
The above-mentioned problems are transaction disputes that are common in the virtual article transaction process, and the above-mentioned problems are spread around the authenticity of the virtual article, and disputes occur because the authenticity of the virtual article cannot be guaranteed in the transaction process.
Disclosure of Invention
Embodiments of the present invention provide a virtual article transaction method, apparatus, device and computer-readable storage medium, and a method, apparatus, device and computer-readable storage medium for virtual article transaction, so as to at least solve one or more technical problems in the prior art.
In a first aspect, an embodiment of the present invention provides a virtual article transaction method, including:
receiving a virtual article transaction request from a virtual article seller, wherein the virtual article transaction request comprises information of a first identifier;
sending the virtual item transaction request to a virtual item issuer;
receiving information of a second identifier from the virtual article issuer, wherein the information of the second identifier is obtained by replacing the information of the first identifier by the virtual article issuer;
providing the information of the second identification to a virtual item purchaser.
In one embodiment, said sending said virtual good transaction request to a virtual good issuer comprises:
and encrypting the virtual article transaction request by using a first encryption mode to obtain a ciphertext of the virtual article transaction request, and sending the ciphertext of the virtual article transaction request to the virtual article issuer.
In one embodiment, said providing the information of the second identity to the virtual good purchaser comprises:
and returning the information of the second identification to the virtual item purchaser in response to a viewing request of the virtual item purchaser.
In one embodiment, said receiving information from said second identifier of said virtual good issuer comprises: receiving a first ciphertext of the second identification from the virtual article issuer;
the providing the information of the second identification to the virtual item purchaser comprises: decrypting the first ciphertext of the second identifier to obtain a plaintext of the second identifier; encrypting the plaintext of the second identifier by using a second encryption mode to obtain a second ciphertext of the second identifier; providing the second cryptogram of the second identification to the virtual item purchaser.
In one embodiment, the method further comprises:
and if the error information from the virtual article issuer is received, sending the error information to the virtual article seller.
In a second aspect, an embodiment of the present invention provides a method for virtual item transaction, including:
receiving a virtual article transaction request from a transaction server, wherein the virtual article transaction request comprises information of a first identifier;
replacing the information of the first identifier to obtain information of a second identifier;
and returning the information of the second identifier to the transaction server.
In an embodiment, the replacing the information of the first identifier to obtain the information of the second identifier includes:
judging whether the information of the first identifier is valid or not;
and if the information of the first identifier is valid, replacing the information of the first identifier to obtain the information of the second identifier, and setting the information of the first identifier to be in an invalid state.
In one embodiment, the method further comprises:
and if the information of the first identifier is invalid, returning error information to the transaction server.
In one embodiment, the virtual item transaction request includes a cryptogram of the first identifier;
the replacing the information of the first identifier to obtain the information of the second identifier includes: and decrypting the ciphertext of the first identifier to obtain a plaintext of the first identifier, and replacing the plaintext of the first identifier to obtain a plaintext of a second identifier.
In one embodiment, said returning information of said second identity to said transaction server comprises:
and encrypting the plaintext of the second identifier to obtain a ciphertext of the second identifier, and returning the ciphertext of the second identifier to the transaction server.
In a third aspect, an embodiment of the present invention provides a virtual article transaction apparatus, including:
the virtual article transaction system comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is used for receiving a virtual article transaction request from a virtual article seller, and the virtual article transaction request comprises information of a first identifier;
a first sending unit, configured to send the virtual good transaction request to a virtual good issuer;
a second receiving unit, configured to receive information of a second identifier from the virtual article issuer, where the information of the second identifier is obtained by replacing the information of the first identifier with the information of the virtual article issuer;
an information providing unit for providing the information of the second identifier to a virtual item purchaser.
In one embodiment, the first sending unit is configured to:
and encrypting the virtual article transaction request by using a first encryption mode to obtain a ciphertext of the virtual article transaction request, and sending the ciphertext of the virtual article transaction request to the virtual article issuer.
In one embodiment, the information providing unit is configured to:
and returning the information of the second identification to the virtual item purchaser in response to a viewing request of the virtual item purchaser.
In one embodiment, the second receiving unit is configured to: receiving a first ciphertext of the second identification from the virtual article issuer;
the information providing unit is used for: decrypting the first ciphertext of the second identifier to obtain a plaintext of the second identifier; encrypting the plaintext of the second identifier by using a second encryption mode to obtain a second ciphertext of the second identifier; providing the second cryptogram of the second identification to the virtual item purchaser.
In one embodiment, the wireless communication device further includes a second transmitting unit, configured to:
and if the error information from the virtual article issuer is received, sending the error information to the virtual article seller.
In a fourth aspect, an embodiment of the present invention provides an apparatus for virtual item transaction, including:
a third receiving unit, configured to receive a virtual item transaction request from a transaction server, where the virtual item transaction request includes information of the first identifier;
the replacing unit is used for replacing the information of the first identifier to obtain information of a second identifier;
and the return unit is used for returning the information of the second identifier to the transaction server.
In one embodiment, the permutation unit is configured to:
judging whether the information of the first identifier is valid or not;
and if the information of the first identifier is valid, replacing the information of the first identifier to obtain the information of the second identifier, and setting the information of the first identifier to be in an invalid state.
In one embodiment, the return unit is further configured to:
and if the information of the first identifier is invalid, returning error information to the transaction server.
In one embodiment, the virtual item transaction request includes a cryptogram of the first identifier;
the permutation unit is used for: and decrypting the ciphertext of the first identifier to obtain a plaintext of the first identifier, and replacing the plaintext of the first identifier to obtain a plaintext of a second identifier.
In one embodiment, the return unit is configured to:
and encrypting the plaintext of the second identifier to obtain a ciphertext of the second identifier, and returning the ciphertext of the second identifier to the transaction server.
In a fifth aspect, an embodiment of the present invention provides a virtual article transaction device, where functions of the device may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In a sixth aspect, an embodiment of the present invention provides an apparatus for virtual article transaction, where the functions of the apparatus may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible design, the structure of the device includes a processor and a memory, the memory is used for storing a program supporting the device to execute the method, and the processor is configured to execute the program stored in the memory. The device may also include a communication interface for communicating with other devices or a communication network.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method in any one of the first aspect.
The technical scheme has the following advantages or beneficial effects: by replacing the information of the first identifier, the information of the first identifier of the transaction can be ensured to be known by only one buyer, so that the dispute problem of true and false identifiers between a seller and a buyer of the transaction is solved to a certain extent, and the possibility of dispute in the virtual article transaction process is reduced.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present invention will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
FIG. 1 is a flow chart of a service process of a virtual good transaction method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of data interaction of a virtual article transaction method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a service process of a virtual good transaction method according to an embodiment of the present invention;
FIG. 4 is a service process flow diagram of a method for virtual good trading provided by an embodiment of the present invention;
FIG. 5 is a flow chart of information exchange of a virtual article transaction method according to an embodiment of the present invention;
fig. 6 is a block diagram illustrating a virtual article transaction apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram illustrating a virtual article transaction apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of an apparatus for trading virtual goods according to an embodiment of the present invention;
fig. 9 is a block diagram illustrating a virtual item transaction apparatus according to an embodiment of the present invention.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
An embodiment of the present invention provides a virtual article transaction method, as shown in fig. 1, the virtual article transaction method according to the embodiment of the present invention includes:
step S110, receiving a virtual article transaction request from a virtual article seller, wherein the virtual article transaction request comprises information of a first identifier;
step S120, sending the virtual article transaction request to a virtual article issuer;
step S130, receiving information of a second identifier from the virtual article issuer, wherein the information of the second identifier is obtained by replacing the information of the first identifier by the virtual article issuer;
in step S140, the information of the second identifier is provided to the virtual item purchaser.
In a possible implementation manner, the virtual article transaction method provided by the embodiment of the invention can be applied to a transaction server.
In the virtual article transaction process, the key to solve the dispute problem is that only one buyer in both transaction parties can use the virtual article. In the embodiment of the invention, the transaction server firstly sends the information of the first identifier in the transaction request from the virtual article seller to the virtual article issuer. The information of the first identifier may be a segment of character combination string code for identifying the virtual object, or may be an identifier code of other forms. And then the virtual article issuer carries out replacement processing on the information of the first identifier to obtain the information of the second identifier, and returns the information of the second identifier to the transaction server. And finally, the transaction server provides the information of the second identifier to the virtual article purchaser. Wherein the replacement process may include a fidelity replacement of the information of the first identity. The fidelity replacement is a service provided by an article issuer, and the main purpose of the fidelity replacement is to ensure that the information of the first identifier of the transaction is only known by one buyer, so that the dispute between the seller and the buyer of the transaction about the true and false character combination string code is solved.
One of the above technical solutions has the following advantages or beneficial effects: by replacing the information of the first identifier, the information of the first identifier of the transaction can be ensured to be known by only one buyer, so that the dispute problem of true and false identifiers between a seller and a buyer of the transaction is solved to a certain extent, and the possibility of dispute in the virtual article transaction process is reduced.
The implementation manner of the transaction server can include different implementation manners such as private service or block chain distributed service. For example, a private cloud server may be built for individual use by one customer and thus may provide effective control over data, security, and quality of service.
As mentioned above, the key to solving the dispute problem that may exist in virtual article transaction is how to ensure that the virtual article is real and effective in the whole transaction process. Due to the characteristics of decentralized block chain, non-falsifiable data, traceability and the like, the intelligent contract of the block chain can be used as the transaction server in the embodiment of the invention, and the virtual article transaction method in the embodiment can be executed.
An intelligent contract is a set of commitments defined in digital form, including agreements on which contract participants can execute the commitments. That is, a smart contract is a set of protocols that can automatically perform certain tasks. An intelligent contract is equivalent to building a contract in a computer system that is readable by each participant. Briefly, a smart contract is a piece of code written on a blockchain. When a certain event is triggered, the intelligent appointment is executed immediately. If complex business logic needs to be completed by using the blockchain technology, intelligent contracts need to be deployed on the blockchain, and the execution of codes in the intelligent contracts is triggered when the blockchain detects that certain specific data meets a preset condition. The logic processing related to the embodiment of the invention can be deployed on the block chain by creating the intelligent contract so as to complete the transaction process of the virtual article.
Specifically, in step S110, the smart contract receives a virtual item transaction request from a virtual item seller, where the virtual item transaction request includes information of the first identifier of the virtual item requesting the transaction and may further include information of the buyer. In step S120, the smart contract sends the virtual good transaction request to the virtual good issuer, so that the virtual good issuer performs fidelity replacement on the information of the first identifier to obtain information of the second identifier. In steps S130 and S140, the smart contract receives the information of the second identifier from the virtual item issuer and provides the information of the second identifier to the virtual item purchaser.
In one embodiment, said sending said virtual good transaction request to a virtual good issuer comprises:
and encrypting the virtual article transaction request by using a first encryption mode to obtain a ciphertext of the virtual article transaction request, and sending the ciphertext of the virtual article transaction request to the virtual article issuer.
In one example, the first encryption mode may use an asymmetric encryption algorithm for encryption, such as an RSA encryption algorithm. Since RSA is proposed by Ronad Livister (Ron Rivest), Adi Samor (Adi Shamir), and Ronad Adleman (Leonard Adleman), the RSA algorithm is named by the initial letters of their three surnames. In the above embodiment, the first encryption scheme may encrypt the virtual good transaction request based on a public key provided by a virtual good issuer to which the virtual good belongs.
Fig. 2 is a schematic data interaction diagram of a virtual article transaction method according to an embodiment of the present invention. As shown in fig. 2, when a seller needs to sell a virtual article to a buyer, information of a first identifier of the virtual article, such as a segment of string code, is first submitted to an intelligent contract of a block chain. At this time, the intelligent contract receives the information of the first identifier of the virtual article sent by the seller and automatically triggers the execution operation, wherein the execution operation may include:
1) the character combination string code of the virtual article is RSA encrypted according to the public key provided by the virtual article issuer to which the virtual article belongs, and is transmitted to the interface service provided by the virtual article issuer to which the virtual article belongs. Wherein the public key provided by the virtual good issuer is provided when the virtual good issuer is registered on the smart contract, and the private key is maintained by the virtual good issuer.
2) Waiting for the return of the virtual good issuer's interface service.
Wherein the returning of the interface service of the virtual good issuer comprises: the virtual article issuer detects whether the character combination string code is valid. And if the character combination string code is invalid, returning error information to the intelligent contract. If the character string code is valid, then the character string code is subjected to fidelity replacement to generate a new character string code with equivalent value and other utilities, namely the information of the second identifier. The information of the second identifier is then transmitted back to the smart contract in RSA-encrypted form. Fig. 3 shows a service processing flow of a virtual article issuer of the virtual article transaction method according to an embodiment of the present invention.
In one embodiment, said receiving information from said second identifier of said virtual good issuer comprises: receiving a first ciphertext of the second identification from the virtual article issuer;
the providing the information of the second identification to the virtual item purchaser comprises: decrypting the first ciphertext of the second identifier to obtain a plaintext of the second identifier; encrypting the plaintext of the second identifier by using a second encryption mode to obtain a second ciphertext of the second identifier; providing the second cryptogram of the second identification to the virtual item purchaser.
In one example, the second encryption scheme may employ an asymmetric encryption algorithm for encryption, such as an RSA encryption algorithm. The second encryption mode is to encrypt the plaintext of the second identifier by the public key of the purchaser.
Referring to fig. 2, the smart contract receives the encrypted new virtual article with utility such as equivalent value from the virtual article issuer, for example, receives a new character combination string code with utility such as equivalent value, decrypts the character combination string code, encrypts the character combination string code with the public key of the purchaser, and stores the encrypted character combination string code in the user transaction data table in the form of ciphertext. The public key of the purchaser is automatically generated when the purchaser performs user registration and is stored in the user data table, and the private key of the purchaser is stored offline by the purchaser.
In one embodiment, said providing the information of the second identity to the virtual good purchaser comprises:
and returning the information of the second identification to the virtual item purchaser in response to a viewing request of the virtual item purchaser.
Referring to FIG. 2, when the buyer needs to view the information of the second identifier of the virtual item, the intelligent contract will return the user transaction record of the buyer in the user transaction data table. The purchaser decrypts locally to obtain the final fidelity-converted character combination string code. No third party can obtain the character combination string code in the whole process, and the absolute safety of the character combination string code is guaranteed.
Because the virtual article transaction mode is an online mode, if an encryption mode is not adopted, the transmission process or the storage process may suffer from the problem of data theft. In the embodiment of the invention, in the whole transaction process, the data transmission and storage are encrypted by adopting an asymmetric encryption algorithm, so that the data security is ensured and the data cannot be stolen by any third party.
Another technical scheme in the above technical scheme has the following advantages or beneficial effects: data transmission and storage in the transaction process are encrypted by adopting an encryption algorithm, so that the data security is ensured, and the possibility that the virtual goods are stolen in the transaction process is greatly reduced. The safe transaction environment can ensure the smooth transaction and further stimulate the increase of the transaction amount.
In one embodiment, the method further comprises:
and if the error information from the virtual article issuer is received, sending the error information to the virtual article seller.
As described above, after receiving a virtual article transaction request sent by a seller, the intelligent contract transmits the transaction request to the interface service provided by the virtual article issuer to which the transaction request belongs, and waits for the return of the interface service of the virtual article issuer. The returning of the interface service of the virtual good issuer includes: the virtual article issuer detects whether the character combination string code is valid. And if the string code is invalid, returning error information to the intelligent contract.
In one embodiment, upon receiving the error message from the virtual good issuer, the smart contract sends a corresponding error prompt to the virtual good seller and terminates the transaction. In another embodiment, upon receiving the error message from the virtual good issuer, the smart contract sends a corresponding error prompt message to the virtual good seller. And according to the error prompt message, the virtual article seller terminates the transaction or resends the virtual article transaction request.
An embodiment of the present invention provides a method for virtual item transaction, and as shown in fig. 4, the method for virtual item transaction of the embodiment of the present invention includes:
step S410, receiving a virtual article transaction request from a transaction server, wherein the virtual article transaction request comprises information of a first identifier;
step S420, the information of the first identification is replaced to obtain the information of a second identification;
step S430, returning the information of the second identifier to the transaction server.
In a possible implementation manner, the virtual article transaction method provided by the embodiment of the invention can be applied to a virtual article issuer.
As described above, in the virtual article transaction process, the key to solving the dispute problem is how to ensure the authenticity of the virtual article and only one of the two parties of the transaction can use the virtual article. In the embodiment of the invention, the transaction server sends the transaction request of the virtual article to the virtual article issuer, wherein the transaction request comprises the information of the first identifier. For example, the first identified information may be a segment of a string code identifying the virtual item. And then the virtual article issuer replaces the information of the first identifier to obtain the information of the second identifier and returns the information of the second identifier to the transaction server. Wherein the replacement process may include a fidelity replacement of the information of the first identity. The fidelity replacement is a service provided by the goods issuer, and the main purpose of the fidelity replacement is to ensure that the information of the first identifier of the transaction is only known by one buyer, for example, the character combination string code for identifying the virtual goods is only known by one buyer, even is unknown to the seller, which can solve the dispute between the seller and the buyer about the true and false character combination string code to some extent. In one example, the information of the first identifier is in the form of a character combination string code, and the fidelity permutation may include: 1) setting the character combination string code of the seller to be in a failure state; 2) and generating a new string code with equivalent value and equal effect.
In addition, due to the characteristics of decentralized block chain, data non-falsification, traceability and the like, the intelligent contract of the block chain can be used as the transaction server in the embodiment of the invention.
One of the above technical solutions has the following advantages or beneficial effects: by replacing the information of the first identifier, the information of the first identifier of the transaction can be ensured to be known by only one buyer, so that the dispute problem of true and false identifiers between a seller and a buyer of the transaction is solved to a certain extent, and the possibility of dispute in the virtual article transaction process is reduced.
Fig. 5 is a flow chart of information replacement of the virtual article transaction method according to the embodiment of the present invention. As shown in fig. 5, in an embodiment, the replacing the information of the first identifier to obtain information of a second identifier includes:
step S510, determining whether the information of the first identifier is valid;
step S520, if the information of the first identifier is valid, the information of the first identifier is replaced to obtain the information of the second identifier, and the information of the first identifier is set to be in an invalid state.
One of the potential safety hazards in virtual item transactions is fraudulent shipping. The virtual item has already been redeemed by the seller at the time of sale of the virtual item. At this point the virtual item has failed, yet the seller still intentionally sells the failed virtual item to the purchaser. The purchaser therefore fails to purchase a valid virtual item, but at this point the money has been paid to the seller.
In view of this, the interface service of the virtual article issuer performs an authenticity check on the information of the first identifier, that is, determines whether the information of the first identifier is valid. If the information of the first identifier is in the form of a string code, an exemplary verification method includes: and pre-storing the effective character combination string code in a database of a virtual article issuer, and comparing the effective character combination string code with data in the database to verify the authenticity of the character combination string code. If the information of the first identification is valid, the character combination string code provided by the seller is subjected to fidelity replacement to obtain a new string code with equivalent value and other effects, and the character combination string code provided by the seller is set to be in a failure state.
Referring to fig. 5, in one embodiment, the method further comprises:
step S530, if the information of the first identifier is invalid, returning an error message to the transaction server.
In the above example, if the character combination string provided by the seller is an invalid string, it is immediately returned to the intelligent contract, and the intelligent contract sends a corresponding error prompt to the virtual goods seller and terminates the transaction. Or the intelligent dating point sends corresponding error prompt information to the virtual article seller, so that the virtual article seller terminates the transaction or resends the virtual article transaction request according to the error prompt information.
In one embodiment, the virtual item transaction request includes a cryptogram of the first identifier;
the replacing the information of the first identifier to obtain the information of the second identifier includes: and decrypting the ciphertext of the first identifier to obtain a plaintext of the first identifier, and replacing the plaintext of the first identifier to obtain a plaintext of a second identifier.
In one embodiment, said returning information of said second identity to said transaction server comprises:
and encrypting the plaintext of the second identifier to obtain a ciphertext of the second identifier, and returning the ciphertext of the second identifier to the transaction server.
In the above process, the encryption and decryption processes may also be performed by using an asymmetric encryption algorithm, for example, an RSA encryption algorithm.
Another technical scheme in the above technical scheme has the following advantages or beneficial effects: data transmission and storage in the transaction process are encrypted by adopting an encryption algorithm, so that the data security is ensured, and the possibility that the virtual goods are stolen in the transaction process is greatly reduced.
Fig. 3 is a service processing flow chart of a virtual article transaction method according to an embodiment of the present invention. As shown in fig. 3, in step 3.1, after receiving the virtual article in the encrypted transaction request transmitted by the intelligent contract, the interface service of the virtual article issuer first performs RSA decryption to obtain the plaintext virtual article character combination string code. And then executing step 3.2, the interface service of the virtual article issuer carries out authenticity check on the character combination string code, and judges whether the character combination string code is real and available. If the string code is not available, i.e. in case of an invalid string code, an error code is returned in the result information returned to the smart contract in step 3.4, so that the smart contract sends a corresponding error prompt to the virtual goods seller and terminates the transaction. If the character combination string code is truly available, that is, the case of a valid string code, step 3.3 is executed to perform a fidelity replacement operation, and the received virtual article is invalidated to generate a new equivalent virtual article. Namely, the original character combination string code is set to be in a failure state, and a section of new string code with equivalent value and other effects is produced at the same time. In step 3.4, the generated new string code will be transmitted back to the smart contract in RSA encrypted form.
The embodiment of the invention also provides a virtual article transaction device which can be applied to a transaction server.
As shown in fig. 6, the virtual article transaction apparatus according to the embodiment of the present invention may include:
a first receiving unit 100, configured to receive a virtual article transaction request from a virtual article seller, where the virtual article transaction request includes information of a first identifier;
a first sending unit 200, configured to send the virtual good transaction request to a virtual good issuer;
a second receiving unit 300, configured to receive information of a second identifier from the virtual article issuer, where the information of the second identifier is obtained by replacing the information of the first identifier by the virtual article issuer;
an information providing unit 400 for providing the information of the second identifier to the virtual item purchaser. In one embodiment, the first sending unit 200 is configured to:
and encrypting the virtual article transaction request by using a first encryption mode to obtain a ciphertext of the virtual article transaction request, and sending the ciphertext of the virtual article transaction request to the virtual article issuer.
In one embodiment, the information providing unit 400 is configured to:
and returning the information of the second identification to the virtual item purchaser in response to a viewing request of the virtual item purchaser.
In one embodiment, the second receiving unit 300 is configured to: receiving a first ciphertext of the second identification from the virtual article issuer;
the information providing unit 400 is configured to: decrypting the first ciphertext of the second identifier to obtain a plaintext of the second identifier; encrypting the plaintext of the second identifier by using a second encryption mode to obtain a second ciphertext of the second identifier; providing the second cryptogram of the second identification to the virtual item purchaser.
Fig. 7 is a block diagram of a virtual article transaction apparatus according to an embodiment of the present invention. As shown in fig. 7, in an embodiment, the apparatus further includes a second sending unit 500, where the second sending unit 500 is configured to:
and if the error information from the virtual article issuer is received, sending the error information to the virtual article seller.
The embodiment of the invention also provides a device for virtual article transaction, which can be applied to a virtual article issuer. As shown in fig. 8, the apparatus for trading virtual goods according to the embodiment of the present invention may include:
a third receiving unit 600, configured to receive a virtual item transaction request from a transaction server, where the virtual item transaction request includes information of the first identifier;
a replacing unit 700, configured to replace the information of the first identifier to obtain information of a second identifier;
a returning unit 800, configured to return the information of the second identifier to the transaction server.
In one embodiment, the permutation unit 700 is configured to:
judging whether the information of the first identifier is valid or not;
and if the information of the first identifier is valid, replacing the information of the first identifier to obtain the information of the second identifier, and setting the information of the first identifier to be in an invalid state.
In one embodiment, the return unit 800 is further configured to:
and if the information of the first identifier is invalid, returning error information to the transaction server.
In one embodiment, the virtual item transaction request includes a cryptogram of the first identifier;
the permutation unit 700 is configured to: and decrypting the ciphertext of the first identifier to obtain a plaintext of the first identifier, and replacing the plaintext of the first identifier to obtain a plaintext of a second identifier.
In one embodiment, the return unit 800 is configured to:
and encrypting the plaintext of the second identifier to obtain a ciphertext of the second identifier, and returning the ciphertext of the second identifier to the transaction server.
The functions of each unit in the virtual article transaction apparatus according to the embodiment of the present invention may refer to the related description of the above method, and are not described herein again.
In one possible design, the virtual article trading device and the device for virtual article trading structurally include a processor and a memory, the memory is used for storing programs for supporting the virtual article trading device to execute the virtual article trading method, and the processor is configured to execute the programs stored in the memory. The virtual item transaction device may also include a communication interface, the virtual item transaction device in communication with other devices or a communication network.
Fig. 9 is a block diagram illustrating a virtual item transaction apparatus according to an embodiment of the present invention. As shown in fig. 9, the apparatus includes: a memory 101 and a processor 102, the memory 101 having stored therein a computer program operable on the processor 102. The processor 102, when executing the computer program, implements the virtual article transaction method in the above embodiments. The number of the memory 101 and the processor 102 may be one or more.
The apparatus further comprises:
and the communication interface 103 is used for communicating with external equipment and performing data interactive transmission.
Memory 101 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 101, the processor 102 and the communication interface 103 are implemented independently, the memory 101, the processor 102 and the communication interface 103 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
Optionally, in a specific implementation, if the memory 101, the processor 102, and the communication interface 103 are integrated on a chip, the memory 101, the processor 102, and the communication interface 103 may complete communication with each other through an internal interface.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program, which when executed by a processor, implements any one of the above virtual article transaction methods.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present invention, and these should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (23)

1. A virtual item transaction method, comprising:
receiving a virtual article transaction request from a virtual article seller, wherein the virtual article transaction request comprises information of a first identifier for identifying a virtual article and information of a buyer;
sending the virtual item transaction request to a virtual item issuer;
receiving information of a second identifier from the virtual article issuer, wherein the information of the second identifier is obtained by replacing the information of the first identifier by the virtual article issuer, and the information of the second identifier is used for identifying a new virtual article with equivalent value and the like, and the information of the first identifier is set to be invalid after replacement;
providing the information of the second identification to a virtual item purchaser.
2. The method of claim 1, wherein sending the virtual item transaction request to a virtual item issuer comprises:
and encrypting the virtual article transaction request by using a first encryption mode to obtain a ciphertext of the virtual article transaction request, and sending the ciphertext of the virtual article transaction request to the virtual article issuer.
3. The method of claim 1, wherein providing the information of the second identification to a virtual item purchaser comprises:
and returning the information of the second identification to the virtual item purchaser in response to a viewing request of the virtual item purchaser.
4. The method of claim 1,
the receiving information of the second identification from the virtual good issuer comprises: receiving a first ciphertext of the second identification from the virtual article issuer;
the providing the information of the second identification to the virtual item purchaser comprises: decrypting the first ciphertext of the second identifier to obtain a plaintext of the second identifier; encrypting the plaintext of the second identifier by using a second encryption mode to obtain a second ciphertext of the second identifier; providing the second cryptogram of the second identification to the virtual item purchaser.
5. The method according to any one of claims 1-4, further comprising:
and if the error information from the virtual article issuer is received, sending the error information to the virtual article seller.
6. A method for virtual item trading, comprising:
receiving a virtual item transaction request from a transaction server, wherein the virtual item transaction request comprises information of a first identifier for identifying a virtual item and information of a buyer;
replacing the information of the first identifier to obtain information of a second identifier, wherein the information of the second identifier is used for identifying a new virtual article with equivalent value and other effects as the virtual article, and the information of the first identifier is set to be invalid after replacement;
and returning the information of the second identifier to the transaction server.
7. The method of claim 6, wherein the replacing the information of the first identifier to obtain the information of the second identifier comprises:
judging whether the information of the first identifier is valid or not;
and if the information of the first identifier is valid, replacing the information of the first identifier to obtain the information of the second identifier.
8. The method of claim 7, further comprising:
and if the information of the first identifier is invalid, returning error information to the transaction server.
9. The method according to claim 6 or 7, wherein the virtual item transaction request includes a cryptogram of the first identifier;
the replacing the information of the first identifier to obtain the information of the second identifier includes: and decrypting the ciphertext of the first identifier to obtain a plaintext of the first identifier, and replacing the plaintext of the first identifier to obtain a plaintext of a second identifier.
10. The method of claim 9, wherein said returning information of said second identifier to said transaction server comprises:
and encrypting the plaintext of the second identifier to obtain a ciphertext of the second identifier, and returning the ciphertext of the second identifier to the transaction server.
11. A virtual item transaction apparatus, comprising:
a first receiving unit, configured to receive a virtual item transaction request from a virtual item seller, where the virtual item transaction request includes information of a first identifier for identifying a virtual item and information of a buyer;
a first sending unit, configured to send the virtual good transaction request to a virtual good issuer;
a second receiving unit, configured to receive information of a second identifier from the virtual article issuer, where the information of the second identifier is obtained by replacing the information of the first identifier by the virtual article issuer, and the information of the second identifier is used to identify a new virtual article with a utility equivalent to the virtual article, and the information of the first identifier is set to be invalid after the replacement;
an information providing unit for providing the information of the second identifier to a virtual item purchaser.
12. The apparatus of claim 11, wherein the first sending unit is configured to:
and encrypting the virtual article transaction request by using a first encryption mode to obtain a ciphertext of the virtual article transaction request, and sending the ciphertext of the virtual article transaction request to the virtual article issuer.
13. The apparatus of claim 11, wherein the information providing unit is configured to:
and returning the information of the second identification to the virtual item purchaser in response to a viewing request of the virtual item purchaser.
14. The apparatus of claim 11,
the second receiving unit is configured to: receiving a first ciphertext of the second identification from the virtual article issuer;
the information providing unit is used for: decrypting the first ciphertext of the second identifier to obtain a plaintext of the second identifier; encrypting the plaintext of the second identifier by using a second encryption mode to obtain a second ciphertext of the second identifier; providing the second cryptogram of the second identification to the virtual item purchaser.
15. The apparatus according to any of claims 11-14, further comprising a second transmitting unit configured to:
and if the error information from the virtual article issuer is received, sending the error information to the virtual article seller.
16. An apparatus for virtual item trading, comprising:
a third receiving unit, configured to receive a virtual good transaction request from the transaction server, where the virtual good transaction request includes information of the first identifier for identifying the virtual good and information of the purchaser;
the replacing unit is used for replacing the information of the first identifier to obtain information of a second identifier, the information of the second identifier is used for identifying a new virtual article with equivalent value and other effects as the virtual article, and the information of the first identifier is set to be invalid by the replacing unit after replacement;
and the return unit is used for returning the information of the second identifier to the transaction server.
17. The apparatus of claim 16, wherein the permutation unit is configured to:
judging whether the information of the first identifier is valid or not;
and if the information of the first identifier is valid, replacing the information of the first identifier to obtain the information of the second identifier.
18. The apparatus of claim 17, wherein the return unit is further configured to:
and if the information of the first identifier is invalid, returning error information to the transaction server.
19. The apparatus according to claim 16 or 17, wherein the virtual item transaction request includes a cryptogram of the first identifier;
the permutation unit is used for: and decrypting the ciphertext of the first identifier to obtain a plaintext of the first identifier, and replacing the plaintext of the first identifier to obtain a plaintext of a second identifier.
20. The apparatus of claim 19, wherein the return unit is configured to:
and encrypting the plaintext of the second identifier to obtain a ciphertext of the second identifier, and returning the ciphertext of the second identifier to the transaction server.
21. A virtual item transaction apparatus, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-5.
22. An apparatus for virtual item trading, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 6-10.
23. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-10.
CN201910110897.6A 2019-02-12 2019-02-12 Virtual article transaction method, device, equipment and storage medium Active CN109872223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910110897.6A CN109872223B (en) 2019-02-12 2019-02-12 Virtual article transaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910110897.6A CN109872223B (en) 2019-02-12 2019-02-12 Virtual article transaction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109872223A CN109872223A (en) 2019-06-11
CN109872223B true CN109872223B (en) 2021-05-28

Family

ID=66918633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910110897.6A Active CN109872223B (en) 2019-02-12 2019-02-12 Virtual article transaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109872223B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458983B (en) * 2019-06-25 2020-08-18 珠海格力电器股份有限公司 Article picking method, device and computer readable storage medium
CN112734535B (en) * 2021-01-28 2022-11-04 上海莉莉丝科技股份有限公司 Method, system, device and medium for purchasing virtual goods in application

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753745A (en) * 2008-12-08 2010-06-23 中国移动通信集团宁夏有限公司 Method and device for preventing one-card multi-charging of prepaid card
CN104574045A (en) * 2013-10-15 2015-04-29 乐点卡数位科技股份有限公司 Method capable of guaranteeing network transaction security of buyer and seller
CN105578449A (en) * 2016-03-02 2016-05-11 深圳市思博威尔斯科技有限公司 Method and device for changing virtual SIM card
CN106209827A (en) * 2016-07-08 2016-12-07 安徽四创电子股份有限公司 Virtual card port system based on container cloud and service creating method thereof
CN107067239A (en) * 2017-04-25 2017-08-18 腾讯科技(深圳)有限公司 Apps server and its information processing method and device
CN107609851A (en) * 2017-10-24 2018-01-19 广州四三九九信息科技有限公司 Virtual coin recharge method, device and gaming platform server
CN107979585A (en) * 2017-02-08 2018-05-01 腾讯科技(深圳)有限公司 A kind of data processing method, applications client and system
CN109313762A (en) * 2016-03-08 2019-02-05 加拿大皇家银行 For characterizing the system for securely generating and handling, the method and apparatus of the data set of stored value payment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866288A (en) * 2005-05-17 2006-11-22 中兴通讯股份有限公司 Virtual pawnshop of network game and transaction method thereof
CN101079139A (en) * 2007-03-27 2007-11-28 腾讯科技(深圳)有限公司 Dummy article transaction system and method
CN101388098A (en) * 2007-09-11 2009-03-18 华友讯联股份有限公司 Virtual treasure dynamic bid network trading method in virtual network game
US9652769B1 (en) * 2010-11-30 2017-05-16 Carbonite, Inc. Methods, apparatus and systems for securely storing and/or accessing payment information or other sensitive information based on tokens
CN102956011A (en) * 2011-08-24 2013-03-06 刘为民 System and method for redeeming universal discount coupons

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753745A (en) * 2008-12-08 2010-06-23 中国移动通信集团宁夏有限公司 Method and device for preventing one-card multi-charging of prepaid card
CN104574045A (en) * 2013-10-15 2015-04-29 乐点卡数位科技股份有限公司 Method capable of guaranteeing network transaction security of buyer and seller
CN105578449A (en) * 2016-03-02 2016-05-11 深圳市思博威尔斯科技有限公司 Method and device for changing virtual SIM card
CN109313762A (en) * 2016-03-08 2019-02-05 加拿大皇家银行 For characterizing the system for securely generating and handling, the method and apparatus of the data set of stored value payment
CN106209827A (en) * 2016-07-08 2016-12-07 安徽四创电子股份有限公司 Virtual card port system based on container cloud and service creating method thereof
CN107979585A (en) * 2017-02-08 2018-05-01 腾讯科技(深圳)有限公司 A kind of data processing method, applications client and system
CN107067239A (en) * 2017-04-25 2017-08-18 腾讯科技(深圳)有限公司 Apps server and its information processing method and device
CN107609851A (en) * 2017-10-24 2018-01-19 广州四三九九信息科技有限公司 Virtual coin recharge method, device and gaming platform server

Also Published As

Publication number Publication date
CN109872223A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN109544160B (en) Transaction authenticity verification method and system based on block chain and intelligent contract
CN108681853B (en) Logistics information transmission method, system and device based on block chain
US10547446B2 (en) Method and apparatus for providing a universal deterministically reproducible cryptographic key-pair representation for all SKUs, shipping cartons, and items
KR102573433B1 (en) Platform for trading energy using block chain and method thereof
US20130290707A1 (en) Information distribution system
CN109102269A (en) Transfer account method and device, block chain node and storage medium based on block chain
CN110290102A (en) Service security system and method based on application
JP2002298055A (en) Electronic commerce system
JP2002269425A (en) Electronic coupon method, electronic coupon system, sales server, orderer terminal, order receiver terminal and program
US20200294039A1 (en) Retail blockchain method and apparatus
CN109872223B (en) Virtual article transaction method, device, equipment and storage medium
CN108718323A (en) A kind of identity identifying method and system
CN109583891A (en) A kind of information processing method, device and storage medium
US20140081873A1 (en) Online payment interactive processing method and online payment interactive processing system
KR102085997B1 (en) Method and system for real estate transaction service based on block chain
CN110969465A (en) Sales promotion method and system based on block link certificate
CN110266686B (en) Data sharing method, device, equipment and computer readable storage medium
JP2009122950A (en) Purchase system and method
JP2008004042A (en) Method of electronic commerce
WO2019244863A1 (en) Information processing method, program, and information processing device
CN110532796A (en) File encryption management method, system and computer readable storage medium
Zhang et al. A practical fair-exchange e-payment protocol for anonymous purchase and physical delivery
CN106203976A (en) Payment system based on same fund server and method of payment, device and server
CN115345729A (en) Credit card issuing method and device, electronic equipment and storage medium
Hauswirth et al. A phase model for e-commerce business models and its application to security assessment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210514

Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Applicant after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.