Cointime

Download App
iOS & Android

Privacy NFT Marketplace

From etheresearch by terry

Introduction

In the rapidly evolving realm of Non-Fungible Tokens (NFTs), the need for privacy in ownership transactions has never been more crucial. Existing NFT marketplaces expose sensitive details on public blockchains, compromising user privacy. Our solution, the Privacy NFT Marketplace, introduces a pioneering approach using zk-SNARKs technology to safeguard user identities during NFT transactions.

This proposal outlines a secure and decentralized platform that leverages cryptographic proofs, allowing verifiable transactions without disclosing sensitive information. By prioritizing privacy through zk-SNARKs, our proposal addresses current privacy concerns in NFT ownership, fostering trust and confidence among users. This innovation aims to redefine the NFT landscape, encouraging broader adoption and contributing to the development of a privacy-centric NFT ecosystem.

How it works

Seller

Step 1: Deposit NFT and Generate Nullifier

  • The seller initiates the process by depositing their NFT into the marketplace’s state Merkle tree and generates a new spending NFT nullifier associated with the deposited NFT.

Step 2: Create Sell Order

  1. Public: Listing Information: The seller creates a sell order, providing essential information.Collection Address: The address of the NFT collection.Token ID: The unique identifier of the NFT.Amount: The desired selling price.
  2. Collection Address: The address of the NFT collection.
  3. Token ID: The unique identifier of the NFT.
  4. Amount: The desired selling price.
  5. Private: Generate Seller’s ERC20 Nullifier:The seller generates a new spending ERC20 nullifier associated with the sale amount and a seller spending key.
  6. The seller generates a new spending ERC20 nullifier associated with the sale amount and a seller spending key.
  7. Public: Spending NFT Proofs:The seller creates proofs containing the collection address, token ID, spending NFT nullifier, and selling amount.
  8. The seller creates proofs containing the collection address, token ID, spending NFT nullifier, and selling amount.

→ (Collection address, token id, amount, new seller’s ERC20 Nullifier hash, spending NFT Proofs)

Buyer

Step 1: Deposit ERC20 and Generate Nullifier

  • The buyer deposits ERC20 into the marketplace’s state Merkle tree and generates a new spending ERC20 nullifier associated with the deposited amount

Step 2: Create Accept-Sell Order

  1. Listing Lookup and Information:The buyer looks up the listing information on the public marketplace and decides to make a purchase.The buyer creates an accept-sell order, providing necessary details.Collection Address, Token ID, Amount.
  2. The buyer looks up the listing information on the public marketplace and decides to make a purchase.
  3. The buyer creates an accept-sell order, providing necessary details.Collection Address, Token ID, Amount.
  4. Collection Address, Token ID, Amount.
  5. Spending ERC20 Proofs:The buyer generates proofs containing the collection address, token id and lists proofs of their spending ERC20 nullifier.
  6. The buyer generates proofs containing the collection address, token id and lists proofs of their spending ERC20 nullifier.
  7. Generate New Buyer’s Nullifiers:New Buyer Spending NFT Nullifier: Associated with the collection address, token ID, and buyer spending key.New Buyer Spending Left-ERC20 Nullifier: Associated with the total deposit amount minus the NFT price.
  8. New Buyer Spending NFT Nullifier: Associated with the collection address, token ID, and buyer spending key.
  9. New Buyer Spending Left-ERC20 Nullifier: Associated with the total deposit amount minus the NFT price.

→ (Collection address, token id, amount, new buyer’s NFT Nullifier hash, new buyer’s ERC20 Nullifier hash, spending ERC20 proofs)

On-chain Verifier

The on-chain verifier function receives the following parameters:

  • Collection Address
  • Token ID
  • Amount
  • New Seller Spending ERC20 Nullifier Hash
  • Seller Spending NFT Proofs
  • Buyer Spending ERC20 Proofs
  • New Buyer Spending NFT Nullifier Hash
  • New Buyer Spending Left-ERC20 Nullifier Hash

Verification Steps:

Verify all nullifiers hash are available

  1. Verify Seller’s ERC20 Nullifier Hash:Confirm the amount in the new seller spending ERC20 nullifier hash.
  2. Confirm the amount in the new seller spending ERC20 nullifier hash.
  3. Verify Seller’s NFT Proofs:Validate the seller’s spending NFT proofs.Validate proof with given amount
  4. Validate the seller’s spending NFT proofs.
  5. Validate proof with given amount
  6. Verify Buyer’s ERC20 Proofs and Nullifier Hash:Confirm the buyer’s spending ERC20 proofs and new buyer spending left-ERC20 nullifier hash.Validate proof with given collection address and token id
  7. Confirm the buyer’s spending ERC20 proofs and new buyer spending left-ERC20 nullifier hash.
  8. Validate proof with given collection address and token id
  9. Verify Collection Address and Token ID in Buyer’s NFT Nullifier Hash:Ensure the correctness of the collection address and token ID in the new buyer spending NFT nullifier hash.
  10. Ensure the correctness of the collection address and token ID in the new buyer spending NFT nullifier hash.

