CN113592478A - Digital commodity transaction method, computer device and storage medium - Google Patents

Digital commodity transaction method, computer device and storage medium Download PDF

Info

Publication number
CN113592478A
CN113592478A CN202110883006.8A CN202110883006A CN113592478A CN 113592478 A CN113592478 A CN 113592478A CN 202110883006 A CN202110883006 A CN 202110883006A CN 113592478 A CN113592478 A CN 113592478A
Authority
CN
China
Prior art keywords
digital
transaction
digital commodity
commodity
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110883006.8A
Other languages
Chinese (zh)
Inventor
马登极
王志文
吴思进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei 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 Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN202110883006.8A priority Critical patent/CN113592478A/en
Publication of CN113592478A publication Critical patent/CN113592478A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/12Payment architectures specially adapted for electronic shopping systems
    • G06Q20/123Shopping for digital content
    • G06Q20/1235Shopping for digital content with control of digital rights management [DRM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Security & Cryptography (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a digital commodity transaction method, computer equipment and a storage medium, wherein the method comprises the following steps: generating a first payment transaction and sending the first payment transaction to the blockchain network in response to the current user purchasing the first digital commodity; after receiving the first digital commodity, taking the certificate storing information of the first digital commodity stored in the transaction platform as the public input of the certification algorithm of the zero-knowledge certification circuit, and taking the received hash value of the first digital commodity as the private input of the certification algorithm to generate first certification information; and generating a first receiving transaction comprising the certificate storage information and the first certificate information of the first digital commodity which is stored by the transaction platform and sending the first receiving transaction to the blockchain network. The invention ensures the asset security of the buyer in the digital commodity transaction.

Description

Digital commodity transaction method, computer device and storage medium
Technical Field
The present application relates to the field of internet technology, and in particular, to a digital commodity transaction method, a computer device, and a storage medium.
Background
In the current digital commodity transaction scheme, due to the characteristic that the digital commodity is reproducible, only a transaction mode that the buyer pays first and the seller delivers the digital commodity after the buyer pays is adopted, so that once the buyer encounters the fake digital commodity delivered by the seller, the digital commodity is difficult to maintain and easy to suffer from asset loss.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies of the prior art, it is desirable to provide a digital goods transaction method, a computer device, and a storage medium for securing the asset security of a digital goods buyer.
In a first aspect, the present invention provides a digital commodity transaction method applicable to a user side of a buyer, where a block chain is configured with a digital commodity transaction contract, the digital commodity transaction contract is configured with a zero-knowledge proof circuit for verifying whether a digital commodity received by the buyer is incorrect, and a transaction platform is configured for verifying and certifying certification information of a digital commodity put on shelf when the digital commodity is put on shelf, the method including:
responding to the purchase of a first digital commodity by a current user, generating a first payment transaction and sending the first payment transaction to a block chain network, so that a block chain node executes through a digital commodity transaction contract and a first payment paid is frozen in the contract;
after receiving the first digital commodity, taking the certificate storing information of the first digital commodity stored in the transaction platform as the public input of the certification algorithm of the zero-knowledge certification circuit, and taking the received hash value of the first digital commodity as the private input of the certification algorithm to generate first certification information;
generating first receiving transaction comprising the certificate storage information and the first certificate information of the first digital commodity of the certificate stored by the transaction platform and sending the first receiving transaction to the block chain network so as to be executed by the block chain node through a digital commodity transaction contract, and inputting the certificate storage information and the first certificate information of the first digital commodity of the certificate stored by the transaction platform into a verification algorithm of a zero-knowledge proof circuit to verify whether the first digital commodity received by the current user is wrong:
if so, the first receiving transaction fails to be executed;
and if not, the first receiving transaction is successfully executed, the first money is unfrozen and transferred to a corresponding seller account.
In a second aspect, the present invention provides a digital commodity transaction method suitable for a blockchain node, where a blockchain is configured with a digital commodity transaction contract, the digital commodity transaction contract is configured with a zero-knowledge proof circuit for verifying whether a digital commodity received by a buyer is incorrect, and a transaction platform is configured for verifying and certifying certification storage information of a digital commodity placed on a shelf when the digital commodity is placed on the shelf, the method including:
executing a first payment transaction through the digital commerce transaction contract, freezing a first amount of payment in the contract; wherein the first payment transaction is generated by the first user in response to the first user purchasing the first digital good;
executing a first receiving transaction through a digital commodity transaction contract, and inputting the certificate storage information and the first certificate information of the first digital commodity stored in the transaction platform into a verification algorithm of a zero-knowledge certificate circuit to verify whether the first digital commodity received by the first user is wrong:
if so, the first receiving transaction fails to be executed;
and if not, the first receiving transaction is successfully executed, the first money is unfrozen and transferred to a corresponding seller account.
The first receiving transaction comprises the certificate storage information and the first certificate information of the first digital commodity of the certificate stored by the transaction platform, and is generated by the first user side; after the first digital commodity is received by the first user end, the first certification information is generated by using the certification information of the first digital commodity certified by the transaction platform as the public input of the certification algorithm of the zero-knowledge certification circuit and using the received hash value of the first digital commodity as the private input of the certification algorithm.
In a third aspect, the present invention also provides a computer device comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a digital merchandise transaction method provided according to embodiments of the present invention.
In a fourth aspect, the present invention also provides a storage medium storing a computer program that causes a computer to execute the digital goods transaction method provided according to the embodiments of the present invention.
In the digital commodity transaction method, the computer device and the storage medium provided by the embodiments of the invention, the zero knowledge proving circuit used for verifying whether the digital commodity received by the buyer is wrong is configured in the block chain contract, the money is frozen in the contract when the buyer pays, the digital commodity received by the buyer is verified whether the digital commodity received by the buyer is wrong or not by the zero knowledge proving circuit when the buyer confirms to receive the commodity, and the money is transferred to the seller only when the digital commodity is verified, so that the asset security of the buyer is ensured in the digital commodity transaction;
the digital commodity transaction method, the computer device and the storage medium provided by some embodiments of the present invention further implement further support for a buyer to separately purchase a certain unit of a complete digital commodity in the foregoing solution by configuring the evidence information of the digital commodity as a root of a mercker tree generated by hash values of the units included in the complete digital commodity and path information of the hash values of the units.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a digital commodity transaction method according to an embodiment of the present invention.
FIG. 2 is a flow diagram of a preferred embodiment of the method shown in FIG. 1.
Fig. 3 is a flowchart of another digital merchandise transaction method according to an embodiment of the invention.
Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a digital commodity transaction method according to an embodiment of the present invention.
As shown in fig. 1, in this embodiment, the present invention provides a digital commodity transaction method applicable to a user side of a buyer, where a block chain is configured with a digital commodity transaction contract, the digital commodity transaction contract is configured with a zero-knowledge proof circuit for verifying whether a digital commodity received by the buyer is incorrect, and a transaction platform is configured for verifying and certifying certification information of the digital commodity on shelf when the digital commodity is on shelf, the method includes:
s11: responding to the purchase of a first digital commodity by a current user, generating a first payment transaction and sending the first payment transaction to a block chain network, so that a block chain node executes through a digital commodity transaction contract and a first payment paid is frozen in the contract;
s13: after receiving the first digital commodity, taking the certificate storing information of the first digital commodity stored in the transaction platform as the public input of the certification algorithm of the zero-knowledge certification circuit, and taking the received hash value of the first digital commodity as the private input of the certification algorithm to generate first certification information;
s15: generating first receiving transaction comprising the certificate storage information and the first certificate information of the first digital commodity of the certificate stored by the transaction platform and sending the first receiving transaction to the block chain network so as to be executed by the block chain node through a digital commodity transaction contract, and inputting the certificate storage information and the first certificate information of the first digital commodity of the certificate stored by the transaction platform into a verification algorithm of a zero-knowledge proof circuit to verify whether the first digital commodity received by the current user is wrong:
if so, the first receiving transaction fails to be executed;
and if not, the first receiving transaction is successfully executed, the first money is unfrozen and transferred to a corresponding seller account.
Specifically, the digital merchandise traded in the present invention may be complete digital merchandise, or may be a unit in the complete digital merchandise (e.g., a chapter in a book, or a song in an album, etc.).
When the first digital commodity is a complete digital commodity, the certification information of the first digital commodity is configured as a hash value of the first digital commodity. The principle of verifying whether the first digital commodity received by the buyer is incorrect is to verify whether the hash value of the first digital commodity received by the buyer is the same as the certificate storing information of the first digital commodity stored by the transaction platform.
When the first digital commodity is a certain unit in the complete digital commodity, the authentication information of the first digital commodity is configured to be hash values of the units included in the complete digital commodity as tree roots of a tacher tree generated by leaf nodes of the tacher tree, and path information of the hash values of the first digital commodity in the tacher tree. The principle of verifying whether the first digital commodity received by the buyer is incorrect is to verify whether the hash value of the first digital commodity received by the buyer and the root generated by the path information of the stored certificate are the same as the root of the stored certificate.
The zero-knowledge proof circuit configured by the digital commodity transaction contract is generated according to the principle of verifying whether the first digital commodity received by the buyer is wrong or not. The zero knowledge proof circuit for verifying the complete digital commodity is different from the zero knowledge proof circuit for verifying a certain unit in the complete digital commodity, and the two zero knowledge proof circuits can be configured in a contract at the same time or only one of the two zero knowledge proof circuits can be configured according to actual requirements. Those skilled in the art will understand how to generate a zero knowledge proof circuit according to the above verification principle in a zero knowledge proof architecture, and the generated zero knowledge proof circuit includes at least a proof algorithm pro () and a verification algorithm Verify (), and may also include a generation algorithm Setup (). The detailed process is not described herein.
The above method is exemplified below by the example of a digital painting created by a first purchasing a second in 100-dollar, central-row digital currency, as paint 1.
General will createWhen the digital painting paint1 is submitted to the trading platform for shelving, the trading platform audits and verifies the certificate-storing information hash of the digital painting paint11Hash (paint1)) and a low resolution version of the digital paint1 is presented on the trading platform for buyer reference.
In response to the buyer a purchasing the digital painting paint1, the user terminal of the buyer a executes step S11, generates a payment transaction tx1 and sends the payment transaction tx1 to the blockchain network. In particular, the payment transaction tx1 should include the seller B's collection address addrSecond stepInformation related to the digital painting paint1 (e.g., certificate of existence information hash of paint1)1) And the product number of the paint1 on the trading platform), and may further include other information such as the order number of the first purchase paint 1.
The blockchain node receives, broadcasts, packages and executes tx1 through the digital goods transaction contract, freezing the money paid by buyer a in the contract.
After tx1 is executed successfully, the user end of the buyer A can inform the seller B, or the seller B can deliver the digital painting paint1 to the buyer A after confirming that the payment transaction is executed successfully, verifying the information such as the payer, the transaction amount and the collection address and the like are correct for the payment transaction of the digital painting paint1 on the transaction platform or the terminal monitoring block chain of the seller B.
In step S13, after the user end of the buyer a receives the digital painting paint1, the digital painting of the transaction platform deposit the certificate is used as the certificate storage information hash of the paint11As public input of proof algorithm Prove () of zero knowledge proof circuit, hash with hash value of received paint12As a private input of the attestation algorithm save (), hash (paint1) is generated as first attestation information:
Prove(hash1,hash2)→prove1。
in step S15, the user end of the buyer a generates a hash including the certificate information1And the delivery transaction tx2 of the first proof information pro 1 and sent to the blockchain network.
The block chain node executes tx2 through the digital commodity trade contract and sends the hash1And pro 1 inputThe verification algorithm Verify () of the zero-knowledge proof circuit is used for verifying whether the first digital commodity received by the current user is wrong:
Verify(hash1,prove1)→Yes/No。
when the output result of the verification algorithm Verify () is No, it indicates that the digital painting paint1 received by the buyer A is wrong, and tx2 fails to execute;
when the output result of the verification algorithm Verify () is Yes, the fact that the digital painting paint1 received by the buyer A is correct is shown, tx2 is successfully executed, money paid by the buyer A is unfrozen and transferred to addrSecond step
Take the third single song3 of digital album1 created by buying D with 5 yuan central row digital currency as an example:
when the authored digital album1 including 10 single songs is submitted to a trading platform for shelving, the trading platform generates a Mercker tree1 by taking the hash value hash (song1) -hash (song10) of each single song of the digital album1 as a leaf node of the Mercker tree, and takes the root node root of the Mercker tree1 and the path information path1 of the hash (song1) in the tree1 as the evidence storage information of the single song 1; taking path information path2 of root nodes root and hash (song2) in a tree1 as evidence storage information of a single song 2; … …, respectively; taking path information path10 of root nodes root and hash (song10) in a tree1 as evidence storage information of a single song 10; meanwhile, the hash (root) is used as the certification information of the whole album1 (obviously, when the buyer purchases the whole album, the hash value of album1 calculated in step S13 should be calculated and generated in the same way as the root node of the mercker tree). In addition, the trial listening segments of a plurality of single songs can be displayed on the trading platform for the buyer to refer to.
The process of generating and sending the payment transaction by the user side of the user C is the same as the process of generating and sending the payment transaction by the user side of the user A, the process of executing the payment transaction by the block link points is also the same as the process of executing tx1, and the process of confirming the payment and delivering the single song3 by the seller D is also the same as the process of confirming the payment and delivering the paint1 by the seller B, so that repeated description is omitted.
In step S13, the user end of buyer C is atAfter receiving the single song3, the certificate storage information of the single song3 stored by the trading platform is used for: root node root and path information path3 hash the hash value of the received single song3 as public inputs of proof algorithm Prove ()3As a private input of save (), first certification information is generated:
Prove(root、path3,hash3)→prove2。
in step S15, the user side of buyer c generates a receiving transaction tx4 including the deposit information (root and path3) and the first proof information pro 2 and sends it to the blockchain network.
The blockchain node executes tx4 through a digital commodity transaction contract, and inputs root, path3 and pro 1 into a verification algorithm Verify () of a zero-knowledge proof circuit to Verify whether the first digital commodity received by the current user is wrong:
Verify(root、path3,prove1)→Yes/No。
when the output result of the verification algorithm Verify () is No, the fact that the single song3 received by the buyer A is wrong is shown, and the tx4 execution fails;
when the output result of the verification algorithm Verify () is Yes, the fact that the single song3 received by the buyer A is correct is shown, the tx4 is successfully executed, the money paid by the buyer A is unfrozen and transferred to the addrT-shirt
The above embodiment takes the transaction of digital paintings and musical works as an example, and the method shown in fig. 1 is exemplarily illustrated, and in further embodiments, the above method can also be applied to transactions of different digital commodities, and can achieve the same technical effect.
FIG. 2 is a flow diagram of a preferred embodiment of the method shown in FIG. 1. As shown in fig. 2, in a preferred embodiment, step S13 includes:
s131: after receiving the first digital commodity, verifying whether the first digital commodity received by the current user is wrong according to the certificate storage information of the first digital commodity of the certificate stored by the transaction platform and the received hash value of the first digital commodity:
otherwise, step S133 is executed: and taking the certificate storing information of the first digital commodity of the certificate stored by the transaction platform as the public input of the certification algorithm of the zero-knowledge certification circuit, and taking the received hash value of the first digital commodity as the private input of the certification algorithm to generate the first certification information.
Specifically, the method shown in fig. 2 differs from the method shown in fig. 1 in that:
in the method shown in fig. 1, after the user receives the digital commodity, the user side does not perform authentication, directly generates and sends a receiving transaction, and a zero-knowledge proving circuit configured by a digital commodity transaction contract is used for authenticating whether the digital commodity received by the user is wrong;
in the method shown in fig. 2, after the user receives the digital commodity, the user identifies whether the received digital commodity is wrong or not in advance, and only confirms that the received digital commodity is correct, the receiving transaction is sent, and the re-identification of the zero knowledge proving circuit configured in the digital commodity transaction contract is used as double insurance.
Fig. 3 is a flowchart of another digital merchandise transaction method according to an embodiment of the invention. The method illustrated in fig. 3 may be performed in conjunction with the methods illustrated in fig. 1-2.
As shown in fig. 3, in this embodiment, the present invention further provides a digital commodity transaction method suitable for a blockchain node, where a digital commodity transaction contract is configured on a blockchain, the digital commodity transaction contract is configured with a zero-knowledge proving circuit for verifying whether a digital commodity received by a buyer is incorrect, and a transaction platform is configured for verifying and proving evidence-storing information of the digital commodity on shelf when the digital commodity is on shelf, the method includes:
s21: executing a first payment transaction through the digital commerce transaction contract, freezing a first amount of payment in the contract; wherein the first payment transaction is generated by the first user in response to the first user purchasing the first digital good;
s23: executing a first receiving transaction through a digital commodity transaction contract, and inputting the certificate storage information and the first certificate information of the first digital commodity stored in the transaction platform into a verification algorithm of a zero-knowledge certificate circuit to verify whether the first digital commodity received by the first user is wrong:
if so, the first receiving transaction fails to be executed;
otherwise, step S25 is executed: the first receipt transaction is executed successfully, the first money is defrosted and transferred to the corresponding seller account.
The first receiving transaction comprises the certificate storage information and the first certificate information of the first digital commodity of the certificate stored by the transaction platform, and is generated by the first user side; after the first digital commodity is received by the first user end, the first certification information is generated by using the certification information of the first digital commodity certified by the transaction platform as the public input of the certification algorithm of the zero-knowledge certification circuit and using the received hash value of the first digital commodity as the private input of the certification algorithm.
Preferably, the first digital commodity is a complete digital commodity, and the certification information of the first digital commodity is configured as a hash value of the first digital commodity.
Preferably, the first digital commodity is a first unit in a second digital commodity including a plurality of units that can be sold separately, the certification information of the first digital commodity is configured as a root node of a merkel tree generated by using a hash value of each unit included in the second digital commodity as a leaf node of the merkel tree, and the path information of the hash value of the first unit in the merkel tree.
Preferably, the first certification information is generated by the first user after verifying that the received first digital commodity is error-free according to the certification information of the first digital commodity certified by the transaction platform and the received hash value of the first digital commodity.
Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
As shown in fig. 4, as another aspect, the present application also provides a computer apparatus 400 including one or more Central Processing Units (CPUs) 401 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the device 400 are also stored. The CPU401, ROM402, and RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each unit may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A digital commodity transaction method is characterized in that a block chain is configured with a digital commodity transaction contract, the digital commodity transaction contract is configured with a zero-knowledge proof circuit for verifying whether a digital commodity received by a buyer is wrong, a transaction platform is configured for verifying and proving evidence storage information of the digital commodity on shelf when the digital commodity is on shelf, the method is suitable for a user end of the buyer, and the method comprises the following steps:
responding to the purchase of a first digital commodity by a current user, generating a first payment transaction and sending the first payment transaction to a block chain network, so that a block chain node executes through a contract of the digital commodity transaction, and freezing a first payment paid in the contract;
after the first digital commodity is received, taking the certificate storing information of the first digital commodity stored and certified by the transaction platform as the public input of the certification algorithm of the zero-knowledge certification circuit, and taking the received hash value of the first digital commodity as the private input of the certification algorithm to generate first certification information;
generating and sending certificate storage information of a first digital commodity including a certificate stored by a transaction platform and a first receiving transaction of the first certificate information to a block chain network, so that block chain nodes execute the transaction through a digital commodity transaction contract, and inputting the certificate storage information of the first digital commodity including the certificate stored by the transaction platform and the first certificate information into a verification algorithm of the zero knowledge proof circuit to verify whether the first digital commodity received by a current user is wrong:
if so, the first receiving transaction fails to be executed;
and if not, the first receiving transaction is successfully executed, the first money is unfrozen and transferred to a corresponding seller account.
2. The method of claim 1, wherein the first digital good is a complete digital good, and the authentication information of the first digital good is configured as a hash of the first digital good.
3. The method according to claim 1, wherein the first digital commodity is a first unit in a second digital commodity including a plurality of units that can be sold separately, the authentication information of the first digital commodity is configured as a root of a merkel tree generated by using a hash value of each unit included in the second digital commodity as a leaf node of the merkel tree, and path information of the hash value of the first unit in the merkel tree.
4. The method of any one of claims 1 to 3, wherein the generating of the first certification information after receiving the first digital good by using the certification information of the first digital good certified by the transaction platform as a public input of the certification algorithm of the zero-knowledge certification circuit and using the hash value of the received first digital good as a private input of the certification algorithm comprises:
after receiving the first digital commodity, verifying whether the first digital commodity received by the current user is wrong according to the certificate storing information of the first digital commodity of the certificate stored by the transaction platform and the received hash value of the first digital commodity:
and if not, the certificate storage information of the first digital commodity which is certified by the transaction platform is used as the public input of the certification algorithm of the zero-knowledge certification circuit, and the received hash value of the first digital commodity is used as the private input of the certification algorithm to generate the first certification information.
5. A digital commodity transaction method is characterized in that a block chain is provided with a digital commodity transaction contract, the digital commodity transaction contract is provided with a zero-knowledge proof circuit used for verifying whether a digital commodity received by a buyer is wrong, a transaction platform is configured for verifying and proving evidence storage information of the digital commodity on shelf when the digital commodity is on shelf, the method is suitable for the block chain node, and the method comprises the following steps:
executing a first payment transaction through the digital commerce transaction contract, freezing a first amount of payment in the contract; wherein the first payment transaction is generated by the first user in response to the first user purchasing the first digital good;
executing a first receiving transaction through the digital commodity transaction contract, and inputting the certificate storage information and the first certificate information of the first digital commodity stored in the transaction platform into a verification algorithm of the zero-knowledge proof circuit to verify whether the first digital commodity received by the first user is wrong:
if so, the first receiving transaction fails to be executed;
if not, the first receiving transaction is successfully executed, the first money is unfrozen and transferred to a corresponding seller account;
the first receiving transaction comprises the certificate storing information of the first digital commodity which is stored by the transaction platform and the first certification information, and is generated by the first user end; after the first user end receives the first digital commodity, the first certification information is generated by taking the certification information of the first digital commodity certified by the transaction platform as the public input of the certification algorithm of the zero knowledge certification circuit and taking the received hash value of the first digital commodity as the private input of the certification algorithm.
6. The method of claim 5, wherein the first digital good is a complete digital good, and the authentication information of the first digital good is configured as a hash of the first digital good.
7. The method according to claim 5, wherein the first digital commodity is a first unit in a second digital commodity including a plurality of units that can be sold separately, the authentication information of the first digital commodity is configured to be a root node of a Merck tree generated by using a hash value of each unit included in the second digital commodity as a leaf node of the Merck tree, and path information of the hash value of the first unit in the Merck tree.
8. The method according to any one of claims 5 to 7, wherein the first certification information is generated by the first user after verifying that the received first digital commodity is error-free according to the certification information of the first digital commodity certified by the transaction platform and the hash value of the received first digital commodity.
9. A computer device, the device comprising:
one or more processors;
a memory 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 perform the method recited in any of claims 1-8.
10. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-8.
CN202110883006.8A 2021-08-02 2021-08-02 Digital commodity transaction method, computer device and storage medium Pending CN113592478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110883006.8A CN113592478A (en) 2021-08-02 2021-08-02 Digital commodity transaction method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110883006.8A CN113592478A (en) 2021-08-02 2021-08-02 Digital commodity transaction method, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN113592478A true CN113592478A (en) 2021-11-02

Family

ID=78254010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110883006.8A Pending CN113592478A (en) 2021-08-02 2021-08-02 Digital commodity transaction method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN113592478A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950117A (en) * 2021-03-05 2021-06-11 杭州复杂美科技有限公司 Transaction method, computer device and storage medium
CN115037484A (en) * 2022-08-10 2022-09-09 捷德(中国)科技有限公司 Digital collection receiving method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111160888A (en) * 2019-12-31 2020-05-15 深圳大学 Payment method based on zero knowledge proof
CN111159694A (en) * 2019-12-17 2020-05-15 上海七印信息科技有限公司 Private use authorization method of block chain digital assets based on zero knowledge proof
US20200193425A1 (en) * 2018-12-12 2020-06-18 American Express Travel Related Services Company, Inc. Zero-knowledge proof payments using blockchain
US20200241929A1 (en) * 2019-01-25 2020-07-30 Virtustream Ip Holding Company Llc Distributed ledger for monitoring quality of services provided by cloud service providers
CN112085484A (en) * 2020-07-20 2020-12-15 西安电子科技大学 Digital content distributed transaction method, system, storage medium and computer equipment
CN112435026A (en) * 2020-11-27 2021-03-02 从法信息科技有限公司 Method and device for protecting file transaction information by using zero-knowledge proof and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200193425A1 (en) * 2018-12-12 2020-06-18 American Express Travel Related Services Company, Inc. Zero-knowledge proof payments using blockchain
US20200241929A1 (en) * 2019-01-25 2020-07-30 Virtustream Ip Holding Company Llc Distributed ledger for monitoring quality of services provided by cloud service providers
CN111159694A (en) * 2019-12-17 2020-05-15 上海七印信息科技有限公司 Private use authorization method of block chain digital assets based on zero knowledge proof
CN111160888A (en) * 2019-12-31 2020-05-15 深圳大学 Payment method based on zero knowledge proof
CN112085484A (en) * 2020-07-20 2020-12-15 西安电子科技大学 Digital content distributed transaction method, system, storage medium and computer equipment
CN112435026A (en) * 2020-11-27 2021-03-02 从法信息科技有限公司 Method and device for protecting file transaction information by using zero-knowledge proof and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
STEFAN DZIEMBOWSKI ET AL.: "FairSwap: How to fairly exchange digital goods", PROCEEDINGS OF THE 2018 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950117A (en) * 2021-03-05 2021-06-11 杭州复杂美科技有限公司 Transaction method, computer device and storage medium
CN112950117B (en) * 2021-03-05 2022-07-15 杭州复杂美科技有限公司 Transaction method, computer device and storage medium
CN115037484A (en) * 2022-08-10 2022-09-09 捷德(中国)科技有限公司 Digital collection receiving method and device and electronic equipment
CN115037484B (en) * 2022-08-10 2022-11-01 捷德(中国)科技有限公司 Digital collection receiving method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US10657595B2 (en) Method of tokenization of asset-backed digital assets
US11899809B2 (en) Proof-of-approval distributed ledger
KR101835520B1 (en) Method for providing united point service using updated status of balance database with blockchain and server using the same
JP7173976B2 (en) Computer-implemented method and system
KR101835521B1 (en) Method for providing united point service using updated status of balance database by respective blocks in blockchain and server using the same
CN109118219A (en) Transaction data processing method and device
KR101835519B1 (en) Method for providing united point service in use of merkle tree structure on the basis of unspent transaction output protocol and server using the same
US20220164791A1 (en) Method for distributing collectables ownership based on blockchain networks and online transaction server using the same
CN113592478A (en) Digital commodity transaction method, computer device and storage medium
CN111899107B (en) Scientific and technological service transaction method based on block chain intelligent contract
CN110852734A (en) Scenic spot service settlement method and system based on block chain and electronic equipment
Duong-Trung et al. Multi-sessions mechanism for decentralized cash on delivery system
CN112488725B (en) Private authorized transfer method, device and storage medium
KR101835518B1 (en) Method for providing united point service in use of unspent transaction output based protocol and server using the same
KR102045493B1 (en) Payment processing apparatus using virtual currency with automatic trading function of virtual currency and operating method thereof
WO2016172973A1 (en) Network transaction payment method and system
CN106663272A (en) Electronic transaction certificate management system
CN112215611B (en) Block chain-based offer method, seller node equipment, terminal equipment and storage medium
CN110544126A (en) Limited commodity coupon information evidence storing method and system on block chain
CN108898431A (en) Consume interlock method, device and server
CN110443609A (en) Multi-signature method of commerce, equipment and storage medium
CN113888190A (en) Commodity traceability system, method, equipment and storage medium based on block chain
CA2986822C (en) Network transaction information processing method and system
CA2995865C (en) Electronic-certificate-based transaction method and system
CN110633966A (en) Block chain-based contract securitization method and device

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20211102

WD01 Invention patent application deemed withdrawn after publication