Online shop application

Let’s say that is black friday and nemshop.com has 90% discount for 1 product. Everyone wants that product and in 1 minutes there are over 100 000 orders, but only 5000 products in stock. Because of an site error all orders are registered and everyone thinks that he/she was in the first 5000.

How would I solve this:

  • attach a message to that product (could be the product name or the product ID);
  • when I click buy my wallet will receive the shop wallet address with that unique message so that the shop will know that I want to buy that specific product;
  • the shop account will be a multi-signature account so to buy a product you’ll need 2 signature, yours and the shop signature, because it may be possible that the product is out of stock. The shop will sign the transaction when the product is shipped.
  • you will know if you are in the first 5000 by checking the blocks transactions.
1 Like