Update state:

  1. Mark seller’s spending NFT nullifier hash as used
  2. Mark buyer’s spending ERC20 nullifier hash as used
  3. Add seller’s spending ERC20 nullifier hash to state tree
  4. Add buyer’s spending NFT nullifier hash to state tree
  5. Add buyer’s spending left-ERC20 nullifier to state tree

This robust verification process ensures the integrity and security of the NFT transaction on our marketplace, providing a trustworthy environment for both sellers and buyers.

Certainly! If you have any questions or need further clarification on any aspect of the process outlined above, feel free to comment

Comments

All Comments

Recommended for you

  • US Spot Ethereum ETF Sees $5.6 Million Net Outflow

    On May 15, according to monitoring data from Farside Investors, the US spot Ethereum ETF experienced a net outflow of $5.6 million yesterday.

  • Xi Jinping Holds Restricted Meeting with Trump in Zhongnanhai

    May 15 — Chinese President Xi Jinping held a restricted meeting with US President Donald Trump at Zhongnanhai. (CCTV News)

  • US Spot Bitcoin ETF Sees Net Inflow of $131.32 Million Yesterday

    On May 15, according to monitoring by Trader T, the US spot Bitcoin ETF experienced a net inflow of $131.32 million yesterday.

  • Kechuang 50 Index Declines by 2%

    On May 15, the Kechuang 50 Index experienced a decline of 2.36% during the day. Among the constituent stocks, JinkoSolar fell by 7.60%, Tianyue Advanced dropped by 7.11%, Canadian Solar decreased by 5.54%, and Zhongke Feiyun fell by 5.64%. (Dongxin News Agency)

  • Nikkei 225 Index Falls Below 62,000 Points for the First Time Since May 7

    On May 15, the Nikkei 225 index fell below 62,000 points during trading hours, marking the first time it has done so since May 7. (Tokyo News Agency)

  • U.S. 30-Year Treasury Yield Rises to 5.056%, Reaching 10-Month High

    On May 15, the yield on U.S. 30-year Treasury bonds rose to 5.056%, marking a 10-month high, while the yield on 10-year Treasury bonds reached 4.512%. (Dongxin News Agency)

  • Japan's 10-Year Government Bond Yield Reaches Highest Level in Nearly 29 Years

    On May 15, according to CCTV, the yield on newly issued 10-year government bonds, which serves as a long-term interest rate indicator in Japan's domestic bond market, rose to 2.665%, reaching its highest level in nearly 29 years. This increase is attributed to inflationary pressures from rising oil prices and market concerns about the deterioration of fiscal policy due to Japan's domestic economic measures, leading to selling pressure on bonds. (Dongxin News Agency)

  • ETH Surpasses $2300

    Market data shows that ETH has surpassed $2300, currently priced at $2300.06, with a 24-hour increase of 1.42%. The market is experiencing significant volatility, so please ensure proper risk management.

  • ETH Surpasses $2300

    Market data shows that ETH has surpassed $2300, currently priced at $2300.02, with a 24-hour increase of 1.97%. The market is highly volatile, so please ensure proper risk management.

  • Trump's Securities Trading Records Exposed, Invests in Nvidia and Apple

    On May 15, the U.S. Office of Government Ethics released two new financial disclosure documents on Thursday, revealing that Trump disclosed large-scale financial transactions worth at least $220 million earlier this year, involving securities from several major U.S. companies. The newly disclosed documents cover the first three months of 2026, with transaction values ranging broadly from $220 million to approximately $750 million. Significant purchases valued between $1 million and $5 million include S&P 500 index funds, Nvidia, and Apple. Large sales valued between $5 million and $25 million include Microsoft, Amazon, and Meta. The documents do not consistently specify the exact types of securities involved, such as whether they are stocks or corporate bonds, nor do they indicate which accounts the transactions occurred in or who authorized the trades. Such disclosure documents are mandatory but only partially reflect officials' financial activities, as they only list transactions exceeding $1,000 and present them in broad value ranges without disclosing specific transaction prices, profit situations, or whether assets were directly purchased or held through managed accounts. Trump's assets are held in a trust controlled by his children, and some transactions in the new documents indicate the involvement of brokers as agents. (NBC)